/* ── Shared pagination ────────────────────────────────────────────── */
.pagination-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    flex-wrap: wrap;
    gap: 12px;
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pagination-btns {
    display: flex;
    gap: 4px;
}

/* Numbered page button */
.pg-num {
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    background: #fff;
    font-size: 1rem;
    color: #374151;
    transition: all 0.15s;
    min-width: 36px;
    text-align: center;
    border: 1px solid transparent;
}
.pg-num:hover { background: #f6f8fa; color: #000; border-color: #f6f8fa; }
.pg-num.active { background: #e0f2fe; color: #0369a1; font-weight: 600; border: 1px solid #bae6fd; }

.pg-dots {
    padding: 6px 4px;
    color: #9ca3af;
    font-size: 0.85rem;
    user-select: none;
}

/* Alternate pagination button style (round chevron) */
.pg-btn {
    padding: 5px 11px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    background: #fff;
    font-size: 0.8rem;
    color: #374151;
    transition: all 0.15s;
}
.pg-btn:hover:not(:disabled) { border-color: #2889aa; color: #2889aa; }
.pg-btn.active { background: #2889aa; color: #fff; border-color: #2889aa; }
.pg-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Dexcom-style compact pagination button */
.dexcom-page-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #374151;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.dexcom-page-btn:hover:not(:disabled) { background: #f0f9ff; border-color: #2889aa; color: #2889aa; }
.dexcom-page-btn.active { background: #2889aa; color: #fff; border-color: #2889aa; font-weight: 600; }
.dexcom-page-btn:disabled { opacity: 0.4; cursor: not-allowed; }
