/* Shared DataTables theme. Page-specific styles may extend these defaults. */
:root {
    --dt-blue: #1769e8;
    --dt-ink: #34415e;
    --dt-muted: #6f7892;
    --dt-border: #e3e8f1;
    --dt-soft: #f8f9fc;
}

.dataTables_wrapper {
    color: var(--dt-ink);
}

.dataTables_wrapper::before,
.dataTables_wrapper::after {
    display: table;
    clear: both;
    content: '';
}

.dataTables_wrapper > .row.margin-bottom-20 {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 18px !important;
}

.dataTables_wrapper > .row.margin-bottom-20::before,
.dataTables_wrapper > .row.margin-bottom-20::after {
    display: none;
}

.dataTables_wrapper > .row.margin-bottom-20 > [class*='col-sm-'] {
    width: auto;
    padding: 0;
    float: none;
}

.dataTables_wrapper > .row.margin-bottom-20 > [class*='col-sm-']:nth-child(2) {
    display: flex;
    flex: 1 1 auto;
    justify-content: flex-start;
}

.dataTables_wrapper > .row.margin-bottom-20 > [class*='col-sm-']:last-child {
    margin-left: auto;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    color: #536078;
    text-align: left;
}

.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label {
    margin: 0;
    font-weight: 400;
    white-space: nowrap;
}

.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    height: 38px;
    border: 1px solid #dfe5ef;
    border-radius: 7px;
    background-color: #fff;
    box-shadow: none;
    color: var(--dt-ink);
    transition: border-color 0.18s, box-shadow 0.18s;
}

.dataTables_wrapper .dataTables_length select {
    min-width: 64px;
    margin: 0 6px;
    padding: 6px 24px 6px 10px;
}

.dataTables_wrapper .dataTables_filter input {
    width: 200px;
    margin-left: 0;
    padding: 8px 34px 8px 12px;
}

.dataTables_wrapper .dataTables_length select:focus,
.dataTables_wrapper .dataTables_filter input:focus {
    border-color: #8bb3ee;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(23, 105, 232, 0.09);
}

.dataTables_wrapper .dt-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.dataTables_wrapper .dt-buttons .btn,
.dataTables_wrapper .dt-buttons .dt-button {
    min-height: 38px;
    margin: 0 0 0 -1px;
    padding: 10px 10px;
    border: 1px solid #dfe5ef;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    color: #45516a;
    font-size: 11px;
    font-weight: 500;
    transition: background 0.18s, border-color 0.18s, color 0.18s;
}

.dataTables_wrapper .dt-buttons .btn:first-child,
.dataTables_wrapper .dt-buttons .dt-button:first-child {
    margin-left: 0;
    border-radius: 7px 0 0 7px;
}

.dataTables_wrapper .dt-buttons .btn:last-child,
.dataTables_wrapper .dt-buttons .dt-button:last-child {
    border-radius: 0 7px 7px 0;
}

.dataTables_wrapper .dt-buttons .btn:hover,
.dataTables_wrapper .dt-buttons .btn:focus,
.dataTables_wrapper .dt-buttons .dt-button:hover,
.dataTables_wrapper .dt-buttons .dt-button:focus {
    position: relative;
    z-index: 1;
    border-color: #9dbced;
    background: #f4f8ff;
    color: var(--dt-blue);
}

