/* =====================================================
   DATATABLES – MODERN & PROFESSIONAL STYLE
   ===================================================== */

/* === WRAPPER === */
.dataTables_wrapper {
    font-size: 13px;
    color: #212529;
}

/* === HEADER === */
table.dataTable thead th {
    background-color: #2f3e46;
    color: #ffffff;
    font-weight: 600;
    text-align: center;
    vertical-align: middle;
    padding: 10px 12px;
    border-bottom: 2px solid #1b262c;
    white-space: nowrap;
}

/* === BODY === */
table.dataTable tbody td {
    padding: 8px 12px;
    vertical-align: middle;
    white-space: nowrap;
}

/* Zebra stripe */
table.dataTable tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

/* Hover */
table.dataTable tbody tr:hover {
    background-color: #e9ecef;
    transition: background-color 0.2s ease-in-out;
}

/* === BORDER === */
table.dataTable {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    overflow: hidden;
}

/* === PAGINATION === */
.dataTables_paginate .paginate_button {
    padding: 4px 10px !important;
    margin: 2px;
    border-radius: 5px;
    border: 1px solid transparent;
    font-size: 12px;
}

.dataTables_paginate .paginate_button.current {
    background: #0d6efd !important;
    color: #fff !important;
    border: 1px solid #0d6efd;
}

.dataTables_paginate .paginate_button:hover {
    background: #e2e6ea !important;
    color: #000 !important;
}

/* === INFO TEXT === */
.dataTables_info {
    font-size: 12px;
    color: #6c757d;
}

/* === LENGTH & SEARCH === */
.dataTables_length select,
.dataTables_filter input {
    border-radius: 6px;
    border: 1px solid #ced4da;
    padding: 4px 8px;
    font-size: 12px;
}

.dataTables_filter label,
.dataTables_length label {
    font-weight: 500;
}

/* === BUTTONS (EXPORT) === */
.dt-buttons .btn {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 6px;
}

/* === RESPONSIVE FIX === */
table.dataTable th,
table.dataTable td {
    box-sizing: border-box;
}

/* === SCROLL X === */
.dataTables_scrollBody {
    scrollbar-width: thin;
}

.dataTables_scrollBody::-webkit-scrollbar {
    height: 6px;
}

.dataTables_scrollBody::-webkit-scrollbar-thumb {
    background-color: #adb5bd;
    border-radius: 5px;
}

/* === MODAL SUPPORT === */
.modal .dataTables_wrapper {
    padding-top: 10px;
}

/* === BUTTON CONTAINER === */
.dt-buttons-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* === EXPORT BUTTON STYLE === */
.dt-buttons .btn-success {
    background-color: #198754;
    border-color: #198754;
    font-weight: 500;
}

.dt-buttons .btn-success:hover {
    background-color: #157347;
    border-color: #146c43;
}

/* === SEARCH ALIGN FIX === */
.dataTables_filter {
    text-align: right;
}

.dataTables_filter input {
    margin-left: 6px;
}

.text-end {
    text-align: right !important;
}

.fw-semibold {
    font-weight: 600;
    font-family: Consolas, monospace;
}

.text-end {
    text-align: right !important;
}

.fw-semibold {
    font-weight: 600;
    font-family: Consolas, monospace;
}

tfoot th {
    background-color: #e9ecef;
}
