:root{--navy:#162337;--ink:#1c2736;--muted:#7b8796;--line:#e4e9ef;--canvas:#f5f7fa;--white:#fff;--teal:#159b8b;--teal-soft:#e7f6f3;--coral:#e25c5c;--coral-soft:#fff0ef;--amber:#ce8a22;--amber-soft:#fff6e5;--blue:#3c78c5;--blue-soft:#edf4fd;--shadow:0 8px 24px rgba(30,48,70,.045);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--canvas)}*{box-sizing:border-box}html,body{min-height:100%;margin:0}body{background:var(--canvas)}button,input,select{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid rgba(21,155,139,.24);outline-offset:2px}.app-shell{display:flex;min-height:100vh}.sidebar{width:246px;flex:0 0 246px;display:flex;flex-direction:column;padding:25px 16px 18px;color:#d8e0ea;background:var(--navy)}.brand{display:flex;align-items:center;gap:11px;padding:0 9px 29px}.brand-mark{display:grid;place-items:center;width:34px;height:34px;border:1px solid rgba(255,255,255,.28);border-radius:8px;color:#fff;font-size:11px;font-weight:800;letter-spacing:.06em}.brand strong{display:block;color:#fff;font-size:14px;letter-spacing:.13em}.brand small{display:block;margin-top:3px;color:#91a0b4;font-size:8px;letter-spacing:.2em}.workspace{padding:0 8px 23px;border-bottom:1px solid rgba(255,255,255,.09)}.workspace>p,.nav>p{margin:0 0 9px;color:#8191a5;font-size:10px;font-weight:700;letter-spacing:.12em;text-transform:uppercase}.workspace button{display:flex;align-items:center;width:100%;padding:7px 5px;border:0;border-radius:7px;color:#fff;background:transparent;text-align:left}.workspace button:hover{background:rgba(255,255,255,.06)}.workspace button>span:nth-child(2){flex:1;margin-left:9px}.workspace strong,.workspace small,.profile strong,.profile small{display:block}.workspace strong{font-size:12px;font-weight:650}.workspace small{margin-top:3px;color:#8595a9;font-size:10px}.workspace button>b{color:#93a2b4;font-size:16px}.avatar{display:grid;place-items:center;width:29px;height:29px;border-radius:50%;color:#fff;font-size:12px;font-weight:700}.avatar.teal{background:#3e6177}.avatar.coral{background:#bc7565}.nav{padding:22px 0}.nav>p:not(:first-child){margin-top:21px}.nav-item{display:flex;align-items:center;width:100%;min-height:41px;margin:3px 0;padding:0 11px;border:0;border-radius:6px;color:#9baabd;background:transparent;font-size:12px;text-align:left;transition:.18s ease}.nav-item:hover{color:#f7fafc;background:rgba(255,255,255,.055)}.nav-item.active{color:#fff;background:#263d58;box-shadow:inset 3px 0 0 #30b8a4}.nav-item i{width:25px;color:#9cabbc;font-style:normal;font-size:16px;line-height:1}.nav-item.active i{color:#61d4c5}.nav-item em{margin-left:auto;padding:3px 6px;border-radius:10px;color:#c4d2de;background:rgba(255,255,255,.11);font-size:10px;font-style:normal}.sidebar-bottom{margin-top:auto}.help{display:flex;align-items:center;gap:9px;margin:0 2px 17px;padding:11px 10px;border:1px solid rgba(255,255,255,.08);border-radius:7px;background:rgba(255,255,255,.035)}.help>span{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;color:#acd6d0;background:rgba(48,184,164,.16);font-size:12px;font-weight:700}.help strong,.help small{display:block}.help strong{color:#dbe4ec;font-size:10px}.help small{margin-top:3px;color:#8293a7;font-size:9px}.help>b{margin-left:auto;color:#8293a7}.profile{display:flex;align-items:center;padding:13px 8px 0;border-top:1px solid rgba(255,255,255,.09)}.profile>div{flex:1;margin-left:9px}.profile strong{color:#edf2f5;font-size:11px}.profile small{margin-top:3px;color:#8494a7;font-size:10px}.profile button{border:0;color:#8494a7;background:transparent;font-size:12px}.main{min-width:0;flex:1}.topbar{display:flex;align-items:center;justify-content:space-between;height:70px;padding:0 41px;border-bottom:1px solid var(--line);background:rgba(255,255,255,.84)}.top-left,.top-actions,.crumb{display:flex;align-items:center}.crumb{gap:10px;color:#9aa5b2;font-size:12px}.crumb b{color:#c4ccd6;font-weight:400}.crumb strong{color:var(--ink);font-weight:650}.top-actions{gap:22px}.sync{display:flex;align-items:center;gap:7px;color:#8894a2;font-size:11px}.sync i{width:6px;height:6px;border-radius:50%;background:var(--teal);box-shadow:0 0 0 3px var(--teal-soft)}.icon-btn{position:relative;display:inline-grid;place-items:center;width:34px;height:34px;padding:0;border:0;border-radius:6px;color:#657386;background:transparent;font-size:17px}.icon-btn:hover{color:var(--ink);background:#eef2f6}.menu{display:none}.bell{font-size:20px;transform:rotate(-18deg)}.bell sup{position:absolute;top:4px;right:2px;display:grid;place-items:center;width:15px;height:15px;border:2px solid #fff;border-radius:50%;color:#fff;background:var(--coral);font-size:8px;font-weight:800;transform:rotate(18deg)}.language{min-width:70px;padding:7px 10px;border:1px solid var(--line);border-radius:5px;color:#657386;background:#fff;font-size:11px}.language:hover{border-color:#b9c6d2;color:var(--ink)}.page{max-width:1540px;margin:0 auto;padding:37px 41px 52px}.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:25px;margin-bottom:29px}.eyebrow{margin:0 0 7px;color:var(--muted);font-size:10px;font-weight:700;letter-spacing:.12em;text-transform:uppercase}.teal-text{color:var(--teal)}h1,h2,p{margin-top:0}h1{margin-bottom:8px;color:var(--ink);font-size:clamp(25px,2.3vw,33px);font-weight:720;letter-spacing:-.02em}h2{margin-bottom:0;color:var(--ink);font-size:17px;font-weight:700}.subtitle{margin-bottom:0;color:#7d8997;font-size:12px}.head-actions,.panel>header>div:last-child{display:flex;align-items:center;gap:10px}.btn{display:inline-flex;align-items:center;justify-content:center;min-height:37px;padding:0 14px;border-radius:5px;font-size:11px;font-weight:650}.btn.primary{border:1px solid #168b7d;color:#fff;background:var(--teal);box-shadow:0 3px 10px rgba(21,155,139,.15)}.btn.primary:hover{background:#128778}.btn.outline{border:1px solid #dce3e9;color:#536276;background:#fff}.btn.outline:hover{border-color:#b8c4cf;color:var(--ink);background:#fbfcfd}.btn.small{min-height:33px;padding:0 11px}.kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:17px}.kpi{min-height:158px;padding:18px 18px 15px;border:1px solid var(--line);border-top:3px solid var(--teal);border-radius:7px;background:var(--white);box-shadow:var(--shadow)}.kpi.coral-border{border-top-color:var(--coral)}.kpi.amber-border{border-top-color:var(--amber)}.kpi.blue-border{border-top-color:var(--blue)}.kpi-line,.kpi footer{display:flex;align-items:center;justify-content:space-between}.kpi-line>span{color:#6f7d8e;font-size:11px;font-weight:650}.metric-icon{display:grid;place-items:center;width:25px;height:25px;border-radius:6px;font-size:12px}.coral-bg{color:var(--coral);background:var(--coral-soft)}.amber-bg{color:var(--amber);background:var(--amber-soft)}.teal-bg{color:var(--teal);background:var(--teal-soft)}.blue-bg{color:var(--blue);background:var(--blue-soft)}.kpi>strong{display:block;margin:13px 0 6px;color:var(--ink);font-size:25px;font-weight:760;letter-spacing:-.02em}.kpi>strong small{color:#8190a0;font-size:12px;font-weight:550;letter-spacing:0}.kpi>small{color:#97a1ad;font-size:10px}.kpi em{font-style:normal;font-weight:750}.kpi em.up{color:var(--teal)}.kpi em.down{color:var(--coral)}.kpi em.stable{color:var(--blue)}.kpi footer{margin-top:18px;color:#85919f;font-size:10px}.kpi footer button{padding:0;border:0;color:#4c7680;background:transparent;font-size:10px}.kpi footer button:hover{color:var(--teal)}.progress{height:5px;margin-top:17px;overflow:hidden;border-radius:4px;background:#edf1f4}.progress i{display:block;height:100%;border-radius:inherit;background:var(--teal)}.split-panels{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(360px,.85fr);gap:17px;margin-bottom:17px}.panel{border:1px solid var(--line);border-radius:7px;background:var(--white);box-shadow:var(--shadow)}.alerts,.fleet{min-height:278px;padding:22px 22px 17px}.panel>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding-bottom:15px;border-bottom:1px solid #eef1f4}.panel>header .eyebrow{margin-bottom:5px}.unread{padding:5px 8px;border-radius:4px;color:#b64e4e;background:var(--coral-soft);font-size:10px;font-weight:700}.alert-list{padding:6px 0 0}.alert{display:flex;align-items:center;width:100%;min-height:61px;padding:8px 0;border:0;border-bottom:1px solid #f0f2f5;color:var(--ink);background:transparent;text-align:left}.alert:hover strong{color:var(--teal)}.alert>b{display:grid;place-items:center;width:28px;height:28px;margin-right:10px;border-radius:6px;font-size:12px}.alert.urgent>b{color:var(--coral);background:var(--coral-soft)}.alert.warning>b{color:var(--amber);background:var(--amber-soft)}.alert.info>b{color:var(--blue);background:var(--blue-soft)}.alert>span{flex:1;min-width:0}.alert strong,.alert small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.alert strong{font-size:11px}.alert small{margin-top:5px;color:#8995a3;font-size:10px}.alert em{margin-left:8px;color:#929daa;font-size:10px;font-style:normal;white-space:nowrap}.text-link{display:inline-flex;gap:7px;margin-top:9px;padding:0;border:0;color:#4d7880;background:transparent;font-size:10px;font-weight:700}.text-link:hover{color:var(--teal)}.dots{width:28px;height:28px;padding:0;border:0;color:#8c99a8;background:transparent;font-size:13px;letter-spacing:2px}.dots:hover{color:var(--ink)}.fleet-main{display:flex;align-items:center;gap:27px;padding:18px 4px 11px}.donut{position:relative;display:grid;place-items:center;width:137px;height:137px;flex:0 0 137px;border-radius:50%;background:conic-gradient(var(--teal) 0 63.2%,#e9eef1 63.2% 100%)}.donut:before{position:absolute;width:105px;height:105px;border-radius:50%;background:#fff;content:""}.donut span{position:relative;z-index:1;text-align:center}.donut strong,.donut small{display:block}.donut strong{color:var(--ink);font-size:24px;letter-spacing:-.04em}.donut small{margin-top:3px;color:#8591a0;font-size:10px}.legend{flex:1}.legend p{display:flex;align-items:center;min-height:26px;margin:0;color:#7b8795;font-size:11px}.legend b{margin-left:auto;color:var(--ink);font-size:12px}.legend i{width:7px;height:7px;margin-right:9px;border-radius:50%}.teal-dot{background:var(--teal)}.gray-dot{background:#a7b2bc}.amber-dot{background:var(--amber)}.dark-dot{background:#435468}.fleet-note{display:flex;align-items:center;gap:8px;margin-top:3px;padding:9px 10px;border-radius:5px;color:#657484;background:#f7f9fb;font-size:10px}.fleet-note>b,.note>b{display:grid;place-items:center;width:16px;height:16px;flex:0 0 16px;border:1px solid #b9c6d0;border-radius:50%;color:#728191;font-size:10px}.fleet-note button{margin-left:auto;padding:0;border:0;color:var(--teal);background:transparent;font-size:10px;font-weight:700}.ledger{padding:22px 22px 13px}.ledger>header{padding-bottom:17px}.toolbar{display:flex;align-items:center;gap:12px;padding:17px 0 15px}.search{display:flex;align-items:center;width:232px;height:33px;padding:0 9px;border:1px solid #dfe5ea;border-radius:5px;color:#9aa6b3;background:#fff;font-size:18px}.search input{width:100%;margin-left:7px;border:0;outline:0;color:var(--ink);background:transparent;font-size:10px}.search input::placeholder{color:#a3adb8}.chips{display:flex;align-items:center;gap:2px}.chip{min-height:29px;padding:0 9px;border:0;border-radius:4px;color:#8995a2;background:transparent;font-size:10px}.chip:hover{color:var(--ink);background:#f3f6f8}.chip b{margin-left:3px;color:#aeb7c0;font-weight:600}.chip.active{color:#246f68;background:var(--teal-soft);font-weight:700}.chip.active b{color:#4a978f}.filter{display:inline-flex;align-items:center;min-height:29px;margin-left:auto;padding:0 9px;border:1px solid #e1e6eb;border-radius:4px;color:#778493;background:#fff;font-size:10px}.filter:hover{color:var(--ink);border-color:#c5d0da}.table-scroll{overflow-x:auto}.ledger table{width:100%;min-width:790px;border-collapse:collapse}.ledger th{padding:10px;border-bottom:1px solid #e8edf1;color:#8a96a3;font-size:9px;font-weight:750;letter-spacing:.06em;text-align:left;text-transform:uppercase}.ledger td{padding:13px 10px;border-bottom:1px solid #f0f2f4;color:#556477;font-size:11px;vertical-align:middle}.ledger tbody tr:hover{background:#fbfcfd}.ledger td>strong,.ledger td>small,.vehicle strong,.vehicle small{display:block}.ledger td>strong,.vehicle strong{color:var(--ink);font-size:11px}.ledger td>small,.vehicle small{margin-top:5px;color:#8b97a3;font-size:10px}.vehicle{display:flex;align-items:center;gap:8px}.thumb{display:grid;place-items:center;width:31px;height:31px;flex:0 0 31px;border-radius:5px;color:#fff;font-size:9px;font-style:normal;font-weight:800}.thumb.orange{background:#cf9164}.thumb.yellow{background:#d6ad50}.thumb.blue{background:#628ca0}.pill{display:inline-flex;align-items:center;gap:6px;padding:5px 7px;border-radius:4px;font-size:9px;font-weight:700;white-space:nowrap}.pill.danger{color:#b34b4b;background:var(--coral-soft)}.pill.warning{color:#a67318;background:var(--amber-soft)}.pill.success,.pill.paid{color:#287b70;background:var(--teal-soft)}.row-link{padding:5px 0;border:0;color:#4c8080;background:transparent;font-size:10px;font-weight:700}.row-link:hover{color:var(--teal)}.table-footer{display:flex;align-items:center;justify-content:space-between;padding-top:13px;color:#9aa5b0;font-size:10px}.table-footer>div{display:flex;gap:3px}.table-footer button{width:25px;height:25px;border:1px solid transparent;border-radius:4px;color:#84919f;background:transparent;font-size:10px}.table-footer button:hover:not(:disabled){border-color:var(--line);background:#fff}.table-footer button.current{border-color:#bfe4df;color:#277d74;background:var(--teal-soft);font-weight:750}.table-footer button:disabled{color:#c5cdd4;cursor:not-allowed}.backdrop{position:fixed;inset:0;z-index:10;display:grid;place-items:center;padding:20px;background:rgba(17,27,42,.45)}.backdrop[hidden]{display:none}.modal{width:min(540px,100%);border-radius:8px;background:#fff;box-shadow:0 22px 70px rgba(17,27,42,.2)}.modal>header{display:flex;justify-content:space-between;padding:22px 23px 16px;border-bottom:1px solid var(--line)}.modal>header h2{font-size:20px}.modal form{padding:20px 23px 22px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.form-grid label span{display:block;margin-bottom:6px;color:#6d7a89;font-size:10px;font-weight:700}.form-grid input,.form-grid select{width:100%;height:37px;padding:0 10px;border:1px solid #dfe5ea;border-radius:5px;color:var(--ink);background:#fff;font-size:11px}.note{display:flex;align-items:flex-start;gap:8px;margin-top:19px;padding:10px;border-radius:5px;color:#6f7e8c;background:#f6f9fa;font-size:10px}.note span{margin-top:1px}.modal form>footer{display:flex;justify-content:flex-end;gap:9px;margin-top:23px;padding-top:17px;border-top:1px solid #eef1f4}.toast{position:fixed;right:24px;bottom:24px;z-index:20;max-width:320px;padding:11px 14px;border:1px solid #cfe7e2;border-radius:5px;color:#256e67;background:#effaf8;box-shadow:var(--shadow);font-size:11px;opacity:0;pointer-events:none;transform:translateY(10px);transition:.2s ease}.toast.show{opacity:1;transform:translateY(0)}
@media(max-width:1180px){.topbar{padding:0 26px}.page{padding-right:26px;padding-left:26px}.kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.split-panels{grid-template-columns:1fr}.fleet{min-height:auto}}
@media(max-width:800px){.sidebar{position:fixed;inset:0 auto 0 0;z-index:9;transform:translateX(-100%);transition:transform .2s ease;box-shadow:12px 0 30px rgba(17,27,42,.13)}.sidebar.open{transform:translateX(0)}.topbar{height:62px;padding:0 16px}.menu{display:inline-grid;margin-right:8px}.sync{display:none}.top-actions{gap:8px}.page{padding:26px 16px 35px}.page-head{align-items:flex-start;flex-direction:column;gap:19px;margin-bottom:22px}.head-actions{width:100%}.head-actions button{flex:1}.kpis{gap:10px}.kpi{min-height:146px;padding:15px 13px 13px}.kpi>strong{font-size:21px}.kpi footer{align-items:flex-start;flex-direction:column;gap:6px;margin-top:14px}.alerts,.fleet,.ledger{padding-right:14px;padding-left:14px}.fleet-main{gap:20px}.donut{width:120px;height:120px;flex-basis:120px}.donut:before{width:92px;height:92px}.toolbar{align-items:stretch;flex-wrap:wrap}.search{width:100%}.chips{width:100%;overflow-x:auto}.filter{margin-left:0}.table-footer{align-items:flex-start;flex-direction:column;gap:10px}}
@media(max-width:480px){.crumb span,.crumb b{display:none}.language{min-width:62px;padding:7px 6px;font-size:10px}.kpis{grid-template-columns:1fr 1fr}.kpi-line>span{font-size:10px}.kpi>small{display:flex;align-items:flex-start;flex-direction:column;gap:3px}.fleet-main{align-items:flex-start;flex-direction:column}.legend{width:100%}.alert em{display:none}.form-grid{grid-template-columns:1fr;gap:12px}}

.auth-gate{position:fixed;inset:0;z-index:30;display:grid;place-items:center;padding:20px;background:#f3f7fb}.auth-gate[hidden]{display:none}.auth-card{position:relative;width:min(390px,100%);padding:32px;border:1px solid var(--line);border-radius:10px;background:var(--white);box-shadow:0 24px 70px rgba(30,48,70,.12)}.auth-brand{padding:0 0 27px}.auth-card h1{margin:0 0 8px;font-size:28px}.auth-subtitle{margin:0 0 24px;color:var(--muted);font-size:12px}.auth-card form{display:grid;gap:15px}.auth-card label span{display:block;margin-bottom:6px;color:#6d7a89;font-size:11px;font-weight:700}.auth-card input{width:100%;height:42px;padding:0 11px;border:1px solid #dfe5ea;border-radius:5px;color:var(--ink);background:#fff;font-size:12px}.auth-card form .btn{width:100%;margin-top:4px}.auth-error{margin:0;padding:9px 10px;border-radius:5px;color:#b34b4b;background:var(--coral-soft);font-size:11px}.auth-language{position:absolute;top:26px;right:26px}.data-count{padding:5px 8px;border-radius:4px;color:#39709e;background:#eaf3fb;font-size:10px;font-weight:700}.people-registry{margin-top:17px;padding:22px}.party-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding-top:16px}.party-card{min-width:0;padding:14px;border:1px solid #edf1f4;border-radius:6px;background:#fbfcfd}.party-card header{display:flex;align-items:flex-start;justify-content:space-between;padding:0 0 10px;border:0}.party-card h3{margin:0;overflow:hidden;color:var(--ink);font-size:13px;text-overflow:ellipsis;white-space:nowrap}.party-card p{margin:4px 0 0;color:#8995a3;font-size:10px}.party-role{padding:4px 6px;border-radius:4px;color:#277d74;background:var(--teal-soft);font-size:9px;font-weight:700;white-space:nowrap}.party-role.owner{color:#a67318;background:var(--amber-soft)}.party-meta{display:flex;gap:10px;padding-top:10px;border-top:1px solid #eef1f4;color:#778493;font-size:10px}.empty-state{padding:20px 0;color:#99a5b2;font-size:11px;text-align:center}.loading-state{opacity:.7}
.app-shell.auth-loading{visibility:hidden}
@media(max-width:800px){.auth-card{padding:26px 22px}.people-registry{padding-right:14px;padding-left:14px}.party-grid{grid-template-columns:1fr}.party-card{padding:13px}}

/* Blue and white enterprise palette */
:root{--navy:#ffffff;--ink:#17324f;--muted:#70859b;--line:#dce7f2;--canvas:#f3f7fb;--teal:#2479c6;--teal-soft:#eaf3fb;--blue:#256bb1;--blue-soft:#eaf2fb;--shadow:0 8px 24px rgba(42,91,137,.07)}
.sidebar{color:#52708f;background:#fff;border-right:1px solid #dce7f2}
.brand-mark{border-color:#a9c6df;color:#195a91;background:#f5faff}.brand strong{color:#1a436a}.brand small{color:#7893ac}
.workspace{border-bottom-color:#e1ebf4}.workspace>p,.nav>p{color:#7892aa}.workspace button{color:#1d4b73}.workspace button:hover{background:#f2f7fb}.workspace strong{color:#1d4b73}.workspace small{color:#8299ad}.workspace button>b{color:#7892aa}
.nav-item{color:#66819a}.nav-item:hover{color:#1d5c94;background:#f2f7fc}.nav-item.active{color:#1e5d96;background:#eaf3fb;box-shadow:inset 3px 0 0 #2479c6}.nav-item i{color:#7691a8}.nav-item.active i{color:#2479c6}.nav-item em{color:#39709e;background:#dcecf9}
.help{border-color:#dbe8f2;background:#f5f9fd}.help>span{color:#2b73b4;background:#e0effb}.help strong{color:#376181}.help small,.help>b{color:#8198ad}.profile{border-top-color:#e1ebf4}.profile strong{color:#2c5071}.profile small{color:#8299ad}.profile button{color:#7892aa}
.topbar{background:rgba(255,255,255,.92)}.sync i{background:var(--teal);box-shadow:0 0 0 3px var(--teal-soft)}.language{color:#53708e;background:#fff}.icon-btn:hover{background:#edf5fb}.btn.primary{border-color:#1e69ae;background:#2479c6;box-shadow:0 3px 10px rgba(36,121,198,.18)}.btn.primary:hover{background:#1d68ad}.teal-text{color:#2479c6}.kpi.coral-border{border-top-color:#e25c5c}.kpi.amber-border{border-top-color:#ce8a22}.kpi.blue-border{border-top-color:#256bb1}.progress i{background:#2479c6}.text-link,.row-link,.kpi footer button{color:#397bb5}.text-link:hover,.row-link:hover,.kpi footer button:hover{color:#1d5d98}.donut{background:conic-gradient(#2479c6 0 63.2%,#e3edf5 63.2% 100%)}.teal-dot{background:#2479c6}.chip.active{color:#245e91;background:#eaf3fb}.chip.active b{color:#397bb5}.status-pill.success,.status-pill.paid,.pill.success,.pill.paid{color:#286aa4;background:#eaf3fb}.fleet-note button{color:#2870ae}.toast{border-color:#cfe1f1;color:#24649a;background:#f0f7fd}
/* User-selectable themes */
.theme-picker{position:relative}.theme-button{min-height:31px;padding:0 10px;border:1px solid var(--line);border-radius:5px;color:#53708e;background:#fff;font-size:11px}.theme-button:hover{border-color:#a6c5dd;color:var(--ink);background:#f8fbfe}.theme-menu{position:absolute;top:40px;right:0;z-index:5;width:158px;padding:9px;border:1px solid var(--line);border-radius:7px;background:#fff;box-shadow:0 12px 28px rgba(42,91,137,.14)}.theme-menu[hidden]{display:none}.theme-menu>p{margin:2px 6px 7px;color:#72859a;font-size:10px;font-weight:700;letter-spacing:.08em}.theme-option{display:flex;align-items:center;width:100%;gap:8px;min-height:33px;padding:0 7px;border:0;border-radius:5px;color:#536f8c;background:transparent;font-size:11px;text-align:left}.theme-option:hover{background:#f3f8fc}.theme-option.active{color:var(--teal);background:var(--teal-soft);font-weight:700}.theme-option b{display:none;margin-left:auto;color:var(--teal);font-size:12px}.theme-option.active b{display:block}.swatch{width:16px;height:16px;border:1px solid rgba(23,50,79,.12);border-radius:4px}.swatch.mint{background:#9fd6b6}.swatch.blue{background:#9fc7ea}.swatch.phoenix{background:#e63b2e}.swatch.warm{background:#d6b894}
body.theme-mint{--ink:#203b32;--muted:#708c7d;--line:#dcece3;--canvas:#f2faf5;--teal:#4f9d79;--teal-soft:#e7f5ed;--blue:#4d8f72;--blue-soft:#e8f5ed;--shadow:0 8px 24px rgba(61,123,91,.08)}body.theme-warm{--ink:#3a332d;--muted:#927e6c;--line:#e9dfd4;--canvas:#faf8f4;--teal:#b17c55;--teal-soft:#f6eee7;--blue:#a46c47;--blue-soft:#f7eee7;--shadow:0 8px 24px rgba(119,84,56,.08)}
body.theme-mint .brand-mark{border-color:#a7d0b7;color:#3f8863;background:#f5fcf7}body.theme-mint .brand strong{color:#32664d}body.theme-mint .brand small,body.theme-mint .workspace>p,body.theme-mint .nav>p{color:#7e9b8b}body.theme-mint .workspace{border-bottom-color:#e1eee6}body.theme-mint .workspace button,body.theme-mint .workspace strong{color:#356b50}body.theme-mint .workspace button:hover{background:#f2faf5}body.theme-mint .workspace small,body.theme-mint .workspace button>b{color:#87a494}body.theme-mint .nav-item{color:#6b8979}body.theme-mint .nav-item:hover{color:#347453;background:#f1faf4}body.theme-mint .nav-item.active{color:#357653;background:#e7f5ed;box-shadow:inset 3px 0 0 #4f9d79}body.theme-mint .nav-item i,body.theme-mint .nav-item.active i{color:#4f9d79}body.theme-mint .nav-item em{color:#4c8a68;background:#dff0e5}body.theme-mint .help{border-color:#dcece3;background:#f4fbf6}body.theme-mint .help>span{color:#4f9d79;background:#e1f3e8}body.theme-mint .help strong{color:#4f7862}body.theme-mint .help small,body.theme-mint .help>b,body.theme-mint .profile small,body.theme-mint .profile button{color:#86a090}body.theme-mint .profile{border-top-color:#e1eee6}body.theme-mint .profile strong{color:#46735a}body.theme-mint .btn.primary{border-color:#478f6d;background:#4f9d79;box-shadow:0 3px 10px rgba(79,157,121,.18)}body.theme-mint .btn.primary:hover{background:#438c6a}body.theme-mint .teal-text{color:#4f9d79}body.theme-mint .progress i{background:#4f9d79}body.theme-mint .text-link,body.theme-mint .row-link,body.theme-mint .kpi footer button{color:#4a8968}body.theme-mint .text-link:hover,body.theme-mint .row-link:hover,body.theme-mint .kpi footer button:hover{color:#347453}body.theme-mint .donut{background:conic-gradient(#4f9d79 0 63.2%,#e1eee6 63.2% 100%)}body.theme-mint .teal-dot{background:#4f9d79}body.theme-mint .chip.active{color:#3d7e5c;background:#e7f5ed}body.theme-mint .chip.active b{color:#4f9d79}body.theme-mint .status-pill.success,body.theme-mint .status-pill.paid,body.theme-mint .pill.success,body.theme-mint .pill.paid{color:#3c825e;background:#e7f5ed}body.theme-mint .fleet-note button{color:#4a8968}body.theme-mint .toast{border-color:#cce6d6;color:#3f805e;background:#effaf3}
body.theme-warm .brand-mark{border-color:#d9bca2;color:#936340;background:#fffaf5}body.theme-warm .brand strong{color:#654833}body.theme-warm .brand small,body.theme-warm .workspace>p,body.theme-warm .nav>p{color:#a08772}body.theme-warm .workspace{border-bottom-color:#eee4d9}body.theme-warm .workspace button,body.theme-warm .workspace strong{color:#704e38}body.theme-warm .workspace button:hover{background:#fbf7f1}body.theme-warm .workspace small,body.theme-warm .workspace button>b{color:#a38c78}body.theme-warm .nav-item{color:#8b7562}body.theme-warm .nav-item:hover{color:#8a5938;background:#fcf7f1}body.theme-warm .nav-item.active{color:#8b5b3e;background:#f7ede4;box-shadow:inset 3px 0 0 #b17c55}body.theme-warm .nav-item i,body.theme-warm .nav-item.active i{color:#b17c55}body.theme-warm .nav-item em{color:#986844;background:#f1dfcf}body.theme-warm .help{border-color:#eadfd4;background:#fcf8f2}body.theme-warm .help>span{color:#a46c47;background:#f4e7da}body.theme-warm .help strong{color:#79563f}body.theme-warm .help small,body.theme-warm .help>b,body.theme-warm .profile small,body.theme-warm .profile button{color:#aa927e}body.theme-warm .profile{border-top-color:#eee4d9}body.theme-warm .profile strong{color:#79563f}body.theme-warm .btn.primary{border-color:#a26f4b;background:#b17c55;box-shadow:0 3px 10px rgba(177,124,85,.18)}body.theme-warm .btn.primary:hover{background:#9f6d49}body.theme-warm .teal-text{color:#a46c47}body.theme-warm .progress i{background:#b17c55}body.theme-warm .text-link,body.theme-warm .row-link,body.theme-warm .kpi footer button{color:#a46c47}body.theme-warm .text-link:hover,body.theme-warm .row-link:hover,body.theme-warm .kpi footer button:hover{color:#8b5b3e}body.theme-warm .donut{background:conic-gradient(#b17c55 0 63.2%,#eadfd4 63.2% 100%)}body.theme-warm .teal-dot{background:#b17c55}body.theme-warm .chip.active{color:#8b5b3e;background:#f7ede4}body.theme-warm .chip.active b{color:#a46c47}body.theme-warm .status-pill.success,body.theme-warm .status-pill.paid,body.theme-warm .pill.success,body.theme-warm .pill.paid{color:#8b5b3e;background:#f7ede4}body.theme-warm .fleet-note button{color:#a46c47}body.theme-warm .toast{border-color:#ead8c9;color:#91613f;background:#fff8f1}

body.theme-phoenix{--ink:#252525;--muted:#777;--line:#e7e7e7;--canvas:#f5f5f5;--teal:#e43d30;--teal-soft:#fff0ee;--blue:#d93428;--blue-soft:#fff0ee;--shadow:0 8px 24px rgba(45,45,45,.07)}body.theme-phoenix .topbar{border-top:3px solid #e43d30;background:rgba(255,255,255,.96)}body.theme-phoenix .sidebar{color:#606060;border-right-color:#e7e7e7}body.theme-phoenix .brand-mark{border-color:#e43d30;color:#fff;background:#e43d30}body.theme-phoenix .brand strong{color:#d93428}body.theme-phoenix .brand small,body.theme-phoenix .workspace>p,body.theme-phoenix .nav>p{color:#888}body.theme-phoenix .workspace{border-bottom-color:#ececec}body.theme-phoenix .workspace button,body.theme-phoenix .workspace strong{color:#333}body.theme-phoenix .workspace button:hover{background:#f7f7f7}body.theme-phoenix .workspace small,body.theme-phoenix .workspace button>b{color:#888}body.theme-phoenix .nav-item{color:#666}body.theme-phoenix .nav-item:hover{color:#d93428;background:#fff5f4}body.theme-phoenix .nav-item.active{color:#d93428;background:#fff0ee;box-shadow:inset 3px 0 0 #e43d30}body.theme-phoenix .nav-item i,body.theme-phoenix .nav-item.active i{color:#e43d30}body.theme-phoenix .nav-item em{color:#d93428;background:#ffe3df}body.theme-phoenix .help{border-color:#e8e8e8;background:#fafafa}body.theme-phoenix .help>span{color:#d93428;background:#fff0ee}body.theme-phoenix .help strong,body.theme-phoenix .profile strong{color:#444}body.theme-phoenix .help small,body.theme-phoenix .help>b,body.theme-phoenix .profile small,body.theme-phoenix .profile button{color:#888}body.theme-phoenix .profile{border-top-color:#ececec}body.theme-phoenix .btn.primary{border-color:#d93428;background:#e43d30;box-shadow:0 3px 10px rgba(228,61,48,.18)}body.theme-phoenix .btn.primary:hover{background:#cf3025}body.theme-phoenix .teal-text{color:#d93428}body.theme-phoenix .progress i{background:#e43d30}body.theme-phoenix .text-link,body.theme-phoenix .row-link,body.theme-phoenix .kpi footer button{color:#d93428}body.theme-phoenix .text-link:hover,body.theme-phoenix .row-link:hover,body.theme-phoenix .kpi footer button:hover{color:#b8241b}body.theme-phoenix .donut{background:conic-gradient(#e43d30 0 63.2%,#e8e8e8 63.2% 100%)}body.theme-phoenix .teal-dot{background:#e43d30}body.theme-phoenix .chip.active{color:#d93428;background:#fff0ee}body.theme-phoenix .chip.active b{color:#d93428}body.theme-phoenix .status-pill.success,body.theme-phoenix .status-pill.paid,body.theme-phoenix .pill.success,body.theme-phoenix .pill.paid{color:#b52a21;background:#fff0ee}body.theme-phoenix .fleet-note button{color:#d93428}body.theme-phoenix .toast{border-color:#f1c7c3;color:#b82d24;background:#fff5f4}

/* Fleet registry and independent cost ledger */
.fleet-registry{margin-bottom:17px;padding:22px 22px 17px}.fleet-registry>header{padding-bottom:17px}.registry-toolbar{display:flex;align-items:center;gap:12px;padding:17px 0 15px}.registry-search{width:320px}.vehicle-chips{overflow-x:auto}.registry-layout{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:18px}.vehicle-table{width:100%;min-width:690px;border-collapse:collapse}.vehicle-table th{padding:10px;border-bottom:1px solid #e8edf1;color:#8a96a3;font-size:9px;font-weight:750;letter-spacing:.06em;text-align:left;text-transform:uppercase}.vehicle-table td{padding:12px 10px;border-bottom:1px solid #f0f2f4;color:#657484;font-size:10px;vertical-align:middle}.vehicle-table tbody tr:hover{background:#fbfcfd}.vehicle-table td>strong,.vehicle-table td>small{display:block}.vehicle-table td>strong{color:var(--ink);font-size:10px}.vehicle-table td>small{margin-top:4px;color:#8b97a3;font-size:9px}.source{display:inline-flex;padding:4px 6px;border-radius:4px;font-size:9px;font-weight:700}.source.owned{color:#3c825e;background:var(--teal-soft)}.source.rented{color:#a67318;background:var(--amber-soft)}.cost-summary{padding:15px;border:1px solid #e5ebef;border-radius:6px;background:#fbfcfd}.cost-summary-head{display:flex;align-items:flex-start;justify-content:space-between}.cost-summary h3{margin:0;color:var(--ink);font-size:15px}.cost-total{padding:15px 0 13px;border-bottom:1px solid #e9eef1}.cost-total strong{display:block;color:var(--ink);font-size:19px;letter-spacing:-.02em}.cost-total small{display:block;margin-top:6px;color:#8a96a2;font-size:9px;line-height:1.5}.cost-line{display:flex;align-items:center;justify-content:space-between;padding:11px 0 0;color:#6e7d8c;font-size:10px}.cost-line b{color:var(--ink);font-size:10px}.cost-line span{display:flex;align-items:center;gap:7px}.cost-dot{width:7px;height:7px;border-radius:50%}.cost-dot.upstream{background:var(--teal)}.cost-dot.maintenance{background:var(--amber)}.cost-dot.labor{background:var(--blue)}.fleet-registry .text-link{margin-top:15px}.field-full{grid-column:1 / -1}.form-grid textarea{width:100%;padding:9px 10px;border:1px solid #dfe5ea;border-radius:5px;color:var(--ink);background:#fff;font-size:11px;resize:vertical}.form-grid input:disabled{color:#9ca7b1;background:#f5f7f8;cursor:not-allowed}.modal{width:min(660px,100%);max-height:calc(100vh - 40px);overflow-y:auto}

@media(max-width:960px){.registry-layout{grid-template-columns:1fr}.cost-summary{display:grid;grid-template-columns:1fr 1fr;column-gap:17px}.cost-summary-head,.cost-total{grid-column:1 / -1}.fleet-registry .text-link{grid-column:1 / -1}}
@media(max-width:800px){.registry-toolbar{align-items:stretch;flex-wrap:wrap}.registry-search{width:100%}.vehicle-chips{width:100%}}
@media(max-width:480px){.cost-summary{display:block}.cost-summary-head{margin-bottom:3px}.cost-total{margin-bottom:2px}.field-full{grid-column:auto}}

.adjustment-section{padding:13px;border:1px solid var(--line);border-radius:6px;background:var(--canvas)}.adjustment-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:10px;color:var(--ink);font-size:11px;font-weight:750}.adjustment-heading small{color:var(--muted);font-size:9px;font-weight:500}.adjustment-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.adjustment-grid label span{margin-bottom:5px}.quote-summary{display:grid;grid-template-columns:repeat(3,1fr) 1.25fr;gap:10px;padding:13px;border-radius:6px;background:#f7fafb}.quote-summary div{min-width:0}.quote-summary span{display:block;color:var(--muted);font-size:9px}.quote-summary strong{display:block;margin-top:5px;color:var(--ink);font-size:14px}.quote-summary .quote-total{padding-left:12px;border-left:1px solid var(--line)}.quote-summary .quote-total strong{color:var(--teal);font-size:17px}
@media(max-width:560px){.adjustment-grid,.quote-summary{grid-template-columns:1fr 1fr}.quote-summary .quote-total{grid-column:1 / -1;padding-top:9px;padding-left:0;border-top:1px solid var(--line);border-left:0}}

/* Dynamic V1.1 panels share the same rhythm as the static dashboard panels. */
:is(.dynamic-panel,.v11-panel){margin-top:17px;padding:22px 22px 17px;overflow:hidden}
:is(.dynamic-panel,.v11-panel)>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding-bottom:17px;border-bottom:1px solid #eef1f4}
:is(.dynamic-panel,.v11-panel)>header>div:last-child{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px;min-width:0}
:is(.dynamic-panel,.v11-panel)>header h2{max-width:100%;line-height:1.35}
:is(.dynamic-panel,.v11-panel)>section{margin-top:22px;padding-top:22px;border-top:1px solid #eef1f4}
:is(.dynamic-panel,.v11-panel)>section h3{margin:0 0 8px;color:var(--ink);font-size:15px;line-height:1.4}
:is(.dynamic-panel,.v11-panel)>section p{margin:0 0 13px;color:#6f7e8c;font-size:11px;line-height:1.6}
:is(.dynamic-panel,.v11-panel) .toolbar{align-items:flex-end;flex-wrap:wrap}
:is(.dynamic-panel,.v11-panel) .toolbar>label{display:flex;flex:1 1 150px;flex-direction:column;gap:6px;min-width:0;color:#6d7a89;font-size:10px;font-weight:700}
:is(.dynamic-panel,.v11-panel) .toolbar>label input,:is(.dynamic-panel,.v11-panel) .toolbar>label select{width:100%;height:37px;padding:0 10px;border:1px solid #dfe5ea;border-radius:5px;color:var(--ink);background:#fff;font-size:11px}
:is(.dynamic-panel,.v11-panel)>section>label{display:grid;grid-template-columns:72px minmax(0,1fr);align-items:center;gap:10px;max-width:760px;margin:12px 0;color:#6d7a89;font-size:10px;font-weight:700}
:is(.dynamic-panel,.v11-panel)>section>label input,:is(.dynamic-panel,.v11-panel)>section>label textarea{width:100%;min-width:0;padding:0 10px;border:1px solid #dfe5ea;border-radius:5px;color:var(--ink);background:#fff;font-size:11px}
:is(.dynamic-panel,.v11-panel)>section>label input{height:37px}
:is(.dynamic-panel,.v11-panel)>section>label textarea{min-height:100px;padding-top:9px;resize:vertical}
:is(.dynamic-panel,.v11-panel)>section>.btn{margin-top:2px}
:is(.dynamic-panel,.v11-panel) table{width:100%;min-width:680px;border-collapse:collapse}
:is(.dynamic-panel,.v11-panel) th{padding:10px;border-bottom:1px solid #e8edf1;color:#8a96a3;font-size:9px;font-weight:750;letter-spacing:.06em;text-align:left;text-transform:uppercase}
:is(.dynamic-panel,.v11-panel) td{padding:12px 10px;border-bottom:1px solid #f0f2f4;color:#556477;font-size:10px;vertical-align:middle}
:is(.dynamic-panel,.v11-panel) td>strong,:is(.dynamic-panel,.v11-panel) td>small{display:block}
:is(.dynamic-panel,.v11-panel) td>strong{color:var(--ink);font-size:11px}
:is(.dynamic-panel,.v11-panel) td>small{margin-top:4px;color:#8b97a3;font-size:10px}
:is(.dynamic-panel,.v11-panel) .table-scroll{margin-top:16px}
:is(.dynamic-panel,.v11-panel) .table-scroll h3{margin:0 0 8px}
:is(.dynamic-panel,.v11-panel) .note{margin-top:16px}
:is(.dynamic-panel,.v11-panel) pre{max-width:100%;overflow:auto}

@media(max-width:800px){
  :is(.dynamic-panel,.v11-panel){padding:14px}
  :is(.dynamic-panel,.v11-panel)>header{flex-direction:column;gap:14px}
  :is(.dynamic-panel,.v11-panel)>header>div:last-child{width:100%;justify-content:flex-start}
  :is(.dynamic-panel,.v11-panel)>header>div:last-child .btn{flex:1 1 140px}
  :is(.dynamic-panel,.v11-panel) .toolbar{padding-top:14px}
  :is(.dynamic-panel,.v11-panel) .toolbar>label{flex-basis:180px}
  :is(.dynamic-panel,.v11-panel)>section>label{grid-template-columns:1fr;align-items:stretch;gap:5px}
}
@media(max-width:480px){
  :is(.dynamic-panel,.v11-panel)>header>div:last-child .btn{flex-basis:100%}
  :is(.dynamic-panel,.v11-panel) .toolbar>label{flex-basis:100%}
  :is(.dynamic-panel,.v11-panel) table{min-width:620px}
}