.dataTables_wrapper .dt-buttons .buttons-csv i { color: #287b62; }
.dataTables_wrapper .dt-buttons .buttons-excel i { color: #23934a; }
.dataTables_wrapper .dt-buttons .buttons-pdf i { color: #d94452; }
.dataTables_wrapper .dt-buttons .buttons-print i { color: #56647c; }
.dataTables_wrapper .dt-buttons .buttons-colvis i { color: #56647c; }

.dataTables_wrapper .dt-buttons .buttons-colvis {
    order: 100;
    margin-left: 18px;
    border-radius: 7px !important;
}

ul.dt-button-collection.dropdown-menu {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(190px, 1fr));
    gap: 4px;
    width: min(480px, calc(100vw - 32px));
    max-height: min(440px, 70vh);
    margin-top: 8px;
    padding: 10px;
    overflow-x: hidden;
    overflow-y: auto;
    column-count: initial !important;
    background: #fff;
    border: 1px solid var(--dt-border);
    border-radius: 12px;
    box-shadow: 0 18px 45px rgba(15, 30, 60, 0.18);
    z-index: 2002;
}

ul.dt-button-collection.dropdown-menu > li.dt-button {
    display: block !important;
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    break-inside: avoid;
    background: transparent !important;
    border: 0 !important;
}

ul.dt-button-collection.dropdown-menu > li.dt-button > a {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 11px 8px 38px;
    overflow: hidden;
    color: #455574;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
    white-space: normal;
    background: transparent !important;
    background-image: none !important;
    border: 1px solid transparent;
    border-radius: 7px;
    transition: background-color 0.15s ease, border-color 0.15s ease,
        color 0.15s ease;
}

ul.dt-button-collection.dropdown-menu > li.dt-button > a::before {
    position: absolute;
    top: 50%;
    left: 12px;
    width: 16px;
    height: 16px;
    content: '';
    background: #fff;
    border: 1.5px solid #c6d0e0;
    border-radius: 4px;
    transform: translateY(-50%);
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

ul.dt-button-collection.dropdown-menu > li.dt-button.active > a {
    color: var(--dt-blue);
    background: #edf4ff !important;
    border-color: #dce9ff;
}

ul.dt-button-collection.dropdown-menu > li.dt-button.active > a::before {
    background: var(--dt-blue);
    border-color: var(--dt-blue);
}

ul.dt-button-collection.dropdown-menu > li.dt-button.active > a::after {
    position: absolute;
    top: 48%;
    left: 20px;
    width: 5px;
    height: 9px;
    content: '';
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: translate(-50%, -58%) rotate(45deg);
}

ul.dt-button-collection.dropdown-menu > li.dt-button > a:hover,
ul.dt-button-collection.dropdown-menu > li.dt-button > a:focus {
    color: var(--dt-blue);
    text-decoration: none;
    background: #f5f8fd !important;
    border-color: #e5ebf4;
    outline: none;
}

ul.dt-button-collection.dropdown-menu > li.dt-button.active > a:hover,
ul.dt-button-collection.dropdown-menu > li.dt-button.active > a:focus {
    background: #e5efff !important;
    border-color: #cfdfff;
}

ul.dt-button-collection.dropdown-menu > li.dt-button.disabled > a {
    cursor: not-allowed;
    opacity: 0.5;
}

ul.dt-button-collection.dropdown-menu::-webkit-scrollbar {
    width: 8px;
}

ul.dt-button-collection.dropdown-menu::-webkit-scrollbar-thumb {
    background: #cdd6e5;
    border: 2px solid #fff;
    border-radius: 8px;
}

div.dt-button-background {
    background: rgba(15, 30, 60, 0.1) !important;
    backdrop-filter: blur(1px);
    z-index: 2001;
}

@media (max-width: 600px) {
    ul.dt-button-collection.dropdown-menu {
        grid-template-columns: minmax(0, 1fr);
        width: calc(100vw - 24px);
        max-height: 60vh;
    }
}

.dataTables_wrapper table.dataTable,
table.dataTable.fixedHeader-floating,
table.dataTable.fixedHeader-locked {
    width: 100% !important;
    margin: 0 !important;
    border: 1px solid var(--dt-border) !important;
    border-radius: 8px;
    border-collapse: separate !important;
    border-spacing: 0;
    overflow: hidden;
}

.dataTables_wrapper table.dataTable thead th,
.dataTables_wrapper table.dataTable thead td,
table.dataTable.fixedHeader-floating thead th,
table.dataTable.fixedHeader-locked thead th {
    padding: 16px 10px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--dt-border) !important;
    border-right: 1px solid #e2e7f0 !important;
    background-color: var(--dt-soft) !important;
    color: #46516d !important;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    vertical-align: middle;
}

.dataTables_wrapper table.dataTable thead th:last-child,
.dataTables_wrapper table.dataTable thead td:last-child,
table.dataTable.fixedHeader-floating thead th:last-child,
table.dataTable.fixedHeader-locked thead th:last-child {
    border-right: 0 !important;
}

.dataTables_wrapper table.dataTable thead .sorting,
.dataTables_wrapper table.dataTable thead .sorting_asc,
.dataTables_wrapper table.dataTable thead .sorting_desc,
.dataTables_wrapper table.dataTable thead .sorting_asc_disabled,
.dataTables_wrapper table.dataTable thead .sorting_desc_disabled,
table.dataTable.fixedHeader-floating thead .sorting,
table.dataTable.fixedHeader-floating thead .sorting_asc,
table.dataTable.fixedHeader-floating thead .sorting_desc,
table.dataTable.fixedHeader-locked thead .sorting,
table.dataTable.fixedHeader-locked thead .sorting_asc,
table.dataTable.fixedHeader-locked thead .sorting_desc {
    padding-right: 30px !important;
}

.dataTables_wrapper table.dataTable thead .sorting::after,
.dataTables_wrapper table.dataTable thead .sorting_asc::after,
.dataTables_wrapper table.dataTable thead .sorting_desc::after,
.dataTables_wrapper table.dataTable thead .sorting_asc_disabled::after,
.dataTables_wrapper table.dataTable thead .sorting_desc_disabled::after,
table.dataTable.fixedHeader-floating thead .sorting::after,
table.dataTable.fixedHeader-floating thead .sorting_asc::after,
table.dataTable.fixedHeader-floating thead .sorting_desc::after,
table.dataTable.fixedHeader-locked thead .sorting::after,
table.dataTable.fixedHeader-locked thead .sorting_asc::after,
table.dataTable.fixedHeader-locked thead .sorting_desc::after {
    top: 50% !important;
    right: 9px !important;
    bottom: auto !important;
    line-height: 1;
    transform: translateY(-50%);
}

.dataTables_wrapper table.dataTable tbody td,
.dataTables_wrapper table.dataTable tbody th {
    padding: 10px 10px !important;
    border: 0 !important;
    border-bottom: 1px solid #edf0f5 !important;
    border-right: 1px solid #edf0f5 !important;
    background: #fff;
    color: var(--dt-ink);
    vertical-align: middle;
}

.dataTables_wrapper table.dataTable tbody td:last-child,
.dataTables_wrapper table.dataTable tbody th:last-child {
    border-right: 0 !important;
}

.dataTables_wrapper table.dataTable.table-striped tbody tr:nth-of-type(even) > td,
.dataTables_wrapper table.dataTable tbody tr.even > td {
    background: #fbfcfe;
}

.dataTables_wrapper table.dataTable tbody tr:hover > td,
.dataTables_wrapper table.dataTable.table-hover tbody tr:hover > td {
    background: #f5f8ff !important;
}

.dataTables_wrapper table.dataTable tbody tr:last-child > td {
    border-bottom: 0 !important;
}

.dataTables_wrapper .dropdown-menu {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e3 transparent;
}

.dataTables_wrapper .dropdown-menu::-webkit-scrollbar {
    width: 7px;
}

.dataTables_wrapper .dropdown-menu::-webkit-scrollbar-thumb {
    background: #cbd5e3;
    border: 2px solid #fff;
    border-radius: 7px;
}

.dataTables_wrapper .dropdown-menu.datatable-floating-dropdown {
    position: fixed !important;
    display: block !important;
    margin: 0;
    z-index: 2050;
}

.dataTables_wrapper table.dataTable td .btn-xs {
    margin: 1px 2px;
    padding: 6px 9px;
    border-radius: 5px;
    font-size: 11px;
}

.dataTables_wrapper .dataTables_processing {
    top: 95px;
    min-width: 190px;
    margin: 0;
    padding: 13px 18px;
    transform: translateX(-50%);
    border: 1px solid var(--dt-border);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 28px rgba(24, 42, 78, 0.14);
    color: var(--dt-blue);
    font-weight: 600;
}

.dataTables_wrapper .dataTables_info {
    padding-top: 17px;
    color: #65718a;
    font-size: 12px;
}

.dataTables_wrapper .dataTables_paginate {
    padding-top: 12px;
}

.dataTables_wrapper .pagination {
    margin: 0;
}

.dataTables_wrapper .pagination > li > a,
.dataTables_wrapper .pagination > li > span {
    min-width: 36px;
    padding: 8px 11px;
    border-color: #dfe5ef;
    background: #fff;
    color: #46516d;
    text-align: center;
}

.dataTables_wrapper .pagination > li:first-child > a,
.dataTables_wrapper .pagination > li:first-child > span {
    border-radius: 7px 0 0 7px;
}

.dataTables_wrapper .pagination > li:last-child > a,
.dataTables_wrapper .pagination > li:last-child > span {
    border-radius: 0 7px 7px 0;
}

.dataTables_wrapper .pagination > .active > a,
.dataTables_wrapper .pagination > .active > a:hover,
.dataTables_wrapper .pagination > .active > span {
    border-color: var(--dt-blue);
    background: var(--dt-blue);
    color: #fff;
}

.dataTables_wrapper .pagination > .disabled > a,
.dataTables_wrapper .pagination > .disabled > span {
    background: #fafbfd;
    color: #a7afbf;
}

[dir='rtl'] .dataTables_wrapper > .row.margin-bottom-20 > [class*='col-sm-']:last-child {
    margin-right: auto;
    margin-left: 0;
}

[dir='rtl'] .dataTables_wrapper .dataTables_filter,
[dir='rtl'] .dataTables_wrapper .dataTables_length {
    text-align: right;
}

[dir='rtl'] .dataTables_wrapper .dataTables_filter input {
    margin-right: 0;
}

[dir='rtl'] .dataTables_wrapper .dt-buttons .buttons-colvis {
    margin-right: 18px;
    margin-left: 0;
}

@media (max-width: 991px) {
    .dataTables_wrapper > .row.margin-bottom-20 {
        flex-wrap: wrap;
    }

    .dataTables_wrapper > .row.margin-bottom-20 > [class*='col-sm-']:nth-child(2) {
        order: 3;
        width: 100%;
    }
}

@media (max-width: 767px) {
    .dataTables_wrapper > .row.margin-bottom-20 {
        align-items: stretch;
        flex-direction: column;
    }

    .dataTables_wrapper > .row.margin-bottom-20 > [class*='col-sm-'],
    .dataTables_wrapper > .row.margin-bottom-20 > [class*='col-sm-']:nth-child(2),
    .dataTables_wrapper > .row.margin-bottom-20 > [class*='col-sm-']:last-child {
        width: 100%;
        margin: 0;
    }

    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter {
        text-align: left;
    }

    .dataTables_wrapper .dataTables_filter input {
        width: 100%;
    }

    .dataTables_wrapper .dataTables_filter label {
        display: block;
        width: 100%;
    }

    .dataTables_wrapper .dt-buttons .buttons-colvis {
        margin-left: 12px;
        border-radius: 7px !important;
    }

    .dataTables_wrapper .dataTables_info,
    .dataTables_wrapper .dataTables_paginate {
        text-align: left;
    }
}

@media print {
    .dataTables_wrapper > .row.margin-bottom-20,
    .dataTables_wrapper .dataTables_paginate,
    .dataTables_wrapper .dataTables_info {
        display: none !important;
    }
}
