/* Clean DataTables Pagination Styling - Matching professional design */
/* This file provides clean, simple pagination UI for all DataTables */

/* Remove all Bootstrap pagination styling */
.dataTables_wrapper .dataTables_paginate.paging_simple_numbers {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    padding: 15px 0 !important;
    gap: 4px !important;
}

.dataTables_wrapper .dataTables_paginate {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    padding: 15px 0 !important;
    gap: 4px !important;
}

/* Remove Bootstrap pagination list styling */
.dataTables_wrapper .dataTables_paginate .pagination {
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    gap: 4px !important;
    border: none !important;
    background: none !important;
    box-shadow: none !important;
}

/* Remove Bootstrap li styling for pagination */
.dataTables_wrapper .dataTables_paginate .pagination > li {
    display: inline-flex !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    box-shadow: none !important;
    list-style: none !important;
}

.dataTables_wrapper .dataTables_paginate .pagination > li > a,
.dataTables_wrapper .dataTables_paginate .pagination > li > span,
.dataTables_wrapper .dataTables_paginate .paginate_button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 32px !important;
    height: 32px !important;
    padding: 0 10px !important;
    margin: 0 2px !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 6px !important;
    background: #fff !important;
    color: #333 !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    text-decoration: none !important;
    box-shadow: none !important;
    line-height: 1 !important;
}

.dataTables_wrapper .dataTables_paginate .pagination > li > a:hover,
.dataTables_wrapper .dataTables_paginate .pagination > li > span:hover,
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #f5f5f5 !important;
    border-color: #ccc !important;
    color: #000 !important;
    box-shadow: none !important;
}

.dataTables_wrapper .dataTables_paginate .pagination > li.active > a,
.dataTables_wrapper .dataTables_paginate .pagination > li.active > span,
.dataTables_wrapper .dataTables_paginate .pagination > li.active > a:hover,
.dataTables_wrapper .dataTables_paginate .pagination > li.active > span:hover,
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: #1a1a1a !important;
    border-color: #1a1a1a !important;
    color: #fff !important;
    font-weight: 500 !important;
    box-shadow: none !important;
}

.dataTables_wrapper .dataTables_paginate .pagination > li.disabled > a,
.dataTables_wrapper .dataTables_paginate .pagination > li.disabled > span,
.dataTables_wrapper .dataTables_paginate .pagination > li.disabled > a:hover,
.dataTables_wrapper .dataTables_paginate .pagination > li.disabled > span:hover,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
    background: #fff !important;
    border-color: #e8e8e8 !important;
    color: #bbb !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    opacity: 1 !important;
}

.dataTables_wrapper .dataTables_paginate .pagination > li.previous > a,
.dataTables_wrapper .dataTables_paginate .pagination > li.next > a,
.dataTables_wrapper .dataTables_paginate .paginate_button.previous,
.dataTables_wrapper .dataTables_paginate .paginate_button.next {
    font-weight: 400 !important;
    padding: 0 16px !important;
    min-width: 80px !important;
}

/* Ellipsis styling */
.dataTables_wrapper .dataTables_paginate .ellipsis {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 32px !important;
    height: 32px !important;
    color: #666 !important;
    font-size: 13px !important;
    border: none !important;
    background: transparent !important;
}

.dataTables_wrapper .dataTables_info {
    color: #666;
    font-size: 13px;
    padding: 15px 0;
}

.dataTables_wrapper .dataTables_length {
    margin-bottom: 15px;
}

.dataTables_wrapper .dataTables_length select {
    padding: 6px 28px 6px 10px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background-color: #fff;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    height: auto !important;
    min-height: 32px !important;
    line-height: 1.5 !important;
}

.dataTables_wrapper .dataTables_length select option {
    padding: 8px !important;
    line-height: 1.5 !important;
}

.dataTables_wrapper .dataTables_length select:focus {
    outline: none;
    border-color: #333;
}

/* Dark mode support */
body.dark-mode .dataTables_wrapper .dataTables_paginate .pagination > li > a,
body.dark-mode .dataTables_wrapper .dataTables_paginate .pagination > li > span,
body.dark-mode .dataTables_wrapper .dataTables_paginate .paginate_button {
    background: #2d2d2d !important;
    border-color: #444 !important;
    color: #ddd !important;
}

body.dark-mode .dataTables_wrapper .dataTables_paginate .pagination > li > a:hover,
body.dark-mode .dataTables_wrapper .dataTables_paginate .pagination > li > span:hover,
body.dark-mode .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #3d3d3d !important;
    border-color: #555 !important;
    color: #fff !important;
}

body.dark-mode .dataTables_wrapper .dataTables_paginate .pagination > li.active > a,
body.dark-mode .dataTables_wrapper .dataTables_paginate .pagination > li.active > span,
body.dark-mode .dataTables_wrapper .dataTables_paginate .pagination > li.active > a:hover,
body.dark-mode .dataTables_wrapper .dataTables_paginate .pagination > li.active > span:hover,
body.dark-mode .dataTables_wrapper .dataTables_paginate .paginate_button.current,
body.dark-mode .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: #fff !important;
    border-color: #fff !important;
    color: #1a1a1a !important;
}

