@import '_content/Brassicum.Shared.UI/Brassicum.Shared.UI.mw9aoxsiug.bundle.scp.css';

/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* Tailwind is used for MainLayout styling. */

/* #251 Step 1 — establishes an inline-size containment context on <main> so every page's own
   thresholds can be authored as @container rules against available width instead of viewport
   width. #249 confirmed <main>'s width equals viewport - navWidth exactly at all 96 measurements,
   so this single declaration gives every page (present and future) a box that already has the
   nav subtracted. Applied here alone, nothing else, so its containment side effects (on overlay
   positioning, percentage heights, position:fixed) can be verified in isolation before anything
   is built on top of it. */
main[b-mmc02oft3m] {
    container-type: inline-size;
}
/* /Components/Layout/NavMenu.razor.rz.scp.css */
/* Tailwind is used for NavMenu styling. */
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
/* ── Blazor reconnect state machine — visibility rules MUST NOT change ── */
.components-reconnect-first-attempt-visible[b-ibkmh8ft2p],
.components-reconnect-repeated-attempt-visible[b-ibkmh8ft2p],
.components-reconnect-failed-visible[b-ibkmh8ft2p],
.components-pause-visible[b-ibkmh8ft2p],
.components-resume-failed-visible[b-ibkmh8ft2p],
.components-rejoining-animation[b-ibkmh8ft2p] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-ibkmh8ft2p],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-ibkmh8ft2p],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-ibkmh8ft2p],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-ibkmh8ft2p],
#components-reconnect-modal.components-reconnect-retrying[b-ibkmh8ft2p],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-ibkmh8ft2p],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-ibkmh8ft2p],
#components-reconnect-modal.components-reconnect-failed[b-ibkmh8ft2p],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-ibkmh8ft2p] {
    display: block;
}

/* ── Dialog chrome ── */
#components-reconnect-modal[b-ibkmh8ft2p] {
    background-color: var(--bx-surface-raised);
    color: var(--bx-text);
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: var(--bx-radius-md);
    box-shadow: var(--bx-shadow-xl);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-ibkmh8ft2p 0.5s both;

    &[open] {
        animation: components-reconnect-modal-slideUp-b-ibkmh8ft2p 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s,
                   components-reconnect-modal-fadeInOpacity-b-ibkmh8ft2p 0.5s ease-in-out 0.3s;
        animation-fill-mode: both;
    }
}

#components-reconnect-modal[b-ibkmh8ft2p]::backdrop {
    background-color: var(--bx-surface-overlay);
    animation: components-reconnect-modal-fadeInOpacity-b-ibkmh8ft2p 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-ibkmh8ft2p {
    0%   { transform: translateY(30px) scale(0.95); }
    100% { transform: translateY(0); }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-ibkmh8ft2p {
    0%   { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-ibkmh8ft2p {
    0%   { opacity: 1; }
    100% { opacity: 0; }
}

/* ── Layout ── */
.components-reconnect-container[b-ibkmh8ft2p] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-ibkmh8ft2p] {
    margin: 0;
    text-align: center;
    font-size: var(--bx-fs-body-sm);
    color: var(--bx-text-2);
}

/* ── Retry / Resume buttons ── */
#components-reconnect-modal button[b-ibkmh8ft2p] {
    border: 0;
    background-color: var(--bx-interactive-primary);
    color: white;
    padding: 4px 24px;
    border-radius: var(--bx-radius-sm);
    font-size: var(--bx-fs-body-sm);
    font-weight: var(--bx-fw-medium);
    cursor: pointer;
    transition: background-color var(--bx-duration-fast) var(--bx-ease-standard);
}

#components-reconnect-modal button:hover[b-ibkmh8ft2p] {
    background-color: var(--bx-interactive-primary-hover);
}

#components-reconnect-modal button:active[b-ibkmh8ft2p] {
    background-color: var(--bx-interactive-primary-active);
}

/* ── Rejoining animation ring ── */
.components-rejoining-animation[b-ibkmh8ft2p] {
    position: relative;
    width: 80px;
    height: 80px;
}

