/* === Global Table Styling === */
table.dataTable {
    border-radius: 0.5rem;
    font-size: 0.95rem;
    background-color: #ffffff;
    border: 1px solid #dee2e6;
}

/* === Table Header === */
table.dataTable thead {
    background-color: #f8f9fa;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
}

table.dataTable thead th {
    padding: 12px;
    text-align: center;
}

/* === Table Body === */
table.dataTable tbody td {
    vertical-align: middle;
    padding: 10px;
}

table.dataTable tbody tr:hover {
    background-color: #f1f3f5;
    transition: background-color 0.2s ease-in-out;
}

/* === Global Search Box === */
.dataTables_filter input {
    border-radius: 0.375rem;
    border: 1px solid #ced4da;
    padding: 6px 10px;
    font-size: 0.875rem;
    color: #495057;
    box-shadow: none;
    width: 250px;
}

.dataTables_filter input:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

/* === Length Selector Styling === */
.dataTables_length {
    font-weight: bold;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.dataTables_length select {
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 0.95rem;
    border: 1px solid #ccc;
    background-color: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* === DataTables Pagination Styling === */
.dataTables_wrapper .dataTables_paginate {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1.5rem;
    gap: 0.5rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    background-color: transparent;
    color: #333 !important;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    transition: background-color 0.2s ease-in-out, color 0.2s;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background-color: #f0f0f0;
    color: #000 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    text-decoration: underline;
    text-underline-offset: 4px;
    font-weight: 600;
    color: #333 !important;

}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
    opacity: 0.5;
    cursor: default;
    color: #888 !important;
}

.ts-wrapper {
    max-width: 1200px;
    padding: 0 15px;
}

/* === Responsive Handling on Small Screens === */
@media (max-width: 768px) {
    table.dataTable {
        font-size: 0.85rem;
    }

    .dataTables_filter input {
        width: 100%;
    }

    .dataTables_length {
        flex-direction: column;
        align-items: flex-start;
    }

    .dataTables_paginate {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    }
}
