#routepilot-inventory{--ri-bg:light-dark(#f3f6fb,#111923);--ri-paper:light-dark(#fff,#1a2634);--ri-ink:light-dark(#172b44,#edf3fc);--ri-muted:light-dark(#5c6e84,#b0bed0);--ri-line:light-dark(#dce4ee,#39495b);--ri-blue:light-dark(#104ba4,#b3ceff);--ri-blue-text:light-dark(#fff,#132a49);--ri-soft:light-dark(#eaf1fc,#263b55);--ri-green:light-dark(#176749,#94e0bd);--ri-green-bg:light-dark(#eaf6f0,#193d32);--ri-warn:light-dark(#865000,#ffce83);--ri-warn-bg:light-dark(#fff3dd,#403323);--ri-red:light-dark(#ae293b,#ffb1bd);--ri-density:14px;color:var(--ri-ink);font:14px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color-scheme:light dark;container-type:inline-size;width:100%}
#routepilot-inventory *{box-sizing:border-box}
#routepilot-inventory [hidden]{display:none!important}
#routepilot-inventory .ri-app{background:var(--ri-bg);border:1px solid var(--ri-line);border-radius:12px;overflow:clip}
#routepilot-inventory[data-device="Phone"]{max-width:390px;margin:auto}
#routepilot-inventory h1,#routepilot-inventory h2,#routepilot-inventory h3,#routepilot-inventory p{margin:0}
#routepilot-inventory h1{font-size:20px;letter-spacing:-.4px;font-weight:750}
#routepilot-inventory h2{font-size:22px;letter-spacing:-.3px;overflow-wrap:anywhere}
#routepilot-inventory h3{font-size:15px;font-weight:700}
#routepilot-inventory button,#routepilot-inventory input,#routepilot-inventory select,#routepilot-inventory textarea{font:inherit;color:inherit}
#routepilot-inventory button{cursor:pointer}
#routepilot-inventory button:disabled{cursor:not-allowed;opacity:.55}
#routepilot-inventory .ri-header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 18px;background:var(--ri-paper);border-bottom:1px solid var(--ri-line)}
#routepilot-inventory .ri-header-actions,#routepilot-inventory .ri-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
#routepilot-inventory .ri-muted{color:var(--ri-muted);font-size:12px}
#routepilot-inventory .ri-button{border:1px solid var(--ri-line);background:var(--ri-paper);border-radius:8px;min-height:38px;padding:7px 11px;display:inline-flex;align-items:center;justify-content:center;gap:6px;font-size:13px;font-weight:650;white-space:nowrap}
#routepilot-inventory .ri-primary{background:var(--ri-blue);border-color:var(--ri-blue);color:var(--ri-blue-text)}
#routepilot-inventory .ri-danger{color:var(--ri-red)}
#routepilot-inventory .ri-link{padding:0;background:none;border:0;text-align:left;font-weight:700;color:var(--ri-blue);overflow-wrap:anywhere}
#routepilot-inventory .ri-icon{width:36px;min-width:36px;padding:7px}
#routepilot-inventory svg{width:16px;height:16px;flex-shrink:0}
#routepilot-inventory .ri-nav{display:flex;gap:3px;padding:8px 14px;background:var(--ri-paper);border-bottom:1px solid var(--ri-line)}
#routepilot-inventory .ri-nav button{flex:1;border:0;border-radius:7px;background:transparent;color:var(--ri-muted);min-height:36px;padding:6px;font-size:13px;font-weight:650}
#routepilot-inventory .ri-nav button[aria-current="page"]{background:var(--ri-soft);color:var(--ri-blue)}
#routepilot-inventory .ri-main{padding:18px;min-width:0}
#routepilot-inventory .ri-footer{border-top:1px solid var(--ri-line);padding:10px 18px;color:var(--ri-muted);font-size:11px;display:flex;gap:8px;justify-content:space-between;flex-wrap:wrap}
#routepilot-inventory .ri-feedback{margin:12px 18px 0;padding:10px 12px;background:var(--ri-green-bg);color:var(--ri-green);border-radius:8px}
#routepilot-inventory .ri-toolbar{display:flex;gap:8px;align-items:center;margin-bottom:12px;flex-wrap:wrap}
#routepilot-inventory .ri-search{display:flex;align-items:center;gap:9px;flex:1;min-width:180px;padding:0 11px;border:1px solid var(--ri-line);border-radius:8px;background:var(--ri-paper);min-height:44px}
#routepilot-inventory .ri-search input{background:transparent;border:0;min-width:0;width:100%;height:42px;font-size:16px}
#routepilot-inventory .ri-search svg{color:var(--ri-blue)}
#routepilot-inventory .ri-select,#routepilot-inventory .ri-field input,#routepilot-inventory .ri-field select,#routepilot-inventory .ri-field textarea{width:100%;background:var(--ri-paper);border:1px solid var(--ri-line);border-radius:7px;padding:10px;min-height:44px;font-size:16px;min-width:0}
#routepilot-inventory .ri-toolbar>.ri-select{width:auto;max-width:100%;min-width:150px}
#routepilot-inventory .ri-chips{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 12px}
#routepilot-inventory .ri-chips button{border:1px solid var(--ri-line);background:var(--ri-paper);border-radius:7px;padding:6px 10px;font-size:12px;min-height:34px}
#routepilot-inventory .ri-chips button[aria-pressed="true"]{background:var(--ri-soft);border-color:var(--ri-blue);color:var(--ri-blue);font-weight:650}
#routepilot-inventory .ri-list-head,#routepilot-inventory .ri-row{display:grid;grid-template-columns:minmax(150px,1.2fr) minmax(140px,1.1fr) minmax(140px,1.15fr) minmax(95px,.75fr) 30px;gap:14px;align-items:center}
#routepilot-inventory .ri-list-head{font-size:11px;font-weight:650;color:var(--ri-muted);padding:0 14px 8px;text-transform:uppercase;letter-spacing:.5px}
#routepilot-inventory .ri-row{background:var(--ri-paper);padding:var(--ri-density);border:1px solid var(--ri-line);border-radius:9px;margin-bottom:8px;min-width:0}
#routepilot-inventory .ri-row>div{min-width:0}
#routepilot-inventory .ri-terminal{font-size:17px;font-weight:750;letter-spacing:.25px;font-variant-numeric:tabular-nums;max-width:100%;white-space:normal;overflow-wrap:anywhere}
#routepilot-inventory .ri-terminal.ri-link{min-height:24px}
#routepilot-inventory .ri-sub{display:block;color:var(--ri-muted);font-size:12px;margin-top:3px;overflow-wrap:anywhere}
#routepilot-inventory .ri-pill{display:inline-flex;align-items:center;gap:4px;background:var(--ri-soft);color:var(--ri-blue);border-radius:5px;padding:3px 6px;font-size:11px;font-weight:650}
#routepilot-inventory .ri-pill.ri-good{background:var(--ri-green-bg);color:var(--ri-green)}
#routepilot-inventory .ri-pill.ri-warning{background:var(--ri-warn-bg);color:var(--ri-warn)}
#routepilot-inventory .ri-count{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;margin:12px 0;color:var(--ri-muted);font-size:12px}
#routepilot-inventory .ri-back{margin-bottom:14px}
#routepilot-inventory .ri-hero{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;flex-wrap:wrap;margin-bottom:16px}
#routepilot-inventory .ri-hero h2{font-variant-numeric:tabular-nums}
#routepilot-inventory .ri-place{font-weight:650;font-size:15px;margin:6px 0}
#routepilot-inventory .ri-tabs{display:flex;flex-wrap:wrap;border-bottom:1px solid var(--ri-line);gap:4px 14px;margin-bottom:16px}
#routepilot-inventory .ri-tabs button{border:0;border-bottom:2px solid transparent;background:transparent;padding:9px 0;font-size:13px;font-weight:600;color:var(--ri-muted)}
#routepilot-inventory .ri-tabs button[aria-pressed="true"]{border-color:var(--ri-blue);color:var(--ri-blue)}
#routepilot-inventory .ri-panel{background:var(--ri-paper);border:1px solid var(--ri-line);border-radius:10px;padding:16px;margin-bottom:12px}
#routepilot-inventory .ri-panel-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px;flex-wrap:wrap}
#routepilot-inventory .ri-meter-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:10px 0 16px}
#routepilot-inventory .ri-meter span{display:block;color:var(--ri-muted);font-size:12px;margin-bottom:5px}
#routepilot-inventory .ri-meter strong{font-size:clamp(17px,2.25cqw,25px);font-weight:750;font-variant-numeric:tabular-nums;letter-spacing:-.4px;white-space:nowrap}
#routepilot-inventory .ri-note{padding:10px 12px;background:var(--ri-soft);color:var(--ri-ink);border-radius:7px;font-size:12px;margin:10px 0}
#routepilot-inventory .ri-note.ri-warning{background:var(--ri-warn-bg);color:var(--ri-warn)}
#routepilot-inventory .ri-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
#routepilot-inventory .ri-field{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:600;min-width:0}
#routepilot-inventory .ri-field small{font-size:11px;color:var(--ri-muted);font-weight:400}
#routepilot-inventory .ri-field input[readonly]{background:var(--ri-bg);color:var(--ri-muted)}
#routepilot-inventory .ri-field textarea{min-height:76px;resize:vertical}
#routepilot-inventory .ri-wide{grid-column:1/-1}
#routepilot-inventory fieldset{border:0;padding:0;margin:0 0 18px;min-width:0}
#routepilot-inventory legend{font-size:14px;font-weight:700;margin-bottom:10px;padding:0}
#routepilot-inventory .ri-form{max-width:820px}
#routepilot-inventory .ri-form .ri-panel{padding:16px}
#routepilot-inventory .ri-radio{display:flex;flex-wrap:wrap;gap:12px;margin:8px 0 14px}
#routepilot-inventory .ri-radio label,#routepilot-inventory .ri-check{display:flex;align-items:flex-start;gap:8px;font-size:13px;min-height:32px;padding:5px 0}
#routepilot-inventory input[type="radio"],#routepilot-inventory input[type="checkbox"]{accent-color:var(--ri-blue);width:17px;height:17px;flex-shrink:0;margin:1px 0}
#routepilot-inventory .ri-error{color:var(--ri-red);padding:10px 0;font-size:13px}
#routepilot-inventory .ri-empty{text-align:center;padding:32px 12px;color:var(--ri-muted)}
#routepilot-inventory .ri-specs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0}
#routepilot-inventory .ri-specs div{min-width:0;border-bottom:1px solid var(--ri-line);padding-bottom:9px}
#routepilot-inventory dt{font-size:11px;color:var(--ri-muted);margin-bottom:4px}
#routepilot-inventory dd{margin:0;font-size:13px;overflow-wrap:anywhere}
#routepilot-inventory .ri-component{display:grid;grid-template-columns:minmax(130px,.8fr) minmax(140px,1.2fr) auto;gap:12px;align-items:center;padding:13px 0;border-top:1px solid var(--ri-line)}
#routepilot-inventory .ri-component:first-of-type{border-top:0}
#routepilot-inventory .ri-history{padding:14px 0;border-bottom:1px solid var(--ri-line)}
#routepilot-inventory .ri-history:first-child{padding-top:0}
#routepilot-inventory .ri-history strong{font-size:13px}
#routepilot-inventory .ri-history p{margin:5px 0;font-size:12px;color:var(--ri-muted);overflow-wrap:anywhere}
#routepilot-inventory .ri-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#routepilot-inventory .ri-choice{text-align:left;background:var(--ri-paper);border:1px solid var(--ri-line);border-radius:9px;padding:16px;display:flex;flex-direction:column;gap:7px}
#routepilot-inventory .ri-choice b{font-size:15px;color:var(--ri-blue)}
#routepilot-inventory .ri-choice span{font-size:12px;color:var(--ri-muted)}
#routepilot-inventory .ri-evidence{max-width:100%;max-height:400px;object-fit:contain;display:block;margin-top:12px}
#routepilot-inventory .ri-table-wrap{overflow-x:auto;max-width:100%}
#routepilot-inventory table{border-collapse:collapse;width:100%;font-size:13px}
#routepilot-inventory th,#routepilot-inventory td{padding:10px;text-align:left;border-bottom:1px solid var(--ri-line);white-space:nowrap;font-variant-numeric:tabular-nums}
#routepilot-inventory th{font-size:11px;color:var(--ri-muted)}
#routepilot-inventory details{margin:12px 0}
#routepilot-inventory summary{cursor:pointer;font-size:13px;font-weight:650;min-height:30px}
#routepilot-inventory .ri-label{border:1px solid var(--ri-line);border-radius:8px;padding:24px;text-align:center;max-width:450px;background:var(--ri-paper);margin:16px 0}
#routepilot-inventory .ri-label b{font-size:25px;display:block;font-variant-numeric:tabular-nums;margin:8px 0;overflow-wrap:anywhere}
#routepilot-inventory .ri-pair-counter{border-top:1px solid var(--ri-line);padding:12px 0;min-width:0}
#routepilot-inventory .ri-pair-counter h3{margin-bottom:6px}
#routepilot-inventory .ri-pair-line{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;align-items:baseline;margin:5px 0;min-width:0}
#routepilot-inventory .ri-pair-line span{color:var(--ri-muted);font-size:12px}
#routepilot-inventory .ri-pair-line strong{font-size:18px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;max-width:100%}
#routepilot-inventory .ri-pair-result{border-top:1px solid var(--ri-line);padding-top:14px;margin-top:14px}
#routepilot-inventory .ri-pair-result .ri-meter strong{white-space:normal;overflow-wrap:anywhere;max-width:100%}
#routepilot-inventory[data-layout="Cards"] .ri-list-head{display:none}
#routepilot-inventory[data-layout="Cards"] .ri-results{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr));gap:10px}
#routepilot-inventory[data-layout="Cards"] .ri-row{display:grid;grid-template-columns:1fr auto;gap:9px;margin:0}
#routepilot-inventory[data-layout="Cards"] .ri-row .ri-location{grid-row:2;grid-column:1/-1}
#routepilot-inventory[data-layout="Cards"] .ri-row .ri-model{grid-row:3;grid-column:1/-1}
#routepilot-inventory[data-layout="Cards"] .ri-row .ri-state{grid-row:1;grid-column:2}
#routepilot-inventory[data-layout="Cards"] .ri-row .ri-open{display:none}
@container (max-width:690px){
 #routepilot-inventory .ri-list-head{display:none}
 #routepilot-inventory .ri-row{grid-template-columns:minmax(0,1fr) auto;gap:8px}
 #routepilot-inventory .ri-row .ri-location{grid-row:2;grid-column:1/-1}
 #routepilot-inventory .ri-row .ri-model{grid-row:3;grid-column:1/-1}
 #routepilot-inventory .ri-row .ri-state{grid-row:1;grid-column:2;text-align:right}
 #routepilot-inventory .ri-row .ri-open{display:none}
 #routepilot-inventory .ri-terminal{font-size:16px}
 #routepilot-inventory .ri-toolbar .ri-search{flex-basis:100%}
 #routepilot-inventory .ri-toolbar>.ri-select{flex:1;min-width:120px}
}
@container (max-width:470px){
 #routepilot-inventory .ri-header{padding:12px}
 #routepilot-inventory .ri-header-actions{gap:5px}
 #routepilot-inventory .ri-header-actions .ri-button{font-size:12px;padding:6px 8px}
 #routepilot-inventory .ri-header-actions .ri-button span{display:none}
 #routepilot-inventory .ri-main{padding:12px}
 #routepilot-inventory .ri-nav{padding:6px;gap:0}
 #routepilot-inventory .ri-nav button{font-size:12px;padding:5px}
 #routepilot-inventory .ri-grid,#routepilot-inventory .ri-choice-grid{grid-template-columns:1fr}
 #routepilot-inventory .ri-meter-grid{grid-template-columns:1fr;gap:0}
 #routepilot-inventory .ri-meter{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid var(--ri-line)}
 #routepilot-inventory .ri-meter span{margin:0}
 #routepilot-inventory .ri-meter strong{font-size:21px}
 #routepilot-inventory .ri-component{grid-template-columns:1fr auto}
 #routepilot-inventory .ri-component>div:nth-child(2){grid-column:1;grid-row:2}
 #routepilot-inventory .ri-component>.ri-button{grid-column:2;grid-row:1/3}
 #routepilot-inventory .ri-tabs{gap:12px;justify-content:space-between}
 #routepilot-inventory .ri-tabs button{font-size:12px}
 #routepilot-inventory .ri-specs{grid-template-columns:1fr}
 #routepilot-inventory .ri-panel{padding:12px}
 #routepilot-inventory .ri-footer{padding:10px 12px}
}
@media (pointer:coarse){#routepilot-inventory .ri-button,#routepilot-inventory .ri-nav button,#routepilot-inventory .ri-chips button,#routepilot-inventory .ri-tabs button{min-height:44px}#routepilot-inventory .ri-icon{min-width:44px}}
/* Production host: full width, system light/dark, accessible compact controls. */
#routepilot-inventory .ri-app{border:0;border-radius:0}
#routepilot-inventory .ri-cab-code{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px}
#routepilot-inventory .ri-meter strong{white-space:normal;overflow-wrap:anywhere;max-width:100%}
#routepilot-inventory .ri-form-actions{position:sticky;bottom:0;background:var(--ri-paper);padding:12px 0;border-top:1px solid var(--ri-line);z-index:2}
#routepilot-inventory .ri-choice{min-height:88px}
#routepilot-inventory :focus-visible{outline:3px solid var(--ri-blue);outline-offset:2px}
#routepilot-inventory .ri-error:not([hidden]){background:var(--ri-warn-bg);border-radius:7px;padding:12px;margin:10px 0}
#routepilot-inventory .ri-nav{overflow-x:auto}
#routepilot-inventory .ri-nav button{white-space:nowrap}
#routepilot-inventory .ri-mini{font-size:12px;padding:7px}
body.rp-inventory-page .main-section{min-width:0}
body.rp-inventory-page #routepilot-inventory .ri-header{display:none}
body.rp-inventory-page:has(#routepilot-inventory) .inventory-topbar-scan[data-inventory-workflow] span{display:none}
body.rp-inventory-page:has(#routepilot-inventory) .compact-topbar-actions{gap:6px}
#routepilot-inventory .ri-tabs{flex-wrap:nowrap;overflow-x:auto;gap:14px;justify-content:flex-start}
#routepilot-inventory .ri-tabs button{white-space:nowrap;flex-shrink:0}
