/* =========================================================
   PESO-IMS STANDARD TABLE PAGINATION
   Job Listing footer is the visual baseline for all tables.
========================================================= */
.peso-page-hidden { display: none !important; }

.peso-standard-pagination,
.pagination {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 12px 16px !important;
    border-top: 1px solid #e2e8f0 !important;
    background: #fff !important;
    color: #64748b !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
    box-sizing: border-box !important;
}

.peso-standard-pagination > span,
.pagination > span,
.peso-pagination-summary {
    color: #64748b !important;
    font-size: 12px !important;
    font-weight: 400 !important;
}

.peso-standard-pagination .page-controls,
.pagination .page-controls,
.pagination-buttons {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 5px !important;
    flex-wrap: wrap !important;
}

.peso-standard-pagination .page-num,
.pagination .page-num,
.pagination-buttons .page-btn {
    min-width: 32px !important;
    width: auto !important;
    height: 32px !important;
    padding: 0 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid #dbe3ee !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #667085 !important;
    box-shadow: none !important;
    font: inherit !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    transition: background .15s ease, border-color .15s ease, color .15s ease !important;
}

.peso-standard-pagination .page-num:hover:not(:disabled):not(.disabled):not(.active),
.pagination .page-num:hover:not(:disabled):not(.disabled):not(.active),
.pagination-buttons .page-btn:hover:not(:disabled):not(.disabled):not(.active) {
    border-color: #0b3b82 !important;
    color: #0b3b82 !important;
    background: #f5f8fc !important;
}

.peso-standard-pagination .page-num.active,
.pagination .page-num.active,
.pagination-buttons .page-btn.active {
    background: #0b3b82 !important;
    border-color: #0b3b82 !important;
    color: #fff !important;
}

.peso-standard-pagination .page-num:disabled,
.peso-standard-pagination .page-num.disabled,
.pagination .page-num:disabled,
.pagination .page-num.disabled,
.pagination-buttons .page-btn:disabled,
.pagination-buttons .page-btn.disabled {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
    color: #a8b2c1 !important;
    opacity: 1 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

.page-ellipsis {
    min-width: 24px !important;
    text-align: center !important;
    color: #94a3b8 !important;
    font-size: 12px !important;
}

/* Client-paginated tables keep the footer visually attached to the table. */
.table-responsive > .peso-client-pagination,
.table-wrapper > .peso-client-pagination,
.table-container > .peso-client-pagination {
    min-width: 100%;
}

@media (max-width: 576px) {
    .peso-standard-pagination,
    .pagination {
        padding: 10px 12px !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .peso-standard-pagination > span,
    .pagination > span {
        width: 100% !important;
    }

    .peso-standard-pagination .page-controls,
    .pagination .page-controls,
    .pagination-buttons {
        width: 100% !important;
        justify-content: center !important;
    }
}
