/* Original Flask presentation inspired by satnaing/shadcn-admin's dashboard layout. */
:root{--ws-bg:#fff;--ws-surface:#fff;--ws-muted:#f7f8fa;--ws-line:#e3e7ed;--ws-ink:#182130;--ws-subtle:#657184;--ws-accent:#2563eb;--ws-sidebar:252px}
body.public-page{background:#f8fafc;background-image:none;color:#182130}.public-page::before{display:none}.public-page .login-card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;box-shadow:0 8px 30px #17203306}.public-page .login-card h1{color:#182130}.public-page .btn-primary{background:#1d293d;color:#fff;border-color:#1d293d}
body.workspace,body.workspace:has(.owner-shell){background:var(--ws-bg);color:var(--ws-ink);font-size:14px;background-image:none;--ink:var(--ws-ink);--ink-muted:var(--ws-subtle);--line:var(--ws-line)}
body.workspace::before{display:none}.workspace *{box-sizing:border-box}
.ws-sidebar{position:fixed;inset:0 0 0 auto;width:var(--ws-sidebar);background:#fafbfc;border-left:1px solid var(--ws-line);display:flex;flex-direction:column;z-index:50;padding:20px 14px 12px}
.ws-brand{display:flex;align-items:center;gap:12px;padding:5px 8px 24px;color:var(--ws-ink);text-decoration:none;font-weight:700;font-size:16px}.ws-brand small{display:block;color:var(--ws-subtle);font-size:11px;font-weight:400;margin-top:3px}.ws-brand-mark{width:37px;height:37px;border-radius:10px;background:#182130;color:white;display:grid;place-items:center}.ws-brand-mark svg{width:24px;height:24px}
.ws-navigation{flex:1;overflow-y:auto;min-height:0}.ws-group-label{font-size:11px;font-weight:600;color:#738094;padding:16px 12px 7px;margin:0}.ws-sidebar .ws-nav-item{display:flex;align-items:center;gap:11px;width:100%;min-height:43px;padding:10px 12px;margin:3px 0;border:0;border-radius:7px;background:transparent;color:#465367;font:inherit;font-size:13px;text-decoration:none;box-shadow:none;text-align:right;cursor:pointer}.ws-nav-item svg{width:19px;height:19px;flex-shrink:0}.ws-sidebar .ws-nav-item:hover{background:#edf0f5;color:#182130}.ws-sidebar .ws-nav-item.is-active{background:#e9edf4;color:#182130;font-weight:700}.ws-nav-item.is-active::after{content:'';width:5px;height:5px;border-radius:50%;background:#2563eb;margin-inline-start:auto}
.ws-profile{display:flex;align-items:center;gap:9px;border-top:1px solid var(--ws-line);padding:16px 5px 4px;margin-top:14px;min-width:0}.ws-avatar{display:grid;place-items:center;width:33px;height:33px;flex-shrink:0;border:1px solid #e2e7ee;border-radius:50%;background:#edf1f7;color:#344155;font-size:13px;font-weight:700}.ws-profile>div{min-width:0;flex:1}.ws-profile strong{display:block;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ws-profile small{font-size:10px;color:var(--ws-subtle)}.ws-profile form{margin:0}.ws-profile button.link-button{font-size:11px;min-height:36px;padding:6px 8px;background:transparent;border:0;color:#64748b}
.ws-topbar{height:72px;display:flex;align-items:center;justify-content:space-between;gap:16px;margin-right:var(--ws-sidebar);padding:0 32px;border-bottom:1px solid var(--ws-line);background:#fff}.ws-location{display:flex;align-items:center;gap:16px;min-width:0;font-size:13px}.ws-location strong{font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ws-top-label,.ws-divider{color:#8590a0}.ws-account-chip{display:flex;align-items:center;gap:12px;text-decoration:none;color:#637185;font-size:12px}.ws-topbar .ws-menu-toggle{display:none}.ws-topbar svg{width:20px;height:20px}.workspace-content{margin-right:var(--ws-sidebar);min-width:0;min-height:calc(100svh - 72px)}.workspace-content:focus{outline:none}.ws-skip{position:fixed;top:-100px;right:270px;z-index:200;background:#172033;color:#fff;padding:12px 20px}.ws-skip:focus{top:12px}
.workspace :is(.owner-shell,#admin-screen,.report-screen){max-width:1600px;width:100%;padding:30px 32px 60px;margin:0 auto;min-width:0}.workspace :is(.admin-topbar,.owner-header,.topbar){background:transparent;border:0;border-radius:0;padding:0;margin:0 0 24px;box-shadow:none;min-height:0}.workspace .admin-topbar h1{font-size:25px;font-weight:700;letter-spacing:-.4px}.workspace :is(.admin-topbar .admin-nav,.owner-header .owner-nav){display:none}.workspace .owner-header:not(:has(h1)){display:none}.workspace .tutorial-help{display:none}.workspace h1,.workspace h2,.workspace h3{color:#192437}.workspace .page-intro{padding:0 0 18px}.workspace .page-intro h2{font-size:25px;margin:2px 0 8px}.workspace .page-intro p{font-size:13px;color:#687588}.workspace .eyebrow{font-size:11px;color:#778397}
.workspace :is(.admin-panel,.owner-chart,.comparison-card,.owner-disclosure,.scope-card,.balance-card,.stat-card,.metric-tile,.fleet-stat){background:#fff;border:1px solid var(--ws-line);border-radius:9px;box-shadow:0 1px 2px #17203303}.workspace .admin-panel{margin-block:22px}.workspace .admin-panel .ph{background:transparent;border-bottom:1px solid var(--ws-line);padding:17px 21px}.workspace .admin-panel .ph h2{font-size:16px;font-weight:600}.workspace .assign-form{background:#fff}.workspace .stat-strip{gap:18px}.workspace .stat-card{display:flex;flex-direction:column-reverse;align-items:flex-start;padding:22px 24px;gap:10px}.workspace .stat-card .n{font-size:32px;line-height:1.3;color:#192437;font-weight:700}.workspace .stat-card .l{font-size:13px;color:#647084}.workspace .fleet-stat{padding:22px;color:#192437;background:#fff}.workspace .fleet-stat::before,.workspace .fleet-stat::after{display:none}.workspace .fleet-stat>span{color:#657184;font-size:13px}.workspace .fleet-stat strong{color:#192437;font-size:26px;letter-spacing:-.5px}.workspace .fleet-stat small,.workspace .fleet-stat p{color:#778397}.workspace .metric-icon{color:#64748b;background:#f0f3f8}.workspace .fleet-metrics{gap:16px}.workspace .scope-card{padding:16px;border-radius:8px}.workspace .scope-card.selected{border-color:#9fb8ef;background:#f5f8ff;box-shadow:none}.workspace .scope-card strong{color:#243b61}.workspace .scope-icon{background:#edf2fa;color:#57739f}
.workspace :is(input:not([type=checkbox]):not([type=hidden]),select,textarea){min-height:42px;background:#fff;border:1px solid #d6dde6;border-radius:6px;font-size:14px;padding:8px 12px;box-shadow:0 1px 2px #17203303}.workspace label{color:#465367;font-size:13px}.workspace :is(button,a.link-back,a.back-link,a.quiet-link,a.soft-button,a.owner-button,.pagination a){min-height:40px;padding:8px 14px;border:1px solid #dce2eb;border-radius:6px;background:#fff;color:#334155;box-shadow:0 1px 2px #17203304;font-size:13px}.workspace :is(button,a.link-back,a.back-link,a.quiet-link,a.soft-button):hover{background:#f4f6f9;border-color:#c5cfdd}.workspace :is(.btn-submit,.owner-button,.btn-primary,button[type=submit].primary-action){background:#1d293d;color:#fff;border-color:#1d293d}.workspace :is(.btn-submit,.owner-button,.btn-primary):hover{background:#334155;color:#fff}.workspace button.danger-button{background:#fff;color:#b42335;border-color:#f0cfd5}.workspace :is(a,button,input,select,textarea,summary):focus-visible{outline:2px solid #2563eb;outline-offset:3px}.workspace input[type=checkbox]{accent-color:#2563eb}.workspace .form-grid{gap:18px}.workspace .owner-filters{border-bottom:1px solid var(--ws-line);padding:0 0 22px;margin-bottom:24px;gap:16px}.workspace .owner-filters label{min-width:180px}.workspace .owner-filters .quiet-link{margin-inline-start:auto}.workspace .range-form{padding:18px 0}.workspace .filter-bar{padding:20px}
.workspace table{font-size:13px}.workspace th{background:#f8f9fb;color:#6b778a;font-size:12px;font-weight:500}.workspace th,.workspace td{padding:14px 18px;border-bottom:1px solid #edf0f4}.workspace tbody tr:hover{background:#fafbfe}.workspace .table-scroll{overflow:auto;max-width:100%}.workspace .plate-link{font-size:15px;color:#273e62;background:#f7f9fc;border:1px solid #e4e9f0;padding:3px 10px;border-radius:5px}.workspace .cell-detail{color:#7b8696;font-size:11px}.workspace .notice{background:#f6f8fc;color:#435674;border:1px solid #dce5f2;border-radius:7px;border-inline-start:3px solid #7c9ccc;font-size:13px}.workspace .notice.warning,.workspace .notice.error{background:#fff8f1;color:#915826;border-color:#ead6b9}.workspace .small-note,.workspace .chart-note,.workspace .muted{font-size:12px;color:#6b778a}.workspace .state-pill,.workspace .entry-badge{background:#eaf5f0;color:#287557;border:0}.workspace .monthly-entry{background:#fbfdfc}
.workspace .ledger-hero{border:1px solid var(--ws-line);background:#f8fafc;color:#182130;border-radius:9px;padding:26px;border-bottom:1px solid var(--ws-line)}.workspace .ledger-hero h2,.workspace .ledger-hero strong{color:#192437}.workspace .ledger-hero p,.workspace .ledger-hero .eyebrow{color:#64748b}.workspace .ledger-hero strong{font-size:29px}.workspace .ledger-hero h2{font-size:28px}.workspace .owner-chips article{background:#f8fafc;border-color:#e2e8f0;border-radius:7px}.workspace .owner-chips b{color:#355889}.workspace .balance-value bdi{color:#192437}.workspace .balance-card{padding:24px}.workspace .balance-heading{font-size:14px}.workspace .balance-footer{border-top:1px solid #e6ebf2}.workspace .ownership-payouts{border-inline-start:3px solid #8ca7d6!important}.workspace .payout-grid article{background:#f7f9fc;border-color:#e0e7f1;border-radius:7px}.workspace .owner-payout{color:#2d5289}.workspace .ownership-preview{background:#f5f8ff;border-color:#d7e2f5}.workspace .ownership-preview p{color:#345583}.workspace details>summary{font-size:14px;padding:17px 20px;background:#fff}.workspace details>summary::before{color:#64748b}.workspace .permission-options{background:#fafbfc;border-color:#e2e8f0}
.workspace .owner-chart-grid{gap:20px}.workspace .owner-chart{padding:22px}.workspace .owner-chart h3{font-size:16px}.workspace .chart-headline strong{color:#23354e}.workspace .chart-switch{background:#f1f4f8;border:0;border-radius:6px}.workspace .chart-switch button{min-height:32px;border:0;background:transparent;padding:5px 12px;font-size:12px;box-shadow:none}.workspace .chart-switch button[aria-pressed=true]{background:#fff;color:#192437;box-shadow:0 1px 3px #17203315}.workspace .comparison-tooltip{background:#f8fafc;border-color:#e2e8f0;color:#475569}.workspace .comparison-tooltip strong{color:#263d60}.workspace .chart-advanced>summary{font-size:12px}.workspace .bar-fill{background:#678bc4}.workspace .bar-track{background:#edf1f6}.workspace .plate-pill,.workspace .month-badge{background:#f1f4f8;color:#53667f}.workspace .usage-tutorial{background:#fff;border-top:4px solid #334155;border-radius:12px;color:#344155}.workspace #login-screen{min-height:calc(100svh - 72px);background:none}.workspace .login-card{border:1px solid var(--ws-line);border-radius:10px;box-shadow:0 2px 6px #17203306}.workspace .flash-messages{padding:16px 32px 0;margin:0}.ws-backdrop[hidden]{display:none}
/* Keep sidebar controls isolated from legacy global button selectors. */
.workspace .ws-sidebar .ws-nav-item{box-shadow:none;border:0;min-height:43px;padding:10px 12px;background:transparent}.workspace .ws-sidebar .ws-nav-item:hover{background:#edf0f5}.workspace .ws-sidebar .ws-nav-item.is-active{background:#e9edf4}.workspace .ws-profile button{background:transparent;border:0;padding:6px 8px;min-height:36px}
.workspace .fleet-stat strong{white-space:nowrap;font-size:clamp(18px,1.7vw,26px)}
.workspace .ws-sidebar-close{display:none}
@media(max-width:1000px){.workspace.ws-enhanced .ws-sidebar-close{display:block;position:absolute;top:17px;left:9px;padding:2px;min-height:30px;width:30px;font-size:22px;background:transparent;border:0;box-shadow:none}.ws-enhanced .ws-brand{padding-inline-end:24px}.workspace.ws-menu-open .ws-topbar{z-index:60}}
@media(max-width:1500px){.workspace .fleet-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1200px){:root{--ws-sidebar:230px}.workspace :is(.owner-shell,#admin-screen,.report-screen){padding-inline:24px}.workspace .owner-chart-grid{grid-template-columns:1fr}}
@media(max-width:1000px){.workspace-content,.ws-topbar{margin-right:0}.ws-topbar{padding:0 20px;height:64px}.ws-topbar .ws-menu-toggle{display:grid;place-items:center;min-height:38px;width:38px;padding:8px}.ws-sidebar{position:relative;width:100%;max-height:none;border-bottom:1px solid var(--ws-line)}.ws-enhanced .ws-sidebar{position:fixed;width:270px;max-width:85vw;transform:translateX(100%);visibility:hidden;transition:transform .18s ease,visibility .18s;z-index:90}.ws-enhanced.ws-menu-open .ws-sidebar{transform:none;visibility:visible}.ws-menu-open{overflow:hidden}.ws-backdrop{position:fixed;inset:0;background:#0f172a66;z-index:70}.ws-menu-open .ws-topbar{position:relative;z-index:80}.ws-top-label,.ws-divider{display:none}.workspace-content{min-height:calc(100svh - 64px)}.ws-skip{right:20px}.ws-enhanced .ws-navigation{overflow:auto}}
@media(max-width:640px){.workspace :is(.owner-shell,#admin-screen,.report-screen){padding:22px 16px 40px}.ws-topbar{padding-inline:16px}.ws-location{gap:10px}.ws-location strong{font-size:12px}.ws-role{display:none}.workspace .admin-topbar h1,.workspace .page-intro h2{font-size:22px}.workspace .stat-strip{grid-template-columns:1fr}.workspace .stat-card{padding:20px}.workspace .fleet-metrics{grid-template-columns:1fr}.workspace .ledger-hero{padding:20px}.workspace .ledger-hero>div+div{border-color:#e2e8f0}.workspace .owner-filters label,.workspace .owner-filters button{width:100%;min-width:0}.workspace .owner-filters .quiet-link{margin-inline-start:0}.workspace .owner-filters{gap:12px}.workspace .flash-messages{padding-inline:16px}.workspace .ws-sidebar .ws-nav-item{min-height:46px}.workspace .ws-topbar .ws-menu-toggle{min-height:44px;width:44px}}
@media print{.ws-sidebar,.ws-topbar,.ws-backdrop,.ws-skip{display:none!important}.workspace-content{margin:0!important}.workspace :is(.owner-shell,#admin-screen,.report-screen){padding:0;max-width:none}.workspace .ledger-hero{background:#fff}}
