/* Global Pagination Styles - Applied to all DataTables across the site */

/* Pagination styling */
.dataTables_paginate {
    text-align: right;
    margin-top: 20px;
    position: relative;
    z-index: 1;
    min-height: 40px;
    padding: 4px 0;
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
}

/* Pagination button styles - consistent across all pages */
.dataTables_paginate .paginate_button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 6px 12px !important;
    height: 32px !important;
    min-width: 32px !important;
    margin: 0 2px !important;
    border: 1px solid #02293d !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    color: #02293d !important;
    background: #ffffff !important;
    cursor: pointer !important;
    position: relative !important;
    z-index: 1 !important;
    box-sizing: border-box !important;
    line-height: 1 !important;
    text-decoration: none !important;
}

.dataTables_paginate .paginate_button:hover {
    background: #02293d !important;
    color: #fff !important;
    border-color: #02293d !important;
}

.dataTables_paginate .paginate_button:hover a {
    color: #fff !important;
}

/* Current/Active page styling - Multiple selectors for maximum specificity */
.dataTables_paginate .paginate_button.current,
.dataTables_paginate .paginate_button.current:hover,
.dataTables_paginate .paginate_button.active,
.dataTables_paginate .paginate_button.active:hover,
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.active,
table.dataTable .dataTables_paginate .paginate_button.current,
table.dataTable .dataTables_paginate .paginate_button.active {
    background: #02293d !important;
    color: #fff !important;
    border-color: #02293d !important;
    background-color: #02293d !important;
}

.dataTables_paginate .paginate_button.current a,
.dataTables_paginate .paginate_button.current:hover a,
.dataTables_paginate .paginate_button.active a,
.dataTables_paginate .paginate_button.active:hover a,
.dataTables_wrapper .dataTables_paginate .paginate_button.current a,
.dataTables_wrapper .dataTables_paginate .paginate_button.active a,
table.dataTable .dataTables_paginate .paginate_button.current a,
table.dataTable .dataTables_paginate .paginate_button.active a {
    color: #fff !important;
    background: transparent !important;
}

/* Force Back and Next button text visibility on hover */
.dataTables_paginate .previous:hover,
.dataTables_paginate .next:hover {
    background: #02293d !important;
    color: #fff !important;
    border-color: #02293d !important;
}

.dataTables_paginate .previous:hover *,
.dataTables_paginate .next:hover * {
    color: #fff !important;
}

/* Remove page-link class styling and override with custom styles */
.dataTables_paginate .paginate_button a {
    color: inherit !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
}

/* Override Bootstrap page-link styles */
.dataTables_paginate .paginate_button a.page-link {
    color: inherit !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
}

/* ULTRA SPECIFIC - Force current page background */
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover,
.dataTables_wrapper .dataTables_paginate .paginate_button.active,
.dataTables_wrapper .dataTables_paginate .paginate_button.active:hover,
table.dataTable .dataTables_paginate .paginate_button.current,
table.dataTable .dataTables_paginate .paginate_button.active {
    background: #02293d !important;
    background-color: #02293d !important;
    color: #ffffff !important;
    border-color: #02293d !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current a,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover a,
.dataTables_wrapper .dataTables_paginate .paginate_button.active a,
.dataTables_wrapper .dataTables_paginate .paginate_button.active:hover a,
table.dataTable .dataTables_paginate .paginate_button.current a,
table.dataTable .dataTables_paginate .paginate_button.active a {
    color: #ffffff !important;
    background: transparent !important;
}

/* Arrow icons for Back and Next buttons */
.dataTables_paginate .paginate_button.previous:before {
    content: "← " !important;
    margin-right: 4px !important;
    font-weight: bold !important;
}

.dataTables_paginate .paginate_button.next:after {
    content: " →" !important;
    margin-left: 4px !important;
    font-weight: bold !important;
}
