    /* DataTables wrapper */
.dataTable-wrapper {
    margin-top: 1rem;
}

/* Search box */
.dataTable-input {
    padding: 0.375rem 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    font-size: 0.9rem;
    width: auto;
    display: inline-block;
    margin-left: 0.5rem;
}

/* Dropdown for rows per page */
.dataTable-selector {
    padding: 0.375rem 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    font-size: 0.9rem;
}

/* Table headers */
.dataTable-table thead th {
    background-color: #f8f9fa;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid #dee2e6;
}

/* Sorting icons */
.dataTable-sorter::after {
    content: "⇅";
    font-size: 0.7rem;
    margin-left: 0.3rem;
    color: #6c757d;
}

/* Pagination container */
.dataTable-pagination {
    display: flex;
    list-style: none;
    padding-left: 0;
    margin: 0;
    justify-content: flex-end;
    gap: 0.25rem;
}

/* Pagination buttons */
.dataTable-pagination li a {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    color: #0d6efd;
    background-color: #fff;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

.dataTable-pagination li a:hover {
    background-color: #e9ecef;
}

.dataTable-pagination .active a {
    background-color: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

/* Info text */
.dataTable-info {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.5rem;
}

/* Container holding search input and rows per page selector */
.dataTable-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

/* Table headers */
.dataTable-table thead th {
    background-color: #f8f9fa;
    font-weight: 600;
    cursor: pointer;
    position: relative; /* for sorting icons */
    border-bottom: 2px solid #dee2e6;
    padding: 0.62rem 0.5rem; /* reduced vertical padding */
}

/* Header link fills entire TH */
.dataTable-table thead th a {
    color: inherit;
    text-decoration: none;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0; /* padding now on th, not link */
    box-sizing: border-box;
}

/* Small double arrow icon on unsorted columns */
.dataTable-sorter::after {
    content: "⇅";
    font-size: 0.7rem;
    margin-left: 0.3rem;
    color: #6c757d;
}

/* Hide sorter icon inside sorted columns */
.dataTable-table thead th.sort-asc .dataTable-sorter,
.dataTable-table thead th.sort-desc .dataTable-sorter {
    display: none;
}

/* Big arrow triangle on sorted columns */
.dataTable-table thead th.sort-asc::after,
.dataTable-table thead th.sort-desc::after {
    content: "";
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    pointer-events: none;
    z-index: 1;
}

.dataTable-table thead th.sort-asc::after {
    border-bottom-color: #0d6efd; /* blue down arrow */
}

.dataTable-table thead th.sort-desc::after {
    border-top-color: #0d6efd; /* blue up arrow */
}