/* Operational density: compact records, generous touch targets. */
body{font-size:14px;font-variant-numeric:tabular-nums;--muted:#53685e}button,a,input,select,summary{touch-action:manipulation}button,summary{min-height:44px}button{cursor:pointer}button:disabled{cursor:default;opacity:.5}button:focus-visible,summary:focus-visible,a:focus-visible{outline:3px solid #ac7125;outline-offset:2px}.logo{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}aside{width:188px;padding:22px 12px}.brand-row{padding:0 8px}.workspace-role{display:block;font-size:11px;line-height:1.4;color:#d8dfcb;margin:10px 0 18px}nav button{font-size:14px;padding:10px 12px;margin:3px 0}.ops-nav a{min-height:44px;display:flex;align-items:center;margin:12px 0;padding:6px 12px}.side-bottom{padding:14px 8px}main{margin-left:188px;padding:0 20px 18px;max-width:none}header{min-height:64px;gap:12px}.controls{gap:8px;width:auto}.controls button,.account-menu summary{min-width:44px;padding:10px 12px;border:1px solid var(--line);border-radius:7px;background:#fffaf0;font-size:13px}.account-menu{position:relative}.account-menu summary{cursor:pointer;display:flex;align-items:center;max-width:170px;overflow-wrap:anywhere;list-style:none}.account-menu>div{position:absolute;right:0;top:49px;z-index:9;width:230px;padding:6px;border:1px solid #c8bb99;border-radius:10px;background:#fffcf3;box-shadow:0 12px 25px #102e3528}.account-menu button{width:100%;text-align:left;margin:2px 0}.heading{margin:16px 0 12px;gap:10px}.heading h1{font-size:28px;letter-spacing:-.7px;line-height:1.1;margin:0 0 4px}.heading p{font-size:12px}.heading .primary{min-height:46px;font-size:14px;padding:10px 14px}.metrics{gap:8px;margin:12px 0}.metric{padding:10px 12px;display:flex;gap:8px;align-items:center;justify-content:space-between;border-radius:7px}.metric label{font-size:12px}.metric strong{font-size:23px;line-height:1;margin:0;letter-spacing:-.5px}.panel{padding:0;overflow:hidden}.workspace-search{display:flex;align-items:flex-end;gap:8px;padding:12px;border-bottom:1px solid var(--line);background:#f5efdf}.workspace-search label:first-child{flex:1}.workspace-search label{min-width:0}.workspace-search label>span{font-size:11px;display:block;margin-bottom:4px;font-weight:600}.workspace-search input,.workspace-search select{display:block;height:44px;width:100%;min-width:0;padding:8px 10px;border:1px solid #bebfac;border-radius:6px;background:#fffcf5}.workspace-search button{padding:10px;border:1px solid #c5b58c;border-radius:6px}.ops-table{min-width:600px}.ops-table th,.ops-table td{padding:10px 12px;font-size:13px;vertical-align:top}.ops-table th{background:#f2ecdc;font-size:11px;font-weight:650}.ops-table tr:last-child td{border-bottom:0}.ops-table button{min-height:44px;min-width:44px;padding:8px 12px;font-size:13px;margin:2px;border-radius:6px;background:#f3eddb}.ops-table td.record-actions{min-width:120px}.ops-table .vehicle-name{font-size:14px;font-weight:650;display:block}.ops-table small{line-height:1.4}.ops-table details{min-width:0;max-width:390px;clear:both}.ops-table summary{font-size:12px;display:list-item;align-content:center;padding:8px 0;cursor:pointer}.ops-table details p{font-size:12px;line-height:1.5}.fleet-photo{width:84px;height:58px;float:left;margin:0 10px 5px 0!important;border-radius:7px!important}.fleet-photo span{padding:2px 4px;font-size:10px}.pill{font-size:11px;padding:5px 7px}.table-pages{padding:10px 12px;gap:8px}.table-pages button{padding:8px 12px}.ops-events{max-height:none}.ops-event{padding:11px 14px;font-size:13px}.ops-status{margin:8px 0;min-height:0}.ops-status:empty{display:none}.environment-note{font-size:11px;color:var(--muted);margin-top:6px}.environment-note summary{cursor:pointer;align-content:center;min-height:44px}.environment-note p{padding-bottom:8px}.ops-dialog{padding:20px;max-height:calc(100dvh - 24px);overflow:auto}.ops-dialog h2,.photo-dialog h2,.extras-fields legend,.login-art h1{font-family:Commissioner,sans-serif;font-weight:650}.ops-form{gap:12px}.ops-form label{font-size:13px;min-width:0}.ops-form input,.ops-form select,.ops-form textarea{min-height:46px;padding:10px;font-size:15px;margin-top:5px}.ops-form>.toolbar{bottom:-20px;margin:0 -1px -2px;padding:10px 0;gap:8px;box-shadow:0 -8px 12px #fffaf0}.ops-form>.toolbar button{min-height:46px;padding:10px 18px;margin:0}.extras-fields{padding:12px;margin-top:4px}.extras-fields p{line-height:1.45}.extras-more{padding:10px;margin:10px 0}.extras-more summary{margin:0;align-content:center}.extras-fields .extras-check{margin-top:8px;min-height:44px}.extras-fields .extras-check input{min-height:20px}.skip-link{position:fixed;left:8px;top:-60px;z-index:100;background:#fff4d9;padding:12px}.skip-link:focus{top:8px}.login-panel{max-width:390px}.login-panel h2{margin:18px 0}.login-panel .language{margin-left:6px;min-height:44px}.login-panel label{margin:14px 0}.login-art h1{font-size:46px}.login-panel .note{font-size:12px}.offline-note{padding:12px;color:#843c22;background:#fff0da;line-height:1.5}.install-dialog p{margin:12px 0;font-size:15px;line-height:1.5}.install-dialog button{padding:10px 16px;min-height:44px}
@media(max-width:900px){.metric{display:block}.metric strong{display:block;margin-top:6px}.crumb{max-width:170px;font-size:11px}.ops-table th,.ops-table td{padding:10px 8px}}
@media(max-width:740px){aside{position:static;width:auto;padding:10px 12px 0}.brand-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 2px}.brand-row .logo{font-size:28px;line-height:1.2}.brand-row .logo small{font-size:9px}.workspace-role{margin:0;max-width:150px;text-align:right;font-size:11px}nav{margin:8px 0 0;gap:6px;padding-bottom:9px}nav button{min-height:44px;font-size:13px;margin:0;padding:10px 13px}.ops-nav{display:none}main{margin:0;padding:0 12px calc(14px + env(safe-area-inset-bottom));}.crumb{display:none}header{min-height:58px;justify-content:flex-end;padding:6px 0}.controls{width:100%;justify-content:flex-end}.account-menu summary{max-width:145px}.heading{margin:12px 0 10px}.heading h1{font-size:25px}.heading .primary{font-size:13px;white-space:normal;max-width:155px;line-height:1.2}.metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin:10px 0}.metric{padding:8px}.metric label{font-size:10px}.metric strong{font-size:21px;margin-top:5px}.workspace-search{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:10px}.workspace-search label:first-child{grid-column:1/-1}.workspace-search input,.workspace-search select{font-size:16px}.workspace-search button{min-width:88px}.ledger-scroll{overflow:visible}.ops-table{min-width:0;display:block;width:100%}.ops-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.ops-table tbody{display:block}.ops-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 14px;padding:12px;border-bottom:1px solid #ccc6b5}.ops-table tr:last-child{border-bottom:0}.ops-table td{display:block;border:0;padding:0;overflow-wrap:anywhere;min-width:0;font-size:13px}.ops-table td:before{content:attr(data-label);display:block;font-size:10px;font-weight:650;color:#59695e;margin-bottom:4px}.ops-table td.record-heading{grid-column:1/-1}.ops-table td.record-heading:before,.ops-table td.record-actions:before{display:none}.ops-table td.record-actions{grid-column:1/-1;min-width:0;display:flex;gap:6px;flex-wrap:wrap}.ops-table .record-actions button{flex:1;margin:0;min-width:80px}.ops-table td:empty{display:none}.ops-table details{width:100%;max-width:none}.ops-table details summary{min-height:44px}.fleet-photo{width:94px;height:64px}.table-pages{font-size:11px;justify-content:space-between}.table-pages span{order:3;width:100%;text-align:center}.table-pages #load-history{width:100%}.ops-dialog,.ops-dialog:has(.extras-fields){width:calc(100% - 16px);max-height:calc(100dvh - 16px);padding:16px;border-radius:12px}.ops-form{grid-template-columns:minmax(0,1fr)}.ops-form input,.ops-form select,.ops-form textarea{font-size:16px}.ops-form>.toolbar{bottom:-16px}.ops-form>.toolbar button{flex:1}.extras-grid{grid-template-columns:1fr}.photo-dialog header{flex-wrap:nowrap}.photo-navigation button{min-width:52px}.login-layout{display:block}.login-art{min-height:124px;padding:18px 24px}.login-art h1{font-size:27px;margin:14px 0 0}.login-art p{display:none}.login-panel{width:calc(100% - 36px);margin:20px auto}.login-panel input{font-size:16px}.install-dialog{max-height:calc(100dvh - 24px);overflow:auto}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

.account-menu a{display:flex;align-items:center;padding:10px 12px;min-height:44px;color:var(--ink);text-decoration:none;border:1px solid var(--line);border-radius:7px;margin:2px 0}@media(max-width:740px){.ops-table td.record-vehicle{grid-column:1/-1}}

.panel>.ledger-scroll>.toolbar{padding:10px;margin:0;flex-wrap:nowrap;overflow-x:auto;border-bottom:1px solid var(--line)}.panel>.ledger-scroll>.toolbar button{flex-shrink:0}.panel>.ledger-scroll>.note{margin:0;padding:10px 12px}

.metrics.limited-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}

#lead-source{min-height:44px;font-size:16px;max-width:100%}
