/* Shared table footer and pagination */
.tbl-footer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.25rem 0.4rem;
    gap: 12px;
    flex-wrap: wrap;
}

.tbl-footer-info {
    font-size: 0.78rem;
    color: #94a3b8;
    white-space: nowrap;
    min-width: 140px;
}

.tbl-footer-perpage {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 140px;
    justify-content: flex-end;
}

.tbl-footer-perpage-label {
    font-size: 0.78rem;
    color: #94a3b8;
    white-space: nowrap;
}

.tbl-footer-perpage-select {
    border: 1.5px solid #e2e8f0;
    border-radius: 7px;
    padding: 3px 8px;
    font-size: 0.78rem;
    color: #374151;
    background: #f8fafc;
    cursor: pointer;
    outline: none;
    font-family: inherit;
    transition: border-color 0.15s;
}

.tbl-footer-perpage-select:focus {
    border-color: #6366f1;
}

#pagination-container,
#wh-pagination-container {
    padding: 0;
}

#pagination,
#wh-pagination {
    gap: 3px;
    margin-bottom: 0;
}

#pagination .page-item .page-link,
#pagination .page-item span.page-link,
#wh-pagination .page-item .page-link,
#wh-pagination .page-item span.page-link {
    border: none !important;
    border-radius: 8px !important;
    min-width: 34px;
    height: 34px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 500;
    color: #374151;
    background: transparent;
    padding: 0 8px;
    transition: background 0.13s, color 0.13s;
    line-height: 1;
    box-shadow: none !important;
}

#pagination .page-item:not(.active):not(.disabled) .page-link:hover,
#wh-pagination .page-item:not(.active):not(.disabled) .page-link:hover {
    background: #f1f5f9;
    color: #1e1b4b;
}

#pagination .page-item.active .page-link,
#wh-pagination .page-item.active .page-link {
    background: #6366f1 !important;
    color: #fff !important;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(99,102,241,0.28) !important;
}

#pagination .page-item.disabled span.page-link,
#pagination .page-item.disabled .page-link,
#wh-pagination .page-item.disabled span.page-link,
#wh-pagination .page-item.disabled .page-link {
    color: #cbd5e1 !important;
    background: transparent !important;
    cursor: default;
}

#pagination .page-item:first-child .page-link,
#pagination .page-item:last-child .page-link,
#wh-pagination .page-item:first-child .page-link,
#wh-pagination .page-item:last-child .page-link {
    font-size: 1rem;
    font-weight: 400;
    color: #6b7280;
}

#pagination .page-item:first-child:not(.disabled) .page-link:hover,
#pagination .page-item:last-child:not(.disabled) .page-link:hover,
#wh-pagination .page-item:first-child:not(.disabled) .page-link:hover,
#wh-pagination .page-item:last-child:not(.disabled) .page-link:hover {
    background: #ede9fe;
    color: #4f46e5;
}