.components-rejoining-animation div[b-ibkmh8ft2p] {
    position: absolute;
    border: 3px solid var(--bx-interactive-primary);
    opacity: 1;
    border-radius: 50%;
    animation: components-rejoining-animation-b-ibkmh8ft2p 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.components-rejoining-animation div:nth-child(2)[b-ibkmh8ft2p] {
    animation-delay: -0.5s;
}

@keyframes components-rejoining-animation-b-ibkmh8ft2p {
    0%   { top: 40px; left: 40px; width: 0;    height: 0;    opacity: 0; }
    4.9% { top: 40px; left: 40px; width: 0;    height: 0;    opacity: 0; }
    5%   { top: 40px; left: 40px; width: 0;    height: 0;    opacity: 1; }
    100% { top: 0px;  left: 0px;  width: 80px; height: 80px; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    #components-reconnect-modal[b-ibkmh8ft2p],
    #components-reconnect-modal[open][b-ibkmh8ft2p],
    .components-rejoining-animation div[b-ibkmh8ft2p] {
        animation: none;
        transition: none;
    }
}
/* /Components/Pages/Home.razor.rz.scp.css */
/* Home dashboard layout — visual spec: docs/mockups/dashboard-redesign.html.
   Scoped CSS because the compiled app.css carries no arbitrary-value Tailwind
   utilities; everything size/grid-specific the mockup needs lives here. */

/* ── KPI strip: 4-up, collapsing to 2-up ─────────────────────────────────── */
.home-kpis[b-a8k9jrdskn] {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}

/* ── Main column + side rail (~1.7fr/1fr), one column when narrow ────────── */
.home-grid[b-a8k9jrdskn] {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 16px;
    align-items: start;
    margin-bottom: 16px;
}

.home-col[b-a8k9jrdskn] {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

@media (max-width: 820px) {
    .home-kpis[b-a8k9jrdskn] { grid-template-columns: repeat(2, 1fr); }
    .home-grid[b-a8k9jrdskn] { grid-template-columns: 1fr; }
}

/* KPI tiles migrated to the shared BxStat component (Phase J); its scoped CSS carries the
   mono overline / tabular value / sub-line spec (and the :lang(ar) font reset). */

/* ── Panel header idiom: mono uppercase h3 + optional trailing link/sub ──── */
.panel-h[b-a8k9jrdskn] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.panel-t[b-a8k9jrdskn] {
    font-family: var(--bx-font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    color: var(--bx-text-muted);
    margin: 0;
}

/* ── Income vs expense: small swatch legend + baseline axis ──────────────── */
.ie-legend[b-a8k9jrdskn] {
    display: flex;
    gap: 14px;
    font-family: var(--bx-font-mono);
    font-size: 10px;
    color: var(--bx-text-muted);
    margin-bottom: 6px;
}

.ie-legend i[b-a8k9jrdskn] {
    width: 9px;
    height: 9px;
    border-radius: 2px;
    display: inline-block;
    margin-inline-end: 5px;
    vertical-align: middle;
}

.ie-axis[b-a8k9jrdskn] {
    stroke: var(--bx-border-subtle);
}

/* ── Donuts: 2-up row, fixed disc with the legend beside it ──────────────── */
.donut2[b-a8k9jrdskn] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 680px) {
    .donut2[b-a8k9jrdskn] { grid-template-columns: 1fr; }
}

.donutwrap[b-a8k9jrdskn] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.dlegend[b-a8k9jrdskn] {
    display: flex;
    flex-direction: column;
    gap: 7px;
    flex: 1 1 120px;
    min-width: 0;
}

.dl[b-a8k9jrdskn] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    min-width: 0;
}

.dl .nm[b-a8k9jrdskn] {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--bx-text-2);
}

.donut-hole[b-a8k9jrdskn] {
    fill: var(--bx-surface-raised);
}

.dlc[b-a8k9jrdskn] {
    width: 9px;
    height: 9px;
    border-radius: 2px;
    flex: none;
}

.dlv[b-a8k9jrdskn] {
    margin-inline-start: auto;
    font-family: var(--bx-font-mono);
    font-size: 11px;
    color: var(--bx-text-muted);
    font-variant-numeric: tabular-nums;
    flex: none;
}

/* ── Cash & bank: name | track | amount rows + TOTAL footer ──────────────── */
.cashrow[b-a8k9jrdskn] {
    display: grid;
    grid-template-columns: 1fr 2.2fr auto;
    gap: 12px;
    align-items: center;
    margin-bottom: 11px;
    font-size: 12.5px;
}

.cashrow .nm[b-a8k9jrdskn] {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: var(--bx-text);
}

.cash-dot[b-a8k9jrdskn] {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    flex: none;
}

.cash-track[b-a8k9jrdskn] {
    height: 8px;
    background: var(--bx-border-subtle);
    border-radius: 5px;
    overflow: hidden;
}

.cash-track > i[b-a8k9jrdskn] {
    display: block;
    height: 100%;
    border-radius: 5px;
}

.cash-amt[b-a8k9jrdskn] {
    font-family: var(--bx-font-mono);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    text-align: end;
    color: var(--bx-text);
}

.cash-total[b-a8k9jrdskn] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--bx-border-subtle);
    margin-top: 6px;
    padding-top: 10px;
    font-size: 12.5px;
}

