/* Expenda – shared tokens. Money colours must match the Android app. */
:root {
    --ex-primary: #7B2FF7;
    --ex-primary-dark: #5B17C9;
    --ex-primary-tint: #F0E6FF;
    --ex-teal: #0B7A75;
    --ex-ink: #15171C;
    --ex-muted: #5B6070;
    --ex-bg: #F7F6FC;
    --ex-line: #E6E3F0;
    --ex-line-soft: #F3F1F8;
    --ex-in: #1473E6;
    --ex-in-tint: #DCEBFF;
    --ex-out: #D2401C;
    --ex-out-fill: #FF7A45;
    --ex-out-tint: #FFE2D6;
    --ex-pending: #FFE14D;
    --ex-pending-ink: #3D2E00;
    --ex-owed: #D9F7EC;
    --ex-owed-ink: #05603A;
    --ex-display: 'Bricolage Grotesque', 'Plus Jakarta Sans', sans-serif;
    --ex-body: 'Plus Jakarta Sans', system-ui, sans-serif;
}

html, body {
    font-family: var(--ex-body);
    background: var(--ex-bg);
    color: var(--ex-ink);
    font-variant-numeric: tabular-nums;
}

h1:focus { outline: none; }

.ex-display { font-family: var(--ex-display); letter-spacing: -0.02em; }
.ex-in { color: var(--ex-in) !important; }
.ex-out { color: var(--ex-out) !important; }
.ex-muted { color: var(--ex-muted); }

/* Page header */
.ex-page { padding: 28px 36px 40px; display: flex; flex-direction: column; gap: 20px; max-width: 1600px; }
.ex-page-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ex-page-head .ex-title { flex-grow: 1; }
.ex-page-head h1 { margin: 0; font-family: var(--ex-display); font-weight: 700; font-size: 2.1rem; letter-spacing: -0.02em; }

