@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--navy:#102c48;--blue:#2361e8;--ink:#183148;--muted:#7a8a9b;--line:#e6ecf2;--bg:#f5f7fb}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:'DM Sans',Arial,sans-serif;font-size:14px}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.4;cursor:not-allowed}button:focus-visible,a:focus-visible{outline:3px solid #8ab4ff;outline-offset:3px}button{border:0;background:none;color:inherit}aside{width:228px;position:fixed;inset:0 auto 0 0;background:var(--navy);color:#fff;padding:30px 20px;display:flex;flex-direction:column}.brand{display:flex;gap:12px;align-items:center;font-family:Manrope,sans-serif;font-weight:800;font-size:17px;line-height:1.3}.brand-mark{background:#3473f4;border-radius:10px;padding:9px;font-size:22px}.brand small{display:block;font-family:'DM Sans',sans-serif;font-weight:400;font-size:11px;color:#a0b6cc;letter-spacing:2px;margin-top:5px}.nav-label{color:#829ab2;font-size:10px;letter-spacing:2px;margin:42px 14px 14px}nav button{width:100%;display:flex;align-items:center;gap:13px;padding:13px 15px;color:#a9bfd2;text-align:left;border-radius:7px;margin-bottom:5px;font-size:13px}nav button.active{background:#285780;color:white}nav button:hover{background:#244766;color:white}.nav-count{margin-left:auto;background:#416e97;border-radius:5px;padding:2px 7px;font-size:10px}.sidebar-bottom{margin-top:auto;padding-top:25px;color:#9db4ca;font-size:12px}.site-dot{display:inline-block;background:#48c995;width:7px;height:7px;border-radius:50%;margin-right:8px}.sidebar-bottom strong{color:#e6f0f7;display:block;margin-bottom:9px}.avatar{display:inline-flex;width:34px;height:34px;background:#eaf0ff;color:#3863a6;align-items:center;justify-content:center;border-radius:50%;font-size:11px;font-weight:700;flex-shrink:0}main{margin-left:228px}header{height:78px;border-bottom:1px solid var(--line);background:white;display:flex;align-items:center;justify-content:space-between;padding:0 36px}.breadcrumb{font-size:12px;color:var(--muted)}.breadcrumb b{color:var(--ink);font-weight:500}.header-right{display:flex;align-items:center;gap:16px}.demo{font-size:10px;letter-spacing:1px;color:#a37620;background:#fff7e5;border:1px solid #f3e6c6;border-radius:4px;padding:5px 8px}select{border:1px solid var(--line);border-radius:6px;padding:9px;background:white;color:var(--ink)}.content{padding:32px 36px}.pagehead{display:flex;align-items:center;justify-content:space-between;margin-bottom:25px}h1{font-family:Manrope,sans-serif;font-size:28px;letter-spacing:-1px;margin:0 0 7px;font-weight:800}h2{font-family:Manrope,sans-serif;font-size:19px;margin:0 0 12px}h3{font-size:14px;margin:0 0 14px}p{color:var(--muted);line-height:1.65;margin:0}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid #dbe3ed;border-radius:7px;padding:10px 16px;background:white;font-weight:600;font-size:12px;white-space:nowrap}.btn:hover{background:#f0f5fc}.primary{background:var(--blue);color:white;border-color:var(--blue);box-shadow:0 3px 7px #2361e822}.primary:hover{background:#194dcc}.danger{color:#c14a48;background:#fff4f3;border-color:#f1d7d6}.actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:0 0 27px}.stat{background:white;border:1px solid var(--line);border-radius:10px;padding:20px 21px}.stat-top{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:12px}.stat-icon{background:#edf3ff;border-radius:8px;color:#4976bd;padding:7px 9px;font-size:16px}.stat strong{display:block;font-family:Manrope,sans-serif;font-size:31px;margin:4px 0 4px;letter-spacing:-1px}.stat small{font-size:11px;color:var(--muted)}.green{color:#20956d!important}.panel{background:white;border:1px solid var(--line);border-radius:10px;overflow:hidden}.toolbar{padding:20px;display:flex;justify-content:space-between;align-items:center;gap:15px;border-bottom:1px solid var(--line)}.tabs{display:flex;gap:5px;flex-wrap:wrap}.tab{padding:8px 12px;border-radius:6px;color:#7d8da0;font-size:12px}.tab.active{background:#edf3ff;color:#265fce;font-weight:700}.tab span{font-size:10px;margin-left:5px;opacity:.7}.search{border:1px solid var(--line);padding:10px 12px;border-radius:6px;background:#fafbfd;min-width:220px;outline:none}.search:focus{border-color:var(--blue)}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;white-space:nowrap}th{text-align:left;background:#fafbfd;color:#8593a3;font-size:10px;letter-spacing:.7px;text-transform:uppercase;font-weight:600;padding:14px 18px;border-bottom:1px solid var(--line)}td{padding:17px 18px;border-bottom:1px solid #eff2f6;font-size:12px}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fbfcff}td strong{display:block;font-size:12px;font-weight:700}td small{display:block;color:var(--muted);font-size:10px;margin-top:5px}.plate{font-family:Manrope,sans-serif;letter-spacing:.2px}.truckcell{display:flex;gap:10px;align-items:center}.mini-truck{color:#6885a4;width:38px}.badge{display:inline-flex;align-items:center;gap:6px;border-radius:5px;padding:5px 8px;font-size:10px;font-weight:600;background:#edf2f8;color:#728298}.badge:before{content:'';width:5px;height:5px;border-radius:50%;background:currentColor}.loading{background:#e8f7ef;color:#238a61}.unloading{background:#eaf2ff;color:#2f6ccb}.waiting{background:#fff6e4;color:#b3882e}.ready{background:#f0ecff;color:#7b5cb6}.blocked{background:#fff0ef;color:#c45654}.table-footer{padding:16px 20px;border-top:1px solid var(--line);display:flex;justify-content:space-between;color:var(--muted);font-size:11px}.bottom-grid{display:grid;grid-template-columns:1.4fr 1fr;gap:20px;margin-top:22px}.yard-card{padding:24px;background:linear-gradient(125deg,#163b61,#285b8b);color:white;position:relative;min-height:178px;overflow:hidden;border-radius:10px}.yard-card p{color:#b4c9dc;font-size:12px;max-width:240px}.yard-card .carrier-art{position:absolute;right:12px;bottom:9px;width:45%;color:#91b5d4;opacity:.9}.eyebrow{font-size:9px;letter-spacing:2px;text-transform:uppercase;margin-bottom:12px;color:#a9c3de}.activity{padding:22px}.activity-line{display:flex;gap:12px;margin-top:15px;font-size:11px;line-height:1.6}.activity-line i{width:7px;height:7px;border-radius:50%;background:#77a2d9;margin-top:6px;flex-shrink:0}.activity-line small{display:block;color:var(--muted);font-size:10px}.footnote{font-size:10px;margin-top:20px;color:#8a98a7;display:flex;justify-content:space-between}.empty{padding:55px;text-align:center;color:var(--muted)}.link{color:#3366bc;font-weight:600}.shade{position:fixed;inset:0;background:#0c223b55;z-index:9;backdrop-filter:blur(2px)}.drawer{position:fixed;right:0;top:0;bottom:0;width:510px;background:white;z-index:10;box-shadow:-10px 0 40px #102c4820;overflow:auto;padding:28px}.drawer.wide{width:570px}.drawer-head{display:flex;justify-content:space-between;align-items:start;margin-bottom:22px}.close{font-size:26px;color:#8b99a5;padding:0 4px}.section{border-top:1px solid var(--line);padding-top:22px;margin-top:22px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.field{display:flex;flex-direction:column;gap:7px;font-size:11px;color:#6e8094}.field.full{grid-column:1/-1}.field input,.field select,.field textarea{width:100%;border:1px solid #dce4ed;border-radius:6px;padding:10px;color:var(--ink);background:white;min-height:39px}.field textarea{min-height:75px;resize:vertical}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;font-size:12px}.detail-grid small{display:block;color:var(--muted);font-size:10px;margin-bottom:5px}.notice{background:#eff5ff;border:1px solid #dce7fc;color:#51729c;padding:12px 14px;border-radius:6px;font-size:12px;line-height:1.6;margin:15px 0}.notice.red{background:#fff3f2;color:#b65050;border-color:#f3dddd}.notice.good{background:#ecf8f1;color:#278b62;border-color:#d5edde}.qty{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:15px}.qty div{padding:12px 8px;background:#f5f8fc;border-radius:6px;font-size:9px;color:#8190a1;text-align:center}.qty b{display:block;color:#183148;font-size:23px;margin-top:5px}.form-actions{margin-top:20px;display:flex;gap:9px;justify-content:flex-end}.error{color:#bd4c4c;font-size:12px;margin-top:12px}.block-card{padding:20px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:20px}.block-card p{font-size:12px}.photo{width:80px;height:70px;object-fit:cover;border-radius:6px;margin:8px 6px 0 0}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#183b55;color:white;padding:13px 22px;border-radius:8px;box-shadow:0 5px 20px #0002;z-index:30;display:none;font-size:13px}.report-bars{display:flex;align-items:end;height:145px;gap:10px;margin-top:25px}.report-bars div{flex:1;background:#6799f3;border-radius:4px 4px 0 0;position:relative;min-height:3px}.report-bars span{position:absolute;bottom:-22px;font-size:9px;color:#8190a1;left:25%}.directory-tabs{display:flex;gap:8px;margin-bottom:20px}.profile{font-size:11px}.profile strong{display:block}.profile small{color:var(--muted)}@media(min-width:1650px){.content{max-width:1550px;margin:auto}}@media(max-width:1150px){aside{width:190px;padding:25px 12px}main{margin-left:190px}.content{padding:25px 20px}header{padding:0 20px}.toolbar{align-items:stretch;flex-direction:column}.search{width:100%}.profile{display:none}}@media(max-width:760px){aside{width:65px;padding:20px 6px}.brand>div:last-child,.nav-label,.nav-text,.nav-count,.sidebar-bottom{display:none}.brand-mark{font-size:16px}nav{margin-top:35px}nav button{justify-content:center;padding:13px 0}main{margin-left:65px}header{padding:0 12px}.breadcrumb{display:none}.content{padding:22px 12px}.stats{grid-template-columns:1fr 1fr;gap:8px}.stat{padding:14px}.bottom-grid{grid-template-columns:1fr}.pagehead{gap:12px;align-items:start}h1{font-size:23px}.drawer,.drawer.wide{width:min(100%,510px)}.demo{display:none}.footnote{gap:20px}.header-right{width:100%;justify-content:space-between}}
/* Theme preference applies to the whole workspace and open dialogs. */
.theme-toggle{min-width:78px;min-height:36px;padding:8px 12px}
:root[data-theme="dark"]{--navy:#0b192a;--blue:#4d80f5;--ink:#e2eaf5;--muted:#a0afc2;--line:#2c3d53;--bg:#101b2b;color-scheme:dark}
[data-theme="dark"] header,[data-theme="dark"] .panel,[data-theme="dark"] .stat,[data-theme="dark"] .drawer{background:#19283b}
[data-theme="dark"] select,[data-theme="dark"] .field input,[data-theme="dark"] .field select,[data-theme="dark"] .field textarea,[data-theme="dark"] .search{background:#122035;color:var(--ink);border-color:var(--line)}
[data-theme="dark"] input::placeholder,[data-theme="dark"] textarea::placeholder{color:#8fa1b8}
[data-theme="dark"] .btn{background:#22344b;color:#dce7f5;border-color:#3a4e68}
[data-theme="dark"] .btn:hover{background:#2d4562}
[data-theme="dark"] .btn.primary{background:#356ce7;border-color:#4b80f5;color:#fff}
[data-theme="dark"] .btn.primary:hover{background:#437af0}
[data-theme="dark"] .btn.danger{background:#422a32;color:#ffb0ac;border-color:#6a3f47}
[data-theme="dark"] th,[data-theme="dark"] .qty div{background:#142236;color:#a6b7cd}
[data-theme="dark"] td{border-color:#26384e}
[data-theme="dark"] tbody tr:hover{background:#203149}
[data-theme="dark"] .qty b{color:#e2eaf5}
[data-theme="dark"] .stat-icon,[data-theme="dark"] .avatar,[data-theme="dark"] .tab.active{background:#263f64;color:#a9c8ff}
[data-theme="dark"] .tab{color:#a3b3c8}
[data-theme="dark"] .tab.active{color:#b8d0ff}
[data-theme="dark"] .badge{background:#2a3c53;color:#c3d0e0}
[data-theme="dark"] .badge.loading{background:#1b4038;color:#8edab4}
[data-theme="dark"] .badge.unloading{background:#233e66;color:#a5c8ff}
[data-theme="dark"] .badge.waiting{background:#403b2b;color:#ebcd85}
[data-theme="dark"] .badge.ready{background:#3c3154;color:#d0baf6}
[data-theme="dark"] .badge.blocked{background:#482e39;color:#ffb1ab}
[data-theme="dark"] .notice{background:#203750;border-color:#355271;color:#bbd2ef}
[data-theme="dark"] .notice.red{background:#3b2934;border-color:#64404c;color:#ffc1ba}
[data-theme="dark"] .notice.good{background:#1c3b35;border-color:#315c4f;color:#a0dfbd}
[data-theme="dark"] .green{color:#8edab4!important}
[data-theme="dark"] .error{color:#ffb1ab}
[data-theme="dark"] .link{color:#a5c5ff}
[data-theme="dark"] .field{color:#afbed1}
[data-theme="dark"] .demo{background:#383325;border-color:#5e5031;color:#e4cb8e}
[data-theme="dark"] .close,[data-theme="dark"] .footnote{color:#9cacbf}
[data-theme="dark"] .shade{background:#040a1499}
[data-theme="dark"] .yard-card{background:linear-gradient(125deg,#122c49,#224e76)}
@media(max-width:760px){.header-right{gap:8px}.theme-toggle{min-width:66px;padding:8px}.header-right select{max-width:160px}}
/* Softer daylight surfaces and searchable records. */
:root:not([data-theme="dark"]){--bg:#e2e8f0;--line:#ccd6e2;--muted:#62758b}
:root:not([data-theme="dark"]) header,:root:not([data-theme="dark"]) .panel,:root:not([data-theme="dark"]) .stat,:root:not([data-theme="dark"]) .drawer{background:#eef2f7}
:root:not([data-theme="dark"]) th,:root:not([data-theme="dark"]) .qty div{background:#e3eaf2;color:#63758c}
:root:not([data-theme="dark"]) select,:root:not([data-theme="dark"]) .field input,:root:not([data-theme="dark"]) .field select,:root:not([data-theme="dark"]) .field textarea,:root:not([data-theme="dark"]) .search{background:#f2f5f9;border-color:#cbd6e4}
:root:not([data-theme="dark"]) td{border-color:#dbe3ed}
:root:not([data-theme="dark"]) tbody tr:hover{background:#e6edf6}
.step-label{font-size:10px;letter-spacing:1.5px;color:var(--muted);margin-bottom:14px;font-weight:700}
.search-results{border-radius:7px;overflow:hidden;margin-top:7px;max-height:220px;overflow-y:auto}
.search-option{display:block;width:100%;padding:12px 14px;text-align:left;background:#e4ecf6;border:1px solid var(--line);border-bottom:0}
.search-option:last-child{border-bottom:1px solid var(--line)}
.search-option:hover{background:#d7e5f9}.search-option strong{display:block;font-size:13px}.search-option small{display:block;margin-top:5px;color:var(--muted);font-size:11px}
.add-option{color:#285cba;font-weight:600}.search-empty{padding:12px;color:var(--muted);font-size:12px}
.selection-card,.history-card{padding:16px;border:1px solid var(--line);border-radius:8px;background:#e6edf5;margin-top:12px}
.selection-card p,.history-card p{font-size:12px;margin:8px 0}.selection-card small,.history-card small{display:block;color:var(--muted);font-size:11px;line-height:1.7}
.selection-card .link,.history-card .link{padding:8px 0 0}.selection-card.compact,.history-heading{display:flex;justify-content:space-between;align-items:center;gap:10px}
.entity-counters{grid-template-columns:repeat(3,1fr);margin-top:24px}.count-muted{font-size:11px;color:var(--muted)}
[data-theme="dark"] .selection-card,[data-theme="dark"] .history-card{background:#142236}
[data-theme="dark"] .search-option{background:#22344b}[data-theme="dark"] .search-option:hover{background:#2d4562}
[data-theme="dark"] .add-option{color:#a5c5ff}
.stat-filter{text-align:left;transition:border-color .15s,box-shadow .15s}
.stat-filter:hover{border-color:#739bda;box-shadow:0 3px 12px #234c7b16}
.stat-filter.selected{border-color:var(--blue);box-shadow:inset 0 0 0 1px var(--blue)}
.stat-filter.selected .stat-top{color:var(--blue)}
[data-theme="dark"] .stat-filter.selected .stat-top{color:#a5c5ff}
.date-filters{padding:18px 20px;display:flex;align-items:end;gap:16px;flex-wrap:wrap;border-bottom:1px solid var(--line)}
.date-mode{display:flex;align-items:center;padding:3px;border:1px solid var(--line);border-radius:7px;min-height:40px}
.date-filters .field{min-width:165px}.date-filters .count-muted{padding-bottom:10px}
.date-error:empty{display:none}.date-error{padding:0 20px 15px}
.history-toolbar h3{margin-bottom:5px}
.capacity-denominator{font-size:19px;font-weight:500;letter-spacing:0;color:var(--muted)}
.stat.capacity-high{background:#f5e6b5!important;border-color:#c69b35}.stat.capacity-high .stat-top,.stat.capacity-high small{color:#745413}.stat.capacity-high.selected{box-shadow:inset 0 0 0 1px #b38b23}
.stat.capacity-over{background:#f4d1ce!important;border-color:#c76861}.stat.capacity-over .stat-top,.stat.capacity-over small{color:#903b36}.stat.capacity-over.selected{box-shadow:inset 0 0 0 1px #b84741}
.stay-warning{display:inline-flex;align-items:center;justify-content:center;color:#79570d;background:#f8db7f;width:22px;height:22px;border-radius:5px;font-size:15px;margin-left:5px;vertical-align:middle}
.gate-help{font-size:12px;margin-bottom:15px}
[data-theme="dark"] .stat.capacity-high{background:#443820!important;border-color:#b18b37}[data-theme="dark"] .stat.capacity-high .stat-top,[data-theme="dark"] .stat.capacity-high small{color:#f1d48b}
[data-theme="dark"] .stat.capacity-over{background:#472a32!important;border-color:#c56661}[data-theme="dark"] .stat.capacity-over .stat-top,[data-theme="dark"] .stat.capacity-over small{color:#ffb5af}
.drawer.checkout-dialog{left:50%;top:50%;right:auto;bottom:auto;transform:translate(-50%,-50%);width:min(440px,calc(100vw - 30px));max-height:calc(100vh - 40px);border-radius:14px;padding:26px}
.checkout-truck{margin-bottom:23px}.checkout-truck strong{font-size:20px;font-family:Manrope,sans-serif}.checkout-truck p{font-size:12px;margin-top:6px}
.checkout-dialog .field{font-size:14px}.checkout-dialog input{font-size:24px;min-height:56px}.row-checkout{padding:8px 10px;font-size:11px}
.exception-confirm{display:flex;align-items:flex-start;gap:10px;margin:16px 0;color:var(--ink);font-size:13px;line-height:1.5}.exception-confirm input{width:18px;height:18px;min-height:18px;margin:1px 0 0}
.checkout-dialog .field select{width:100%;margin:8px 0;font-size:14px}
.checkout-dialog [hidden]{display:none!important}
.activity-only{margin-top:22px}
.brand .toyota-mark{background:transparent;padding:0;display:flex;align-items:center;justify-content:center;flex-shrink:0;width:57px;color:#fff;border-radius:0}
.toyota-mark svg{display:block;width:57px;height:40px}.brand-title{font-size:19px;line-height:1.25}.brand-title span{display:block;font-size:14px;font-weight:500;margin-top:3px}.brand-title small{font-size:9px;letter-spacing:2px;margin-top:7px}
@media(max-width:760px){.brand .toyota-mark{width:47px}.toyota-mark svg{width:47px;height:34px}}
.report-date,.block-search-toolbar{padding:20px;display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:22px}.report-date h3{margin-bottom:5px}.report-date p{font-size:12px}.report-date .field{min-width:175px}.report-average{font-family:Manrope,sans-serif;font-size:36px;font-weight:800;margin:25px 0}.daily-summary{grid-template-columns:1fr 1fr}.block-stats{grid-template-columns:repeat(3,1fr)}.block-search-toolbar .search{flex:1;max-width:620px}@media(max-width:760px){.report-date,.block-search-toolbar{align-items:stretch;flex-direction:column}.daily-summary{grid-template-columns:1fr}.block-stats{grid-template-columns:1fr}.block-search-toolbar .search{width:100%;min-width:0}}
/* Auditor workspace and mobile checklist */
.audit-pending{margin-top:8px;padding:7px 9px;border-radius:6px;background:#fff0c7;color:#7c5b17;font-size:10px}.audit-pending strong{font-size:10px}.audit-pending small{display:block;color:inherit;margin-top:3px}.audit-warning{background:#fff0c7;color:#946714}
.audit-choice{min-height:100vh;background:var(--bg)}.audit-choice-header{display:flex;align-items:center;justify-content:space-between;padding:25px 5%;background:var(--navy);color:#fff;gap:20px}.audit-choice-body{max-width:860px;margin:0 auto;padding:80px 25px}.audit-choice-body>.eyebrow{color:var(--muted)}.audit-mode-options{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:35px}.audit-mode-options>button{text-align:left;padding:30px;min-height:210px;transition:box-shadow .15s}.audit-mode-options>button:hover{box-shadow:0 8px 25px #102c4820;border-color:var(--blue)}.audit-mode-options>button>span{display:block;font-size:30px;color:var(--blue);margin-bottom:20px}.audit-mode-options p{font-size:13px}
.audit-mobile{min-height:100vh}.audit-mobile-header{position:sticky;top:0;height:auto;z-index:3;padding:15px 25px;gap:15px;flex-wrap:wrap;background:var(--navy);color:#fff}.audit-mobile-header>div>strong{font-family:Manrope,sans-serif;font-size:17px}.audit-mobile-header small{display:block;font-size:11px;margin-top:5px;color:#b9cde1}.audit-mobile-content{max-width:780px;margin:0 auto;padding:26px 20px}.audit-mobile-content>.search{width:100%;margin-bottom:18px}.audit-truck-card{padding:20px;margin-bottom:14px}.audit-truck-top{display:flex;justify-content:space-between;gap:12px;align-items:start}.audit-truck-top h2{font-size:21px;margin-bottom:5px}.audit-truck-top p{font-size:11px}.audit-truck-meta{display:flex;gap:16px;margin:15px 0;color:var(--muted);font-size:12px}.audit-start{min-height:44px;width:100%;margin-top:12px}
.drawer.audit-editor{width:min(780px,100vw);padding:24px 24px 0}.audit-ident{border:1px solid var(--line);padding:16px;border-radius:8px;margin-bottom:22px}.audit-ident p{font-size:12px;margin-bottom:8px}.audit-ident small{color:var(--muted);font-size:11px}.audit-operation select{font-size:15px;min-height:46px}.audit-help{font-size:11px;margin:14px 0 20px}.audit-section-title{position:sticky;top:-24px;background:#214b73;color:white;border-radius:6px;padding:14px 16px;z-index:2;font-size:13px;margin:24px 0 12px}.audit-question{border:0;border-bottom:1px solid var(--line);padding:18px 0;margin:0;min-width:0}.audit-question legend{float:left;width:100%;padding:0;font-size:14px;font-weight:600;line-height:1.5;margin-bottom:12px}.audit-answer-control{clear:both;display:grid;grid-template-columns:repeat(4,1fr);border:1px solid var(--line);border-radius:8px;overflow:hidden}.answer-option{position:relative;cursor:pointer;min-width:0}.answer-option input{position:absolute;opacity:0;width:1px;height:1px}.answer-option span{display:flex;align-items:center;justify-content:center;min-height:46px;padding:8px 2px;font-size:11px;font-weight:700;background:#e2e9f2;border-right:1px solid var(--line);color:#65798e}.answer-option:last-child span{border-right:0}.answer-option input:checked+span.answer-ok{background:#21895f;color:#fff}.answer-option input:checked+span.answer-nok{background:#c64d4c;color:#fff}.answer-option input:checked+span.answer-adjusted{background:#e3ad37;color:#33290f}.answer-option input:checked+span.answer-na{background:#687d91;color:#fff}.answer-option input:focus-visible+span{outline:3px solid #85b3ff;outline-offset:-3px}.audit-question-rule{color:var(--muted);font-size:10px;margin-top:9px}.audit-item-comment{margin-top:12px;display:none}.audit-question:has(input[value="NOK"]:checked) .audit-item-comment,.audit-question:has(input[value="ADJUSTED"]:checked) .audit-item-comment,.audit-item-comment.has-comment{display:flex}.audit-item-comment textarea{min-height:60px}.audit-outcome{display:flex;align-items:center;gap:10px;font-size:12px;margin:12px 0;line-height:1.5}.audit-outcome .badge{flex-shrink:0}.audit-editor-actions{position:sticky;bottom:0;padding:16px 0;background:#eef2f7;display:flex;gap:8px;justify-content:space-between;border-top:1px solid var(--line);margin-top:15px}.audit-editor-actions .btn{min-height:44px}.audit-save-status{font-size:11px;color:var(--muted);margin:15px 0}.entity-counters.with-warnings{grid-template-columns:repeat(4,1fr)}.audit-daily-report{margin-top:20px}
[data-theme="dark"] .audit-pending,[data-theme="dark"] .audit-warning{background:#443820;color:#f1d48b}[data-theme="dark"] .answer-option span{background:#22344b;color:#b6c8de}[data-theme="dark"] .audit-editor-actions{background:#19283b}[data-theme="dark"] .audit-mobile-header{background:var(--navy)}
@media(max-width:600px){.audit-mode-options{grid-template-columns:1fr}.audit-choice-body{padding-top:35px}.audit-mode-options>button{min-height:160px;padding:24px}.audit-choice-header{font-size:12px}.audit-mobile-header{padding:14px 16px}.audit-mobile-header .btn{padding:8px 10px;font-size:10px}.audit-mobile-content{padding:22px 14px}.audit-truck-card{padding:17px}.audit-truck-top{flex-wrap:wrap}.drawer.audit-editor{padding:18px 16px 0}.audit-section-title{top:-18px}.audit-editor-actions .btn{font-size:10px;padding:9px 10px}.audit-outcome{align-items:start;flex-direction:column;gap:5px}.entity-counters.with-warnings{grid-template-columns:repeat(2,1fr)}}
/* Full-screen audit checklist and readable mobile header. */
:root header.audit-mobile-header{background:var(--navy);color:#fff}
:root:not([data-theme="dark"]) header.audit-mobile-header{background:var(--navy);color:#fff;border-bottom-color:#305575}
:root header.audit-mobile-header>div>strong{color:#fff}
:root header.audit-mobile-header small{color:#c8d8eb}
:root header.audit-mobile-header .btn{background:#edf3fb;color:#173b60;border-color:#93acc7;font-weight:600}
:root header.audit-mobile-header .btn:hover{background:#dae7f8;color:#102c48}
:root header.audit-mobile-header .btn:focus-visible{outline:3px solid #b7d4ff;outline-offset:3px}
body:has(.drawer.audit-editor){overflow:hidden}
.drawer.audit-editor{inset:0;width:100%;height:100vh;height:100dvh;max-height:none;transform:none;border-radius:0;padding:0 28px;box-shadow:none;overscroll-behavior:contain;scrollbar-gutter:stable}
.drawer.audit-editor>*{max-width:920px;margin-left:auto;margin-right:auto}
.audit-editor>.drawer-head{position:sticky;top:0;z-index:5;height:88px;align-items:center;margin-bottom:20px;padding:14px 0;background:#eef2f7;border-bottom:1px solid var(--line)}
.audit-editor>.drawer-head .eyebrow{display:none}
.audit-editor>.drawer-head h2{font-size:23px;margin-bottom:5px}
.audit-editor>.drawer-head p{font-size:14px;line-height:1.5}
.audit-editor>.drawer-head .close{width:46px;height:46px;display:flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:8px;font-size:29px;flex-shrink:0}
.audit-editor .audit-section-title{top:88px;font-size:15px;line-height:1.5;padding:14px 16px}
.audit-editor .audit-question legend{font-size:16px;line-height:1.6;margin-bottom:14px}
.audit-editor .answer-option span{font-size:14px;min-height:54px}
.audit-editor .audit-help,.audit-editor .audit-question-rule,.audit-editor .audit-ident small,.audit-editor .audit-save-status{font-size:13px;line-height:1.65}
.audit-editor .audit-ident p{font-size:14px}
.audit-editor .field{font-size:14px;line-height:1.5}
.audit-editor .field input,.audit-editor .field select,.audit-editor .field textarea{font-size:16px}
.audit-editor .audit-operation select{min-height:50px}
.audit-editor .audit-editor-actions{padding:14px 0 calc(14px + env(safe-area-inset-bottom,0px));margin-bottom:0;gap:12px}
.audit-editor .audit-editor-actions .btn{font-size:14px;min-height:48px;padding:12px 18px}
[data-theme="dark"] .audit-editor>.drawer-head{background:#19283b}
@media(max-width:600px){
 .drawer.audit-editor{padding:0 16px}
 .audit-editor>.drawer-head{height:82px;padding:12px 0}
 .audit-editor>.drawer-head h2{font-size:21px}
 .audit-editor .audit-section-title{top:82px;font-size:15px}
 .audit-editor .answer-option span{font-size:12px;min-height:52px}
 .audit-editor .audit-editor-actions{gap:7px}
 .audit-editor .audit-editor-actions .btn{font-size:12px;padding:11px 9px;min-height:48px;flex:1}
}
.audit-completed{margin-top:9px;padding:9px 11px;border:1px solid #b9ddcc;border-radius:6px;background:#e1f2e9;color:#236949;line-height:1.5}
.audit-completed .link{padding:0;color:#236949;font-size:12px;font-weight:700;text-align:left}
.audit-completed small{display:block;color:#437c63;font-size:11px;margin-top:3px;white-space:normal}
[data-theme="dark"] .audit-completed{background:#1b3d34;border-color:#376854;color:#9bddb7}
[data-theme="dark"] .audit-completed .link,[data-theme="dark"] .audit-completed small{color:#a0dfbc}

.audit-pending.audit-compact,.audit-completed.audit-compact{display:table;width:auto;padding:4px 7px;margin-top:6px;line-height:1.4;font-size:10px;white-space:nowrap}
.audit-completed.audit-compact .link{font-size:10px}
.loading-reference{max-width:180px;overflow-wrap:anywhere;white-space:normal}