body.dark-mode .dataTables_wrapper .dataTables_paginate .pagination > li.disabled > a,
body.dark-mode .dataTables_wrapper .dataTables_paginate .pagination > li.disabled > span,
body.dark-mode .dataTables_wrapper .dataTables_paginate .pagination > li.disabled > a:hover,
body.dark-mode .dataTables_wrapper .dataTables_paginate .pagination > li.disabled > span:hover,
body.dark-mode .dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
body.dark-mode .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
    background: #1a1a1a !important;
    border-color: #333 !important;
    color: #555 !important;
}

/* Dark mode - Previous and Next buttons specific styling */
body.dark-mode .dataTables_wrapper .dataTables_paginate .pagination > li.previous > a,
body.dark-mode .dataTables_wrapper .dataTables_paginate .pagination > li.next > a,
body.dark-mode .dataTables_wrapper .dataTables_paginate .paginate_button.previous,
body.dark-mode .dataTables_wrapper .dataTables_paginate .paginate_button.next {
    background: #2d2d2d !important;
    border-color: #444 !important;
    color: #e0e0e0 !important;
}

body.dark-mode .dataTables_wrapper .dataTables_paginate .pagination > li.previous > a:hover,
body.dark-mode .dataTables_wrapper .dataTables_paginate .pagination > li.next > a:hover,
body.dark-mode .dataTables_wrapper .dataTables_paginate .paginate_button.previous:hover,
body.dark-mode .dataTables_wrapper .dataTables_paginate .paginate_button.next:hover {
    background: #3d3d3d !important;
    border-color: #555 !important;
    color: #fff !important;
}

/* Remove any white backgrounds in dark mode */
body.dark-mode .dataTables_wrapper .dataTables_paginate .pagination,
body.dark-mode .dataTables_wrapper .dataTables_paginate .pagination > li {
    background: transparent !important;
}

body.dark-mode .dataTables_wrapper .dataTables_info {
    color: #999;
}

body.dark-mode .dataTables_wrapper .dataTables_length select {
    background: #2d2d2d;
    border-color: #444;
    color: #ddd;
    height: auto !important;
    min-height: 32px !important;
}

body.dark-mode .dataTables_wrapper .dataTables_length select option {
    background: #2d2d2d;
    color: #ddd;
    padding: 8px !important;
}

/* Dark mode - Table container and wrapper elements */
body.dark-mode .dataTables_wrapper {
    background: transparent !important;
}

body.dark-mode .dataTables_scroll,
body.dark-mode .dataTables_scrollHead,
body.dark-mode .dataTables_scrollBody,
body.dark-mode .dataTables_scrollFoot {
    background: transparent !important;
}

/* Dark mode - Table headers and footers */
body.dark-mode .table thead,
body.dark-mode .dataTable thead,
body.dark-mode table.dataTable thead {
    background: #2d3748 !important;
}

body.dark-mode .table thead th,
body.dark-mode .dataTable thead th,
body.dark-mode table.dataTable thead th {
    background: #2d3748 !important;
    color: #e2e8f0 !important;
    border-color: #4a5568 !important;
}

body.dark-mode .table tfoot,
body.dark-mode .dataTable tfoot,
body.dark-mode table.dataTable tfoot {
    background: #2d3748 !important;
}

body.dark-mode .table tfoot td,
body.dark-mode .dataTable tfoot td,
body.dark-mode table.dataTable tfoot td {
    background: #374151 !important;
    color: #e2e8f0 !important;
    border-color: #4a5568 !important;
}

/* Dark mode - bg-warning in tfoot */
body.dark-mode .table tfoot tr.bg-warning,
body.dark-mode .dataTable tfoot tr.bg-warning,
body.dark-mode tfoot tr.bg-warning {
    background: #92400e !important;
}

body.dark-mode .table tfoot tr.bg-warning td,
body.dark-mode .dataTable tfoot tr.bg-warning td,
body.dark-mode tfoot tr.bg-warning td {
    background: #92400e !important;
    color: #fef3c7 !important;
}

/* Dark mode - Table body */
body.dark-mode .table tbody,
body.dark-mode .dataTable tbody,
body.dark-mode table.dataTable tbody {
    background: #1a202c !important;
}

body.dark-mode .table tbody td,
body.dark-mode .dataTable tbody td,
body.dark-mode table.dataTable tbody td {
    background: #1a202c !important;
    color: #e2e8f0 !important;
    border-color: #2d3748 !important;
}

body.dark-mode .table tbody tr:hover td,
body.dark-mode .dataTable tbody tr:hover td,
body.dark-mode table.dataTable tbody tr:hover td {
    background: #2d3748 !important;
}

/* Dark mode - Table borders */
body.dark-mode .table,
body.dark-mode .dataTable,
body.dark-mode table.dataTable {
    border-color: #4a5568 !important;
}

/* Dark mode - DataTables length label */
body.dark-mode .dataTables_length,
body.dark-mode .dataTables_length label {
    color: #e2e8f0 !important;
}

/* Dark mode - Pagination container at bottom */
body.dark-mode .dataTables_paginate,
body.dark-mode .dataTables_info,
body.dark-mode .dataTables_wrapper > div:last-child {
    background: transparent !important;
}

body.dark-mode .dataTables_wrapper > div {
    background: transparent !important;
}

body.dark-mode .row {
    background: transparent !important;
}

/* Dark mode - Fix any remaining white backgrounds */
body.dark-mode div[class*="dataTables"] {
    background: transparent !important;
}
