@import 'datatables.net-dt/css/dataTables.dataTables.css';

.dataTables_wrapper .dt-controls {
    font-size: 0.8125rem;
}

.dataTables_wrapper .dataTables_length label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #475569;
    font-weight: 600;
    font-size: 0.75rem;
}

.dataTables_wrapper .dataTables_length select {
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.3rem 0.6rem;
    background-color: #f8fafc;
    color: #0f172a;
    font-size: 0.75rem;
    outline: none;
}

.dataTables_wrapper .dataTables_length select:focus,
.dataTables_wrapper .dataTables_filter input:focus {
    border-color: #1769AA;
    box-shadow: 0 0 0 2px rgba(23, 105, 170, 0.15);
}

.dataTables_wrapper .dataTables_filter {
    position: relative;
}

.dataTables_wrapper .dataTables_filter label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #475569;
    font-weight: 600;
    font-size: 0.75rem;
    margin: 0;
}

.dataTables_wrapper .dataTables_filter input {
    border: 1px solid #e2e8f0;
    border-radius: 0.625rem;
    padding: 0.55rem 0.9rem 0.55rem 2rem;
    background-color: #f8fafc;
    color: #0f172a;
    font-size: 0.8125rem;
    width: 240px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dataTables_wrapper .dataTables_filter input::placeholder {
    color: #94a3b8;
}

.dataTables_wrapper table.dataTable {
    font-size: 0.8125rem;
    border-collapse: separate;
    border-spacing: 0;
}

.dataTables_wrapper table.dataTable thead th,
.dataTables_wrapper table.dataTable thead td {
    border-bottom: 1px solid #e2e8f0;
    padding: 0.75rem 1.25rem 0.75rem 1.25rem;
    background-color: #f8fafc;
    color: #64748b;
    font-size: 0.625rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.dataTables_wrapper table.dataTable thead th.sorting:before,
.dataTables_wrapper table.dataTable thead th.sorting:after,
.dataTables_wrapper table.dataTable thead th.sorting_asc:before,
.dataTables_wrapper table.dataTable thead th.sorting_asc:after,
.dataTables_wrapper table.dataTable thead th.sorting_desc:before,
.dataTables_wrapper table.dataTable thead th.sorting_desc:after {
    opacity: 0.35;
}

.dataTables_wrapper table.dataTable thead .sorting_asc,
.dataTables_wrapper table.dataTable thead .sorting_desc {
    color: #1769AA;
}

.dataTables_wrapper table.dataTable tbody tr {
    border-bottom: 1px solid #f1f5f9;
}

.dataTables_wrapper table.dataTable tbody tr:hover {
    background-color: #f8fafc;
}

.dataTables_wrapper table.dataTable tbody td {
    padding: 0.875rem 1.25rem;
    color: #334155;
    vertical-align: middle;
}

.dataTables_wrapper .dataTables_info {
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 600;
}

.dataTables_wrapper .dataTables_paginate {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 0.625rem;
    padding: 0.4rem 0.75rem;
    margin: 0;
    color: #475569 !important;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #1769AA;
    border-color: #1769AA;
    color: #fff !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
    opacity: 0.4;
    pointer-events: none;
}

.dataTables_wrapper .dataTables_processing {
    background: rgba(255, 255, 255, 0.85) !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 0.75rem !important;
    color: #1769AA !important;
    font-weight: 700;
    font-size: 0.75rem !important;
    box-shadow: 0 4px 12px rgba(2, 6, 23, 0.08);
}

/* Mobile responsive DataTables */
@media (max-width: 768px) {
    .dataTables_wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .dataTables_wrapper table.dataTable {
        min-width: 800px;
    }
    .dataTables_wrapper .dt-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    .dataTables_wrapper .dataTables_filter input {
        width: 100%;
    }
    .dataTables_wrapper .dataTables_length select {
        width: 100%;
    }
    .dataTables_wrapper .dataTables_info,
    .dataTables_wrapper .dataTables_paginate {
        width: 100%;
        justify-content: center;
    }
    .dt-footer {
        flex-direction: column;
        gap: 0.75rem;
    }
}

.dataTables_wrapper table.dataTable.no-footer {
    border-bottom: 1px solid #e2e8f0;
}

.sweet-toast-dark .swal2-popup {
    background: #0E1B2E;
    color: #fff;
}

.swal2-popup {
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
    border-radius: 1rem;
}

.swal2-title {
    font-family: 'Manrope', 'Inter', sans-serif;
    font-weight: 800;
}

div.dt-buttons .dt-button {
    border-radius: 0.625rem;
    background-color: #1769AA;
    border-color: #1769AA;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

div.dt-buttons .dt-button:hover {
    background-color: #0E5588;
    border-color: #0E5588;
    color: #fff;
}