:root{font-family:Inter,Segoe UI,Arial,sans-serif;color:#17243b;background:#f2f4f8;font-size:16px;line-height:1.5;--navy:#182947;--red:#b92343;--muted:#5b6980;--line:#dce2ec;--paper:#fff}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button{cursor:pointer;min-height:44px;border:1px solid var(--line);border-radius:6px;padding:9px 15px;background:white;color:var(--navy);font-weight:600}button:hover{background:#edf1f8}button.primary{background:var(--navy);color:white;border-color:var(--navy)}button.primary:hover{background:#2e4469}button.danger{color:#a31836}button:disabled{cursor:wait;opacity:.5}a{color:#254f99;text-decoration:none}a:hover{text-decoration:underline}.shell{display:grid;grid-template-columns:236px minmax(0,1fr);min-height:100vh}.sidebar{background:var(--navy);color:white;position:sticky;top:0;height:100vh;display:flex;flex-direction:column;padding:28px 18px}.brand{background:white;border-radius:4px;padding:12px;margin:0 0 26px}.brand img{width:100%;display:block}.sidebar nav{display:grid;gap:7px}.sidebar nav button{text-align:left;border:0;background:transparent;color:#ced7e8;font-weight:500}.sidebar nav button.active{background:#304362;color:white;box-shadow:inset 3px 0 var(--red)}.sidebar nav button:hover{background:#253b5d}.sidebar .account{margin-top:auto;padding:20px 10px 0;font-size:.875rem;color:#c7d1e4}.account strong{display:block;color:white;font-size:1rem}.account button{background:transparent;color:white;border-color:#50617c;margin-top:12px}.workspace{min-width:0}.topbar{background:white;border-bottom:1px solid var(--line);min-height:72px;padding:16px 36px;display:flex;align-items:center;justify-content:space-between;gap:15px}.topbar span{color:var(--muted);font-size:.875rem}.dev-label{font-size:.75rem;letter-spacing:.09em;font-weight:700;text-transform:uppercase;background:#edf0f6;padding:6px 10px;border-radius:4px;color:#495b78}.content{max-width:1540px;margin:auto;padding:32px 36px 60px}.pagehead{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:24px}h1{font-size:1.8rem;letter-spacing:-.04em;line-height:1.25;margin:0 0 6px}h2{font-size:1.16rem;margin:0 0 14px}h3{font-size:1rem;margin:0}.muted{color:var(--muted)}p{margin:6px 0 16px}.pagehead p{color:var(--muted);font-size:.95rem}.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:24px}.stat{border:1px solid var(--line);border-top:3px solid var(--navy);border-radius:6px;background:white;padding:20px}.stat strong{font-size:2rem;display:block;font-weight:600;line-height:1.15}.stat span{font-size:.875rem;color:var(--muted)}.panel{background:white;border:1px solid var(--line);border-radius:7px;margin-bottom:20px;overflow:hidden}.panel-head{padding:18px 22px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:14px}.panel-body{padding:22px}.toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:20px}.toolbar input{flex:1;min-width:160px}.tabs{display:flex;gap:5px;overflow-x:auto;padding-bottom:6px;margin-bottom:20px}.tabs button{white-space:nowrap;background:transparent;border-color:transparent;color:var(--muted)}.tabs button.active{border-bottom:3px solid var(--red);color:var(--navy);border-radius:0}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:.9rem}th{text-align:left;padding:12px 20px;background:#f7f9fc;color:#59677d;font-size:.8rem;letter-spacing:.04em;font-weight:650}td{padding:16px 20px;border-top:1px solid #e8ecf2;vertical-align:top}td small{display:block;color:var(--muted);font-size:.8rem;margin-top:3px}.link-button{border:0;min-height:0;padding:0;background:none;color:#224e91;text-align:left}.badge{display:inline-block;font-size:.8rem;border-radius:4px;padding:4px 8px;background:#eef1f6;color:#455776;white-space:nowrap}.badge.green{background:#e6f3ed;color:#216145}.badge.blue{background:#e7effe;color:#264b8c}.badge.amber{background:#fff1d8;color:#795111}.badge.red{background:#fbe7ec;color:#a12240}.empty{text-align:center;padding:52px 24px}.empty h2{margin-bottom:6px}.empty p{color:var(--muted);max-width:500px;margin:0 auto 20px}.actions{display:flex;gap:9px;flex-wrap:wrap;align-items:center}.warning{border-left:3px solid #bb8329;background:#fff6e5;padding:15px 18px;margin-bottom:20px;color:#6b4e20}.note{padding:15px 18px;background:#edf2fa;color:#425a7e;border-radius:5px;margin-bottom:20px}.error{background:#fff0f2;color:#982b43;padding:12px 15px;border-radius:5px;margin:12px 0}.grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.field{display:flex;flex-direction:column;gap:6px;margin-bottom:15px}.field label{font-size:.875rem;font-weight:600}.field small{color:var(--muted);font-size:.8rem}input,textarea,select{border:1px solid #c5cedc;border-radius:5px;background:white;color:var(--navy);padding:10px 12px;width:100%;min-height:44px}textarea{resize:vertical;min-height:90px}input[type=checkbox]{min-height:20px;width:20px;margin:0 8px 0 0;vertical-align:middle}.check{display:flex;align-items:center;font-size:.9rem;padding:7px 0}.checks{max-height:200px;overflow:auto;border:1px solid var(--line);padding:10px;border-radius:5px}.compact{padding:7px 12px;min-height:38px;font-size:.875rem}.entry-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.entry-head p{margin:4px 0 0;color:var(--muted);font-size:.875rem}.entry-actions{padding:14px 22px;display:flex;flex-wrap:wrap;gap:9px;background:#fafbfd;border-top:1px solid var(--line)}.line-table td{padding:12px 18px}.details{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:22px}.details aside .panel-body{font-size:.9rem}.label{font-size:.8rem;color:var(--muted);display:block;margin-top:15px}.label:first-child{margin-top:0}.timeline{list-style:none;padding:0;margin:0}.timeline li{border-left:2px solid #dce3ef;padding:0 0 22px 14px;margin-left:4px;font-size:.9rem}.timeline small{display:block;color:var(--muted)}dialog{border:0;border-radius:8px;padding:0;width:min(760px,calc(100% - 24px));max-height:90vh;box-shadow:0 20px 70px #14233b40}dialog::backdrop{background:#101b32a6}.modal-header{position:sticky;top:0;background:white;border-bottom:1px solid var(--line);padding:20px 24px;display:flex;align-items:center;justify-content:space-between;z-index:2}.modal-header h2{margin:0}.modal-body{padding:24px}.modal-footer{padding:18px 24px;background:#f7f9fc;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:10px}.modal-section{padding:16px;border:1px solid var(--line);border-radius:5px;margin:16px 0}.modal-section h3{margin-bottom:10px}.signin{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.signin-brand{background:var(--navy);display:flex;flex-direction:column;justify-content:center;padding:12%;color:white;border-bottom:8px solid var(--red)}.signin-brand img{background:white;padding:22px;border-radius:4px;max-width:420px;margin-bottom:35px}.signin-brand h1{font-size:2.8rem}.signin-brand p{color:#ccd6e7;max-width:400px}.signin-form{padding:10%;display:flex;align-items:center;justify-content:center}.signin-form form{max-width:370px;width:100%}.signin-form h2{font-size:1.6rem}.signin-form button{width:100%;margin-top:12px}#toast{position:fixed;bottom:24px;right:24px;background:#172947;color:white;max-width:480px;padding:14px 20px;border-radius:6px;z-index:100;display:none}.loading{padding:40px}.mono{font-family:ui-monospace,Consolas,monospace;font-size:.8rem;overflow-wrap:anywhere}.footer-note{font-size:.8rem;color:var(--muted);margin:20px 0}pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:.8rem}.search-results{max-height:230px;overflow:auto;display:grid;gap:5px}.search-results button{text-align:left;font-weight:400}.selected-location{padding:12px;background:#edf2fa;margin:8px 0}.right{text-align:right}@media(max-width:1100px){.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.details{grid-template-columns:1fr}.details aside{display:grid;grid-template-columns:1fr 1fr;gap:16px}}@media(max-width:760px){.shell{display:block}.sidebar{height:auto;position:static;padding:12px}.brand{display:block}.sidebar nav{display:flex;overflow:auto;gap:3px}.sidebar nav button{white-space:nowrap}.sidebar .account{display:none}.topbar{padding:12px 18px}.content{padding:24px 16px}.pagehead{flex-wrap:wrap}h1{font-size:1.55rem}.cards{gap:10px}.stat{padding:15px}.grid,.grid.three{grid-template-columns:1fr}.details aside{display:block}.panel-head,.panel-body{padding:16px}.entry-head{align-items:flex-start}.entry-actions{padding:12px}.signin{display:block}.signin-brand{padding:25px}.signin-brand img{width:200px;margin:0}.signin-brand h1,.signin-brand p{display:none}.signin-form{padding:32px 24px}td,th{padding:12px}.dev-label{font-size:.7rem}.modal-body{padding:18px}}@media print{.sidebar,.topbar,.toolbar,.actions,.entry-actions,.pagehead button,#toast,dialog{display:none!important}.shell,.details{display:block}.content{padding:0}.panel{break-inside:avoid;border:1px solid #aaa}.badge{border:1px solid #bbb}body{background:white}.cards{display:none}.print-note{display:block}}
/* Revision 1: accessible location selection and mobile Mechanics inspections. */
[hidden]{display:none!important}.picker-label{display:block;font-weight:600;margin-bottom:8px}.picker-modes{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:16px}.picker-modes .active{background:var(--navy);color:white}.location-picker{border:1px solid var(--line);border-radius:6px;padding:16px;margin-bottom:20px}.location-picker label{display:block;font-size:.9rem}.location-picker input,.location-picker select{margin-top:6px}.location-browser .grid{margin-bottom:12px}.browse-results{max-height:350px;overflow:auto;display:grid;gap:6px;margin:12px 0}.browse-results button,.search-results button{display:flex;flex-direction:column;text-align:left;gap:3px;font-weight:400;min-height:58px}.browse-results button.selected,.search-results button.selected{border:2px solid #24549d;background:#edf3ff}.browse-results span,.search-results span{font-size:.85rem;color:var(--muted)}.location-new-pane p{font-size:.9rem}.browse-count{font-size:.85rem;color:var(--muted)}.pm-section{border:1px solid var(--line);border-radius:6px;padding:18px;margin:20px 0}.pm-section legend{font-weight:700;color:var(--navy);padding:0 8px}.pm-question{padding:18px 0;border-bottom:1px solid var(--line)}.pm-question:last-child{border:0;padding-bottom:0}.pm-question h3{margin-bottom:14px}.pm-question textarea{min-height:65px}.pm-question .grid .field{margin-bottom:6px}.pm-instruction{border-left:3px solid var(--red);padding-left:12px;font-size:.9rem}.autofill{background:#f1f4f9;padding:10px 12px;margin:0;border-radius:5px;white-space:pre-wrap}.pm-answers{margin:16px 0 26px}.pm-answers>div{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;padding:10px 0;border-bottom:1px solid var(--line)}.pm-answers dt{font-weight:600}.pm-answers dd{margin:0;white-space:pre-wrap}.pm-record{margin:20px 0;overflow-wrap:anywhere}.pm-record>h3{margin-top:20px}.toolbar .field{margin-bottom:0;min-width:180px}.toolbar label{font-size:.85rem}@media(max-width:760px){.pm-answers>div{grid-template-columns:1fr;gap:4px}.pm-section{padding:12px}.picker-modes{display:grid}.picker-modes button{width:100%}.location-picker{padding:12px}.browse-results{max-height:300px}}@media print{details>*,details:not([open])>*{display:block!important}.pm-record{break-before:auto}.pm-answers>div{break-inside:avoid}.pm-instruction{border-left-color:#555}}

.record{background:#fff;color:#182337;padding:24px;max-width:1000px;margin:auto;font-size:14px;line-height:1.4}.record-header{border-bottom:2px solid #283b61;padding-bottom:10px;margin-bottom:14px}.record-header h1{font-size:25px;margin:6px 0}.record h2{font-size:18px;margin:14px 0 3px}.record p{margin:6px 0 10px}.record .location-code{margin-top:0}.record-meta{display:grid;grid-template-columns:1fr 1fr;gap:20px}.record table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:12px}.record th,.record td{padding:6px;border:1px solid #cbd0d8;text-align:left;vertical-align:top;overflow-wrap:anywhere;white-space:pre-wrap}.record th{background:#eef1f6;color:#233454}.record-note{font-size:11px;color:#465368}.record-total{text-align:right;padding-top:14px}.record-section{margin:16px 0}.preserve-lines{white-space:pre-wrap}.record-preview{max-height:65vh;overflow:auto}.record .section-row th{background:#dce4ed}.invoice-events{font-size:13px}.invoice-events li{margin:8px 0}#print-record{display:none}@media(max-width:600px){.record{padding:12px}.record-meta{grid-template-columns:1fr;gap:0}.record th,.record td{padding:4px;font-size:11px}.cards{flex-wrap:wrap}}
@media print{@page{size:auto;margin:12mm}body.printing-record>*{display:none!important}body.printing-record>#print-record{display:block!important}#print-record .record{max-width:none;padding:0;font-size:10pt}#print-record table{font-size:8.5pt}#print-record thead{display:table-header-group}#print-record tr{break-inside:avoid}#print-record h1,#print-record h2,#print-record .section-row{break-after:avoid}#print-record .record-section,#print-record .record{break-inside:auto}#print-record td,#print-record th{padding:4px}#print-record .record-header h1{font-size:18pt}}

/* Each navigation region scrolls independently, with account controls retained. */
.sidebar{height:100dvh;min-height:0;overflow:hidden}.sidebar .brand,.sidebar .account{flex-shrink:0}.sidebar nav{min-height:0;overflow-y:auto;overscroll-behavior:contain;flex:1;align-content:start}.sidebar .account{margin-top:0}.preserve-lines{white-space:pre-wrap;overflow-wrap:anywhere}fieldset[hidden]{display:none}
@media(max-width:760px){.sidebar{height:auto;max-height:48dvh;position:sticky;top:0;z-index:4;padding:10px}.sidebar nav{display:flex;flex-wrap:wrap;max-height:28dvh;overflow-y:auto;flex-shrink:1}.sidebar nav button{flex-shrink:0}.sidebar .brand{display:block}.sidebar .account{padding:5px;display:flex;align-items:center;gap:8px}.sidebar .account button{margin:0}.sidebar .account br{display:none}.grid{grid-template-columns:minmax(0,1fr)}}

/* Definite grid tracks make navigation scrollable on its first layout pass. */
.sidebar{display:grid;grid-template-rows:auto minmax(0,1fr) auto;align-self:start;height:100vh;height:100dvh;max-height:100dvh;min-height:0}.sidebar .brand{grid-row:1;max-height:22dvh;overflow:hidden}.sidebar nav{grid-row:2;min-height:0;overflow-y:scroll;scrollbar-gutter:stable;touch-action:pan-y}.sidebar .account{grid-row:3;min-height:0}
@media(max-height:600px) and (min-width:761px){.sidebar{padding:8px}.sidebar .brand{display:block}.sidebar .account{padding:5px;font-size:.75rem}.sidebar .account button{margin-top:3px}}
@media(max-width:760px){.sidebar{height:auto;max-height:48dvh;grid-template-rows:auto minmax(0,1fr) auto}.sidebar nav{max-height:28dvh}.sidebar .account{font-size:.75rem;flex-wrap:wrap}}

[hidden]{display:none!important}

/* Fueling is a card workflow, with roomy controls on phones and laptops. */
.fuel-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:16px;margin:16px 0}.fuel-card{padding:18px}.fuel-card button,.fuel-cards>button{min-height:52px;margin:4px;padding:12px}.fuel-complete{background:#d8efdf;color:#124d28;border:2px solid #267747}.fuel-card.removed{opacity:.75;border-style:dashed}#fuel-entry-form input[type=number]{font-size:1.5rem;min-height:58px}#fuel-sync-status{font-size:.95rem}#pac-questions section,[data-type-field]{border:1px solid #b6bec9;padding:12px;margin:10px 0}pre{white-space:pre-wrap;overflow-wrap:anywhere}

/* Shared date input: displayed text stays MM-DD-YYYY, the native calendar remains clickable. */
.date-pair{display:flex;gap:8px;align-items:center}.date-pair>input{min-width:0;flex:1}.calendar-picker{position:relative;display:grid;place-items:center;min-width:44px;height:44px;border:1px solid #c5cedc;border-radius:5px;overflow:hidden}.calendar-picker input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.calendar-picker input::-webkit-calendar-picker-indicator{position:absolute;inset:0;width:100%;height:100%;cursor:pointer}.calendar-picker:focus-within{outline:2px solid #254f99}
.sidebar .brand{display:block;padding:6px;margin-bottom:10px;max-height:none}.sidebar .brand img{width:100%;max-height:110px;object-fit:contain}.bell-panel{position:fixed;z-index:50;top:68px;right:12px;width:min(460px,calc(100vw - 24px));max-height:70dvh;overflow-y:auto;background:white;border:1px solid #b6bec9;border-radius:8px;padding:12px;box-shadow:0 8px 30px #17243b33}.bell-panel article{padding:10px 0;border-bottom:1px solid #ddd}.bell-panel article>button:first-child{display:block;text-align:left}.bell-panel small{display:block}#fuel-approval fieldset{padding:12px;margin:12px;border:1px solid #c5cedc}
@media(max-width:760px){.sidebar{grid-template-rows:auto minmax(0,1fr) auto;max-height:55dvh}.sidebar .brand{margin:0 0 6px}.sidebar .brand img{max-height:56px}.sidebar nav{min-height:44px;max-height:22dvh;overflow-y:scroll}}
@media(max-height:600px) and (min-width:761px){.sidebar .brand img{max-height:55px}}

.fuel-location {margin:12px 0;border-top:2px solid #213c60}.fuel-location>summary {font-weight:700;padding:10px;cursor:pointer}.fuel-week-grid {table-layout:fixed;width:100%;font-size:12px;margin:8px 0}.fuel-week-grid td,.fuel-week-grid th {padding:6px;vertical-align:top;overflow-wrap:anywhere}.fuel-week-grid small {display:block;font-size:10px}.fuel-total-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.fuel-totals table{width:100%}.fuel-support{margin:12px 0}.fuel-summary{max-width:none}.fuel-review-label{font-weight:600}
@media(max-width:700px){.fuel-location{overflow-x:auto}.fuel-week-grid{min-width:750px}.fuel-total-grid{grid-template-columns:1fr}}
@media print{.fuel-summary .fuel-location{display:block;overflow:visible;break-inside:auto}.fuel-summary .fuel-location>*{display:block}.fuel-summary .fuel-location>table{display:table!important}.fuel-summary .fuel-week-grid{min-width:0;font-size:8pt;table-layout:fixed;break-inside:auto}.fuel-summary .fuel-week-grid small{font-size:7pt}.fuel-summary thead{display:table-header-group}.fuel-summary tr{break-inside:avoid}.fuel-summary .fuel-week-grid td,.fuel-summary .fuel-week-grid th{padding:3px}.fuel-support{display:none!important}.fuel-total-grid{display:block}.fuel-totals{break-inside:auto}.fuel-summary .record-header{break-after:avoid}}

/* Revision 8.2: public sign-in only. No authenticated tenant selectors. */
.rorik-signin {
 --rorik-iron: #0B1320;
 --rorik-storm: #17263A;
 --rorik-ivory: #E7E2D8;
 --rorik-copper: #B8733F;
 background: var(--rorik-iron);
 color: var(--rorik-ivory);
 min-height: 100vh;
 min-height: 100svh;
 padding: 64px 32px;
 display: grid;
 align-items: center;
 color-scheme: dark;
}
.rorik-signin-layout {width:100%;max-width:1040px;margin:0 auto;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,420px);gap:96px;align-items:center}
.rorik-signin-brand {display:flex;justify-content:center;padding:24px 0}
.rorik-signin-brand img {display:block;width:100%;max-width:400px;height:auto;object-fit:contain;background:transparent}
.rorik-signin-panel {padding:36px;background:var(--rorik-storm);border-radius:8px}
.rorik-signin .rorik-revision {display:block;font-size:.7rem;letter-spacing:.06em;margin-bottom:22px;color:var(--rorik-ivory)}
.rorik-signin h1 {font-size:1.9rem;line-height:1.2;margin:0 0 10px;color:var(--rorik-ivory)}
.rorik-signin-intro {margin:0 0 28px;font-size:.9rem}
.rorik-signin .field {margin-bottom:20px}
.rorik-signin input:not([type=checkbox]) {background:var(--rorik-iron);border:1px solid var(--rorik-ivory);color:var(--rorik-ivory);min-height:48px;font-size:16px}
.rorik-signin input {accent-color:var(--rorik-copper)}
.rorik-signin input:focus-visible,.rorik-signin button:focus-visible {outline:2px solid var(--rorik-copper);outline-offset:4px;box-shadow:none}
.rorik-signin .check {font-size:.82rem;line-height:1.5;align-items:flex-start}
.rorik-signin input[type=checkbox] {flex-shrink:0;margin-top:2px}
.rorik-signin button.primary {width:100%;margin-top:22px;min-height:48px;background:var(--rorik-copper);border:1px solid var(--rorik-copper);color:var(--rorik-iron);font-weight:700}
.rorik-signin button.primary:hover {background:var(--rorik-ivory);border-color:var(--rorik-ivory);color:var(--rorik-iron)}
.rorik-signin button.primary:disabled {opacity:.65;cursor:wait}
.rorik-signin .footer-note {color:var(--rorik-ivory);font-size:.75rem;line-height:1.6;margin:22px 0 0}
.rorik-signin .error {color:var(--rorik-ivory);background:var(--rorik-iron);border-left:3px solid var(--rorik-copper);padding:12px;font-size:.9rem}
#app:has(> .loading) {min-height:100vh;background:#0B1320;color:#E7E2D8}
@media(max-width:800px){
 .rorik-signin {padding:28px 20px 40px}
 .rorik-signin-layout {grid-template-columns:minmax(0,440px);justify-content:center;gap:20px}
 .rorik-signin-brand {padding:0 24px}
 .rorik-signin-brand img {max-width:220px}
 .rorik-signin-panel {padding:30px}
}
@media(max-width:380px){
 .rorik-signin {padding:20px 14px 28px}
 .rorik-signin-panel {padding:24px 20px}
 .rorik-signin-brand img {max-width:180px}
}
