/* ============================================================
   Money Card — Unified Table Pagination (v1.0)
   كلاسات بادئتها mc-pg- عشان مفيش تعارض مع أي CSS تاني
   ============================================================ */

.mc-pg-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 16px 0 6px;
    padding: 8px 0;
    direction: ltr;
}

.mc-pg-nav[style*="display: none"] {
    display: none !important;
}

.mc-pg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1.5px solid #d4e0ee;
    border-radius: 10px;
    background: #ffffff;
    color: #3c5a80;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.mc-pg-btn:hover:not(:disabled) {
    background: #f0f5fd;
    border-color: #7faee8;
    color: #1e63d1;
}

.mc-pg-btn:focus-visible {
    outline: 3px solid rgba(30, 99, 209, 0.25);
    outline-offset: 2px;
}

.mc-pg-btn.is-active {
    background: #1e63d1;
    border-color: #1e63d1;
    color: #ffffff;
}

.mc-pg-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f5f7fa;
    color: #97a3b5;
    border-color: #e2e8f0;
}

.mc-pg-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 38px;
    color: #7d8fa6;
    font-size: 14px;
    font-weight: 700;
    user-select: none;
}

.mc-pg-status {
    display: inline-flex;
    align-items: center;
    margin-inline-start: 8px;
    padding: 0 12px;
    height: 34px;
    border-radius: 10px;
    background: #f0f5fd;
    color: #4a6285;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

[dir="rtl"] .mc-pg-nav {
    direction: rtl;
}

@media (max-width: 575px) {
    .mc-pg-nav {
        gap: 4px;
        margin: 12px 0 4px;
    }
    .mc-pg-btn {
        min-width: 34px;
        height: 34px;
        padding: 0 9px;
        font-size: 13px;
        border-radius: 8px;
    }
    .mc-pg-dots {
        min-width: 22px;
        height: 34px;
        font-size: 13px;
    }
    .mc-pg-status {
        height: 30px;
        padding: 0 9px;
        font-size: 11px;
        margin-inline-start: 4px;
    }
}

/* الوضع الداكن */
[data-theme="dark"] .mc-pg-btn {
    background: #16222f;
    border-color: #2d4055;
    color: #b5c9df;
}
[data-theme="dark"] .mc-pg-btn:hover:not(:disabled) {
    background: #1e2f42;
    border-color: #3f5d80;
    color: #d6e5f7;
}
[data-theme="dark"] .mc-pg-btn.is-active {
    background: #2f7eea;
    border-color: #2f7eea;
    color: #ffffff;
}
[data-theme="dark"] .mc-pg-btn:disabled {
    background: #1a2534;
    color: #5d6f85;
    border-color: #2a3a4f;
}
[data-theme="dark"] .mc-pg-status {
    background: #1a2838;
    color: #a3b9d1;
}
[data-theme="dark"] .mc-pg-dots {
    color: #7e93ad;
}