/* Hide default DataTables filter & pagination */
.dataTables_filter {
    display: none; 
}
.dataTables_paginate {
    display: none; 
}

/* Custom search box margin */
input[aria-label="search-input-box"] {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Remove DataTables default sorting icons */
table.dataTable thead .sorting,
table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc {
    background-image: none !important;
}

/* Processing overlay */
.dataTables_processing {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    color: #666;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #aaa;
    padding: 15px;
    border-radius: 8px;
    z-index: 100;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Table body hover & selection */
table.dataTable tbody tr:hover {
    background-color: rgba(var(--tblr-emphasis-color-rgb), 0.05);
    transition: background-color 0.2s ease;
}
table.dataTable tbody tr.selected-row {
    background-color: rgba(97, 215, 255, 0.15) !important;
    transition: background-color 0.25s ease;
}

/* Sticky & styled table headers */
table.dataTable thead th {
    border-bottom: 2px solid rgba(var(--tblr-emphasis-color-rgb), 0.075);
    border-top: 1px solid rgba(var(--tblr-emphasis-color-rgb), 0.075);
    border-radius: 0.25rem 0.25rem 0 0;
    position: sticky;
    top: 0;
    z-index: 2;
}

/* Scroll body minimum height */
.dataTables_scrollBody {
    min-height: 23rem;
}

/* Custom split button for page length */
.sp-button {
    margin-left: -1px;
    padding: 0.25rem 0.5rem;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Fancy pill-shaped Show entries */
.custom-page-length {
    border-top-left-radius: 50rem !important;
    border-bottom-left-radius: 50rem !important;
}
.sp-button {
    border-top-right-radius: 50rem !important;
    border-bottom-right-radius: 50rem !important;
}

/* Search box glow */
.search-input-box:focus {
    border-color: var(--tblr-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--tblr-primary-rgb), 0.25);
}

/* Optional pagination if enabled */
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--tblr-primary);
    color: #fff !important;
    border-radius: 0.375rem;
}
.dataTables_wrapper > .card-footer.d-flex.align-items-center {
  display: none !important;
}
