.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-width: 0;
    margin-top: 16px;
    padding: 22px 24px;
    background: rgba(247, 250, 252, 0.92);
    border: 1px solid #c1cddb;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08), 0 1px 1px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(7px);
    font-family: "Nunito Sans", "Segoe UI", sans-serif;
}

.pagination__per-page,
.pagination__pages,
.pagination__per-page form {
    display: flex;
    align-items: center;
}

.pagination__per-page {
    gap: 12px;
    color: #0f263b;
    font-size: 14px;
    line-height: 1.5;
    white-space: nowrap;
}

.pagination__per-page form {
    position: relative;
}

.pagination__per-page form::after {
    position: absolute;
    top: 50%;
    right: 10px;
    width: 14px;
    height: 14px;
    background: currentColor;
    content: "";
    pointer-events: none;
    transform: translateY(-50%);
    -webkit-mask: url("../images/figma/cke-nav/chevron-down.svg") center / contain no-repeat;
    mask: url("../images/figma/cke-nav/chevron-down.svg") center / contain no-repeat;
}

.pagination__per-page select {
    width: 62px;
    height: 34px;
    padding: 0 30px 0 12px;
    border: 1px solid #516a87;
    border-radius: 50px;
    background: #fff;
    color: #0f263b;
    font-family: "Nunito Sans", "Segoe UI", sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    appearance: none;
}

.pagination__pages {
    gap: 12px;
}

.pagination__button {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid #516a87;
    border-radius: 90px;
    background: #fff;
    color: #223954;
    font-family: "Nunito Sans", "Segoe UI", sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 18px;
    text-decoration: none;
}

a.pagination__button:hover {
    border-color: #004488;
    background: #f1f6fb;
    color: #004488;
    text-decoration: none;
}

.pagination__button.is-current {
    border-color: #37506e;
    background: #37506e;
    color: #fff;
}

.pagination__button--ellipsis {
    border-color: #516a87;
}

.pagination__button--arrow {
    padding: 0;
}

.pagination__chevron {
    display: block;
    width: 16px;
    height: 16px;
    background: currentColor;
    -webkit-mask: url("../images/sidebar/chevron-right.svg") center / 7px 11px no-repeat;
    mask: url("../images/sidebar/chevron-right.svg") center / 7px 11px no-repeat;
}

.pagination__button--next {
    border-color: #004488;
    background: #004488;
    color: #fff;
}

.pagination__chevron--previous {
    transform: rotate(180deg);
}

a.pagination__button--next:hover,
a.pagination__button--next:focus-visible {
    border-color: #004488;
    background: #004488;
    color: #fff;
}

.pagination__button.is-disabled {
    opacity: 0.3;
    pointer-events: none;
}

.pagination__button:focus-visible,
.pagination__per-page select:focus-visible {
    outline: 3px solid #f2b84b;
    outline-offset: 2px;
}

@media (max-width: 1000px) {
    .pagination {
        align-items: flex-start;
        flex-direction: column;
    }

    .pagination__pages {
        align-self: flex-end;
    }
}

@media (max-width: 520px) {
    .pagination {
        padding: 16px;
    }

    .pagination__pages {
        gap: 6px;
        max-width: 100%;
        overflow-x: auto;
        align-self: stretch;
    }
}
