:root{--bg:#f4f6f8;--card:#fff;--ink:#1d2733;--muted:#6b7785;--line:#e3e7ec;--acc:#1f6feb;--ok:#1a7f37;--warn:#bf8700;--bad:#cf222e}
*{box-sizing:border-box}
body{margin:0;font:14px/1.45 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;background:var(--bg);color:var(--ink)}
header{display:flex;justify-content:space-between;align-items:center;padding:10px 20px;background:#14202e;color:#fff}
.brand{font-weight:700;font-size:17px}.brand span{font-weight:400;opacity:.65;font-size:13px;margin-left:8px}
.srv{font-size:12px;opacity:.85}
.layout{display:flex;min-height:calc(100vh - 46px)}
aside{width:250px;background:var(--card);border-right:1px solid var(--line);padding:12px}
.aside-title{font-size:12px;text-transform:uppercase;color:var(--muted);margin-bottom:8px;letter-spacing:.04em}
aside ul{list-style:none;margin:0;padding:0}
aside li{padding:9px 10px;border-radius:8px;cursor:pointer;margin-bottom:4px;border:1px solid transparent}
aside li:hover{background:#eef2f6}aside li.active{background:#e8f0fe;border-color:#c9dbfb}
aside li .t{display:flex;justify-content:space-between;font-weight:600}
aside li .s{font-size:12px;color:var(--muted)}
.dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#aab2bd;margin-right:6px}
.dot.on{background:var(--ok)}
main{flex:1;padding:16px 20px;min-width:0}
.dev-head{display:flex;justify-content:space-between;align-items:flex-end;flex-wrap:wrap;gap:10px;margin-bottom:14px}
h1{margin:0;font-size:22px}
.tabs button{border:1px solid var(--line);background:var(--card);padding:7px 14px;cursor:pointer;font:inherit;margin-left:-1px}
.tabs button:first-child{border-radius:8px 0 0 8px}.tabs button:last-child{border-radius:0 8px 8px 0}
.tabs button.active{background:var(--acc);color:#fff;border-color:var(--acc)}
.kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:12px}
.kpi,.card{background:var(--card);border:1px solid var(--line);border-radius:10px;padding:12px 14px}
.kpi-l{font-size:12px;color:var(--muted)}.kpi-v{font-size:26px;font-weight:700;margin:2px 0}
.kpi-s{font-size:12px;color:var(--muted)}
.bar{height:6px;background:#e9edf1;border-radius:3px;overflow:hidden;margin:4px 0}
.bar div{height:100%;background:var(--ok);width:0;transition:width .4s}
.bar div.warn{background:var(--warn)}.bar div.bad{background:var(--bad)}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:12px}
.card{margin-bottom:12px}.grid2 .card{margin-bottom:0}
.card-t{font-weight:600;margin-bottom:10px}
.map{height:340px;border-radius:8px}.map.tall{height:420px}
.truck{display:flex;flex-direction:column;gap:10px;align-items:center;padding:6px 0}
.axle{display:flex;align-items:center;gap:8px}
.axle .shaft{width:60px;height:4px;background:#c4ccd5;border-radius:2px}
.axle .side{display:flex;gap:6px}
.wheel{width:112px;border:2px solid var(--line);border-radius:10px;padding:6px 8px;background:#fafbfc}
.wheel .p{font-size:20px;font-weight:700}.wheel .pos{font-size:11px;color:var(--muted);font-weight:600}
.wheel .d{font-size:12px}.wheel .x{font-size:11px;color:var(--muted)}
.wheel.up{border-color:#9cc3f5}.wheel.low{border-color:var(--bad)}.wheel.stale{opacity:.5}
.cab{font-size:11px;color:var(--muted)}
.toolbar{display:flex;gap:12px;align-items:center;margin-bottom:12px}
select,input{font:inherit;padding:6px 8px;border:1px solid var(--line);border-radius:6px;background:#fff}
.btn{display:inline-block;font:inherit;padding:7px 14px;border-radius:7px;border:1px solid var(--acc);background:var(--acc);color:#fff;cursor:pointer;text-decoration:none}
.btn.ghost{background:#fff;color:var(--acc)}.btn.danger{background:#fff;color:var(--bad);border-color:var(--bad)}
.form label{display:block;margin-bottom:9px;font-size:13px;color:var(--muted)}
.form label input:not([type=checkbox]){display:block;width:100%;margin-top:3px;color:var(--ink)}
.form .chk{color:var(--ink)}
.row{display:flex;gap:8px;margin:8px 0;flex-wrap:wrap}.row input{flex:1;min-width:150px}
.steps{padding-left:18px;color:var(--muted);font-size:13px;margin-top:0}
.msg{font-size:13px;min-height:18px}.msg.ok{color:var(--ok)}.msg.err{color:var(--bad)}
table{border-collapse:collapse;width:100%;font-size:12.5px}
th,td{padding:5px 8px;border-bottom:1px solid var(--line);text-align:right;white-space:nowrap}
th:first-child,td:first-child{text-align:left}
th{color:var(--muted);font-weight:600;background:#fafbfc;position:sticky;top:0}
.tbl-wrap{max-height:360px;overflow:auto}
table.cal input{width:110px;text-align:right}
.muted{color:var(--muted)}.small{font-size:12px;font-weight:400}.hidden{display:none!important}
.over{color:var(--bad)}
@media(max-width:900px){.layout{flex-direction:column}aside{width:auto}.kpis{grid-template-columns:1fr 1fr}.grid2{grid-template-columns:1fr}}
