/* ══════════════════════════════════════════════════════════════
   DuoAppPager — shared pagination component
   ══════════════════════════════════════════════════════════════ */

/* ── Container ─────────────────────────────────────────────── */
.duoapp-pager-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-top: 1px solid #ebebeb;
    background: #fafafa;
    border-radius: 0 0 10px 10px;
    flex-wrap: wrap;
    gap: 10px;
}

/* ── Per-page size selector ────────────────────────────────── */
.duoapp-pager-size {
    display: flex;
    align-items: center;
    gap: 8px;
}

.duoapp-pager-size-label {
    font-size: 12px;
    font-weight: 500;
    color: #999;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
}

.duoapp-pager-size-pills {
    display: flex;
    gap: 4px;
}

.duoapp-pager-pill {
    padding: 5px 11px;
    border: 1.5px solid #e0e0e0;
    border-radius: 20px;
    background: white;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    color: #555;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
    line-height: 1.2;
}

.duoapp-pager-pill:hover {
    border-color: #003e7e;
    color: #003e7e;
}

.duoapp-pager-pill--active {
    background: #003e7e;
    border-color: #003e7e;
    color: white;
}

.duoapp-pager-pill--active:hover {
    background: #003e7e;
    color: white;
}

/* ── Syncfusion pager spacing ──────────────────────────────── */
.duoapp-pager-sf .e-parentmsgbar {
    padding: 0 12px;
}

/* ── Mobile pager (prev / page X of Y / next) ─────────────── */
.duoapp-pager-mobile {
    display: flex;
    align-items: center;
    gap: 0;
    background: white;
    border: 1.5px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
}

.duoapp-pager-mobile-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: white;
    border: none;
    cursor: pointer;
    color: #003e7e;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}

.duoapp-pager-mobile-btn:active {
    background: #f0f4fa;
}

.duoapp-pager-mobile-btn--disabled {
    color: #ccc;
    cursor: default;
}

.duoapp-pager-mobile-btn--disabled:active {
    background: white;
}

.duoapp-pager-mobile-info {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 16px;
    border-left: 1.5px solid #e0e0e0;
    border-right: 1.5px solid #e0e0e0;
    height: 48px;
    min-width: 90px;
    justify-content: center;
}

.duoapp-pager-mobile-current {
    font-size: 16px;
    font-weight: 700;
    color: #003e7e;
    line-height: 1;
}

.duoapp-pager-mobile-sep {
    font-size: 13px;
    color: #aaa;
    margin: 0 1px;
}

.duoapp-pager-mobile-total {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1;
}

/* ── Mobile overrides ──────────────────────────────────────── */
@media only screen and (max-width: 1023px) {
    .duoapp-pager-container {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 16px;
        border-radius: 0;
    }

    .duoapp-pager-size {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .duoapp-pager-size-label {
        font-size: 11px;
    }

    .duoapp-pager-size-pills {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(56px, 1fr));
        gap: 8px;
    }

    .duoapp-pager-pill {
        padding: 12px 6px;
        font-size: 15px;
        border-radius: 10px;
        text-align: center;
        width: 100%;
        border-width: 1.5px;
    }

    .duoapp-pager-mobile {
        width: 100%;
        justify-content: space-between;
        border-radius: 12px;
    }

    .duoapp-pager-mobile-btn {
        width: 64px;
        height: 56px;
    }

    .duoapp-pager-mobile-info {
        flex: 1;
        height: 56px;
    }

    .duoapp-pager-mobile-current,
    .duoapp-pager-mobile-total {
        font-size: 18px;
    }

    .duoapp-pager-sf {
        display: none;
    }
}
