/* =========================================================
   VARIABLES
   ========================================================= */
:root {
    --dt-primary: #22bab0;
    --dt-primary-hover: #1da69d;
    --dt-bg: #ffffff;
    --dt-bg-soft: #f8fafb;
    --dt-border: #e5e7eb;
    --dt-text: #212529;
    --dt-text-muted: #6c757d;
    --dt-radius: 12px;
    --dt-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}
/* =========================================================
   MAIN WRAPPER
   ========================================================= */
.dt-container {
    width: 100%;
}
/* =========================================================
   TOOLBAR
   ========================================================= */
.dt-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 18px;
}
/* =========================================================
   LENGTH MENU
   ========================================================= */
.dt-length {
    font-size: .80rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.dt-length label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--dt-text-muted);
    font-size: .9rem;
}
.dt-length select {
    min-width: 75px;
    height: 40px;
    padding: 0 32px 0 12px;
    border: 1px solid var(--dt-border);
    border-radius: 10px;
    background-color: var(--dt-bg);
    color: var(--dt-text);
    cursor: pointer;
    transition: .2s ease;
}
.dt-length select:focus {
    outline: none;
    border-color: var(--dt-primary);
    box-shadow: 0 0 0 .2rem rgba(34, 186, 176, .15);
}
/* =========================================================
   SEARCH
   ========================================================= */
.dt-search {
    position: relative;
}
.dt-search::before {
    /*content: "\f52a";
    font-family: "bootstrap-icons";*/
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--dt-text-muted);
    font-size: 15px;
    pointer-events: none;
}
.dt-search label {
    margin: 0;
}
.dt-search input {
    font-size: .80rem;
    width: 280px;
    height: 42px;
    padding: 0 15px 0 40px;
    border: 1px solid var(--dt-border);
    border-radius: 12px;
    background: var(--dt-bg);
    color: var(--dt-text);
    box-shadow: var(--dt-shadow);
    transition: all .2s ease;
}
.dt-search input::placeholder {
    color: var(--dt-text-muted);
}
.dt-search input:focus {
    outline: none;
    border-color: var(--dt-primary);
    box-shadow: 0 0 0 .2rem rgba(34, 186, 176, .15);
}
/* =========================================================
   TABLE WRAPPER
   ========================================================= */
.dt-table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--dt-border);
    border-radius: var(--dt-radius);
    background: var(--dt-bg);
    box-shadow: var(--dt-shadow);
}
/* =========================================================
   TABLE
   ========================================================= */
table.dataTable {
    width: 100% !important;
    margin: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0;
}
table.dataTable thead th {
    height: 52px;
    padding: 14px 16px;
    background: var(--dt-bg-soft);
    color: var(--dt-text);
    font-size: .85rem;
    font-weight: 600;
    white-space: nowrap;
    border-bottom: 1px solid var(--dt-border);
}
table.dataTable tbody td {
    padding: 13px 16px;
    color: var(--dt-text);
    font-size: .9rem;
    border-bottom: 1px solid var(--dt-border);
    vertical-align: middle;
}
table.dataTable tbody tr:last-child td {
    border-bottom: none;
}
/* =========================================================
   ROW HOVER
   ========================================================= */
table.dataTable tbody tr {
    transition: background-color .15s ease;
}
table.dataTable tbody tr:hover {
    background-color: rgba(34, 186, 176, .055);
}
/* =========================================================
   SORTING
   ========================================================= */
table.dataTable thead th.dt-orderable-asc,
table.dataTable thead th.dt-orderable-desc {
    cursor: pointer;
}
table.dataTable thead th .dt-column-order {
    opacity: .45;
    transition: .2s ease;
}
table.dataTable thead th:hover .dt-column-order {
    opacity: 1;
}
table.dataTable thead th.dt-ordering-asc .dt-column-order,
table.dataTable thead th.dt-ordering-desc .dt-column-order {
    opacity: 1;
    color: var(--dt-primary);
}
/* =========================================================
   FOOTER
   ========================================================= */
.dt-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 18px;
}
/* =========================================================
   INFO
   ========================================================= */
.dt-info {
    color: var(--dt-text-muted);
    font-size: .85rem;
}
.dt-info strong {
    color: var(--dt-text);
}
/* =========================================================
   PAGINATION
   ========================================================= */
.dt-pagination .dt-paging {
    display: flex;
    align-items: center;
    gap: 5px;
}
.dt-pagination .dt-paging-button {
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent !important;
    border-radius: 9px !important;
    background: transparent !important;
    color: var(--dt-text-muted) !important;
    font-size: .85rem;
    transition: all .2s ease;
}
.dt-pagination .dt-paging-button:hover {
    background: rgba(34, 186, 176, .1) !important;
    color: var(--dt-primary) !important;
    border-color: transparent !important;
}
.dt-pagination .dt-paging-button.current {
    background: var(--dt-primary) !important;
    color: #ffffff !important;
    border-color: var(--dt-primary) !important;
    font-weight: 600;
}
.dt-pagination .dt-paging-button.disabled {
    opacity: .4;
    cursor: not-allowed;
}
/* =========================================================
   EMPTY / ZERO RECORD
   ========================================================= */
table.dataTable tbody td.dataTables_empty {
    padding: 45px 20px;
    text-align: center;
    color: var(--dt-text-muted);
}
/* =========================================================
   PROCESSING
   ========================================================= */
div.dt-processing {
    padding: 15px 20px !important;
    border: 1px solid var(--dt-border) !important;
    border-radius: 12px !important;
    background: var(--dt-bg) !important;
    color: var(--dt-text) !important;
    box-shadow: 0 5px 25px rgba(0, 0, 0, .1);
}
/* =========================================================
   STICKY HEADER
   ========================================================= */
.dt-table-wrapper table.dataTable thead th {
    position: sticky;
    top: 0;
    z-index: 2;
}
/* =========================================================
   DARK MODE
   ========================================================= */
[data-bs-theme="dark"] {
    --dt-bg: #212529;
    --dt-bg-soft: #2b3035;
    --dt-border: #3a4046;
    --dt-text: #f1f3f5;
    --dt-text-muted: #adb5bd;
    --dt-shadow:
            0 2px 8px rgba(0, 0, 0, .15);
}
[data-bs-theme="dark"] table.dataTable tbody tr:hover {
    background-color: rgba(34, 186, 176, .08);
}
/* =========================================================
   MOBILE
   ========================================================= */
@media (max-width: 768px) {
    .dt-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .dt-length {
        justify-content: space-between;
    }
    .dt-search {
        width: 100%;
    }
    .dt-search input {
        width: 100%;
    }
    .dt-footer {
        flex-direction: column;
        align-items: stretch;
    }
    .dt-pagination {
        display: flex;
        justify-content: center;
    }
    .dt-info {
        text-align: center;
    }
}