/*
 * Paginación reutilizable (.ht-pager). Se genera con htPager.render() en JS o
 * con ht_pager_html() en PHP; los dos producen el mismo marcado.
 */

.ht-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.ht-pager:has(> .ht-pager-count:only-child) {
    justify-content: center;
}

.ht-pager-count {
    font-size: 0.8rem;
    color: #3d6f80;
}

/* Grupo unido de botones: un solo borde exterior y separadores finos. */
.ht-pager-pages {
    display: inline-flex;
    border: 1px solid #3fa4c9;
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
}

.ht-pager-page,
.ht-pager-gap {
    display: inline-block;
    min-width: 34px;
    height: 30px;
    padding: 0 8px;
    border: 0;
    border-left: 1px solid #cbe6ef;
    background: transparent;
    font: inherit;
    font-size: 0.85rem;
    font-weight: bold;
    line-height: 30px;
    color: #004960;
    text-align: center;
    text-decoration: none;
}

.ht-pager-pages > :first-child {
    border-left: 0;
}

.ht-pager-page {
    cursor: pointer;
}

.ht-pager-page:hover:not([disabled]):not(.active):not([aria-disabled="true"]) {
    background: #ebf9ff;
    color: #004960;
}

.ht-pager-page.active {
    cursor: default;
    background: #0093c2;
    color: #fff;
}

.ht-pager-page[disabled]:not(.active),
.ht-pager-page[aria-disabled="true"]:not(.active) {
    color: #b3cdd6;
    cursor: default;
    pointer-events: none;
}

.ht-pager-gap {
    color: #7fa9b8;
}

@media (max-width: 700px) {
    .ht-pager {
        justify-content: center;
    }

    .ht-pager-count {
        width: 100%;
        text-align: center;
    }

    .ht-pager-page,
    .ht-pager-gap {
        min-width: 30px;
        padding: 0 5px;
    }
}
