/* ============================================================
   Self-hosted fonts (SIL Open Font License, see /fonts/LICENSE-OFL.txt).
   No request goes to Google, so the text looks the same on every phone and network.
   ============================================================ */
@font-face { font-family: 'Noto Nastaliq Urdu'; font-style: normal; font-weight: 400; font-display: swap; src: url('../../fonts/noto-nastaliq-urdu-arabic-400-normal.woff2') format('woff2'); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0898-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC; }
@font-face { font-family: 'Noto Nastaliq Urdu'; font-style: normal; font-weight: 600; font-display: swap; src: url('../../fonts/noto-nastaliq-urdu-arabic-600-normal.woff2') format('woff2'); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0898-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC; }
@font-face { font-family: 'Noto Nastaliq Urdu'; font-style: normal; font-weight: 700; font-display: swap; src: url('../../fonts/noto-nastaliq-urdu-arabic-700-normal.woff2') format('woff2'); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0898-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC; }
@font-face { font-family: 'Noto Naskh Arabic'; font-style: normal; font-weight: 400; font-display: swap; src: url('../../fonts/noto-naskh-arabic-arabic-400-normal.woff2') format('woff2'); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0898-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC; }
@font-face { font-family: 'Noto Naskh Arabic'; font-style: normal; font-weight: 500; font-display: swap; src: url('../../fonts/noto-naskh-arabic-arabic-500-normal.woff2') format('woff2'); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0898-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC; }
@font-face { font-family: 'Noto Naskh Arabic'; font-style: normal; font-weight: 600; font-display: swap; src: url('../../fonts/noto-naskh-arabic-arabic-600-normal.woff2') format('woff2'); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0898-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC; }
@font-face { font-family: 'Noto Naskh Arabic'; font-style: normal; font-weight: 700; font-display: swap; src: url('../../fonts/noto-naskh-arabic-arabic-700-normal.woff2') format('woff2'); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0898-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('../../fonts/plus-jakarta-sans-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('../../fonts/plus-jakarta-sans-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('../../fonts/plus-jakarta-sans-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('../../fonts/plus-jakarta-sans-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 800; font-display: swap; src: url('../../fonts/plus-jakarta-sans-latin-800-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* ==========================================================================
   Waseela-e-Harmain — Shared Design System
   Plain CSS (no build step). Loaded by the Filament admin panel and the
   member portal. Every component is prefixed `wh-` so it never collides with
   Tailwind or Filament classes.
   ========================================================================== */

:root {
    /* Ink & surfaces */
    --wh-ink: #0c1f19;
    --wh-ink-2: #34463f;
    --wh-muted: #6f7f78;
    --wh-faint: #9aa8a2;
    --wh-line: #e4ebe7;
    --wh-line-strong: #d3ddd8;
    --wh-canvas: #f3f6f4;
    --wh-card: #ffffff;
    --wh-subtle: #f7faf8;

    /* Emerald brand scale */
    --wh-emerald-950: #032a1f;
    --wh-emerald-900: #063b2c;
    --wh-emerald-800: #0a4d39;
    --wh-emerald-700: #0f6449;
    --wh-emerald-600: #14805d;
    --wh-emerald-500: #1fa577;
    --wh-mint: #5ee3ae;
    --wh-mint-soft: #e7f7ef;
    --wh-mint-line: #bfe9d5;

    /* Accents */
    --wh-gold: #e9bc3f;
    --wh-gold-deep: #9a7410;
    --wh-gold-soft: #fdf6df;
    --wh-gold-line: #f1dc9c;
    --wh-rose: #cf2f55;
    --wh-rose-soft: #fdedf1;
    --wh-rose-line: #f6c4d1;
    --wh-amber: #b86e00;
    --wh-amber-soft: #fff5df;
    --wh-amber-line: #f6d9a0;
    --wh-sky: #2563c9;
    --wh-sky-soft: #ebf2fe;
    --wh-sky-line: #c4d8fb;
    --wh-whatsapp: #128c4a;

    /* Shape & depth */
    --wh-radius-xl: 22px;
    --wh-radius-lg: 18px;
    --wh-radius-md: 14px;
    --wh-radius-sm: 10px;
    --wh-shadow-sm: 0 1px 2px rgba(6, 40, 30, .05);
    --wh-shadow: 0 1px 2px rgba(6, 40, 30, .04), 0 10px 28px -16px rgba(6, 40, 30, .16);
    --wh-shadow-dark: 0 18px 40px -18px rgba(3, 42, 31, .55);

    --wh-font: 'Plus Jakarta Sans', 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    --wh-font-urdu: 'Noto Nastaliq Urdu', 'Noto Naskh Arabic', 'Jameel Noori Nastaleeq', serif;
    /* RTL: Latin glyphs from Jakarta, Urdu glyphs fall through to Nastaliq */
    --wh-font-rtl: 'Plus Jakarta Sans', 'Noto Nastaliq Urdu', 'Noto Naskh Arabic', 'Jameel Noori Nastaleeq', sans-serif;
}

html[dir="rtl"] { --wh-font: var(--wh-font-rtl); }

/* ---------- Base helpers ---------- */
.wh-num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.wh-urdu { font-family: var(--wh-font-urdu); line-height: 2; }
.wh-ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.wh-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.wh-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.wh-muted { color: var(--wh-muted); }
.wh-stack > * + * { margin-top: 1.25rem; }
[x-cloak] { display: none !important; }

/* ---------- Grids ---------- */
.wh-grid { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) {
    .wh-grid--kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wh-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wh-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
    .wh-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .wh-grid--2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
    .wh-grid--1-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); }
}
@media (min-width: 1280px) {
    .wh-grid--kpi { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Card ---------- */
.wh-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--wh-card);
    border: 1px solid var(--wh-line);
    border-radius: var(--wh-radius-lg);
    box-shadow: var(--wh-shadow);
    padding: 1.35rem 1.4rem;
    color: var(--wh-ink);
    font-family: var(--wh-font);
}
.wh-card--flush { padding: 0; overflow: hidden; }
.wh-card--fill { height: 100%; }
.wh-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .9rem;
}
.wh-card__title { font-size: 1.02rem; font-weight: 800; letter-spacing: -.01em; color: var(--wh-ink); margin: 0; }
.wh-card__sub { font-size: .78rem; color: var(--wh-muted); margin: .2rem 0 0; }
.wh-card__foot {
    margin-top: auto;
    padding-top: .95rem;
    border-top: 1px solid var(--wh-line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    font-size: .78rem;
    color: var(--wh-muted);
}
.wh-card__body { flex: 1 1 auto; }
.wh-card__section { padding: 1.2rem 1.4rem; }
.wh-card__section + .wh-card__section { border-top: 1px solid var(--wh-line); }

/* Dark emerald hero card */
.wh-card--dark {
    border: 1px solid rgba(94, 227, 174, .18);
    color: #e9f6f0;
    background:
        radial-gradient(120% 90% at 100% 0%, rgba(94, 227, 174, .16) 0%, rgba(94, 227, 174, 0) 55%),
        linear-gradient(155deg, var(--wh-emerald-800) 0%, var(--wh-emerald-900) 48%, var(--wh-emerald-950) 100%);
    box-shadow: var(--wh-shadow-dark);
}
.wh-card--dark .wh-eyebrow { color: var(--wh-mint); }
.wh-card--dark .wh-card__foot { border-top-color: rgba(255, 255, 255, .12); color: #cfe7dc; }
.wh-card--dark .wh-card__title { color: #fff; }

/* ---------- Typography atoms ---------- */
.wh-eyebrow {
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--wh-muted);
    line-height: 1.35;
}
[dir="rtl"] .wh-eyebrow { letter-spacing: 0; text-transform: none; font-size: .78rem; }
.wh-kpi {
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.1;
    color: var(--wh-ink);
    font-variant-numeric: tabular-nums;
    margin: .45rem 0 0;
}
.wh-kpi--lg { font-size: 2.15rem; }
.wh-kpi--md { font-size: 1.5rem; white-space: nowrap; }
.wh-kpi small { font-size: .82rem; font-weight: 600; color: var(--wh-faint); letter-spacing: 0; margin-inline-start: .3rem; }
.wh-card--dark .wh-kpi { color: #fff; }
.wh-label { display: block; font-size: .72rem; color: var(--wh-muted); font-weight: 600; }
.wh-value { display: block; font-size: .92rem; font-weight: 800; color: var(--wh-ink); font-variant-numeric: tabular-nums; }
.wh-value--emerald { color: var(--wh-emerald-700); }
.wh-value--amber { color: var(--wh-amber); }
.wh-value--rose { color: var(--wh-rose); }
.wh-value--gold { color: var(--wh-gold); }

/* ---------- Chips / badges ---------- */
.wh-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .22rem .62rem;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 700;
    line-height: 1.35;
    white-space: nowrap;
    border: 1px solid transparent;
    font-family: var(--wh-font);
}
.wh-chip svg { width: .85rem; height: .85rem; flex-shrink: 0; }
.wh-chip__dot { width: .42rem; height: .42rem; border-radius: 999px; background: currentColor; flex-shrink: 0; }
.wh-chip--mint { background: var(--wh-mint-soft); color: var(--wh-emerald-700); border-color: var(--wh-mint-line); }
.wh-chip--gold { background: var(--wh-gold-soft); color: var(--wh-gold-deep); border-color: var(--wh-gold-line); }
.wh-chip--amber { background: var(--wh-amber-soft); color: var(--wh-amber); border-color: var(--wh-amber-line); }
.wh-chip--rose { background: var(--wh-rose-soft); color: var(--wh-rose); border-color: var(--wh-rose-line); }
.wh-chip--sky { background: var(--wh-sky-soft); color: var(--wh-sky); border-color: var(--wh-sky-line); }
.wh-chip--slate { background: #f1f4f3; color: var(--wh-ink-2); border-color: var(--wh-line); }
.wh-chip--glass { background: rgba(255, 255, 255, .1); color: #e9f6f0; border-color: rgba(255, 255, 255, .18); }
.wh-chip--lg { padding: .38rem .8rem; font-size: .76rem; }

/* ---------- Buttons ---------- */
.wh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .62rem 1.05rem;
    border-radius: 12px;
    border: 1px solid transparent;
    font-family: var(--wh-font);
    font-size: .82rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.wh-btn svg { width: 1rem; height: 1rem; flex-shrink: 0; }
.wh-btn:focus-visible { outline: 3px solid rgba(31, 165, 119, .35); outline-offset: 2px; }
.wh-btn[disabled], .wh-btn.is-busy { opacity: .65; cursor: not-allowed; }
.wh-btn--primary { background: var(--wh-emerald-900); color: #fff; box-shadow: 0 6px 16px -8px rgba(6, 59, 44, .6); }
.wh-btn--primary:hover { background: var(--wh-emerald-800); color: #fff; }
.wh-btn--soft { background: var(--wh-mint-soft); color: var(--wh-emerald-800); border-color: var(--wh-mint-line); }
.wh-btn--soft:hover { background: #d9f2e6; }
.wh-btn--ghost { background: #fff; color: var(--wh-ink-2); border-color: var(--wh-line-strong); }
.wh-btn--ghost:hover { background: var(--wh-subtle); color: var(--wh-ink); }
.wh-btn--danger { background: var(--wh-rose); color: #fff; }
.wh-btn--danger:hover { background: #b4234a; }
.wh-btn--danger-soft { background: var(--wh-rose-soft); color: var(--wh-rose); border-color: var(--wh-rose-line); }
.wh-btn--whatsapp { background: #eafaf1; color: var(--wh-whatsapp); border-color: #bfe8cf; }
.wh-btn--whatsapp:hover { background: #dbf5e6; }
.wh-btn--sm { padding: .42rem .75rem; font-size: .75rem; border-radius: 10px; }
.wh-btn--block { width: 100%; }
.wh-link { color: var(--wh-emerald-700); font-weight: 700; font-size: .78rem; text-decoration: none; display: inline-flex; align-items: center; gap: .3rem; }
.wh-link:hover { color: var(--wh-emerald-900); text-decoration: underline; text-underline-offset: 3px; }
.wh-link svg { width: .85rem; height: .85rem; }
[dir="rtl"] .wh-flip { transform: scaleX(-1); }

.wh-icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--wh-line);
    color: var(--wh-ink-2);
    text-decoration: none;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color .15s ease;
}
.wh-icon-btn:hover { background: var(--wh-subtle); color: var(--wh-ink); }
.wh-icon-btn svg { width: 1.1rem; height: 1.1rem; }
.wh-icon-btn__dot {
    position: absolute;
    top: .42rem;
    inset-inline-end: .45rem;
    width: .5rem;
    height: .5rem;
    border-radius: 999px;
    background: var(--wh-rose);
    box-shadow: 0 0 0 2px #fff;
}
.wh-icon-btn--sm { width: 2rem; height: 2rem; border-radius: 10px; }
.wh-icon-btn--sm svg { width: .95rem; height: .95rem; }
.wh-icon-btn--approve { color: var(--wh-emerald-700); background: var(--wh-mint-soft); border-color: var(--wh-mint-line); }
.wh-icon-btn--approve:hover { background: var(--wh-emerald-800); color: #fff; }
.wh-icon-btn--reject { color: var(--wh-rose); background: var(--wh-rose-soft); border-color: var(--wh-rose-line); }
.wh-icon-btn--reject:hover { background: var(--wh-rose); color: #fff; }

/* ---------- Topbar tools (prayer pill, language toggle) ---------- */
.wh-tools { display: flex; align-items: center; gap: .6rem; font-family: var(--wh-font); }
.wh-prayer {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .45rem .85rem;
    border-radius: 999px;
    background: var(--wh-mint-soft);
    border: 1px solid var(--wh-mint-line);
    color: var(--wh-emerald-900);
    font-size: .78rem;
    font-weight: 600;
    white-space: nowrap;
}
.wh-prayer svg { width: 1rem; height: 1rem; color: var(--wh-emerald-700); }
.wh-prayer strong { font-weight: 800; font-variant-numeric: tabular-nums; }
.wh-lang {
    display: inline-flex;
    align-items: center;
    padding: 3px;
    border-radius: 12px;
    background: #f0f3f2;
    border: 1px solid var(--wh-line);
}
.wh-lang a {
    padding: .32rem .75rem;
    border-radius: 9px;
    font-size: .76rem;
    font-weight: 600;
    color: var(--wh-muted);
    text-decoration: none;
    line-height: 1.3;
}
.wh-lang a.is-active { background: #fff; color: var(--wh-ink); font-weight: 800; box-shadow: var(--wh-shadow-sm); }
.wh-lang a:hover:not(.is-active) { color: var(--wh-ink); }
.wh-lang a[lang="ur"] { font-family: var(--wh-font-urdu); font-size: .78rem; padding-top: .2rem; padding-bottom: .35rem; }

/* ---------- Progress ring ---------- */
.wh-ring { position: relative; flex-shrink: 0; width: 5.25rem; height: 5.25rem; }
.wh-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.wh-ring__track { stroke: #edf2ef; }
.wh-ring__bar { stroke: var(--wh-emerald-700); transition: stroke-dashoffset .8s cubic-bezier(.2, .7, .2, 1); }
.wh-ring__label {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--wh-ink);
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}
.wh-ring__label small { font-size: .58rem; font-weight: 700; color: var(--wh-faint); text-transform: uppercase; letter-spacing: .06em; margin-top: .15rem; }
.wh-card--dark .wh-ring__track { stroke: rgba(255, 255, 255, .1); }
.wh-card--dark .wh-ring__bar { stroke: var(--wh-mint); }
.wh-card--dark .wh-ring__label { color: #fff; }
.wh-ring--sm { width: 4.25rem; height: 4.25rem; }
.wh-ring--sm .wh-ring__label { font-size: .9rem; }

/* ---------- Linear progress ---------- */
.wh-progress { width: 100%; height: .5rem; border-radius: 999px; background: #edf2ef; overflow: hidden; }
.wh-progress > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--wh-emerald-700), var(--wh-emerald-500)); }

/* ---------- Mini bar chart ---------- */
.wh-bars { display: flex; align-items: flex-end; gap: .45rem; height: 4.75rem; margin-top: 1rem; }
.wh-bars__col { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: .35rem; height: 100%; justify-content: flex-end; min-width: 0; }
.wh-bars__bar { width: 100%; border-radius: 6px 6px 3px 3px; background: #e9efec; min-height: 6px; }
.wh-bars__col.is-current .wh-bars__bar { background: linear-gradient(180deg, var(--wh-emerald-600), var(--wh-emerald-800)); }
.wh-bars__lbl { font-size: .64rem; font-weight: 600; color: var(--wh-faint); }
.wh-bars__col.is-current .wh-bars__lbl { color: var(--wh-ink); font-weight: 800; }

/* ---------- Key/value rows ---------- */
.wh-kv { display: flex; align-items: center; justify-content: space-between; gap: .75rem; font-size: .8rem; padding: .5rem 0; }
.wh-kv + .wh-kv { border-top: 1px dashed var(--wh-line); }
.wh-kv dt, .wh-kv > span:first-child { color: var(--wh-muted); }
.wh-kv dd, .wh-kv > span:last-child { margin: 0; font-weight: 700; color: var(--wh-ink); text-align: end; }
.wh-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.wh-panel { border-radius: var(--wh-radius-md); background: var(--wh-subtle); border: 1px solid var(--wh-line); padding: .85rem 1rem; }
.wh-panel--note { display: flex; align-items: center; gap: .6rem; font-size: .78rem; color: var(--wh-ink-2); }
.wh-panel--note svg { width: 1.05rem; height: 1.05rem; flex-shrink: 0; }

/* ---------- Icon tile ---------- */
.wh-tile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 12px;
    flex-shrink: 0;
    background: var(--wh-mint-soft);
    color: var(--wh-emerald-700);
    border: 1px solid var(--wh-mint-line);
}
.wh-tile svg { width: 1.25rem; height: 1.25rem; }
.wh-tile--gold { background: var(--wh-gold-soft); color: var(--wh-gold-deep); border-color: var(--wh-gold-line); }
.wh-tile--amber { background: var(--wh-amber-soft); color: var(--wh-amber); border-color: var(--wh-amber-line); }
.wh-tile--rose { background: var(--wh-rose-soft); color: var(--wh-rose); border-color: var(--wh-rose-line); }

/* ---------- Avatar ---------- */
.wh-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 999px;
    flex-shrink: 0;
    background: #eef3f1;
    color: var(--wh-ink-2);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .02em;
    border: 1px solid var(--wh-line);
}
.wh-avatar--gold { background: linear-gradient(145deg, #f6dc8a, var(--wh-gold)); color: var(--wh-emerald-950); border-color: transparent; }

/* ---------- List rows (slips queue etc.) ---------- */
.wh-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.wh-row {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .7rem .75rem;
    border-radius: var(--wh-radius-md);
    border: 1px solid var(--wh-line);
    background: #fff;
    transition: border-color .15s ease, background-color .15s ease;
}
.wh-row:hover { border-color: var(--wh-line-strong); background: var(--wh-subtle); }
.wh-row__main { flex: 1 1 auto; min-width: 0; }
.wh-row__title { font-size: .82rem; font-weight: 700; color: var(--wh-ink); }
.wh-row__meta { font-size: .72rem; color: var(--wh-muted); margin-top: .1rem; }
.wh-row__actions { display: flex; gap: .4rem; flex-shrink: 0; }
.wh-thumb {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 11px;
    flex-shrink: 0;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--wh-mint-soft);
    border: 1px solid var(--wh-mint-line);
    color: var(--wh-emerald-700);
    cursor: pointer;
    padding: 0;
}
.wh-thumb img { width: 100%; height: 100%; object-fit: cover; }
.wh-thumb svg { width: 1.2rem; height: 1.2rem; }

/* ---------- Empty state ---------- */
.wh-empty { text-align: center; padding: 1.75rem 1rem; border-radius: var(--wh-radius-md); border: 1px dashed var(--wh-line-strong); background: var(--wh-subtle); }
.wh-empty svg { width: 2rem; height: 2rem; color: var(--wh-emerald-600); margin: 0 auto .5rem; display: block; }
.wh-empty strong { display: block; font-size: .85rem; color: var(--wh-ink); }
.wh-empty span { display: block; font-size: .75rem; color: var(--wh-muted); margin-top: .2rem; }

/* ---------- Data table ---------- */
.wh-table-wrap { overflow-x: auto; }
.wh-table { width: 100%; border-collapse: collapse; font-size: .82rem; font-family: var(--wh-font); }
.wh-table th {
    text-align: start;
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--wh-muted);
    background: var(--wh-subtle);
    padding: .75rem 1.1rem;
    border-bottom: 1px solid var(--wh-line);
    white-space: nowrap;
}
[dir="rtl"] .wh-table th { letter-spacing: 0; text-transform: none; font-size: .76rem; }
.wh-table td { padding: .95rem 1.1rem; border-bottom: 1px solid var(--wh-line); color: var(--wh-ink-2); vertical-align: middle; }
.wh-table tbody tr:last-child td { border-bottom: 0; }
.wh-table tbody tr:hover td { background: #fafcfb; }
.wh-table .is-end { text-align: end; }
.wh-table .is-strong { font-weight: 800; color: var(--wh-ink); }
.wh-table .is-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .76rem; }
.wh-table tr.is-new td { background: #f2fbf6; }

/* ---------- Stepper / milestones ---------- */
.wh-steps { list-style: none; margin: 0; padding: .5rem 0 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); position: relative; overflow-x: auto; }
.wh-step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .45rem; min-width: 4.5rem; padding: 0 .2rem; }
.wh-step::before {
    content: "";
    position: absolute;
    top: 1rem;
    inset-inline-start: calc(-50% + 1.15rem);
    width: calc(100% - 2.3rem);
    height: 2px;
    background: var(--wh-line-strong);
}
.wh-step:first-child::before { display: none; }
.wh-step.is-done::before, .wh-step.is-current::before { background: var(--wh-emerald-600); }
.wh-step__dot {
    position: relative;
    z-index: 1;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 2px solid var(--wh-line-strong);
    color: var(--wh-faint);
    font-size: .72rem;
    font-weight: 800;
}
.wh-step__dot svg { width: .9rem; height: .9rem; }
.wh-step.is-done .wh-step__dot { background: var(--wh-emerald-700); border-color: var(--wh-emerald-700); color: #fff; }
.wh-step.is-current .wh-step__dot { background: #fff; border-color: var(--wh-emerald-600); color: var(--wh-emerald-700); box-shadow: 0 0 0 5px var(--wh-mint-soft); }
.wh-step__label { font-size: .7rem; font-weight: 600; color: var(--wh-muted); line-height: 1.3; }
.wh-step.is-done .wh-step__label, .wh-step.is-current .wh-step__label { color: var(--wh-ink); font-weight: 700; }

/* ---------- Alerts ---------- */
.wh-alert {
    display: flex;
    align-items: flex-start;
    gap: .8rem;
    padding: .95rem 1.1rem;
    border-radius: var(--wh-radius-md);
    border: 1px solid;
    font-family: var(--wh-font);
    font-size: .82rem;
}
.wh-alert svg { width: 1.15rem; height: 1.15rem; flex-shrink: 0; margin-top: .1rem; }
.wh-alert__body { flex: 1 1 auto; min-width: 0; }
.wh-alert__title { font-weight: 800; display: block; }
.wh-alert__text { display: block; margin-top: .2rem; opacity: .9; }
.wh-alert--rose { background: var(--wh-rose-soft); border-color: var(--wh-rose-line); color: #7f1734; }
.wh-alert--amber { background: var(--wh-amber-soft); border-color: var(--wh-amber-line); color: #6d4200; }
.wh-alert--mint { background: var(--wh-mint-soft); border-color: var(--wh-mint-line); color: var(--wh-emerald-900); }
.wh-alert--info { background: #fff; border-color: var(--wh-line); color: var(--wh-ink-2); box-shadow: var(--wh-shadow-sm); align-items: center; }

/* ---------- Forms ---------- */
.wh-field { display: flex; flex-direction: column; gap: .35rem; }
.wh-field__label { font-size: .76rem; font-weight: 700; color: var(--wh-ink-2); }
.wh-field__label em { color: var(--wh-rose); font-style: normal; }
.wh-input, .wh-select, .wh-textarea {
    width: 100%;
    font-family: var(--wh-font);
    font-size: .84rem;
    color: var(--wh-ink);
    background: #fff;
    border: 1px solid var(--wh-line-strong);
    border-radius: 11px;
    padding: .62rem .8rem;
    outline: none;
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.wh-select {
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236f7f78'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 0 1 1.06.02L10 11.17l3.71-3.94a.75.75 0 1 1 1.08 1.04l-4.25 4.5a.75.75 0 0 1-1.08 0l-4.25-4.5a.75.75 0 0 1 .02-1.06Z' clip-rule='evenodd'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-size: 1.1rem 1.1rem !important;
    background-position: right .7rem center !important;
    padding-inline-end: 2.3rem !important;
}
[dir="rtl"] .wh-select { background-position: left .7rem center !important; }
.wh-input:focus, .wh-select:focus, .wh-textarea:focus { border-color: var(--wh-emerald-600); box-shadow: 0 0 0 3px rgba(31, 165, 119, .16); }
.wh-input.is-invalid { border-color: var(--wh-rose); }
.wh-input[readonly] { background: var(--wh-subtle); color: var(--wh-ink-2); }
.wh-field__error { font-size: .72rem; color: var(--wh-rose); font-weight: 600; }
.wh-field__hint { font-size: .72rem; color: var(--wh-muted); }
.wh-form-grid { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .wh-form-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.wh-input-affix { position: relative; }
.wh-input-affix > span { position: absolute; inset-inline-end: .8rem; top: 50%; transform: translateY(-50%); font-size: .72rem; font-weight: 700; color: var(--wh-faint); }
.wh-dropzone {
    position: relative;
    border: 1.5px dashed var(--wh-line-strong);
    border-radius: var(--wh-radius-md);
    background: var(--wh-subtle);
    padding: 1.1rem;
    text-align: center;
    transition: border-color .15s ease, background-color .15s ease;
}
.wh-dropzone:hover, .wh-dropzone.is-dragging { border-color: var(--wh-emerald-600); background: var(--wh-mint-soft); }
.wh-dropzone input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.wh-dropzone svg { width: 1.8rem; height: 1.8rem; color: var(--wh-faint); margin: 0 auto .35rem; display: block; }

/* ---------- Modal ---------- */
.wh-modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(5, 22, 17, .55);
    backdrop-filter: blur(3px);
    font-family: var(--wh-font);
}
.wh-modal__panel {
    width: 100%;
    max-width: 32rem;
    max-height: 92vh;
    overflow-y: auto;
    background: #fff;
    border-radius: var(--wh-radius-xl);
    box-shadow: 0 30px 70px -20px rgba(3, 30, 22, .45);
    border: 1px solid var(--wh-line);
    color: var(--wh-ink);
}
.wh-modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.4rem 1rem; border-bottom: 1px solid var(--wh-line); }
.wh-modal__title { font-size: 1.05rem; font-weight: 800; margin: 0; letter-spacing: -.01em; }
.wh-modal__sub { font-size: .78rem; color: var(--wh-muted); margin: .2rem 0 0; }
.wh-modal__body { padding: 1.2rem 1.4rem; }
.wh-modal__foot { display: flex; justify-content: flex-end; gap: .6rem; padding: 1rem 1.4rem 1.25rem; border-top: 1px solid var(--wh-line); background: var(--wh-subtle); border-radius: 0 0 var(--wh-radius-xl) var(--wh-radius-xl); flex-wrap: wrap; }
.wh-proof { border-radius: var(--wh-radius-md); background: #eef2f0; border: 1px solid var(--wh-line); min-height: 11rem; max-height: 20rem; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: .5rem; }
.wh-proof img { max-height: 19rem; max-width: 100%; object-fit: contain; border-radius: 8px; }

/* ---------- Toast ---------- */
.wh-toast {
    position: fixed;
    bottom: 1.25rem;
    inset-inline-end: 1.25rem;
    z-index: 70;
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .85rem 1.1rem;
    border-radius: 14px;
    background: var(--wh-emerald-950);
    color: #e9f6f0;
    font-family: var(--wh-font);
    font-size: .82rem;
    box-shadow: 0 20px 40px -18px rgba(3, 30, 22, .6);
    transform: translateY(1.5rem);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s ease, opacity .25s ease;
    max-width: calc(100vw - 2.5rem);
}
.wh-toast.is-visible { transform: translateY(0); opacity: 1; pointer-events: auto; }
.wh-toast__icon { width: 1.6rem; height: 1.6rem; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: rgba(94, 227, 174, .2); color: var(--wh-mint); font-weight: 800; flex-shrink: 0; }
.wh-toast.is-error .wh-toast__icon { background: rgba(255, 120, 150, .2); color: #ff9db3; }

/* ---------- Page header (used inside portal + admin dashboard) ---------- */
.wh-page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.wh-page-head h1 { font-size: 1.65rem; font-weight: 800; letter-spacing: -.025em; margin: 0; color: var(--wh-ink); }
.wh-page-head p { margin: .25rem 0 0; font-size: .82rem; color: var(--wh-muted); }

/* ---------- Spinner ---------- */
.wh-spin { width: 1rem; height: 1rem; border-radius: 999px; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: wh-spin .7s linear infinite; display: inline-block; }
@keyframes wh-spin { to { transform: rotate(360deg); } }

/* ---------- Single orchestrated load moment: KPI row rises in ---------- */
@media (prefers-reduced-motion: no-preference) {
    .wh-rise > * { animation: wh-rise .55s cubic-bezier(.2, .7, .2, 1) both; }
    .wh-rise > *:nth-child(2) { animation-delay: .06s; }
    .wh-rise > *:nth-child(3) { animation-delay: .12s; }
    .wh-rise > *:nth-child(4) { animation-delay: .18s; }
}
@keyframes wh-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
    .wh-ring__bar, .wh-toast { transition: none; }
}

/* ---------- Print: receipts ---------- */
@media print {
    .wh-no-print { display: none !important; }
}

[hidden] { display: none !important; }

/* ---------- Prayer times pill + panel ---------- */
.wh-prayer-wrap { position: relative; display: inline-flex; }
button.wh-prayer { cursor: pointer; font-family: inherit; }
button.wh-prayer:hover { background: #dcf3e8; }
.wh-prayer__caret { width: .8rem !important; height: .8rem !important; opacity: .6; }
.wh-prayer-panel {
    position: absolute;
    top: calc(100% + .5rem);
    inset-inline-end: 0;
    z-index: 80;
    width: 17.5rem;
    background: #fff;
    border: 1px solid var(--wh-line);
    border-radius: var(--wh-radius-lg);
    box-shadow: 0 24px 50px -24px rgba(3, 30, 22, .45);
    overflow: hidden;
    font-family: var(--wh-font);
}
.wh-prayer-panel__head {
    padding: .95rem 1.1rem .85rem;
    background: linear-gradient(150deg, var(--wh-emerald-800), var(--wh-emerald-950));
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: .15rem;
}
.wh-prayer-panel__hijri { font-size: .95rem; font-weight: 800; color: var(--wh-gold); }
.wh-prayer-panel__date { font-size: .74rem; color: #cfe7dc; }
.wh-prayer-panel ul { list-style: none; margin: 0; padding: .45rem; }
.wh-prayer-panel li { display: flex; align-items: center; justify-content: space-between; padding: .55rem .7rem; border-radius: 10px; font-size: .84rem; color: var(--wh-ink-2); }
.wh-prayer-panel li strong { font-weight: 800; color: var(--wh-ink); font-variant-numeric: tabular-nums; }
.wh-prayer-panel li.is-sunrise { color: var(--wh-faint); font-size: .78rem; }
.wh-prayer-panel li.is-sunrise strong { color: var(--wh-faint); font-weight: 600; }
.wh-prayer-panel li.is-past { opacity: .55; }
.wh-prayer-panel li.is-next { background: var(--wh-mint-soft); color: var(--wh-emerald-900); font-weight: 800; opacity: 1; box-shadow: inset 3px 0 0 var(--wh-emerald-600); }
html[dir="rtl"] .wh-prayer-panel li.is-next { box-shadow: inset -3px 0 0 var(--wh-emerald-600); }
.wh-prayer-panel li.is-next strong { color: var(--wh-emerald-800); }
.wh-prayer-panel__foot { display: flex; justify-content: space-between; gap: .5rem; padding: .65rem 1.1rem; border-top: 1px solid var(--wh-line); font-size: .7rem; color: var(--wh-muted); background: var(--wh-subtle); }

/* ==========================================================================
   Brand theme presets — <html data-wh-theme="…">  (Admin → Website Settings → Appearance)
   Every component reads the --wh-emerald-* / --wh-mint* tokens, so swapping them
   re-skins the admin panel, member portal and auth pages together.
   ========================================================================== */
html[data-wh-theme="midnight"] {
    --wh-emerald-950: #07142b; --wh-emerald-900: #0b1f3a; --wh-emerald-800: #13305a; --wh-emerald-700: #1b4176;
    --wh-emerald-600: #24549a; --wh-emerald-500: #2f6bc4;
    --wh-mint: #8ec5ff; --wh-mint-soft: #eaf2fd; --wh-mint-line: #c9dcf7;
    --wh-canvas: #f3f5f9; --wh-subtle: #f7f9fc; --wh-line: #e3e8f0; --wh-line-strong: #d0d8e5;
    --wh-ink: #0d1726; --wh-ink-2: #34405a; --wh-muted: #6b7690;
}
html[data-wh-theme="kiswa"] {
    --wh-emerald-950: #0b0b0c; --wh-emerald-900: #17171a; --wh-emerald-800: #26262b; --wh-emerald-700: #3a3a42;
    --wh-emerald-600: #55555f; --wh-emerald-500: #70707c;
    --wh-mint: #e9bc3f; --wh-mint-soft: #f7f3e6; --wh-mint-line: #eadfb8;
    --wh-canvas: #f5f4f1; --wh-subtle: #faf9f6; --wh-line: #e8e5dd; --wh-line-strong: #d8d3c6;
    --wh-ink: #141416; --wh-ink-2: #3b3b42; --wh-muted: #75736d;
}
html[data-wh-theme="maroon"] {
    --wh-emerald-950: #2a0a12; --wh-emerald-900: #43111f; --wh-emerald-800: #5c1a2c; --wh-emerald-700: #7a2439;
    --wh-emerald-600: #973047; --wh-emerald-500: #b5435a;
    --wh-mint: #f4c27a; --wh-mint-soft: #fbeef1; --wh-mint-line: #f1cbd4;
    --wh-canvas: #f7f3f1; --wh-subtle: #fbf8f7; --wh-line: #ece3e0; --wh-line-strong: #dfd1cc;
    --wh-ink: #22121a; --wh-ink-2: #4a3039; --wh-muted: #806a70;
}
/* hover tints that were hard-coded emerald */
html[data-wh-theme]:not([data-wh-theme="emerald"]) button.wh-prayer:hover,
html[data-wh-theme]:not([data-wh-theme="emerald"]) .wh-btn--soft:hover { background: var(--wh-mint-line); }

/* ==========================================================================
   Professional receipt (cash-book style) — used in admin + member modals and print
   ========================================================================== */
.wh-rcpt {
    position: relative;
    background:
        repeating-linear-gradient(0deg, transparent, transparent 31px, rgba(6, 59, 44, .025) 31px, rgba(6, 59, 44, .025) 32px),
        #fffefb;
    border: 1px solid var(--wh-line-strong);
    border-radius: 14px;
    padding: 0 1.5rem 1.1rem;
    color: var(--wh-ink);
    font-family: var(--wh-font);
    box-shadow: 0 18px 40px -26px rgba(3, 30, 22, .5);
    overflow: hidden;
}
.wh-rcpt__edge { height: 10px; margin: 0 -1.5rem 1.1rem; background: radial-gradient(circle at 6px -1px, transparent 6px, var(--wh-emerald-900) 6.5px) repeat-x; background-size: 12px 10px; }
.wh-rcpt__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding-bottom: 1rem; border-bottom: 2px solid var(--wh-emerald-900); }
.wh-rcpt__brand { display: flex; align-items: center; gap: .75rem; }
.wh-rcpt__mark { width: 2.8rem; height: 2.8rem; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--wh-emerald-900); color: var(--wh-gold); flex-shrink: 0; }
.wh-rcpt__mark svg { width: 1.5rem; height: 1.5rem; }
.wh-rcpt__brand strong { display: block; font-size: 1.1rem; font-weight: 800; letter-spacing: -.01em; color: var(--wh-emerald-900); }
.wh-rcpt__brand span { display: block; font-size: .7rem; color: var(--wh-muted); }
.wh-rcpt__no { text-align: end; display: flex; flex-direction: column; gap: .1rem; }
.wh-rcpt__no span { font-size: .64rem; font-weight: 800; letter-spacing: .16em; color: var(--wh-gold-deep); }
.wh-rcpt__no strong { font-size: .98rem; font-weight: 800; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.wh-rcpt__no em { font-style: normal; font-size: .7rem; color: var(--wh-muted); }

.wh-rcpt__body { padding: 1rem 0 .5rem; }
.wh-rcpt__line { display: flex; align-items: baseline; gap: .6rem; margin: 0 0 .55rem; font-size: .82rem; }
.wh-rcpt__line > span { flex-shrink: 0; color: var(--wh-muted); font-style: italic; }
.wh-rcpt__line > b { flex: 1; min-width: 0; font-weight: 800; padding-bottom: .15rem; border-bottom: 1px dotted var(--wh-line-strong); }
.wh-rcpt__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; margin: 1rem 0; }
.wh-rcpt__grid > div { padding: .55rem .7rem; border-radius: 10px; background: var(--wh-subtle); border: 1px solid var(--wh-line); min-width: 0; }
.wh-rcpt__grid span { display: block; font-size: .62rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--wh-faint); }
.wh-rcpt__grid b { display: block; font-size: .8rem; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: .1rem; }
.wh-rcpt__money { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .9rem; align-items: stretch; }
.wh-rcpt__amount { border: 2px solid var(--wh-gold); border-radius: 12px; padding: .8rem 1rem; background: var(--wh-gold-soft); display: flex; flex-direction: column; justify-content: center; }
.wh-rcpt__amount span { font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--wh-gold-deep); }
.wh-rcpt__amount strong { font-size: 1.7rem; font-weight: 800; color: var(--wh-emerald-900); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.wh-rcpt__balances { margin: 0; border: 1px solid var(--wh-line); border-radius: 12px; padding: .5rem .85rem; background: #fff; }
.wh-rcpt__balances > div { display: flex; justify-content: space-between; font-size: .78rem; padding: .25rem 0; }
.wh-rcpt__balances dt { color: var(--wh-muted); }
.wh-rcpt__balances dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.wh-rcpt__balances .is-total { border-top: 1px solid var(--wh-line); margin-top: .2rem; padding-top: .4rem; }
.wh-rcpt__balances .is-total dd { color: var(--wh-amber); font-weight: 800; }

.wh-rcpt__foot { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 1rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--wh-line-strong); }
.wh-rcpt__qr { display: flex; align-items: center; gap: .65rem; }
.wh-rcpt__qr-img { width: 4.6rem; height: 4.6rem; padding: .2rem; background: #fff; border: 1px solid var(--wh-line); border-radius: 8px; }
.wh-rcpt__qr-img svg { width: 100%; height: 100%; display: block; }
.wh-rcpt__qr span { display: block; font-size: .64rem; color: var(--wh-muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.wh-rcpt__qr b { font-family: ui-monospace, monospace; font-size: .78rem; }
.wh-rcpt__stamp {
    justify-self: center;
    width: 5.6rem;
    height: 5.6rem;
    border-radius: 999px;
    border: 3px double rgba(15, 100, 73, .55);
    color: rgba(15, 100, 73, .7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: rotate(-14deg);
}
.wh-rcpt__stamp span { font-size: 1.15rem; font-weight: 800; letter-spacing: .18em; }
.wh-rcpt__stamp small { font-size: .62rem; font-weight: 700; }
.wh-rcpt__sign { display: flex; flex-direction: column; align-items: center; gap: .2rem; min-width: 9rem; font-size: .66rem; color: var(--wh-muted); }
.wh-rcpt__sign-name { font-family: 'Brush Script MT', 'Segoe Script', cursive; font-size: 1.15rem; color: var(--wh-emerald-900); }
.wh-rcpt__sign-line { width: 100%; height: 1px; background: var(--wh-ink-2); }
.wh-rcpt__note { margin: .9rem 0 0; text-align: center; font-size: .64rem; color: var(--wh-faint); }
@media (max-width: 639px) {
    .wh-rcpt { padding-inline: 1rem; }
    .wh-rcpt__edge { margin-inline: -1rem; }
    .wh-rcpt__head { flex-direction: column; }
    .wh-rcpt__no { text-align: start; }
    .wh-rcpt__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wh-rcpt__money { grid-template-columns: 1fr; }
    .wh-rcpt__foot { grid-template-columns: 1fr 1fr; }
    .wh-rcpt__stamp { display: none; }
}

/* Print only the receipt */
@media print {
    body.wh-printing * { visibility: hidden !important; }
    body.wh-printing .wh-rcpt, body.wh-printing .wh-rcpt * { visibility: visible !important; }
    body.wh-printing .wh-rcpt { position: absolute; inset: 0 auto auto 0; width: 100%; box-shadow: none; border: 0; }
}

/* ==========================================================================
   Tables → cards (round 4)
   wh-cards.js adds .wh-cards to any table that would otherwise scroll sideways
   and copies each column header into data-label, so every row becomes a card.
   ========================================================================== */
.wh-cards .fi-ta-table, .wh-cards.wh-table, table.wh-cards { display: block; width: 100%; min-width: 0 !important; }
.wh-cards .fi-ta-table > thead, .wh-cards.wh-table > thead, table.wh-cards > thead { display: none; }
.wh-cards .fi-ta-table > tbody, .wh-cards.wh-table > tbody, table.wh-cards > tbody {
    display: grid;
    gap: .75rem;
    padding: .75rem;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
    border: 0 !important;
}
.wh-cards .fi-ta-table > tbody > tr, .wh-cards.wh-table > tbody > tr, table.wh-cards > tbody > tr {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--wh-line);
    border-radius: var(--wh-radius-md);
    box-shadow: var(--wh-shadow-sm);
    padding: .35rem 0;
    min-width: 0;
}
.wh-cards .fi-ta-table > tbody > tr > td, .wh-cards.wh-table > tbody > tr > td, table.wh-cards > tbody > tr > td {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .45rem .95rem !important;
    border: 0 !important;
    min-width: 0;
    width: auto !important;
    text-align: end;
}
.wh-cards td[data-label]::before {
    content: attr(data-label);
    flex-shrink: 0;
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--wh-faint);
    text-align: start;
}
html[dir="rtl"] .wh-cards td[data-label]::before { letter-spacing: 0; text-transform: none; font-size: .74rem; }
.wh-cards td.wh-card-title { order: -2; justify-content: flex-start; text-align: start; padding-top: .7rem !important; border-bottom: 1px solid var(--wh-line) !important; margin-bottom: .2rem; }
.wh-cards td.wh-card-title::before { display: none; }
.wh-cards td.wh-card-actions { order: 99; justify-content: flex-end; border-top: 1px solid var(--wh-line) !important; margin-top: .25rem; padding-top: .6rem !important; }
.wh-cards td.wh-card-actions::before { display: none; }
.wh-cards td.wh-card-select { order: -3; padding-bottom: 0 !important; justify-content: flex-start; }
.wh-cards td.wh-card-select::before { display: none; }
.wh-cards td:empty { display: none !important; }
.wh-cards td > * { min-width: 0; }
.wh-cards .fi-ta-col-wrp, .wh-cards .fi-ta-text { justify-content: flex-end; }
.wh-cards td.wh-card-title .fi-ta-col-wrp, .wh-cards td.wh-card-title .fi-ta-text { justify-content: flex-start; }
.wh-cards .fi-ta-actions { flex-wrap: wrap; justify-content: flex-end; }
.wh-cards .fi-ta-content { overflow-x: visible !important; }
/* tighten Filament cell wrappers inside cards */
.wh-cards .fi-ta-cell > *, .wh-cards .fi-ta-col-wrp, .wh-cards .fi-ta-text, .wh-cards .fi-ta-icon,
.wh-cards .fi-ta-cell .px-3, .wh-cards .fi-ta-cell .py-4, .wh-cards .fi-ta-selection-cell > * { padding: 0 !important; }
.wh-cards .fi-ta-cell { height: auto !important; }
.wh-cards td.wh-card-select { position: absolute; inset-inline-end: .85rem; top: .8rem; padding: 0 !important; }
.wh-cards .fi-ta-table > tbody > tr, .wh-cards.wh-table > tbody > tr, table.wh-cards > tbody > tr { position: relative; }
.wh-cards td.wh-card-title { padding-inline-end: 2.6rem !important; }
.wh-cards .fi-ta-row:hover { background: #fff !important; }

/* ==========================================================================
   Tailwind v4 emerald/green palette follows the brand theme (member portal,
   public website, login, verification pages — anything using emerald-* utilities)
   ========================================================================== */
html[data-wh-theme="midnight"] {
    --color-emerald-800: #13305a; --color-emerald-900: #0b1f3a; --color-emerald-950: #07142b;
    --color-green-800: #13305a; --color-green-900: #0b1f3a; --color-green-950: #07142b;
    --color-teal-800: #13305a; --color-teal-900: #0b1f3a; --color-teal-950: #07142b;
}
html[data-wh-theme="kiswa"] {
    --color-emerald-800: #26262b; --color-emerald-900: #17171a; --color-emerald-950: #0b0b0c;
    --color-green-800: #26262b; --color-green-900: #17171a; --color-green-950: #0b0b0c;
    --color-teal-800: #26262b; --color-teal-900: #17171a; --color-teal-950: #0b0b0c;
}
html[data-wh-theme="maroon"] {
    --color-emerald-800: #5c1a2c; --color-emerald-900: #43111f; --color-emerald-950: #2a0a12;
    --color-green-800: #5c1a2c; --color-green-900: #43111f; --color-green-950: #2a0a12;
    --color-teal-800: #5c1a2c; --color-teal-900: #43111f; --color-teal-950: #2a0a12;
}

/* Success / "paid" states stay green in every theme (status colours must not change meaning). */
html[data-wh-theme]:not([data-wh-theme="emerald"]) .wh-chip--mint { background: #e7f7ef; color: #0f6449; border-color: #bfe9d5; }
html[data-wh-theme]:not([data-wh-theme="emerald"]) .wh-alert--mint { background: #e7f7ef; border-color: #bfe9d5; color: #063b2c; }
html[data-wh-theme]:not([data-wh-theme="emerald"]) .wh-value--emerald { color: #0f6449; }

/* Brand logo image (replaces the icon marks) */
img.wh-logo-img { display: block; flex-shrink: 0; object-fit: contain; border-radius: 999px; background: #fff; padding: 2px; box-shadow: 0 6px 16px -10px rgba(3, 30, 22, .6), 0 0 0 1px rgba(233, 188, 63, .45); }
img.wh-brand__mark, img.wh-side__mark, img.wh-auth__mark, img.wh-rcpt__mark { width: 3rem !important; height: 3rem !important; border-radius: 999px !important; background: #fff !important; padding: 2px; }
img.wh-rcpt__mark { width: 3.6rem !important; height: 3.6rem !important; }
.wh-rcpt__stamp.is-void { border-color: rgba(207, 47, 85, .6); color: rgba(207, 47, 85, .8); }


/* Urdu typeface: Noto Naskh Arabic (clear, modern Naskh — easier to read on phones than Nastaliq) */
:root { --wh-font-urdu: 'Noto Naskh Arabic', 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', system-ui, sans-serif; }
html[lang="ur"] body, html[dir="rtl"] body, html[lang="ur"] .fi-body { font-family: var(--wh-font-urdu) !important; }
html[lang="ur"] :is(h1, h2, h3, h4, b, strong, .fi-header-heading) { font-family: var(--wh-font-urdu) !important; letter-spacing: 0 !important; }
html[lang="ur"] body { line-height: 1.75; }
.wh-urdu, [lang="ur"] { font-family: var(--wh-font-urdu); }

/* Sticky headers — always visible while scrolling (public, member, admin) */
.wh-header, .fi-topbar, body > header { position: -webkit-sticky !important; position: sticky !important; top: 0 !important; z-index: 40; }
body > header { z-index: 50; }
.fi-topbar { z-index: 30; }

/* Receipt → image: html2canvas clips text that uses overflow/ellipsis; relax it while capturing */
.wh-rcpt.is-capturing { box-shadow: none !important; }
.wh-rcpt.is-capturing * { overflow: visible !important; text-overflow: clip !important; }
.wh-rcpt.is-capturing .wh-rcpt__grid b { white-space: normal !important; line-height: 1.5 !important; padding-bottom: .1rem; }
.wh-rcpt.is-capturing .wh-rcpt__amount strong { line-height: 1.35 !important; padding-bottom: .15rem; }
.wh-rcpt.is-capturing .wh-rcpt__grid > div { padding-bottom: .7rem !important; }

/* ==========================================================================
   Urdu typeface — Jameel Noori Nastaleeq (client choice).
   1. Uses the font if it is installed on the visitor's device.
   2. Uses /fonts/JameelNooriNastaleeq.woff2 (or .ttf) when the file is uploaded to public/fonts/.
   3. Falls back to Noto Nastaliq Urdu (Google Fonts) — the closest web Nastaleeq.
   ========================================================================== */
@font-face {
    font-family: 'Jameel Noori Nastaleeq';
    src: local('Jameel Noori Nastaleeq'), local('JameelNooriNastaleeq'), local('Jameel Noori Nastaleeq Regular'),
         url('/fonts/JameelNooriNastaleeq.woff2') format('woff2'), url('/fonts/JameelNooriNastaleeq.ttf') format('truetype');
    font-display: swap;
    /* only Arabic-script letters: English names, digits and "PKR" fall through to the site font instead of Jameel's serif Latin */
    unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F, U+061F, U+06D4;
}
:root { --wh-font-urdu: 'Jameel Noori Nastaleeq', 'Plus Jakarta Sans', 'Noto Nastaliq Urdu', 'Noto Naskh Arabic', sans-serif; }
html[lang="ur"] body { line-height: 2.05; }
html[lang="ur"] :is(h1, h2, h3, h4) { line-height: 2 !important; }
.wh-urdu { font-family: var(--wh-font-urdu) !important; letter-spacing: 0 !important; }

/* ==========================================================================
   URDU READABILITY — Nastaleeq fonts have only one weight and join letters, so:
   • no letter-spacing / uppercase (it breaks the joins and makes the text look "cut")
   • no synthetic bold (it smears the strokes) — emphasis comes from a light text-stroke instead
   • larger base size and taller lines (Nastaleeq is small and has tall ascenders / deep descenders)
   Numbers and English words keep their normal font.
   ========================================================================== */
html[lang="ur"] { font-size: 122%; }
html[lang="ur"] *, html[lang="ur"] *::before, html[lang="ur"] *::after { letter-spacing: 0 !important; text-transform: none !important; font-synthesis: none !important; }
html[lang="ur"] body, html[lang="ur"] button, html[lang="ur"] input, html[lang="ur"] select, html[lang="ur"] textarea, html[lang="ur"] table, html[lang="ur"] .fi-body {
    font-family: var(--wh-font-urdu) !important; line-height: 2 !important;
}
html[lang="ur"] *:not(.wh-num):not(.wh-ltr):not(code):not(svg):not(svg *) { font-weight: 400 !important; }
html[lang="ur"] :is(h1, h2, h3, h4, h5, strong, b, th, .fi-header-heading, .fi-ta-header-cell-label, .wh-card__title, .wh-md-card__title, .wh-btn, .fi-btn, .fi-sidebar-item-label, .fi-sidebar-group-label) {
    -webkit-text-stroke: .45px currentColor; paint-order: stroke fill;
}
html[lang="ur"] :is(h1, h2, h3, h4) { line-height: 1.9 !important; }
html[lang="ur"] :is(.wh-btn, .fi-btn, .wh-chip, .fi-badge, button, .wh-alert__title) { line-height: 1.85 !important; padding-block: .3em; }
html[lang="ur"] .wh-num, html[lang="ur"] .wh-ltr, html[lang="ur"] .fi-ta-text-item-label:has(> .wh-num) { font-family: var(--wh-font) !important; font-weight: 700 !important; -webkit-text-stroke: 0; line-height: 1.4 !important; }
html[lang="ur"] input::placeholder, html[lang="ur"] textarea::placeholder { font-family: var(--wh-font-urdu) !important; }
html[lang="ur"] .fi-sidebar-item-label, html[lang="ur"] .fi-sidebar-group-label { font-size: 1.02rem; }
html[lang="ur"] .fi-ta-cell, html[lang="ur"] .fi-ta-header-cell { line-height: 2 !important; }
@media (max-width: 480px) { html[lang="ur"] { font-size: 106.25%; } }

/* ==========================================================================
   PREMIUM CARDS — one look for admin, member portal and website.
   Everything is built from the selected theme's tokens + the gold accent, so a navy theme gets navy cards,
   a maroon theme gets maroon cards (never a green/blue mix).
   ========================================================================== */
:root {
    --wh-card-edge: color-mix(in srgb, var(--wh-emerald-600) 16%, #ffffff);
    --wh-card-tint: color-mix(in srgb, var(--wh-emerald-500) 7%, #ffffff);
    --wh-gold-tint: color-mix(in srgb, var(--wh-gold) 16%, #ffffff);
    --wh-gold-edge: color-mix(in srgb, var(--wh-gold) 38%, #ffffff);
    --wh-rose-tint: color-mix(in srgb, #e11d48 8%, #ffffff);
    --wh-premium-shadow: 0 1px 2px rgba(10, 24, 20, .05), 0 18px 34px -22px color-mix(in srgb, var(--wh-emerald-900) 45%, transparent);
    --wh-stripe: linear-gradient(90deg, var(--wh-emerald-600), var(--wh-gold));
}
.wh-card, .wh-md-card, .wh-regm, .wh-rlist__item, .wh-vcard, .wh-ref-video__thumb + b { }
.wh-card, .wh-md-card {
    background:
        var(--wh-stripe) top left / 100% 3px no-repeat,
        linear-gradient(165deg, #ffffff 0%, var(--wh-card-tint) 100%);
    border: 1px solid var(--wh-card-edge);
    box-shadow: var(--wh-premium-shadow);
}
.wh-md-card, .wh-ccard, a.wh-akpi__card { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.wh-md-card:hover, .wh-ccard:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(10, 24, 20, .06), 0 26px 44px -24px color-mix(in srgb, var(--wh-emerald-900) 55%, transparent); }
.wh-card.wh-empty, .wh-modal .wh-card { background: #fff; }
.wh-card__title, .wh-md-card__title { color: var(--wh-emerald-900); }

/* Admin KPI cards */
.wh-akpi__card {
    position: relative; overflow: hidden;
    background: var(--wh-stripe) top left / 100% 3px no-repeat, linear-gradient(150deg, #ffffff 0%, var(--wh-card-tint) 100%);
    border: 1px solid var(--wh-card-edge); box-shadow: var(--wh-premium-shadow);
}
.wh-akpi__value { color: var(--wh-emerald-900); }
.wh-akpi__icon {
    background: linear-gradient(145deg, var(--wh-emerald-600), var(--wh-emerald-900)); color: #fff;
    box-shadow: 0 10px 18px -10px color-mix(in srgb, var(--wh-emerald-900) 80%, transparent);
}
/* 3rd card = hero card (dark + gold number) */
.wh-akpi__card:nth-child(3) { background: linear-gradient(150deg, var(--wh-emerald-800), var(--wh-emerald-950)); border-color: var(--wh-emerald-900); }
.wh-akpi__card:nth-child(3) .wh-akpi__label, .wh-akpi__card:nth-child(3) small { color: rgba(255, 255, 255, .72); }
.wh-akpi__card:nth-child(3) .wh-akpi__value { color: var(--wh-gold); }
.wh-akpi__card:nth-child(3) .wh-akpi__icon { background: linear-gradient(145deg, #f6dc8a, var(--wh-gold)); color: var(--wh-emerald-950); }
/* 4th card = gold */
.wh-akpi__card:nth-child(4) { background: var(--wh-stripe) top left / 100% 3px no-repeat, linear-gradient(150deg, #ffffff, var(--wh-gold-tint)); border-color: var(--wh-gold-edge); }
.wh-akpi__card:nth-child(4) .wh-akpi__value { color: var(--wh-gold-deep, #8a6a12); }
.wh-akpi__card:nth-child(4) .wh-akpi__icon { background: linear-gradient(145deg, #f6dc8a, var(--wh-gold)); color: var(--wh-emerald-950); }
/* pending = warm red */
.wh-akpi__card.is-red { background: linear-gradient(90deg, #e11d48, #f59e0b) top left / 100% 3px no-repeat, linear-gradient(150deg, #ffffff, var(--wh-rose-tint)); border-color: color-mix(in srgb, #e11d48 22%, #ffffff); }
.wh-akpi__card.is-red .wh-akpi__value { color: #be123c; }
.wh-akpi__card.is-red .wh-akpi__icon { background: linear-gradient(145deg, #f43f5e, #be123c); color: #fff; }
a.wh-akpi__card:hover { border-color: var(--wh-gold); }

/* Member dashboard accents */
.wh-md-row--3 > .wh-md-card:nth-child(2) { background: var(--wh-stripe) top left / 100% 3px no-repeat, linear-gradient(160deg, #ffffff, var(--wh-gold-tint)); border-color: var(--wh-gold-edge); }
.wh-md-row--2 > .wh-md-card:first-child { background: var(--wh-stripe) top left / 100% 3px no-repeat, linear-gradient(160deg, #ffffff, var(--wh-gold-tint)); border-color: var(--wh-gold-edge); }
.wh-md-status { background: linear-gradient(160deg, var(--wh-emerald-800), var(--wh-emerald-950)) !important; border-color: var(--wh-emerald-900) !important; }
.wh-md-status .wh-md-card__title { color: rgba(255, 255, 255, .8); }
.wh-md-status b { color: var(--wh-gold) !important; }
.wh-md-status p { color: rgba(255, 255, 255, .72); }
.wh-md-status__icon { background: color-mix(in srgb, var(--wh-gold) 22%, transparent); color: var(--wh-gold); box-shadow: 0 0 0 6px color-mix(in srgb, var(--wh-gold) 10%, transparent); }
.wh-md-status:has(b.is-bad) { background: linear-gradient(160deg, #9f1239, #4c0519) !important; border-color: #881337 !important; }
.wh-md-status:has(b.is-bad) b { color: #fecdd3 !important; }
.wh-md-status:has(b.is-bad) .wh-md-status__icon { background: rgba(255, 255, 255, .14); color: #fecdd3; box-shadow: 0 0 0 6px rgba(255, 255, 255, .06); }
.wh-md-ring .fg { stroke: var(--wh-emerald-700); }

/* Member committee cards: theme colours only */
.wh-ccard { border-top: 4px solid var(--c1); }
.wh-ccard--navy { --c1: var(--wh-emerald-600); --c2: var(--wh-emerald-900); --cs: var(--wh-card-tint); }
.wh-ccard--violet { --c1: var(--wh-gold-deep, #b8860b); --c2: #7a5a12; --cs: var(--wh-gold-tint); }
.wh-ccard--amber { --c1: #b86e00; --c2: #8a5200; --cs: var(--wh-gold-tint); }

/* Website cards */
.wh-hw-fact, .wh-pub-card { background: var(--wh-stripe) top left / 100% 3px no-repeat, linear-gradient(165deg, #ffffff, var(--wh-card-tint)); border: 1px solid var(--wh-card-edge); box-shadow: var(--wh-premium-shadow); }
.wh-hw-fact.is-gold { background: var(--wh-stripe) top left / 100% 3px no-repeat, linear-gradient(165deg, #ffffff, var(--wh-gold-tint)); border-color: var(--wh-gold-edge); }
.wh-regm, .wh-rlist__item, .wh-mlist__item { background: linear-gradient(165deg, #ffffff, var(--wh-card-tint)); border-color: var(--wh-card-edge); box-shadow: var(--wh-premium-shadow); }
.wh-rlist__item.is-reversed { background: linear-gradient(165deg, #ffffff, var(--wh-rose-tint)); }
.wh-regd__stats > div.is-paid, .wh-regd__stats > div.is-late { }

/* "sky" (blue) chips follow the theme too, so a green or maroon theme never shows a stray blue label */
.wh-chip--sky { background: var(--wh-mint-soft) !important; color: var(--wh-emerald-700) !important; border-color: var(--wh-mint-line) !important; }
.wh-chip--sky::before, .wh-chip--sky .wh-dot { background: var(--wh-emerald-600) !important; }

/* Latin letters and digits inside Urdu pages: sans-serif, never the serif fallback */
html[lang="ur"] body { font-family: var(--wh-font-urdu) !important; }


/* ==========================================================================
   DESKTOP COMFORT — big screens get a bigger, calmer UI (everything is rem-based, so it all scales together)
   ========================================================================== */
@media (min-width: 1600px) { html:not([lang="ur"]) { font-size: 106.25%; } html[lang="ur"] { font-size: 118%; } }
@media (min-width: 1900px) { html:not([lang="ur"]) { font-size: 112.5%; } html[lang="ur"] { font-size: 125%; } }


/* App top bars (member portal + admin): soft tint and a gold hairline instead of flat white */
.wh-header, .fi-topbar { background: linear-gradient(180deg, #ffffff 0%, color-mix(in srgb, var(--wh-emerald-500) 6%, #ffffff) 100%) !important; position: sticky; }
.wh-header::after, .fi-topbar::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--wh-gold), transparent); opacity: .65; pointer-events: none; }
.fi-topbar { position: sticky; }


/* Back button (every page except the home / dashboard) */
.wh-backbar { margin: 0 0 .9rem; }
.wh-backbar[hidden] { display: none; }
.wh-back { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem 1rem .45rem .8rem; border-radius: 999px; background: #fff; border: 1px solid var(--wh-card-edge, #dfe7e3); color: var(--wh-emerald-800); font-weight: 700; font-size: .84rem; text-decoration: none; box-shadow: 0 6px 16px -12px rgba(10, 24, 20, .45); transition: transform .15s ease, border-color .15s ease, background .15s ease; }
.wh-back:hover { border-color: var(--wh-gold); background: color-mix(in srgb, var(--wh-gold) 12%, #fff); transform: translateX(-2px); }
html[dir="rtl"] .wh-back:hover { transform: translateX(2px); }
.wh-back svg { width: 1rem; height: 1rem; }
.wh-pub-wrap-back { max-width: 80rem; margin: 0 auto; padding: 1rem 1.25rem 0; }
.fi-page .wh-backbar { margin-bottom: 1rem; }

/* ---- journey strip (member 360 + member dashboard) ---- */
.wh-strip__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(3.05rem, 1fr)); gap: .4rem; }
.wh-strip__grid li { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .05rem; padding: .35rem 0 .3rem; border-radius: 12px; background: #eef1ef; color: var(--wh-faint); border: 1px solid var(--wh-card-edge); }
.wh-strip__grid li b { font-size: .95rem; line-height: 1.2; }
.wh-strip__grid li small { font-size: .62rem; line-height: 1.2; opacity: .85; }
.wh-strip__grid li.is-paid { background: linear-gradient(160deg, var(--wh-emerald-600), var(--wh-emerald-800)); color: #fff; border-color: transparent; }
.wh-strip__grid li.is-partial { background: linear-gradient(160deg, #fff, color-mix(in srgb, var(--wh-gold) 30%, #fff)); color: var(--wh-gold-deep); border-color: var(--wh-gold-edge); }
.wh-strip__grid li.is-late { background: linear-gradient(160deg, #f43f5e, #be123c); color: #fff; border-color: transparent; }
.wh-strip__grid li.is-due { background: linear-gradient(160deg, #f6dc8a, var(--wh-gold)); color: var(--wh-emerald-950); border-color: transparent; box-shadow: 0 0 0 2px color-mix(in srgb, var(--wh-gold) 35%, transparent); }
.wh-strip__legend { display: flex; flex-wrap: wrap; gap: .4rem .9rem; margin-top: .65rem; font-size: .72rem; color: var(--wh-ink-2); }
.wh-strip__legend span::before { content: ""; display: inline-block; width: .7rem; height: .7rem; border-radius: 4px; margin-inline-end: .35rem; vertical-align: -1px; background: #cfd6d3; }
.wh-strip__legend .is-paid::before { background: var(--wh-emerald-700); } .wh-strip__legend .is-partial::before { background: color-mix(in srgb, var(--wh-gold) 55%, #fff); }
.wh-strip__legend .is-late::before { background: #e11d48; } .wh-strip__legend .is-due::before { background: var(--wh-gold); }


.wh-card.wh-m360__head { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: .9rem 1.25rem; }
.wh-m360__two { align-items: start; }
@media (max-width: 640px) { .wh-card.wh-m360__head { gap: .7rem 1rem; } .wh-m360__avatar { width: 3.4rem; height: 3.4rem; } .wh-m360__who { flex-basis: calc(100% - 4.8rem); } .wh-m360__contact { flex-basis: 100%; } }
/* the top search result list: open from the search box's own edge, never hidden behind the sidebar */
.fi-global-search-results-ctn { inset-inline-start: 0 !important; inset-inline-end: auto !important; min-width: min(24rem, 92vw); max-width: min(30rem, 94vw) !important; z-index: 60 !important; }
@media (max-width: 640px) { .fi-global-search-results-ctn { position: fixed !important; top: 4.3rem !important; inset-inline: .6rem !important; min-width: 0; max-width: none !important; width: auto !important; } }
@media (max-width: 640px) { .wh-m360__kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .wh-m360__kpi { padding: .7rem .8rem; } .wh-m360__kpi b { font-size: 1.02rem; } }

/* "database updates are waiting" bar (Super Admin only) */
.wh-updatebar { display: flex; align-items: center; gap: .85rem; flex-wrap: wrap; margin: 0 0 1rem; padding: .8rem 1rem; border-radius: 16px; background: linear-gradient(160deg, #fff, color-mix(in srgb, var(--wh-gold) 22%, #fff)); border: 1px solid var(--wh-gold-edge); box-shadow: var(--wh-premium-shadow); }
.wh-updatebar > div { flex: 1 1 16rem; min-width: 0; } .wh-updatebar b { display: block; font-size: .92rem; color: var(--wh-emerald-900); } .wh-updatebar small { display: block; font-size: .78rem; color: var(--wh-ink-2); line-height: 1.6; margin-top: .1rem; }
.wh-updatebar__icon { width: 2.3rem; height: 2.3rem; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(145deg, #f6dc8a, var(--wh-gold)); color: var(--wh-emerald-950); font-size: 1.2rem; }

.wh-inline-icon { width: 1em; height: 1em; vertical-align: -.14em; display: inline-block; flex-shrink: 0; }
.wh-md-draw__icon svg { width: 1.7rem; height: 1.7rem; }
.wh-md-draw .is-done { display: block; font-weight: 800; color: var(--wh-emerald-700); }

/* icons that replaced emoji / text symbols */
.wh-glyph { flex-shrink: 0; }
.wh-dot { display: inline-block; width: .6em; height: .6em; border-radius: 50%; background: currentColor; vertical-align: .05em; margin-inline-end: .25em; }
.wh-toast__icon svg { width: 1.1rem; height: 1.1rem; } .wh-toast__icon .is-err { display: none; } .wh-toast.is-error .wh-toast__icon .is-ok { display: none; } .wh-toast.is-error .wh-toast__icon .is-err { display: inline-flex; }
.wh-toast__icon .is-ok, .wh-toast__icon .is-err { align-items: center; justify-content: center; }
.wh-slip-toast__mute svg { width: 1.15rem; height: 1.15rem; } .wh-slip-toast__mute .is-off { display: none; } .wh-slip-toast__mute.is-muted .is-on { display: none; } .wh-slip-toast__mute.is-muted .is-off { display: inline-flex; }
.wh-updatebar__icon svg { width: 1.3rem; height: 1.3rem; }
.wh-ref-video__thumb span svg, .wh-video-play svg { width: 1.5rem; height: 1.5rem; }
.wh-reg__cell svg, .wh-reg-legend i svg { width: .95em; height: .95em; }
.wh-payacc__amount i svg { width: 1rem; height: 1rem; }
.wh-more__btn svg { width: .9em; height: .9em; }

/* ---- member card popup ---- */
.wh-cardm { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgba(3, 20, 14, .66); backdrop-filter: blur(5px); }
.wh-cardm[hidden] { display: none; }
.wh-cardm__panel { position: relative; width: min(100%, 44rem); height: min(100%, 46rem); border-radius: 26px; overflow: hidden; background: #faf8f5; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .7); border: 1px solid color-mix(in srgb, var(--wh-gold, #e9bc3f) 50%, #fff); }
.wh-cardm__frame { width: 100%; height: 100%; border: 0; display: block; background: transparent; }
.wh-cardm__close { position: absolute; top: .6rem; inset-inline-end: .6rem; z-index: 3; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; background: #fff; color: var(--wh-emerald-900, #063b2c); box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .4); }
.wh-cardm__close svg { width: 1.1rem; height: 1.1rem; }
.wh-cardm__loading { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; z-index: 2; background: #faf8f5; }
.wh-cardm.is-loading .wh-cardm__loading { display: flex; }
.wh-cardm__spin { width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 4px solid color-mix(in srgb, var(--wh-emerald-600, #1fa577) 20%, #fff); border-top-color: var(--wh-emerald-700, #0f6449); animation: whspin .8s linear infinite; }
@keyframes whspin { to { transform: rotate(360deg); } }
html.wh-cardm-open { overflow: hidden; }
@media (max-width: 640px) { .wh-cardm { padding: 0; } .wh-cardm__panel { width: 100%; height: 100%; border-radius: 0; border: 0; } }
@media (prefers-reduced-motion: reduce) { .wh-cardm__spin { animation-duration: 2s; } }

/* ============================================================
   Urdu (Nastaliq) has tall, sweeping letters: a box that cuts the text (ellipsis / overflow hidden) with a tight line-height
   removes the stroke of "ک", "گ", "م" … and makes words read wrongly ("کمیٹیاں" → "لیٹیاں"). In Urdu nothing is clipped.
   ============================================================ */
html[lang="ur"] :is(.truncate, .wh-truncate, .fi-sidebar-item-label, .wh-side__name, .wh-side__text, .wh-row__title, .fi-section-header-description, .fi-btn-label, .fi-badge, .wh-chealth__card h3, .wh-chealth__stats dt, .wh-md-card__title, .wh-side__label, .wh-side__me-name) {
    overflow: visible !important; text-overflow: clip !important; line-height: 2.1 !important;
}
html[lang="ur"] :is(.truncate, .wh-truncate, .fi-sidebar-item-label, .wh-row__title, .wh-side__name) { white-space: normal !important; }
html[lang="ur"] .wh-chip { overflow: visible !important; text-overflow: clip !important; line-height: 2 !important; }
html[lang="ur"] :is(dt, dd, strong, label) { line-height: 2 !important; }
html[lang="ur"] .fi-sidebar-item-label { padding-block: .05rem; }

/* ---- language switch: always readable, on light and on dark bars ---- */
.wh-lang a.is-active { color: var(--wh-emerald-900, #063b2c) !important; background: #fff !important; }
:is(.wh-side-lang, .wh-side__lang, .wh-authnav, .wh-pubnav, .fi-sidebar, .fi-topbar-dark, .wh-header--dark) .wh-lang a:not(.is-active) { color: #e6f6ee !important; }
.wh-lang a[lang="ur"] { font-size: .98rem !important; line-height: 1.9 !important; font-weight: 400 !important; padding-top: .05rem !important; padding-bottom: .15rem !important; }
.wh-lang a[lang="en"] { font-size: .82rem !important; line-height: 1.5 !important; }
.wh-lang a { white-space: nowrap; min-width: 3.4rem; text-align: center; }

/* ---- "Edit texts" (Super Admin only) ---- */
.wh-te { position: fixed; inset-inline-start: .8rem; bottom: .8rem; z-index: 99990; font-family: var(--wh-font, system-ui), sans-serif; direction: ltr; }
.wh-te__tab { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .9rem; border: 0; border-radius: 999px; cursor: pointer; font-size: .8rem; font-weight: 800; color: var(--wh-gold, #e9bc3f); background: var(--wh-emerald-900, #063b2c); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .6); }
.wh-te__tab svg { width: 1rem; height: 1rem; } .wh-te__tab[aria-pressed="true"] { background: var(--wh-gold, #e9bc3f); color: var(--wh-emerald-950, #032a1f); }
.wh-te__box { position: fixed; inset-inline: .8rem; bottom: 3.6rem; max-width: 30rem; margin-inline: auto; padding: .9rem 1rem 1rem; border-radius: 18px; background: #fff; color: #17312a; border: 2px solid var(--wh-gold, #e9bc3f); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); text-align: start; }
.wh-te__box[hidden] { display: none; } .wh-te__help { margin: 0; font-size: .86rem; line-height: 1.8; } .wh-te__box small { color: #6b7a74; font-weight: 700; font-size: .72rem; }
.wh-te__orig { padding: .4rem .6rem; margin: .15rem 0 .5rem; border-radius: 10px; background: #f2f6f4; font-size: .86rem; line-height: 1.8; max-height: 5rem; overflow: auto; }
.wh-te__box label { display: block; font-size: .78rem; font-weight: 800; margin-bottom: .2rem; } .wh-te__box textarea { width: 100%; border: 1.5px solid #cfdad5; border-radius: 10px; padding: .5rem .6rem; font: inherit; font-size: .95rem; line-height: 1.8; resize: vertical; }
.wh-te__chk { display: flex !important; align-items: center; gap: .4rem; margin: .5rem 0 0; font-weight: 600 !important; }
.wh-te__btns { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .7rem; } .wh-te__btns button { padding: .5rem .95rem; border-radius: 999px; border: 1.5px solid #cfdad5; background: #fff; font-weight: 800; font-size: .82rem; cursor: pointer; color: #17312a; }
.wh-te__btns .is-primary { background: var(--wh-emerald-900, #063b2c); color: #fff; border-color: transparent; }
.wh-te__msg { margin: .5rem 0 0; font-size: .82rem; font-weight: 700; color: #0f7a46; } .wh-te__msg.is-bad { color: #be123c; }
html.wh-te-on .wh-te-hl { outline: 2px dashed var(--wh-gold, #e9bc3f) !important; outline-offset: 2px; cursor: text !important; }

/* ---- "viewing as a member" bar (Super Admin) ---- */
.wh-imp { position: sticky; top: 0; z-index: 99995; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem 1rem; padding: .5rem 1rem; background: var(--wh-gold, #e9bc3f); color: var(--wh-emerald-950, #032a1f); font-size: .86rem; font-weight: 700; }
.wh-imp__back { padding: .25rem .8rem; border-radius: 999px; background: var(--wh-emerald-900, #063b2c); color: #fff; text-decoration: none; font-weight: 800; }

/* the member top bar in the website colour must win over the general white bar rule above */
.wh-header.wh-header--dark { background: linear-gradient(135deg, var(--wh-emerald-900), var(--wh-emerald-950)) !important; color: #fff; }
.wh-header.wh-header--dark::after { background: linear-gradient(90deg, transparent, var(--wh-gold), transparent); }


/* ---- member top bar: GOLD (default) and LIGHT styles ---- */
.wh-header.wh-header--gold { background: linear-gradient(135deg, #f9e9b3 0%, #eec95a 55%, #e2b238 100%) !important; color: var(--wh-emerald-950); border-bottom: 3px solid var(--wh-emerald-900); box-shadow: 0 14px 28px -18px rgba(70, 48, 0, .6); backdrop-filter: none; }
.wh-header.wh-header--light { background: linear-gradient(180deg, #fffdf8, #fbf4e2) !important; color: var(--wh-emerald-950); border-bottom: 3px solid var(--wh-gold); box-shadow: 0 14px 28px -20px rgba(70, 48, 0, .45); }
.wh-header.wh-header--gold::after, .wh-header.wh-header--light::after { display: none; }
:is(.wh-header--gold, .wh-header--light) .wh-icon-btn { background: rgba(255, 255, 255, .6); border: 1px solid color-mix(in srgb, var(--wh-emerald-900) 28%, transparent); color: var(--wh-emerald-900); }
:is(.wh-header--gold, .wh-header--light) .wh-icon-btn:hover { background: #fff; color: var(--wh-emerald-950); }
:is(.wh-header--gold, .wh-header--light) .wh-icon-btn--logout:hover { color: #be123c !important; border-color: #be123c !important; }
:is(.wh-header--gold, .wh-header--light) .wh-header__avatar { box-shadow: 0 0 0 2px var(--wh-emerald-900); border-radius: 999px; }
:is(.wh-header--gold, .wh-header--light) .wh-lang { background: rgba(255, 255, 255, .6); border-color: color-mix(in srgb, var(--wh-emerald-900) 28%, transparent); }
:is(.wh-header--gold, .wh-header--light) .wh-lang a:not(.is-active) { color: var(--wh-emerald-900) !important; }
:is(.wh-header--gold, .wh-header--light) .wh-lang a.is-active { background: var(--wh-emerald-900) !important; color: #fff !important; font-weight: 800; }
:is(.wh-header--gold, .wh-header--light) .wh-prayer { background: rgba(255, 255, 255, .6); border: 1px solid color-mix(in srgb, var(--wh-emerald-900) 28%, transparent); color: var(--wh-emerald-950); }
:is(.wh-header--gold, .wh-header--light) .wh-prayer svg, :is(.wh-header--gold, .wh-header--light) .wh-2fa svg { color: var(--wh-emerald-900); }
:is(.wh-header--gold, .wh-header--light) .wh-2fa { background: rgba(255, 255, 255, .6); border-color: color-mix(in srgb, var(--wh-emerald-900) 28%, transparent); color: var(--wh-emerald-950); }
:is(.wh-header--gold, .wh-header--light) .wh-2fa.is-on b { color: var(--wh-emerald-800); } :is(.wh-header--gold, .wh-header--light) .wh-2fa.is-off b { color: #be123c; }
:is(.wh-header--gold, .wh-header--light) .wh-btn--primary { background: var(--wh-emerald-900); color: var(--wh-gold); border-color: transparent; box-shadow: 0 10px 22px -12px rgba(3, 30, 22, .8); }
:is(.wh-header--gold, .wh-header--light) .wh-icon-btn__count { box-shadow: 0 0 0 2px #fff; }
@media (max-width: 1023px) { :is(.wh-header--gold, .wh-header--light) { padding-block: .7rem; } :is(.wh-header--gold, .wh-header--light) .wh-header__tools { gap: .4rem; } }

/* "Edit texts" on a phone: a small tab on the edge, so it never sits on top of the slip popup or other bottom bars */
@media (max-width: 767px) {
    .wh-te { inset-inline-start: 0; left: 0; bottom: auto; top: 46%; }
    .wh-te__tab { padding: .7rem .6rem .7rem .5rem; gap: 0; border-radius: 0 999px 999px 0; opacity: .9; }
    .wh-te__tab span { display: none; }
}

.wh-imp--warn { background: #fecdd3; color: #881337; position: static; }
.wh-imp em { font-style: normal; font-weight: 600; opacity: .85; }

/* a long text in a card row: the label sits above it instead of being overlapped by it */
.wh-cards td.wh-stack { flex-direction: column !important; align-items: flex-start !important; text-align: start !important; gap: .15rem !important; }
.wh-cards td.wh-stack .fi-ta-col-wrp, .wh-cards td.wh-stack .fi-ta-text { justify-content: flex-start; width: 100%; white-space: normal; overflow-wrap: anywhere; }
.wh-cards td.wh-stack, .wh-cards td.wh-stack * { white-space: normal !important; min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.wh-cards td.wh-stack [dir="rtl"] { text-align: right; }

/* ================= URDU: easy to read everywhere (bigger small text, forms that do not cut the letters) ================= */
/* Nastaleeq has a small body, so the "small print" of the pages is lifted to a readable size */
html[lang="ur"] :where(small, .text-xs, .text-\[10px\], .text-\[11px\], .text-\[12px\], figcaption, caption, .wh-field__hint, .wh-card__sub, .wh-chip, .wh-badge, .wh-side__badge, .wh-side__label, .wh-eyebrow, .fi-badge, .fi-ta-header-cell-label, .fi-fo-field-wrp-hint, .fi-fo-field-wrp-helper-text) { font-size: .92rem !important; line-height: 1.9 !important; }
html[lang="ur"] :where(.text-sm, th, td, label, .wh-field label, .fi-fo-field-wrp-label, .fi-sidebar-item-label, .fi-ta-cell) { font-size: 1rem !important; }
html[lang="ur"] :where(p, li, dd, dt) { font-size: max(1rem, 1em); }
html[lang="ur"] :where(h1) { line-height: 1.7 !important; } html[lang="ur"] :where(h2, h3, h4) { line-height: 1.8 !important; }

/* inputs, drop-downs and buttons: tall enough that the tails and dots of the letters are never cut */
html[lang="ur"] :where(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea, .fi-input, .fi-select-input, .choices__inner, .choices__list--single) {
    font-size: 1.02rem !important; line-height: 2.1 !important; min-height: 3.3rem; padding-block: .5rem !important; overflow: visible !important;
}
html[lang="ur"] select { padding-inline-end: 2.4rem !important; height: auto !important; text-overflow: clip; }
html[lang="ur"] select option { font-size: 1.02rem; line-height: 2.2; padding: .4rem .6rem; }
html[lang="ur"] textarea { line-height: 2.1 !important; min-height: 6rem; }
html[lang="ur"] :where(.wh-btn, .fi-btn, button.wh-icon-btn) { line-height: 1.9 !important; min-height: 2.9rem; padding-block: .45rem; }
html[lang="ur"] :where(.wh-btn, .fi-btn-label) { font-size: 1rem !important; }
html[lang="ur"] .wh-side__link, html[lang="ur"] .fi-sidebar-item-button { min-height: 3rem; }
html[lang="ur"] .wh-side__text { font-size: 1.02rem !important; }
@media (max-width: 640px) {
    html[lang="ur"] { font-size: 118%; }
    html[lang="ur"] :where(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea) { min-height: 3.5rem; }
}

/* the closed menu drawer waits outside the screen: in Urdu (right-to-left) that is on the right and must never make the page wider */
html { overflow-x: clip; }
html[dir="rtl"] .wh-side:not(.is-open) { visibility: hidden; }
@media (min-width: 1024px) { html[dir="rtl"] .wh-side:not(.is-open) { visibility: visible; } }

/* Form controls cut the tall tails of Nastaleeq (the "k" of "committees" lost its top). They use the Naskh face, which is easy to read and never clipped. */
html[lang="ur"] select, html[lang="ur"] select option, html[lang="ur"] textarea,
html[lang="ur"] input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
html[lang="ur"] .fi-input, html[lang="ur"] .fi-select-input, html[lang="ur"] .choices__inner, html[lang="ur"] .choices__list--single {
    font-family: 'Noto Naskh Arabic', 'Noto Nastaliq Urdu', serif !important; line-height: 2 !important; font-size: 1.12rem !important;
}
