﻿/* Main */
main#main {
    min-height: calc(100vh - 150px);
}

/* Table */
.dt-container {
    padding-top: 15px;
}
.dt-container .dt-layout-row:not(.dt-layout-table) {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
}
.dt-container table {
    max-width: 100%;
    width: 100%;
    border-spacing: 0;
    border-collapse: separate;
}
.dt-container table > thead > tr > th {
    vertical-align: bottom;
    text-align: left;
    border-bottom: 1px solid #d9d9d9;
    padding: 8px 10px;
    background-color: #fff;
    white-space: nowrap;
}
.dt-container table > tbody > tr > td  {
    padding: .5rem .5rem;
    color: var(--bs-table-color-state, var(--bs-table-color-type, var(--bs-table-color)));
    background-color: #fff;
    border-bottom-width: var(--bs-border-width);
    border-bottom-color: var(--bs-border-color-translucent);
    box-shadow: inset 0 0 0 9999px var(--bs-table-bg-state, var(--bs-table-bg-type, var(--bs-table-accent-bg)));
}
.dt-container table > tbody > tr:nth-child(odd) > td {
    background-color: var(--bs-gray-100);
}
.dt-container table tbody tr:hover > td:not(.dt-empty) {
    background-color: #e8eff9;
}
.dt-container table tbody tr.active > td {
    background-color: var(--bs-highlight-bg) !important;
}
.dt-container table.dataTable.datatable-is-empty > thead {
    display: none;
}
.dt-container table.dataTable th[aria-label=Action] {
    text-align: right;
}

/*Temporary hidden */
.dt-container table.dataTable .dtrg-group {
    display: none;
}
.dt-container table.dataTable .dtrg-group > th {
    font-weight: normal !important;
    padding: 8px;
}

/*Hide thead in datatables */
thead.datatable-columns th:not([aria-label]) {
    display: none;
}

/* Fixed columns */
/*.dt-container .dt-scroll-head table > thead > tr > th:first-child,
.dt-container .dt-scroll-body table > tbody > tr > td:first-child,
.dt-container .dt-scroll-head table > thead > tr > th:last-child,
.dt-container .dt-scroll-body table > tbody > tr > td:last-child,
.dt-container .dt-scroll-head table[data-report-url] > thead > tr > th:nth-child(2),
.dt-container .dt-scroll-head table[data-report-modal-form] > thead > tr > th:nth-child(2),
.dt-container .dt-scroll-body table[data-report-url] > tbody > tr > td:nth-child(2),
.dt-container .dt-scroll-body table[data-report-modal-form] > tbody > tr > td:nth-child(2) {
    position: -webkit-sticky;
    position: sticky;
    z-index: 1;
}*/
/* Fixed first columns */
/*.dt-container .dt-scroll-head table > thead > tr > th:first-child,
.dt-container .dt-scroll-body table > tbody > tr > td:first-child {
    left: 0px;
}*/
/* Fixed last columns */
/*.dt-container .dt-scroll-head table > thead > tr > th:last-child,
.dt-container .dt-scroll-body table > tbody > tr > td:last-child {
    right: 0px;
}*/
/* Fixed column with print report buttons */
/*.dt-container .dt-scroll-head table[data-report-url] > thead > tr > th:nth-child(2),
.dt-container .dt-scroll-head table[data-report-modal-form] > thead > tr > th:nth-child(2),
.dt-container .dt-scroll-body table[data-report-url] > tbody > tr > td:nth-child(2),
.dt-container .dt-scroll-body table[data-report-modal-form] > tbody > tr > td:nth-child(2) {
    left: 48px;
}*/

/* Active column order */
.dt-container table > thead > tr > th.dt-ordering-asc,
.dt-container table > thead > tr > th.dt-ordering-desc,
.dt-container table > tbody > tr > td.sorting_1 {
    background-color: var(--bs-light-border-subtle);
}

.dt-paging-button.disabled,
.dt-search > label {
    display: none;
}
.dt-input {
    font-size: 14px;
    color: #012970;
    border: 1px solid rgba(1, 41, 112, 0.2);
    padding: 7px 8px 7px 8px;
    border-radius: 3px;
    transition: 0.3s;
    width: 100%;
}
.dt-length > select {
    display: inline-block;
    width: auto;
    margin-right: 5px;
}
.dt-empty {
    text-align: center;
}

/* Bootstrap custom */
.modal-backdrop,
.modal.show[data-bs-backdrop="false"] {
    background: rgba(0,0,0,0.5) !important;
}

.position-fixed.center {
    right: 50%;
    transform: translateX(50%);
}

.bootstrap-autocomplete .dropdown-item {
    cursor: pointer;
}
.bootstrap-autocomplete .dropdown-item.active:hover {
    background-color: var(--bs-dropdown-link-active-bg) !important;
}

.fs-small {
    font-size: .75rem;
}

.list-group.list-group-borderless > li {
    padding-inline: 0px;
    border: none;
    padding-bottom: 0px;
}
.list-group.list-group-borderless > li:first-child {
    padding-top: 0px;
}

.text-online {
    color: rgb(1,168,19);
}

.dt-tooltip > .tooltip-inner {
    font-size: 12px;
    text-align: left;
}
@media (min-width: 321px) {
    .dt-tooltip > .tooltip-inner {
        min-width: 320px;
    }
}

/* Image */
img.img-circle {
    border-radius: 999px;
}
.croppie-container img.cr-image:not([src]) {
    display: none;
}

/* Forms*/
span.form-control {
    min-height: 38px;
}
span.form-control.disabled {
    background-color: var(--bs-secondary-bg);
}
.form-group, .form-check {
    margin-bottom: .5rem;
}
.form-group > .form-check:last-child {
    margin-bottom: 0px;
}
label.form-check-label {
    cursor: pointer;
    user-select: none;
}
.input-daterange.input-group {
    align-items: center;
}
.input-daterange.input-group .input-group-addon {
    padding: 5px;
}
btn.btn-light {
    border-color: var(--bs-primary);
}
fieldset {
    margin: .5rem 0px;
    padding: 0px 20px 20px;
    border-radius: var(--bs-border-radius);
    border: var(--bs-border-width) solid var(--bs-border-color);
}
fieldset > legend {
    float: none;
    width: auto;
    font-size: inherit;
}
input.loading[type="search"]::-webkit-search-cancel-button,
input.loading[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
    appearance: none;
}

/* Loader */
.loader-wrapper {
    position: absolute;
    top: 0; bottom: 0; right: 0; left: 0;
    background: rgba(255,255,255,.5);
    z-index: 2;
    display: none;
}
.loader-wrapper > .loader-content {
    position: absolute;
    top: 50%;
    right: 50%;
    transform: translate(50%, 50%);
}

/* Magnific popup image slider */
.mfp-wrap {
    z-index: 9999 !important;
}
.mfp-wrap .mfp-content {
    max-width: 900px !important;
}
.mfp-wrap .mfp-figure .button-action {
    gap: 10px;
    position: absolute;
    left: 0;
    right: 0;
    padding: 10px 0px 20px;
}
.mfp-wrap .mfp-figure .button-action button {
    min-width: 150px;
}

/* Search autocomplete*/
.bootstrap-autocomplete:after {
    content: "Type specific words to show other results.";
    display: block;
    font-style: italic;
    padding: 10px 15px 0px;
    font-size: .8rem;
    text-align: center;
    border-top: 1px solid #ececec;
}