.cash-total .lbl[b-a8k9jrdskn] {
    font-family: var(--bx-font-mono);
    font-size: 11px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--bx-text-muted);
}

/* ── Admin org panel: 3-up centered stat cells ───────────────────────────── */
.org[b-a8k9jrdskn] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.orgcell[b-a8k9jrdskn] {
    background: var(--bx-surface-surface);
    border-radius: 10px;
    padding: 12px;
    text-align: center;
}

.orgcell .n[b-a8k9jrdskn] {
    font-size: 20px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--bx-text);
}

.orgcell .n .max[b-a8k9jrdskn] {
    font-size: 13px;
    font-weight: 400;
    color: var(--bx-text-muted);
}

.orgcell .l[b-a8k9jrdskn] {
    font-family: var(--bx-font-mono);
    font-size: 9px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--bx-text-muted);
    margin-top: 4px;
}

/* Recent-vouchers description clamp (compiled app.css has no max-w-[...]). */
.rec-desc[b-a8k9jrdskn] { max-width: 200px; }

/* Arabic culture: restore proportional Arabic font for scoped mono-styled dashboard labels.
   Letter-spacing reset is covered globally by tailwind.css @layer base. */
.panel-t:lang(ar)[b-a8k9jrdskn],
.ie-legend:lang(ar)[b-a8k9jrdskn],
.dlv:lang(ar)[b-a8k9jrdskn],
.cash-amt:lang(ar)[b-a8k9jrdskn],
.cash-total .lbl:lang(ar)[b-a8k9jrdskn],
.orgcell .l:lang(ar)[b-a8k9jrdskn] {
    font-family: var(--bx-font-arabic);
}
/* /Components/Shared/BxStat.razor.rz.scp.css */
/* BxStat — KPI/stat tile. Visual spec: docs/mockups/dashboard-redesign.html (.kpi).
   Scoped because the compiled app.css carries no arbitrary-value Tailwind utilities;
   the precise type scale (mono eyebrow, tabular value) lives here. */

/* Inset accent bar — colour comes from the Accent bg-utility class on the element. */
.stat-accent[b-tauzzbelqx] {
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    bottom: 0;
    width: 3px;
}

/* Mono uppercase eyebrow/overline. */
.stat-k[b-tauzzbelqx] {
    font-family: var(--bx-font-mono);
    font-size: 9.5px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--bx-text-muted);
}

/* Tabular value (the number/word). */
.stat-v[b-tauzzbelqx] {
    font-size: 23px;
    font-weight: 600;
    line-height: 1;
    margin-top: 7px;
    font-variant-numeric: tabular-nums;
    color: var(--bx-text);
}

.stat-v .unit[b-tauzzbelqx] {
    font-size: 13px;
    font-weight: 500;
    color: var(--bx-text-muted);
}

/* Sub-line / delta. */
.stat-d[b-tauzzbelqx] {
    font-size: 11px;
    color: var(--bx-text-muted);
    margin-top: 6px;
}

/* Arabic culture: restore proportional Arabic font for the mono-styled eyebrow
   (letter-spacing reset is handled globally by tailwind.css @layer base). */
.stat-k:lang(ar)[b-tauzzbelqx] {
    font-family: var(--bx-font-arabic);
}
/* /Components/Shared/BxToastHost.razor.rz.scp.css */
/* Slide-in from the inline-end edge */
.bx-toast-in[b-re8kgm1zoa] {
    animation: bx-toast-slide-in-b-re8kgm1zoa var(--bx-duration-base) var(--bx-ease-decelerate) both;
}

@keyframes bx-toast-slide-in-b-re8kgm1zoa {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* In RTL the toast stack is on the inline-end (left), so slide from the other direction */
[dir="rtl"] .bx-toast-in[b-re8kgm1zoa] {
    animation-name: bx-toast-slide-in-rtl-b-re8kgm1zoa;
}

@keyframes bx-toast-slide-in-rtl-b-re8kgm1zoa {
    from { opacity: 0; transform: translateX(-40px); }
    to   { opacity: 1; transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
    .bx-toast-in[b-re8kgm1zoa] {
        animation: none;
    }
}