/* Cards */
.ex-card { background: #fff; border: 1px solid var(--ex-line); border-radius: 20px; padding: 20px 22px; }
.ex-card h2 { margin: 0 0 14px; font-size: 1rem; font-weight: 600; }
.ex-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.ex-kpi { border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--ex-line); background: #fff; text-decoration: none; color: inherit; }
.ex-kpi .label { font-size: 13px; color: var(--ex-muted); }
.ex-kpi .value { font-family: var(--ex-display); font-size: 30px; font-weight: 700; line-height: 1.15; }
.ex-kpi .meta { font-size: 12px; color: var(--ex-muted); }
.ex-kpi.spent { background: var(--ex-out-tint); border-color: #FFC4AD; }
.ex-kpi.spent .value { color: var(--ex-out); }
.ex-kpi.earned { background: var(--ex-in-tint); border-color: #B8D6FF; }
.ex-kpi.earned .value { color: #0F58B8; }
.ex-kpi.net { background: var(--ex-teal); border-color: var(--ex-teal); color: #fff; }
.ex-kpi.net .label, .ex-kpi.net .meta { color: #D5F2F0; }
.ex-kpi.pending { background: var(--ex-pending); border-color: #F2C800; color: var(--ex-pending-ink); }
.ex-kpi.pending .label, .ex-kpi.pending .meta { color: var(--ex-pending-ink); }
.ex-kpi.owed { background: var(--ex-owed); border-color: #A9EDD2; }
.ex-kpi.owed .value { color: var(--ex-owed-ink); }

.ex-grid-2 { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; }
.ex-grid-3 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.25fr); gap: 16px; }
.mud-main-content { padding-top: 0 !important; }
.ex-topbar { display: none; }

/* Status chips */
.ex-status { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 10px; white-space: nowrap; }
.ex-status.draft { background: #EEEDF3; color: #3F4450; }
.ex-status.submitted, .ex-status.cheque-pending { background: #FFF3A6; color: var(--ex-pending-ink); }
.ex-status.approved { background: var(--ex-owed); color: var(--ex-owed-ink); }
.ex-status.recorded { background: var(--ex-in-tint); color: #0F58B8; }
.ex-status.rejected, .ex-status.bounced { background: #FBE3E1; color: #8C1D18; }
.ex-status.reimbursed { background: var(--ex-primary-tint); color: var(--ex-primary-dark); }

/* Row avatar for categories */
.ex-dot { width: 36px; height: 36px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.ex-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--ex-line-soft); }
.ex-row:last-child { border-bottom: 0; }
.ex-row .grow { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; }
.ex-row .title { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex-row .sub { font-size: 12px; color: var(--ex-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex-row .end { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.ex-row .amt { font-weight: 700; font-size: 14px; }

/* Bars */
.ex-bars { display: flex; align-items: flex-end; gap: 22px; height: 200px; padding: 0 8px; border-bottom: 1px solid var(--ex-line); }
.ex-bars .col { flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 5px; height: 100%; }
.ex-bars .bar { width: 22px; border-radius: 6px 6px 0 0; min-height: 2px; }
.ex-bars-labels { display: flex; gap: 22px; padding: 6px 8px 0; }
.ex-bars-labels span { flex: 1; text-align: center; font-size: 12px; color: var(--ex-muted); }
.ex-legend { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ex-muted); }
.ex-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.ex-meter { height: 8px; border-radius: 4px; background: #EFECF6; overflow: hidden; }
.ex-meter > div { height: 8px; border-radius: 4px; }

/* Chips used as pickers (Quick Add) */
.ex-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ex-chip { height: 40px; padding: 0 14px; border-radius: 20px; border: 1.5px solid var(--ex-line); background: #fff; color: var(--ex-ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.ex-chip:hover { border-color: #C9C2DE; }
.ex-chip.on { background: var(--ex-teal); border-color: var(--ex-teal); color: #fff; }
.ex-modes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.ex-modes .ex-chip { border-radius: 12px; height: 44px; padding: 0 4px; }
.ex-seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); background: #F1EEF9; padding: 4px; border-radius: 14px; }
.ex-seg button { height: 44px; border: 0; border-radius: 11px; font: inherit; font-weight: 700; font-size: 14px; background: transparent; color: var(--ex-muted); cursor: pointer; }
.ex-seg button.on { background: #fff; box-shadow: 0 1px 3px rgba(20, 10, 60, .08); }
.ex-seg button.on.out { color: var(--ex-out); }
.ex-seg button.on.in { color: var(--ex-in); }
.ex-seg.small { border-radius: 10px; padding: 3px; }
.ex-seg.small button { height: 32px; font-size: 12px; border-radius: 8px; font-weight: 600; padding: 0 10px; }
.ex-seg.small button.on { color: var(--ex-ink); }
.ex-amount { display: flex; flex-direction: column; gap: 2px; padding: 12px 18px; border-radius: 16px; border: 2px solid; }
.ex-amount.out { border-color: var(--ex-out); background: #FFF1EA; }
.ex-amount.in { border-color: var(--ex-in); background: #EAF3FF; }
.ex-amount .cap { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.ex-amount.out .cap, .ex-amount.out .sym { color: var(--ex-out); }
.ex-amount.in .cap, .ex-amount.in .sym { color: var(--ex-in); }
.ex-amount .row { display: flex; align-items: baseline; gap: 6px; }
.ex-amount .sym { font-family: var(--ex-display); font-size: 32px; }
.ex-amount input { border: 0; outline: 0; background: transparent; font-family: var(--ex-display); font-weight: 700; font-size: 44px; width: 100%; color: var(--ex-ink); min-width: 0; }
.ex-field-label { font-size: 13px; font-weight: 700; margin-bottom: 6px; display: block; }
.ex-note { font-size: 12px; padding: 8px 10px; border-radius: 10px; background: #FFF6C7; color: var(--ex-pending-ink); }
.ex-refbox { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px; background: #F6F4FC; border-radius: 14px; margin-top: 8px; }

/* Navigation */
.ex-brand { display: flex; align-items: center; gap: 10px; padding: 22px 20px 18px; }
.ex-logo { overflow: hidden;  width: 34px; height: 34px; border-radius: 10px; background: var(--ex-primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-family: var(--ex-display); font-weight: 700; font-size: 20px; }
.ex-brand-name { font-family: var(--ex-display); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; color: var(--ex-ink); }
.ex-drawer { border-right: 1px solid #ECEAF3 !important; }
.ex-drawer .mud-nav-link { border-radius: 10px; margin: 2px 12px; width: auto; font-weight: 500; }
.ex-drawer .mud-nav-link.active { background: var(--ex-primary-tint) !important; color: var(--ex-primary-dark) !important; font-weight: 700; }
.ex-drawer .mud-nav-link.active .mud-nav-link-icon { color: var(--ex-primary-dark) !important; }
.ex-user { margin: 12px; padding: 12px; border-radius: 14px; background: #FFF4E8; display: flex; align-items: center; gap: 10px; }
.ex-user .avatar { width: 36px; height: 36px; border-radius: 50%; background: #FFB4A8; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.ex-user .who { flex-grow: 1; display: flex; flex-direction: column; min-width: 0; }
.ex-user .who b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex-user .who span { font-size: 12px; color: var(--ex-muted); }
button.ex-user { border: 2px solid transparent; font: inherit; color: inherit; text-align: left; cursor: pointer; width: calc(100% - 24px); }
button.ex-user:hover, button.ex-user:focus-visible { border-color: var(--ex-primary); }
button.ex-user .mud-icon-root { color: var(--ex-muted); flex-shrink: 0; }

/* User menu and the phone "More" sheet: native popovers (no JS, work on static pages too) */
.ex-user-menu { margin: 0; inset: auto auto 92px 12px; width: 236px; padding: 8px; border: 1px solid var(--ex-line); border-radius: 16px; background: #fff; box-shadow: 0 14px 40px rgba(40, 20, 90, .16); }
.ex-user-menu .head { display: flex; flex-direction: column; padding: 8px 12px 10px; border-bottom: 1px solid var(--ex-line-soft); margin-bottom: 4px; }
.ex-user-menu .head b { font-size: 14px; }
.ex-user-menu .head span { font-size: 12px; color: var(--ex-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex-user-menu a, .ex-user-menu button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 10px; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; color: #15171C; text-decoration: none; cursor: pointer; text-align: left; justify-content: flex-start; }
.ex-user-menu a:hover, .ex-user-menu button:hover { background: var(--ex-primary-tint); }
.ex-user-menu .mud-icon-root { color: #3A3F4B; }
.ex-user-menu hr { border: 0; border-top: 1px solid var(--ex-line-soft); margin: 4px 6px; opacity: 1; }
.ex-user-menu form { margin: 0; }
.ex-user-menu .out, .ex-user-menu .out .mud-icon-root { color: #B4311A; }
.ex-more::backdrop { background: rgba(21, 23, 28, .28); }
.ex-avatar-btn { margin-left: auto; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--ex-primary); background: #FFB4A8; font: inherit; font-weight: 700; font-size: 14px; color: #15171C; cursor: pointer; }
.ex-more { margin: 0; inset: 0 auto 0 0; width: min(300px, 84vw); height: 100%; max-height: none; padding: 20px 0; border: 0; background: #fff; overflow-y: auto; }
.ex-more .mud-nav-link { border-radius: 10px; margin: 2px 12px; width: auto; font-weight: 500; }
.ex-more .mud-nav-link.active { background: var(--ex-primary-tint) !important; color: var(--ex-primary-dark) !important; font-weight: 700; }

.ex-bottom-nav { display: none; }

@media (max-width: 959.98px) {
    .ex-page { padding: 16px 16px 110px; gap: 14px; }
    .ex-page-head h1 { font-size: 1.6rem; }
    .ex-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .ex-kpi .value { font-size: 22px; }
    .ex-kpi.net { grid-column: span 2; }
    .ex-grid-2, .ex-grid-3 { grid-template-columns: minmax(0, 1fr); }
    .ex-bars, .ex-bars-labels { gap: 8px; }
    .ex-bars .bar { width: 14px; }
    .ex-topbar { display: flex; align-items: center; gap: 10px; padding: 14px 16px 0; }
    .ex-drawer { display: none !important; }
    .mud-main-content { margin-left: 0 !important; }
    .ex-user-menu { inset: 64px 12px auto auto; }
    .ex-upi .qr, .ex-upi .qr-text { display: none; }
    .ex-upi a.app { display: flex; } /* more specific than the base rule further down */
    .ex-user-menu::backdrop { background: rgba(21, 23, 28, .28); }
    .ex-modes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ex-hide-sm { display: none !important; }
    .ex-bottom-nav {
        display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center;
        position: fixed; left: 0; right: 0; bottom: 0; height: 72px; z-index: 1200;
        background: #fff; border-top: 1px solid var(--ex-line);
    }
    .ex-bottom-nav a, .ex-bottom-nav button.tab { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--ex-muted); text-decoration: none; background: none; border: 0; font: inherit; font-size: 11px; }
    .ex-bottom-nav a.active { color: var(--ex-primary); font-weight: 700; }
    .ex-bottom-nav .fab { justify-self: center; width: 60px; height: 60px; margin-top: -30px; border-radius: 20px; border: 0; background: var(--ex-primary); color: #fff; box-shadow: 0 8px 20px rgba(123, 47, 247, .4); cursor: pointer; display: flex; align-items: center; justify-content: center; }
}

/* Sign-in pages (static rendering) */
.ex-auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.ex-auth-art { background: #1B0F3F; color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.ex-auth-art > * { position: relative; z-index: 1; }
.ex-auth-art h2 { font-family: var(--ex-display); font-weight: 700; font-size: 44px; line-height: 1.05; letter-spacing: -0.02em; margin: 0; max-width: 460px; }
.ex-auth-art p { color: #E6DAFF; max-width: 420px; font-size: 16px; }
.ex-auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: var(--ex-bg); }
.ex-auth-card { width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--ex-line); border-radius: 24px; padding: 32px; }
.ex-auth-card h1 { font-family: var(--ex-display); font-weight: 700; font-size: 30px; letter-spacing: -0.02em; margin: 0 0 6px; }
.ex-auth-card .btn-primary { background: var(--ex-primary); border-color: var(--ex-primary); border-radius: 12px; font-weight: 700; height: 50px; }
.ex-auth-card .btn-primary:hover { background: var(--ex-primary-dark); border-color: var(--ex-primary-dark); }
.ex-auth-card .form-control { border-radius: 12px; }
.ex-auth-card a { color: var(--ex-primary-dark); }
@media (max-width: 859.98px) {
    .ex-auth { grid-template-columns: 1fr; }
    .ex-auth-art { padding: 28px 24px; }
    .ex-auth-art h2 { font-size: 30px; }
    .ex-auth-art p, .ex-auth-points { display: none; }
    .ex-auth-word { font-size: 36px; }
    .ex-auth-mark { width: 60px; height: 60px; border-radius: 18px; }
    .ex-auth-mark img { width: 40px; height: 40px; }
}

/* Pay by UPI: QR code on computers, an "open UPI app" button on phones */
.ex-upi { display: flex; gap: 18px; align-items: center; background: #fff; border: 1px solid var(--ex-line); border-radius: 16px; padding: 14px; }
.ex-upi .qr { width: 150px; height: 150px; flex-shrink: 0; }
.ex-upi .qr svg { width: 100%; height: 100%; display: block; }
.ex-upi .app { display: none; align-items: center; justify-content: center; height: 50px; border-radius: 14px; background: var(--ex-teal); color: #fff !important; font-weight: 700; text-decoration: none; }

/* Small stat tiles and plain inputs (Tally export dialog) */
.ex-mini { background: #FBFAFE; border: 1px solid var(--ex-line-soft); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; }
.ex-mini span { font-size: 12px; color: var(--ex-muted); }
.ex-mini b { font-size: 18px; }
.ex-input { width: 100%; box-sizing: border-box; font: inherit; font-size: 14px; padding: 7px 10px; border: 1px solid #D9D5E5; border-radius: 10px; background: #fff; }
.ex-input:focus { outline: none; border-color: var(--ex-primary); box-shadow: 0 0 0 3px var(--ex-primary-tint); }
.ex-input.attention { border: 2px solid #FF7A45; }

/* My account (static Identity pages, Bootstrap forms restyled to match the app) */
.ex-account { max-width: 720px; padding: 24px 26px; }
.ex-account h3, .ex-account h4 { font-family: var(--ex-display); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; margin: 0 0 16px; }
.ex-account h4 { font-size: 17px; margin-top: 8px; }
.ex-account .row > [class*="col-"] { width: 100%; max-width: 480px; flex: 0 0 auto; }
.ex-account .form-control, .ex-account .form-select { border-radius: 12px; border-color: var(--ex-line); }
.ex-account .form-control:focus { border-color: var(--ex-primary); box-shadow: 0 0 0 3px var(--ex-primary-tint); }
.ex-account .form-control:disabled { background: #F6F4FC; }
.ex-account .btn { border-radius: 12px; font-weight: 700; padding: 10px 18px; }
.ex-account .btn-lg { height: 50px; font-size: 16px; }
.ex-account .btn-primary { background: var(--ex-primary); border-color: var(--ex-primary); }
.ex-account .btn-primary:hover, .ex-account .btn-primary:focus { background: var(--ex-primary-dark); border-color: var(--ex-primary-dark); }
.ex-account .btn-link, .ex-account a:not(.btn) { color: var(--ex-primary-dark); }
.ex-account .alert { border-radius: 12px; }
.ex-account .form-floating > .form-control:disabled ~ label::after { background: transparent; }
.ex-account .btn + .btn, .ex-account a.btn + a.btn { margin-left: 8px; }
.ex-account p { color: #3F4450; }
.ex-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 24px; margin: 0; font-size: 15px; }
.ex-facts dt { color: var(--ex-muted); font-weight: 500; }
.ex-facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

#blazor-error-ui {
    background: #FFF3A6; bottom: 0; box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2); display: none;
    left: 0; padding: 0.6rem 1.25rem 0.7rem 1.25rem; position: fixed; width: 100%; z-index: 2000;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 0.75rem; top: 0.5rem; }

/* Approvals */
.ex-approvals { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: 20px; align-items: start; }
.ex-approvals-list { display: flex; flex-direction: column; gap: 10px; }
.ex-approval-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 16px; background: #fff; border: 1.5px solid var(--ex-line); cursor: pointer; }
.ex-approval-item:hover { border-color: #CFC7E8; }
.ex-approval-item.current { background: var(--ex-primary-tint); border-color: var(--ex-primary); }
.ex-approval-detail { padding: 0; display: flex; flex-direction: column; overflow: hidden; min-height: 540px; }
.ex-approval-top { display: flex; gap: 22px; padding: 24px; border-bottom: 1px solid var(--ex-line-soft); }
.ex-bill-placeholder { width: 200px; height: 260px; border-radius: 16px; background: #F1EEF9; color: var(--ex-muted); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-size: 13px; flex-shrink: 0; }
.ex-facts { display: grid; grid-template-columns: 130px 1fr; row-gap: 8px; margin: 0; font-size: 14px; }
.ex-facts dt { color: var(--ex-muted); }
.ex-facts dd { margin: 0; overflow-wrap: anywhere; }
.ex-approval-actions { display: flex; gap: 10px; padding: 14px 24px; border-top: 1px solid var(--ex-line-soft); background: #FBFAFE; align-items: center; }
.ex-approval-actions .mud-input-control { margin: 0; flex-grow: 1; }
.ex-nav-badge { margin-left: auto; background: var(--ex-pending); color: var(--ex-pending-ink); font-size: 12px; font-weight: 700; border-radius: 10px; padding: 1px 8px; }
@media (max-width: 959.98px) {
    .ex-approvals { grid-template-columns: minmax(0, 1fr); }
    .ex-approval-top { flex-direction: column; }
    .ex-bill-placeholder { width: 100%; height: 140px; }
    .ex-approval-actions { flex-wrap: wrap; }
}

/* My devices */
.ex-pair { display: flex; gap: 32px; align-items: center; padding: 28px; }
.ex-qr { width: 232px; height: 232px; border-radius: 16px; border: 1px solid var(--ex-line); display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; background: #fff; }
.ex-qr svg { width: 100%; height: 100%; }
@media (max-width: 959.98px) { .ex-pair { flex-direction: column; align-items: stretch; } .ex-qr { align-self: center; } }

/* Split layouts (To pay, People) */
.ex-split { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 20px; align-items: start; }
.ex-split.right { grid-template-columns: minmax(0, 1fr) 380px; }
.ex-person { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: #fff; border: 1.5px solid var(--ex-line); cursor: pointer; font: inherit; color: inherit; width: 100%; }
.ex-person.current { background: var(--ex-primary-tint); border-color: var(--ex-primary); }
.ex-avatar { width: 38px; height: 38px; border-radius: 50%; background: #FFB4A8; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.ex-role { min-height: 60px; border-radius: 14px; border: 1.5px solid var(--ex-line); background: #fff; font: inherit; text-align: left; padding: 8px 12px; display: flex; flex-direction: column; justify-content: center; cursor: pointer; color: var(--ex-ink); }
.ex-role span { font-size: 11px; opacity: .85; }
.ex-role.on { background: var(--ex-teal); border-color: var(--ex-teal); color: #fff; }
.ex-option { display: flex; justify-content: flex-start; text-align: left; width: 100%; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--ex-line); background: #fff; font: inherit; color: inherit; cursor: pointer; align-items: flex-start; }
.ex-option .dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #B9B4CC; margin-top: 2px; flex-shrink: 0; }
.ex-option.on { border-color: var(--ex-primary); background: var(--ex-primary-tint); }
.ex-option.on .dot { border-color: var(--ex-primary); background: var(--ex-primary); }
.ex-books { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 24px; }
.ex-health { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; font-size: 13px; }
.ex-health.ok { background: var(--ex-owed); color: var(--ex-owed-ink); }
.ex-health.bad { background: #FBE3E1; color: #8C1D18; }
@media (max-width: 959.98px) {
    .ex-split, .ex-split.right, .ex-books, .ex-cheque-kpis { grid-template-columns: minmax(0, 1fr) !important; }
    .ex-books > * { grid-column: auto; }
}

/* Bill scanning */
.ex-scan { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; height: 48px; border-radius: 14px; border: 1.5px dashed #9AA39F; background: #FAFAF7; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--ex-ink); }
.ex-scan:hover { border-color: var(--ex-primary); background: var(--ex-primary-tint); }
.ex-scan input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ex-scan.busy { cursor: progress; }
.ex-bill-strip { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 14px; background: var(--ex-owed); }
.ex-bill-strip img { width: 52px; height: 64px; object-fit: cover; border-radius: 8px; background: #fff; }
.ex-bill-view { width: 200px; height: 260px; border-radius: 16px; object-fit: contain; background: #F1EEF9; flex-shrink: 0; cursor: zoom-in; }

/* Reports */
.ex-reports { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.ex-report-list { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 20px; }
.ex-report-list a { padding: 8px 12px; border-radius: 10px; color: #3A3F4B; text-decoration: none; font-size: 14px; }
.ex-report-list a:hover { background: #F1EEF9; }
.ex-report-list a.on, .ex-report-list a.active { background: var(--ex-primary-tint); color: var(--ex-primary-dark); font-weight: 700; }
.ex-report-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ex-report-table th { text-align: left; padding: 12px 16px; background: #FBFAFE; border-bottom: 1px solid var(--ex-line); font-size: 12px; font-weight: 700; color: var(--ex-muted); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; position: sticky; top: 0; }
.ex-report-table td { padding: 10px 16px; border-bottom: 1px solid var(--ex-line-soft); }
.ex-report-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ex-report-table tr.section td { background: #FBFAFE; font-weight: 700; }
.ex-report-table tr.total td { font-weight: 700; border-top: 1.5px solid var(--ex-line); background: #FFFDF6; }
.ex-report-table tr.over td { background: #FFF1EA; }
.ex-report-table tr.link { cursor: pointer; }
.ex-report-table tr.link:hover td { background: var(--ex-primary-tint); }
@media (max-width: 959.98px) {
    .ex-reports { grid-template-columns: minmax(0, 1fr); }
    .ex-report-list { position: static; flex-direction: row; flex-wrap: wrap; }
}

/* Recurring and To collect */
.ex-recurring, .ex-client { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.ex-aging { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: #EFECF6; }
.ex-message { border: 1px dashed #B9B2CF; border-radius: 14px; padding: 12px 14px; font-size: 13px; color: #3F4450; line-height: 1.5; background: #FBFAFE; overflow-wrap: anywhere; }
.ex-drop { position: relative; border: 2px dashed #C9B2FB; border-radius: 14px; padding: 12px; display: flex; gap: 12px; align-items: center; background: #F7F2FF; cursor: pointer; }
.ex-drop:hover, .ex-drop:focus-within { border-color: var(--ex-primary); }
.ex-drop-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ex-drop-thumb { width: 44px; height: 60px; border-radius: 8px; background: #E8E4F3; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--ex-primary-dark); flex-shrink: 0; }
@media (max-width: 1099.98px) {
    .ex-recurring, .ex-client { grid-template-columns: minmax(0, 1fr); }
}

/* About */
.ex-about-hero { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.ex-about-mark { width: 96px; height: 96px; border-radius: 26px; background: #1B0F3F; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ex-about-credit { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 28px 16px; text-align: center; }
.ex-made { font-size: 12px; font-weight: 700; letter-spacing: 1.4px; color: var(--ex-muted); display: inline-flex; align-items: center; gap: 6px; }

/* Sign-in brand panel: the app icon's navy, the gradient "e", the credit under the text */
.ex-auth-brand { display: flex; flex-direction: column; gap: 22px; max-width: 460px; }
.ex-auth-mark { width: 84px; height: 84px; border-radius: 24px; background: rgba(255, 255, 255, .06); display: inline-flex; align-items: center; justify-content: center; }
.ex-auth-word { font-family: var(--ex-display); font-size: 56px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.ex-auth-art .ex-auth-brand p { color: #D6CCF5; font-size: 18px; line-height: 1.5; margin: 0; }
.ex-auth-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; color: #E6DAFF; font-size: 15px; }
.ex-auth-points li { display: flex; align-items: center; gap: 10px; }
.ex-auth-points li::before { content: "✓"; width: 22px; height: 22px; border-radius: 7px; background: rgba(236, 72, 153, .18); color: #F9A8D4; font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ex-auth-credit { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 6px; }
.ex-auth-credit .ex-made { font-size: 10px; letter-spacing: 1.2px; color: #B8AEDB; }
.ex-logo.mark { background: #1B0F3F !important; padding: 0; }
.ex-logo.mark img { width: 24px; height: 24px; }
