/* Shared pagination: center the label independently of the legacy line-height. */
#page .pagination {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: 100%;
    padding: 0;
    list-style: none;
    vertical-align: middle;
}
#page .pagination > li {
    display: block;
    flex: 0 0 auto;
    float: none;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
}
#page .pagination > li > a,
#page .pagination > li > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    float: none;
    min-width: 40px;
    width: auto;
    height: 40px;
    margin: 0;
    padding: 0 10px;
    border: 1px solid #dce7ec;
    border-radius: 8px !important;
    background: #fff;
    color: #496377;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    font-variant-numeric: tabular-nums;
}
#page .pagination > li > a:hover {
    background: #edf7f2;
    border-color: #a9d1bd;
    color: #007b68;
}
#page .pagination > li > a:focus-visible {
    outline: 3px solid #a9d1bd;
    outline-offset: 2px;
}
#page .pagination > li.active > a,
#page .pagination > li.active > span {
    background: #008363 !important;
    border-color: #008363 !important;
    color: #fff !important;
    font-weight: 600;
}
#page .pagination > li.disabled > span {
    background: #f8fafb;
    border-color: #e5edf1;
    color: #8193a0;
    cursor: default;
}
@media (max-width: 600px) {
    #page .pagination { gap: 6px; }
    #page .pagination > li > a,
    #page .pagination > li > span {
        min-width: 36px;
        height: 36px;
        padding: 0 8px;
        font-size: 13px;
    }
}
