:root {
    --primary: #3B82F6;
    --primary-dark: #1D4ED8;
    --primary-light: #DBEAFE;
    --accent: #60A5FA;
    --page: #F0F7FF;
    --sidebar: #1E3A8A;
    --topbar: #EFF6FF;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --text: #0F172A;
    --muted: #64748B;
}

body { background: var(--page); color: var(--text); font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }
.app-shell { min-height: 100vh; }
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1050;
    display: flex;
    width: 310px;
    flex-direction: column;
    overflow: hidden;
    color: #f8fafc;
    background:
        radial-gradient(circle at 15% 0, rgba(59, 130, 246, .12), transparent 30%),
        linear-gradient(155deg, #071a34 0%, #06172d 48%, #041326 100%);
    border-right: 1px solid rgba(148, 163, 184, .14);
    box-shadow: 18px 0 50px rgba(2, 12, 27, .16);
    transition: width .25s ease;
}
.sidebar-header { display: flex; align-items: center; gap: .9rem; min-height: 104px; padding: 1.25rem 1.2rem .9rem; }
.sidebar-logo { display: grid; width: 52px; height: 52px; flex: 0 0 52px; place-items: center; color: #60a5fa; border: 1px solid rgba(96, 165, 250, .2); border-radius: 14px; background: rgba(59, 130, 246, .08); }
.sidebar-logo .sidebar-icon { width: 30px; height: 30px; }
.sidebar-brand-copy { min-width: 0; flex: 1; }
.sidebar-brand { font-size: 1.75rem; font-weight: 800; letter-spacing: .01em; line-height: 1.1; }
.sidebar-subtitle { overflow: hidden; margin-top: .35rem; color: #94a3b8; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-collapse-button, .sidebar-logout {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    color: #b9c6d8;
    border: 0;
    border-radius: 10px;
    background: transparent;
}
.sidebar-collapse-button:hover, .sidebar-logout:hover { color: #fff; background: rgba(148, 163, 184, .12); }
.sidebar-collapse-button .sidebar-icon { width: 22px; height: 22px; transform: rotate(180deg); transition: transform .25s ease; }
.sidebar-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    margin: 0 1rem .75rem;
    color: #94a3b8;
}
.sidebar-search-wrap .sidebar-icon { position: absolute; left: .9rem; width: 20px; height: 20px; pointer-events: none; }
.sidebar-search-wrap input {
    width: 100%;
    height: 46px;
    padding: 0 .85rem 0 2.8rem;
    color: #e2e8f0;
    border: 1px solid rgba(148, 163, 184, .16);
    border-radius: 11px;
    outline: 0;
    background: rgba(15, 38, 68, .72);
}
.sidebar-search-wrap input::placeholder { color: #8492a8; }
.sidebar-search-wrap input:focus { border-color: rgba(96, 165, 250, .55); box-shadow: 0 0 0 3px rgba(59, 130, 246, .11); }
.sidebar-nav { flex: 1; overflow-x: hidden; overflow-y: auto; padding: 0 .75rem 1rem; scrollbar-color: rgba(148, 163, 184, .25) transparent; scrollbar-width: thin; }
.sidebar-section { margin-top: .65rem; }
.sidebar-section-label { padding: .4rem .65rem .35rem; color: #8290a5; font-size: .68rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.sidebar-module { position: relative; margin: .12rem 0; border-radius: 10px; }
.sidebar-module.active { background: linear-gradient(90deg, rgba(37, 99, 235, .3), rgba(59, 130, 246, .1)); }
.sidebar-module.active::before { position: absolute; z-index: 1; top: 8px; bottom: 8px; left: -12px; width: 4px; border-radius: 0 4px 4px 0; background: #3b82f6; content: ""; }
.sidebar-module-link, .sidebar-module-toggle {
    display: flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    gap: .9rem;
    padding: .65rem .75rem;
    color: #eef4ff;
    border: 0;
    border-radius: 10px;
    background: transparent;
    text-align: left;
    text-decoration: none;
}
.sidebar-module-link:hover, .sidebar-module-toggle:hover, .sidebar-module-link:focus-visible, .sidebar-module-toggle:focus-visible { color: #fff; background: rgba(148, 163, 184, .1); outline: 0; }
.sidebar-module.active > .sidebar-module-link, .sidebar-module.active > .sidebar-module-toggle { color: #fff; font-weight: 700; }
.sidebar-icon { width: 23px; height: 23px; flex: 0 0 23px; }
.sidebar-module-label { min-width: 0; flex: 1; font-size: .94rem; }
.sidebar-module-chevron { display: grid; width: 22px; place-items: center; color: #9baac0; transition: transform .2s ease; }
.sidebar-module-chevron .sidebar-icon { width: 18px; height: 18px; }
.sidebar-module-toggle:not(.collapsed) .sidebar-module-chevron { transform: rotate(90deg); }
.sidebar-submenu { padding: .1rem 0 .35rem 2.65rem; }
.sidebar-submenu-link { display: flex; min-height: 35px; align-items: center; gap: .6rem; padding: .35rem .65rem; color: #aebbd0; border-radius: 8px; font-size: .82rem; text-decoration: none; }
.sidebar-submenu-link > span { width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%; background: #51657f; }
.sidebar-submenu-link:hover { color: #fff; background: rgba(148, 163, 184, .08); }
.sidebar-submenu-link.active { color: #60a5fa; font-weight: 650; }
.sidebar-submenu-link.active > span { background: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246, .16); }
.sidebar-no-results { padding: 2rem 1rem; color: #94a3b8; text-align: center; font-size: .85rem; }
.sidebar-footer { padding: .8rem; border-top: 1px solid rgba(148, 163, 184, .13); background: rgba(3, 15, 31, .38); }
.sidebar-profile { display: flex; align-items: center; gap: .75rem; padding: .75rem; border: 1px solid rgba(148, 163, 184, .14); border-radius: 12px; background: rgba(19, 44, 76, .58); }
.sidebar-avatar { display: grid; width: 44px; height: 44px; flex: 0 0 44px; place-items: center; color: #60a5fa; border: 1px solid rgba(96, 165, 250, .16); border-radius: 50%; background: rgba(59, 130, 246, .1); font-size: 1.05rem; font-weight: 700; }
.sidebar-profile-copy { min-width: 0; flex: 1; }
.sidebar-profile-copy strong, .sidebar-profile-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-profile-copy strong { color: #f8fafc; font-size: .86rem; }
.sidebar-profile-copy span { margin-top: .12rem; color: #8fa0b8; font-size: .74rem; }
.sidebar-logout .sidebar-icon { width: 22px; height: 22px; }
.main-content { min-height: 100vh; margin-left: 310px; transition: margin-left .25s ease; }
.topbar { min-height: 72px; display: flex; align-items: center; gap: 1rem; padding: .75rem 2rem; background: var(--topbar); border-bottom: 1px solid #dbeafe; position: sticky; top: 0; z-index: 1020; }
.topbar-title { color: #64748b; font-size: .88rem; font-weight: 600; }
body.sidebar-collapsed .sidebar { width: 82px; }
body.sidebar-collapsed .main-content { margin-left: 82px; }
body.sidebar-collapsed .sticky-save { left: 82px; }
body.sidebar-collapsed .sidebar-brand-copy,
body.sidebar-collapsed .sidebar-search-wrap,
body.sidebar-collapsed .sidebar-section-label,
body.sidebar-collapsed .sidebar-module-label,
body.sidebar-collapsed .sidebar-module-chevron,
body.sidebar-collapsed .sidebar-submenu,
body.sidebar-collapsed .sidebar-profile-copy,
body.sidebar-collapsed .sidebar-footer form { display: none; }
body.sidebar-collapsed .sidebar-header { justify-content: center; padding-inline: .75rem; }
body.sidebar-collapsed .sidebar-logo { width: 48px; height: 48px; flex-basis: 48px; }
body.sidebar-collapsed .sidebar-collapse-button { position: absolute; top: 82px; width: 28px; height: 28px; border: 1px solid rgba(148, 163, 184, .18); background: #0b2340; }
body.sidebar-collapsed .sidebar-collapse-button .sidebar-icon { transform: none; }
body.sidebar-collapsed .sidebar-nav { padding: 2rem .6rem 1rem; }
body.sidebar-collapsed .sidebar-section { margin-top: .3rem; }
body.sidebar-collapsed .sidebar-module-link,
body.sidebar-collapsed .sidebar-module-toggle { justify-content: center; padding-inline: 0; }
body.sidebar-collapsed .sidebar-profile { justify-content: center; padding: .55rem; }
body.sidebar-collapsed .sidebar-avatar { width: 40px; height: 40px; flex-basis: 40px; }
.content-wrap { padding: 1.5rem 2rem 6rem; }
.page-title { font-size: 1.75rem; font-weight: 750; }
.app-card { border: 0; border-radius: 12px; box-shadow: 0 8px 28px rgba(30, 58, 138, .08); }
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.bg-light-blue { background: var(--primary-light); }
.kpi-card { height: 100%; background: #fff; border-radius: 12px; padding: 1rem; box-shadow: 0 6px 20px rgba(30,58,138,.07); border-left: 4px solid var(--primary); }
.kpi-card span, .metric span { display: block; color: var(--muted); font-size: .78rem; margin-bottom: .35rem; }
.kpi-card strong { display: block; font-size: 1.05rem; }
.metric { padding: 1rem; border-radius: 10px; background: var(--topbar); }
.metric strong { font-size: 1.1rem; }
.quick-tile { display: flex; min-height: 90px; flex-direction: column; justify-content: center; border-radius: 12px; background: #fff; box-shadow: 0 6px 20px rgba(30,58,138,.08); padding: 1rem; color: var(--text); text-decoration: none; font-weight: 700; border: 1px solid transparent; }
.quick-tile span { color: var(--primary); font-size: .8rem; margin-top: .35rem; }
.quick-tile:hover { border-color: var(--accent); color: var(--primary-dark); }
.sticky-save { position: fixed; z-index: 1015; bottom: 0; left: 310px; right: 0; display: flex; justify-content: flex-end; gap: .75rem; padding: .85rem 2rem; background: rgba(255,255,255,.95); border-top: 1px solid #dbeafe; box-shadow: 0 -6px 20px rgba(30,58,138,.07); transition: left .25s ease; }
.app-toast { position: fixed; top: 85px; right: 24px; z-index: 1080; min-width: 260px; }
.table thead th { white-space: nowrap; background: #eff6ff; color: #1e3a8a; font-size: .8rem; text-transform: uppercase; letter-spacing: .025em; }
.table td { max-width: 260px; font-size: .88rem; }
.form-label { color: #334155; font-weight: 650; font-size: .88rem; }
.form-control:focus, .form-select:focus, .ts-control.focus { border-color: var(--accent); box-shadow: 0 0 0 .2rem rgba(59,130,246,.16); }
.login-page { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(135deg, #dbeafe, #f0f7ff 45%, #bfdbfe); }
.login-card { width: min(420px, calc(100% - 2rem)); padding: 2rem; border-radius: 16px; background: #fff; box-shadow: 0 20px 60px rgba(30,58,138,.18); }
.login-logo { color: var(--sidebar); text-align: center; font-size: 2rem; font-weight: 800; letter-spacing: .08em; }
.daysheet-grid input { min-width: 125px; }
.pmjay-case-box { height: 100%; padding: 1rem; border: 1px solid #dbeafe; border-radius: 12px; background: #f8fbff; }
.pmjay-claim-totals { display: grid; grid-template-columns: repeat(2,minmax(180px,1fr)); gap: .85rem; padding: 1rem; border: 1px solid #bae6fd; border-radius: 12px; background: #f0f9ff; }
.pmjay-claim-totals label > span { display: block; margin-bottom: .35rem; color: #0c4a6e; font-size: .78rem; font-weight: 750; }
@media (max-width: 767.98px) { .pmjay-claim-totals { grid-template-columns: 1fr; } }
.daysheet-total-boxes { display: grid; grid-template-columns: repeat(5,minmax(140px,1fr)); gap: .75rem; margin-top: 1rem; padding: 1rem; border: 1px solid #dbeafe; border-radius: 12px; background: #f8fbff; }
.daysheet-total-boxes label > span { display: block; margin-bottom: .35rem; color: #475569; font-size: .76rem; font-weight: 700; }
@media (max-width: 1199.98px) { .daysheet-total-boxes { grid-template-columns: repeat(3,minmax(140px,1fr)); } }
@media (max-width: 767.98px) { .daysheet-total-boxes { grid-template-columns: 1fr; } }
.rtgs-group-section { padding-top: 1rem; border-top: 1px solid #dbeafe; }
.rtgs-lines { overflow-x: auto; }
.rtgs-line {
    position: relative;
    display: grid;
    min-width: 900px;
    grid-template-columns: minmax(190px, 1.5fr) minmax(125px, .75fr) minmax(190px, 1.35fr) minmax(125px, .75fr) minmax(135px, .85fr) 36px;
    gap: .75rem;
    align-items: end;
    padding: .8rem 0 1rem;
    border-bottom: 1px solid #e2e8f0;
}
.rtgs-line .ts-wrapper { min-width: 0; }
.rtgs-balance-after { min-height: 38px; display: flex; align-items: center; padding: .45rem .65rem; color: #1d4ed8; border-radius: 8px; background: #eff6ff; font-weight: 700; white-space: nowrap; }
.rtgs-remove-row { width: 34px; height: 38px; color: #ef4444; border: 0; border-radius: 8px; background: #fee2e2; font-size: 1.35rem; line-height: 1; }
.rtgs-remove-row:hover { color: #fff; background: #ef4444; }
.rtgs-grand-total { display: flex; justify-content: space-between; padding: 1rem .25rem 0; color: #0f172a; font-size: 1.05rem; }
.rtgs-grand-total strong { color: #1d4ed8; font-size: 1.25rem; }
.monthly-sheet-heading { padding: 1rem 1.15rem; border: 1px solid #bae6fd; border-radius: 12px; background: linear-gradient(120deg, #f0f9ff, #fff); }
.monthly-sheet-heading span, .form-section-heading span { color: #64748b; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.monthly-sheet-heading h2, .form-section-heading h2 { margin: .25rem 0 0; color: #0f2742; font-size: 1.15rem; font-weight: 750; }
.form-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .7rem; padding: 1rem 1.1rem .75rem; border: 1px solid #bae6fd; border-bottom: 0; border-radius: 12px 12px 0 0; background: #f0f9ff; }
.od-meter { height: 8px; overflow: hidden; margin-bottom: 1rem; border-radius: 0 0 12px 12px; background: #dbeafe; }
.od-meter span { display: block; width: 0; height: 100%; border-radius: inherit; background: #38bdf8; transition: width .25s ease; }
.od-meter-copy { display: flex; flex-direction: column; text-align: right; }
.od-meter-copy strong { color: #0f2742; font-size: .85rem; }
.od-meter-copy span { color: #64748b; font-size: .7rem; letter-spacing: 0; text-transform: none; }
.screen-intro { display: flex; align-items: flex-start; justify-content: space-between; padding: 1.1rem 1.25rem; color: #e2e8f0; border: 1px solid rgba(56,189,248,.18); border-radius: 14px; background: linear-gradient(135deg, #071a34, #0b2441); }
.screen-intro span { color: #38bdf8; font-size: .7rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.screen-intro h2 { margin: .25rem 0; font-size: 1.35rem; }
.screen-intro p { margin: 0; color: #94a3b8; font-size: .85rem; }
.purpose-chips { display: flex; flex-wrap: wrap; gap: .55rem; }
.purpose-chips input { position: absolute; opacity: 0; pointer-events: none; }
.purpose-chips span { display: block; padding: .55rem .8rem; color: #475569; border: 1px solid #cbd5e1; border-radius: 999px; background: #fff; cursor: pointer; transition: .15s ease; }
.purpose-chips input:checked + span, .purpose-chips input:focus-visible + span { color: #075985; border-color: #38bdf8; background: #e0f2fe; box-shadow: 0 0 0 2px rgba(56,189,248,.12); }
.investment-readouts { display: grid; grid-template-columns: .8fr 1fr 1.8fr; gap: 1rem; padding: 1rem; border-radius: 12px; background: #f0f9ff; }
.investment-readouts span, .investment-readouts strong { display: block; }
.investment-readouts span { color: #64748b; font-size: .72rem; font-weight: 650; text-transform: uppercase; }
.investment-readouts strong { margin-top: .25rem; color: #0c4a6e; font-size: .95rem; }
.investment-analysis-nav { display: flex; flex-wrap: wrap; gap: .35rem; padding: .45rem; border: 1px solid #dbeafe; border-radius: 12px; background: #fff; box-shadow: 0 6px 20px rgba(30,58,138,.06); }
.investment-analysis-nav a { padding: .55rem .8rem; color: #64748b; border-radius: 9px; font-size: .82rem; font-weight: 650; text-decoration: none; }
.investment-analysis-nav a:hover,.investment-analysis-nav a.active { color: #075985; background: #e0f2fe; }
.investment-health { display: inline-block; padding: .3rem .55rem; border-radius: 999px; font-size: .68rem; font-weight: 750; }
.investment-health.healthy { color: #047857; background: #d1fae5; }
.investment-health.watch { color: #a16207; background: #fef3c7; }
.investment-health.loss { color: #be123c; background: #ffe4e6; }
#investment-value-chart,#investment-roi-chart { min-height: 300px; }
.column-pattern { display: grid; grid-template-columns: repeat(auto-fit,minmax(190px,1fr)); gap: .55rem; }
.column-pattern span { display: flex; align-items: center; gap: .55rem; padding: .55rem .7rem; color: #334155; border: 1px solid #e2e8f0; border-radius: 8px; background: #f8fafc; font-size: .78rem; }
.column-pattern b { display: grid; width: 24px; height: 24px; place-items: center; color: #075985; border-radius: 6px; background: #e0f2fe; }
@media (max-width: 767.98px) { .investment-readouts { grid-template-columns: 1fr; } }
canvas { max-height: 320px; }

/* Dashboard command center */
.dashboard-theme { --dash-bg: #030d20; --dash-panel: #07152d; --dash-panel-2: #0a1933; --dash-border: rgba(125, 156, 204, .24); background: var(--dash-bg); color: #eef5ff; }
.dashboard-theme .main-content { position: relative; overflow: hidden; background:
    radial-gradient(circle at 72% -10%, rgba(30, 64, 175, .18), transparent 34%),
    radial-gradient(circle at 100% 45%, rgba(88, 28, 135, .1), transparent 30%),
    var(--dash-bg);
}
.dashboard-theme .main-content::after { position: fixed; right: -100px; bottom: -100px; width: 420px; height: 260px; pointer-events: none; opacity: .12; background: repeating-radial-gradient(ellipse at bottom right, transparent 0 12px, #38bdf8 13px 14px, transparent 15px 24px); content: ""; }
.dashboard-topbar { min-height: 88px; color: #dce9fb; border-bottom-color: rgba(125, 156, 204, .12); background: rgba(3, 13, 32, .88); backdrop-filter: blur(18px); }
.dashboard-menu-button, .dashboard-action-button { display: grid; width: 44px; height: 44px; flex: 0 0 44px; place-items: center; color: #b9c8de; border: 1px solid transparent; border-radius: 12px; background: transparent; }
.dashboard-menu-button:hover, .dashboard-action-button:hover { color: #fff; border-color: var(--dash-border); background: #08182f; }
.dashboard-menu-button svg, .dashboard-action-button svg { width: 23px; height: 23px; }
.dashboard-command-search { display: flex; width: min(430px, 42vw); height: 50px; align-items: center; gap: .75rem; margin-left: .45rem; padding: 0 .85rem; color: #90a2bb; border: 1px solid var(--dash-border); border-radius: 13px; background: #07152b; box-shadow: inset 0 1px 0 rgba(255,255,255,.025); }
.dashboard-command-search svg { width: 22px; height: 22px; }
.dashboard-command-search input { min-width: 0; flex: 1; color: #ecf4ff; border: 0; outline: 0; background: transparent; }
.dashboard-command-search input::placeholder { color: #9aacbf; }
.dashboard-command-search kbd { padding: .25rem .4rem; color: #9fb0c7; border: 1px solid rgba(125,156,204,.18); border-radius: 6px; background: #101f37; font: 600 .68rem/1 Inter, sans-serif; }
.dashboard-topbar-actions { display: flex; align-items: center; gap: .7rem; margin-left: auto; }
.dashboard-action-button { position: relative; border-color: rgba(125,156,204,.15); background: #07152b; }
.dashboard-action-button > span { position: absolute; top: -5px; right: -3px; display: grid; min-width: 19px; height: 19px; place-items: center; color: #fff; border: 2px solid #030d20; border-radius: 50%; background: #8b5cf6; font-size: .65rem; font-weight: 700; }
.dashboard-user { display: flex; min-width: 230px; align-items: center; gap: .75rem; margin-left: .3rem; padding-left: .8rem; border-left: 1px solid rgba(125,156,204,.16); }
.dashboard-user-avatar { display: grid; width: 46px; height: 46px; flex: 0 0 46px; place-items: center; border-radius: 50%; background: linear-gradient(135deg,#38bdf8,#7c3aed 70%); box-shadow: 0 0 24px rgba(124,58,237,.24); font-weight: 750; }
.dashboard-user-copy { min-width: 0; flex: 1; }
.dashboard-user-copy strong, .dashboard-user-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-user-copy strong { color: #f8fbff; font-size: .84rem; }
.dashboard-user-copy small { margin-top: .15rem; color: #97a7bc; font-size: .72rem; }
.dashboard-user > svg { width: 17px; height: 17px; transform: rotate(90deg); color: #9aabc0; }
.dashboard-content { position: relative; z-index: 1; max-width: 1600px; margin: 0 auto; padding: 1rem 1.35rem 3rem; }
.dashboard-hero { position: relative; overflow: hidden; margin-bottom: 1.45rem; padding: 2.1rem 1.55rem 1.25rem; border: 1px solid var(--dash-border); border-radius: 17px; background: linear-gradient(120deg,rgba(9,28,57,.96),rgba(6,20,43,.96)); box-shadow: 0 18px 60px rgba(0,0,0,.2); }
.dashboard-hero::after { position: absolute; top: -35px; right: -10px; width: 430px; height: 190px; opacity: .2; background: repeating-radial-gradient(ellipse at center right, transparent 0 10px, #2563eb 11px 12px, transparent 13px 20px); content: ""; transform: rotate(-7deg); }
.dashboard-hero-copy { position: relative; z-index: 1; }
.dashboard-hero h1 { margin: 0; color: #f8fbff; font-size: clamp(1.2rem,2vw,1.55rem); font-weight: 750; }
.dashboard-hero p { margin: .45rem 0 0; color: #a8b7cb; font-size: .9rem; }
.dashboard-filter { position: relative; z-index: 1; display: grid; grid-template-columns: 150px 150px minmax(220px,1fr) auto; gap: .75rem; align-items: end; margin-top: 1.5rem; padding: .8rem; border: 1px solid rgba(125,156,204,.14); border-radius: 13px; background: rgba(4,15,34,.52); }
.dashboard-filter label { min-width: 0; }
.dashboard-filter label > span { display: block; margin: 0 0 .3rem .2rem; color: #7f91a9; font-size: .66rem; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; }
.dashboard-filter input, .dashboard-filter select { width: 100%; height: 44px; padding: 0 .85rem; color: #e4edfa; border: 1px solid rgba(125,156,204,.22); border-radius: 10px; outline: 0; background: #091a33; color-scheme: dark; }
.dashboard-filter input:focus, .dashboard-filter select:focus { border-color: #38bdf8; box-shadow: 0 0 0 3px rgba(56,189,248,.1); }
.dashboard-filter button { display: flex; height: 44px; align-items: center; justify-content: center; gap: .55rem; padding: 0 1.2rem; color: #fff; border: 0; border-radius: 10px; background: linear-gradient(115deg,#168cff,#a72de4); box-shadow: 0 8px 24px rgba(80,70,229,.27); font-weight: 650; }
.dashboard-filter button svg { width: 18px; height: 18px; }
.dashboard-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.dashboard-metric-card { --tone:#38bdf8; position: relative; min-width: 0; overflow: hidden; padding: 1.3rem 1.25rem .7rem; border: 1px solid color-mix(in srgb,var(--tone) 45%,transparent); border-radius: 15px; background: radial-gradient(circle at 15% 10%,color-mix(in srgb,var(--tone) 10%,transparent),transparent 35%),linear-gradient(145deg,#081a34,#06142a); box-shadow: inset 0 1px 0 rgba(255,255,255,.025),0 14px 40px rgba(0,0,0,.15); }
.dashboard-metric-card.tone-green { --tone:#34d399; }
.dashboard-metric-card.tone-violet { --tone:#a855f7; }
.dashboard-metric-card.tone-rose { --tone:#fb7185; }
.dashboard-metric-top { display: flex; align-items: center; gap: 1rem; }
.dashboard-metric-icon { display: grid; width: 57px; height: 57px; flex: 0 0 57px; place-items: center; color: #fff; border-radius: 50%; background: color-mix(in srgb,var(--tone) 78%,#102143); box-shadow: 0 0 27px color-mix(in srgb,var(--tone) 25%,transparent); }
.dashboard-metric-icon svg { width: 30px; height: 30px; }
.dashboard-metric-copy { min-width: 0; flex: 1; }
.dashboard-metric-copy span { display: block; color: #b8c6d9; font-size: .8rem; }
.dashboard-metric-copy strong { display: block; margin-top: .35rem; color: #fff; font-size: 1.5rem; }
.dashboard-more { align-self: flex-start; color: #91a0b6; border: 0; background: none; font-size: 1.35rem; }
.dashboard-metric-meta { display: flex; align-items: center; justify-content: space-between; margin: .8rem 0 -.2rem; padding-left: 73px; color: #91a0b6; font-size: .75rem; }
.dashboard-metric-meta b { padding: .25rem .45rem; color: #6ee7b7; border-radius: 8px; background: rgba(16,185,129,.13); font-size: .67rem; }
.dashboard-metric-meta b.is-down { color: #fda4af; background: rgba(244,63,94,.13); }
.dashboard-sparkline { width: 100% !important; height: 62px !important; margin-top: .15rem; }
.dashboard-financial-section { margin-bottom: 1.4rem; padding: 1.2rem; border: 1px solid var(--dash-border); border-radius: 17px; background: linear-gradient(145deg,#081833,#06142b); box-shadow: 0 16px 50px rgba(0,0,0,.16); }
.dashboard-section-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.dashboard-section-header > div:first-child { display: flex; align-items: center; gap: .75rem; }
.dashboard-section-header > div:first-child > svg { width: 29px; height: 29px; color: #38bdf8; }
.dashboard-section-header span { color: #8192a9; font-size: .68rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.dashboard-section-header h2 { margin: .1rem 0 0; color: #f8fbff; font-size: 1.05rem; }
.dashboard-balance-totals { display: flex; overflow: hidden; border: 1px solid rgba(125,156,204,.16); border-radius: 11px; background: rgba(6,20,43,.6); }
.dashboard-balance-totals > span { display: block; min-width: 150px; padding: .55rem .8rem; border-right: 1px solid rgba(125,156,204,.14); }
.dashboard-balance-totals > span:last-child { border-right: 0; }
.dashboard-balance-totals small, .dashboard-balance-totals strong { display: block; }
.dashboard-balance-totals small { color: #8192a9; font-size: .62rem; }
.dashboard-balance-totals strong { margin-top: .15rem; color: #eaf3ff; font-size: .82rem; }
.dashboard-balance-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(245px,1fr)); gap: .85rem; }
.dashboard-balance-empty { grid-column: 1 / -1; padding: 1.2rem; color: #8192a9; border: 1px dashed rgba(125,156,204,.2); border-radius: 11px; text-align: center; font-size: .78rem; }
.dashboard-balance-card { min-width: 0; padding: 1rem; border: 1px solid rgba(56,189,248,.25); border-radius: 13px; background: radial-gradient(circle at 100% 0,rgba(56,189,248,.08),transparent 42%),#07172e; }
.dashboard-balance-card-head { display: flex; align-items: center; justify-content: space-between; gap: .65rem; }
.dashboard-balance-card-head > span { display: grid; width: 37px; height: 37px; place-items: center; color: #38bdf8; border-radius: 10px; background: rgba(56,189,248,.12); }
.dashboard-balance-card-head svg { width: 21px; height: 21px; }
.dashboard-balance-card-head small { overflow: hidden; color: #8ea0b8; font-size: .65rem; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-balance-card h3 { overflow: hidden; margin: .8rem 0 .2rem; color: #f3f8ff; font-size: .88rem; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-balance-card h3 em { margin-left: .35rem; padding: .17rem .35rem; color: #6ee7b7; border-radius: 5px; background: rgba(16,185,129,.12); font-size: .55rem; font-style: normal; }
.dashboard-balance-card p { overflow: hidden; margin: 0 0 .8rem; color: #70839c; font-size: .67rem; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-balance-card > div:last-child:not(.dashboard-credit-caption) { display: flex; align-items: flex-end; justify-content: space-between; gap: .6rem; }
.dashboard-balance-card > div:last-child > span { color: #8192a9; font-size: .64rem; }
.dashboard-balance-card > div:last-child > strong { color: #fff; font-size: 1rem; }
.dashboard-balance-card > div:last-child > strong.is-negative { color: #fda4af; }
.dashboard-subsection-heading { display: flex; align-items: center; gap: .55rem; margin: 1.15rem 0 .75rem; color: #cfdbeb; }
.dashboard-subsection-heading span { display: grid; width: 28px; height: 28px; place-items: center; color: #a78bfa; border-radius: 7px; background: rgba(124,58,237,.14); }
.dashboard-subsection-heading svg { width: 17px; height: 17px; }
.dashboard-subsection-heading h3 { margin: 0; font-size: .85rem; }
.od-balance-card { border-color: rgba(167,139,250,.28); background: radial-gradient(circle at 100% 0,rgba(124,58,237,.11),transparent 42%),#07172e; }
.od-balance-card .dashboard-balance-card-head > span { color: #a78bfa; background: rgba(124,58,237,.14); }
.dashboard-od-values { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-bottom: .65rem; }
.dashboard-od-values span { min-width: 0; padding: .55rem .6rem; border-radius: 8px; background: rgba(16,34,61,.75); }
.dashboard-od-values small, .dashboard-od-values b { display: block; }
.dashboard-od-values small { color: #8192a9; font-size: .6rem; }
.dashboard-od-values b { margin-top: .15rem; color: #eaf2ff; font-size: .78rem; }
.dashboard-credit-meter { height: 6px; overflow: hidden; border-radius: 999px; background: #172a47; }
.dashboard-credit-meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#38bdf8,#8b5cf6); }
.dashboard-credit-caption { display: flex; justify-content: space-between; margin-top: .35rem; color: #71839b; font-size: .6rem; }
.active-loans-panel .dashboard-panel-title > span { color: #38bdf8; background: rgba(56,189,248,.13); }
.dashboard-empty.compact { min-height: 150px; }
.dashboard-empty.compact svg { width: 50px; height: 50px; }
.transaction-status.is-overdue { color: #fda4af; background: rgba(244,63,94,.13); }
.dashboard-panel { overflow: hidden; margin-bottom: 1.4rem; border: 1px solid var(--dash-border); border-radius: 17px; background: linear-gradient(145deg,#081833,#06142b); box-shadow: 0 16px 50px rgba(0,0,0,.16); }
.dashboard-panel > header { display: flex; align-items: center; justify-content: space-between; padding: 1.2rem; }
.dashboard-panel-title { display: flex; align-items: center; gap: .75rem; }
.dashboard-panel-title > span { display: grid; width: 42px; height: 42px; place-items: center; color: #a78bfa; border-radius: 11px; background: rgba(124,58,237,.18); }
.dashboard-panel-title svg { width: 23px; height: 23px; }
.dashboard-panel h2, .dashboard-quick-section h2 { margin: 0; color: #f8fbff; font-size: 1rem; font-weight: 700; }
.dashboard-panel header > a { display: flex; align-items: center; gap: .4rem; padding: .6rem .8rem; color: #cfdaea; border: 1px solid rgba(125,156,204,.18); border-radius: 9px; background: #0d1e38; font-size: .76rem; text-decoration: none; }
.dashboard-panel header > a svg { width: 16px; height: 16px; }
.dashboard-table-wrap { margin: 0 1rem 1rem; overflow-x: auto; border: 1px solid rgba(125,156,204,.17); border-radius: 13px; }
.dashboard-table-wrap table { width: 100%; min-width: 720px; border-collapse: collapse; }
.dashboard-table-wrap th { padding: .9rem 1.1rem; color: #acb9cc; border-bottom: 1px solid rgba(125,156,204,.18); background: rgba(19,39,69,.55); font-size: .72rem; font-weight: 600; text-align: left; }
.dashboard-table-wrap td { padding: .9rem 1.1rem; color: #dbe7f7; border-bottom: 1px solid rgba(125,156,204,.1); font-size: .78rem; }
.dashboard-table-wrap tr:last-child td { border-bottom: 0; }
.transaction-category { color: #93c5fd; }
.transaction-status { padding: .28rem .5rem; color: #6ee7b7; border-radius: 999px; background: rgba(16,185,129,.12); font-size: .68rem; }
.dashboard-empty { display: flex; min-height: 235px; flex-direction: column; align-items: center; justify-content: center; color: #7e8da4; }
.dashboard-empty svg { width: 72px; height: 72px; margin-bottom: .8rem; color: #66769b; filter: drop-shadow(0 0 18px rgba(99,102,241,.2)); }
.dashboard-empty strong { color: #eef5ff; font-size: .94rem; }
.dashboard-empty span { margin-top: .45rem; font-size: .75rem; }
.dashboard-quick-section > header { display: flex; align-items: center; gap: .6rem; margin: 0 0 .9rem .4rem; }
.dashboard-quick-section > header svg { width: 24px; height: 24px; color: #8b5cf6; fill: rgba(139,92,246,.3); }
.dashboard-quick-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: .9rem; }
.dashboard-quick-card { --tone:#38bdf8; position: relative; display: flex; min-height: 180px; flex-direction: column; align-items: center; justify-content: center; padding: 1rem; color: #eef5ff; border: 1px solid color-mix(in srgb,var(--tone) 58%,transparent); border-radius: 14px; background: radial-gradient(circle at 50% 20%,color-mix(in srgb,var(--tone) 9%,transparent),transparent 48%),#07152c; text-decoration: none; transition: transform .18s ease,box-shadow .18s ease; }
.dashboard-quick-card:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 12px 30px color-mix(in srgb,var(--tone) 14%,transparent); }
.dashboard-quick-card.tone-green { --tone:#34d399; }.dashboard-quick-card.tone-rose { --tone:#fb4f7b; }.dashboard-quick-card.tone-violet { --tone:#a855f7; }.dashboard-quick-card.tone-amber { --tone:#f59e0b; }
.dashboard-quick-icon { display: grid; width: 58px; height: 58px; place-items: center; color: var(--tone); }
.dashboard-quick-icon svg { width: 47px; height: 47px; }
.dashboard-quick-card strong { margin-top: .75rem; font-size: .85rem; }
.dashboard-quick-line { position: absolute; right: 2.6rem; bottom: 1.7rem; left: .8rem; height: 2px; background: linear-gradient(90deg,var(--tone),transparent); }
.dashboard-quick-arrow { position: absolute; right: .9rem; bottom: 1.15rem; color: #c8d4e5; }
.dashboard-quick-arrow svg { width: 18px; height: 18px; }
.dashboard-panel-title small { display: block; margin-top: .2rem; color: #7f91a9; font-size: .67rem; }
.dashboard-comparison-chart { height: 360px; padding: .5rem 1rem 1.2rem; }
.dashboard-comparison-chart canvas { width: 100% !important; height: 100% !important; max-height: none; }
.dashboard-restricted-welcome { display: flex; min-height: calc(100vh - 150px); flex-direction: column; align-items: center; justify-content: center; padding: 2rem; color: #dce9fb; text-align: center; }
.dashboard-restricted-icon { display: grid; width: 88px; height: 88px; margin-bottom: 1.25rem; place-items: center; color: #38bdf8; border: 1px solid rgba(56,189,248,.3); border-radius: 24px; background: rgba(56,189,248,.1); box-shadow: 0 0 45px rgba(56,189,248,.12); }
.dashboard-restricted-icon svg { width: 48px; height: 48px; }
.dashboard-restricted-welcome > span { color: #38bdf8; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.dashboard-restricted-welcome h1 { margin: .5rem 0; color: #fff; font-size: clamp(1.5rem,4vw,2.5rem); }
.dashboard-restricted-welcome p { color: #91a2b9; }
.dashboard-restricted-welcome > div:last-child { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: .5rem; }
.dashboard-restricted-welcome > div:last-child strong { padding: .55rem .8rem; color: #dff6ff; border: 1px solid rgba(56,189,248,.2); border-radius: 999px; background: rgba(10,38,67,.8); font-size: .8rem; }
.dashboard-theme.dashboard-bright { --dash-bg:#07152b; --dash-panel:#0b1c38; --dash-panel-2:#102443; }

@media (max-width: 1199.98px) {
    .dashboard-command-search { width: min(350px,35vw); }
    .dashboard-user { min-width: 170px; }
    .dashboard-quick-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .dashboard-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .dashboard-section-header { align-items: flex-start; flex-direction: column; }
    .dashboard-balance-totals { width: 100%; }
    .dashboard-balance-totals > span { min-width: 0; flex: 1; }
}

@media (max-width: 767.98px) {
    .dashboard-topbar { min-height: 70px; }
    .dashboard-command-search { width: auto; flex: 1; }
    .dashboard-command-search kbd, .dashboard-topbar-actions .dashboard-user-copy, .dashboard-user > svg { display: none; }
    .dashboard-user { min-width: 46px; padding-left: .4rem; }
    .dashboard-action-button { display: none; }
    .dashboard-content { padding: .75rem .75rem 2rem; }
    .dashboard-hero { padding: 1.4rem 1rem 1rem; }
    .dashboard-filter { grid-template-columns: 1fr 1fr; }
    .dashboard-business-filter, .dashboard-filter button { grid-column: 1 / -1; }
    .dashboard-metrics { grid-template-columns: 1fr; }
    .dashboard-quick-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .dashboard-quick-card { min-height: 145px; }
    .dashboard-balance-totals { flex-direction: column; }
    .dashboard-balance-totals > span { border-right: 0; border-bottom: 1px solid rgba(125,156,204,.14); }
    .dashboard-balance-totals > span:last-child { border-bottom: 0; }
}

@media (max-width: 991.98px) {
    .sidebar { --bs-offcanvas-width: min(330px, 88vw); position: fixed; width: min(330px, 88vw); }
    .sidebar-collapse-button { display: none; }
    .main-content { margin-left: 0; }
    .sticky-save { left: 0; }
    .content-wrap { padding: 1rem 1rem 6rem; }
    .topbar { padding: .75rem 1rem; }
}

@media print {
    .sidebar, .topbar, .no-print, .btn, form, .sticky-save, .breadcrumb { display: none !important; }
    .main-content { margin: 0; }
    .content-wrap { padding: 0; }
    .app-card { box-shadow: none; }
    body { background: #fff; }
}
