/* BASE */

html {
    height: 100%;
}

body {
    min-height: 100%;
    font-family: "PT Sans", "Myriad Pro", -apple-system, Arial, sans-serif;
    font-size: 15px;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

main {
    position: relative;
    flex: 1 0 auto;
}

table td {
    white-space: nowrap;
}

.card > .table thead th {
    border: none !important;
}

span.caret {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 0.5em;
    border-top: 0.3em solid transparent;
    border-right: 0;
    border-bottom: 0.3em solid transparent;
    border-left: 0.3em solid;
    color: #ed2724;
    opacity: 0.5;
    /*
    float: right;
    margin-top: 0.5em;
    */
}

/*
.btn-dark .caret {
    opacity: 1;
    margin-left: 0;
}

.btn-lg .caret {
    border-top-width: 0.4em;
    border-bottom-width: 0.4em;
    border-left-width: 0.4em;
}
*/

/*
.btn-dark:after {
    top: 50%;
    margin-top: -8px;
    right: 30px;
    content: '';
    display: block;
    position: absolute;
    height: 0;
    width: 0;
    border-style: solid;
    border-width: 8px 0 8px 12px;
    border-color: transparent transparent transparent #ed2724;
    box-sizing: border-box;
}
*/

/*
.bg-light {
    background-color: rgba(0, 0, 0, .03);
}
*/

th.sorted.ascending:after {
    content: "\00a0\25B2";
    color: #ed2724;
}

th.sorted.descending:after {
    content: "\00a0\25BC";
    color: #ed2724;
}

.navbar-dark .navbar-nav:first-child .nav-item.active .nav-link {
    position: relative;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
}


/*
.navbar-dark .navbar-nav:first-child .show > .nav-link::after,
.navbar-dark .navbar-nav:first-child .active > .nav-link::after,
.navbar-dark .navbar-nav:first-child .nav-link.show::after,
.navbar-dark .navbar-nav:first-child .nav-link.active::after {
    content: '';
    display: block;
    box-sizing: border-box;
    border-bottom: 10px solid #f8f9fa;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    height: 0;
    width: 0;
    margin-left: -10px;
    position: absolute;
    bottom: -12px;
    left: 50%;
}
*/

.dropdown-toggle::after {
    color: #ed2724;
}

*:not(.table-deletable) .table-form tr th:last-child,
*:not(.table-deletable) .table-form tr td:last-child {
    display: none;
}

select option[disabled] {
    color: #ed2724;
    cursor: not-allowed;
}

table.table-hover {
    cursor: pointer;
}

.list-inline {
    margin-bottom: 0;
}

#filters.collapsing {
  transition: none;
}

.navbar-brand {
    line-height: 1.75;
}

.col-form-label {
    /*
    text-align: right;
    */
}

.form-group.row {
    margin-bottom: 0.5rem;
}

/*
.typeahead {
    z-index: 1051;
}

.form-group {
	margin-bottom: 5px;
}


table th input.date {
    min-width: 80px;
}
*/


/*
body {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}
*/

/* THEME */
body {
    background-color: #e5e5e5;
}

body.auth.login {
    background-color: #3b043d;
}

header nav,
footer nav,
aside nav {
    background-image: linear-gradient(#3b043d, #4b2068) !important;
}


header nav {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

header nav .mr-auto li {
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

header nav .nav-item.active {
    background-color: rgba(255, 255, 255, 0.5);
}

main nav {
    background-image: linear-gradient(#087a7b, #01d0d5) !important;
}

main nav .navbar-text {
    color: #fff !important;
}

/*
main nav .btn-light {
    color: #ee2a24;
}

main nav .btn-secondary {
    background-image: linear-gradient(#ee2a24, #f9ed1a) !important;
}
*/

footer {
    border-bottom: 5px solid #01d0d5;
}

footer.bg-dark {
    border-bottom: 5px solid #4b2068;
}

footer nav {
    background-image: linear-gradient(#3b043d, #4b2068) !important;
}

footer nav span {
    vertical-align: center;
}


.btn-secondary, .bg-secondary {
    background-image: linear-gradient(#ff775c, #ffaf5c) !important;
    color: #fff;
}

.table-striped {
    background-color: #fff;
}

label.col-form-label {
}

#login {
    background: #eaeaea url('../img/login.jpg') no-repeat left center;
    background-size: cover;
}

#login .card-body {
}

.table-grid tr input,
.table-grid tr button {
    visibility: hidden;
}

.table-grid tr.row-old input,
.table-grid tr.row-new:hover input,
.table-grid tr:hover button {
    visibility: visible;
}

/*
.table .rating-container .caption {
    display: none;
}
*/

.dropdown-menu .rating-container .mdi::before {
    left: 0;
}

.rating-container {
    display: inline-block;
}

.rating-container .clear-rating {
    display: none !important;
}

.rating-container .caption {
    width: 25px;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: #f2f2f2;
}

.table-striped tbody tr:nth-of-type(even) {
    background-color: #ffffff;
}

.table-striped tbody tr:hover {
    background-color: #dadada;
}

@supports ((position: -webkit-sticky) or (position: sticky)) {
    .table-sort {
        border-collapse: separate;
        border-spacing: 0;
    }
    .table th.sticky-left,
    .table th.sticky-right {
        background-color: #ffffff;
    }

    .table tr:not(.table-primary):not(.table-secondary):not(.table-success):not(.table-danger):not(.table-warning):not(.table-info):not(.table-light):not(.table-dark) td.sticky-left,
    .table tr:not(.table-primary):not(.table-secondary):not(.table-success):not(.table-danger):not(.table-warning):not(.table-info):not(.table-light):not(.table-dark) td.sticky-right {
        background-color: inherit;
    }

    .sticky-left,
    .sticky-right {
        position: -webkit-sticky;
        position: sticky;
        z-index: 990;
    }
    .sticky-left {
        left: 0;
        border-right: 1px solid #dee2e6;
    }
    .sticky-right {
        right: 0;
        border-left: 1px solid #dee2e6;
    }
}

.popover {
    max-width: 400px;
}

.navbar .pagination {
    margin-bottom: 0;
}

.stat .mdi::before {
    font-size: inherit;
    line-height: inherit;
}

/*
#pallet-modal .modal-body {
    margin: auto;
    max-width: 100%;
}
*/

.form-check-input {
    position: relative;
    margin-left: 0;
}

@media (max-width: 1899.98px) {
  .navbar-expand-xxl > .container,
  .navbar-expand-xxl > .container-fluid {
    padding-right: 0;
    padding-left: 0;
  }
}

@media (min-width: 1900px) {
  .navbar-expand-xxl {
    -ms-flex-flow: row nowrap;
    flex-flow: row nowrap;
    -ms-flex-pack: start;
    justify-content: flex-start;
  }
  .navbar-expand-xxl .navbar-nav {
    -ms-flex-direction: row;
    flex-direction: row;
  }
  .navbar-expand-xxl .navbar-nav .dropdown-menu {
    position: absolute;
  }
  .navbar-expand-xxl .navbar-nav .nav-link {
    padding-right: 0.5rem;
    padding-left: 0.5rem;
  }
  .navbar-expand-xxl > .container,
  .navbar-expand-xxl > .container-fluid {
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
  }
  .navbar-expand-xxl .navbar-collapse {
    display: -ms-flexbox !important;
    display: flex !important;
    -ms-flex-preferred-size: auto;
    flex-basis: auto;
  }
  .navbar-expand-xxl .navbar-toggler {
    display: none;
  }
}

