/* BASE */

html {
    height: 100%;
    font-size: 18px;
}

body {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

main {
    position: relative;
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    align-items: strech;
}

table td {
    white-space: nowrap;
}

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

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

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

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

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

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

table.table-hover {
    cursor: pointer;
}

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

#filters.collapsing {
  transition: none;
}

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

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


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

.navbar, {
    padding: 0rem 1rem !important;
}

.navbar .navbar-text {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

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

header .navbar,
footer .navbar,
aside .navbar {
    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%;
}

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

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

.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;
  }
}

/* BOOTSTRAP */
.opacity-100 {
    opacity: 1;
}

.opacity-75 {
    opacity: 0.75;
}

.opacity-50 {
    opacity: 0.5;
}

.opacity-25 {
    opacity: 0.25;
}

.opacity-0 {
    opacity: 0;
}
