:root{
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:#142033;background:#eef3f8;
}
*{box-sizing:border-box}
body{margin:0;min-height:100vh;background:linear-gradient(180deg,#0b3b68 0,#0b3b68 132px,#eef3f8 132px)}
button,input,select{font:inherit}
button{cursor:pointer}
.topbar{
  min-height:112px;padding:24px max(18px,env(safe-area-inset-left));
  display:flex;align-items:center;justify-content:space-between;color:#fff;gap:14px;
}
.brand{font-size:25px;font-weight:850}.brand span{font-weight:950}
.subtitle{font-size:13px;opacity:.84;margin-top:2px}
.header-actions{display:flex;align-items:center;gap:8px}
.shell{width:min(1050px,100%);margin:0 auto;padding:0 16px 42px}
.card{
  background:#fff;border-radius:18px;padding:22px;margin-bottom:16px;
  box-shadow:0 12px 30px rgba(13,38,66,.11);border:1px solid rgba(15,54,88,.08);
}
.login-card{width:min(580px,100%);margin-left:auto;margin-right:auto}
h1,h2,h3{margin:0 0 10px;line-height:1.2}h1{font-size:25px}h2{font-size:20px}h3{font-size:16px}
label{display:block;font-weight:750;font-size:14px;margin:15px 0 7px}
input,select{
  width:100%;min-height:48px;border:1px solid #bcc9d5;border-radius:11px;
  background:#fff;color:#142033;padding:10px 12px;outline:none;
}
input:focus,select:focus{border-color:#0b5c9b;box-shadow:0 0 0 3px rgba(11,92,155,.12)}
.primary,.ghost,.ghost-link,.small-btn{
  border:0;border-radius:11px;min-height:46px;padding:10px 15px;font-weight:800;text-decoration:none;
}
.primary{width:100%;background:#0b5c9b;color:#fff;margin-top:16px}
.primary.inline{width:auto;margin:0}
.ghost,.ghost-link{background:rgba(255,255,255,.15);color:#fff}
.small-btn{min-height:36px;padding:6px 10px;background:#e8eff5;color:#173a58;font-size:13px}
.small-btn.remove{background:#fff0ed;color:#a83024}
button:disabled{opacity:.55;cursor:not-allowed}
.muted,.message{color:#607489;line-height:1.5}.message{min-height:20px;font-size:14px;margin:10px 0 0}
.eyebrow{font-size:11px;font-weight:900;letter-spacing:.11em;color:#6a8095}
.optional{font-weight:500;color:#7b8ea0}
.hidden{display:none!important}
.company-card{display:flex;align-items:center;justify-content:space-between;gap:14px}
.status-pill{border-radius:999px;background:#e3f5e8;color:#176b32;padding:8px 11px;font-weight:850;font-size:12px}
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:16px}
.stat{background:#fff;border-radius:16px;padding:18px;border:1px solid rgba(15,54,88,.08);box-shadow:0 7px 20px rgba(13,38,66,.07)}
.stat span{display:block;font-size:12px;color:#6e8192;margin-bottom:6px}.stat strong{font-size:27px}
.grid-two{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.section-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:8px}
.list{display:flex;flex-direction:column;gap:10px}
.list-item{
  border:1px solid #dce4eb;border-radius:13px;padding:14px;background:#fbfcfd;
  display:flex;align-items:center;justify-content:space-between;gap:14px;
}
.item-main{min-width:0}.item-title{font-weight:850}.item-sub{font-size:13px;color:#6b7f91;margin-top:4px}
.item-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.vehicle-chip{display:inline-flex;align-items:center;gap:6px;border-radius:999px;background:#e9f1f7;color:#23445e;padding:6px 9px;font-size:12px;font-weight:750}
.assignment-box{display:flex;gap:8px;align-items:center;margin-top:10px;flex-wrap:wrap}
.assignment-box select{width:auto;min-width:190px;min-height:38px}
.route-form{display:grid;grid-template-columns:1fr 180px 190px auto;gap:10px;align-items:center;margin-bottom:4px}
.empty{padding:18px;text-align:center;color:#728699;border:1px dashed #c7d2dc;border-radius:12px}
footer{text-align:center;color:#688096;font-size:12px;padding:0 16px 24px}
@media (max-width:760px){
  .stats{grid-template-columns:1fr 1fr}.grid-two{grid-template-columns:1fr}
  .route-form{grid-template-columns:1fr}.primary.inline{width:100%;margin-top:0}
  .list-item{align-items:flex-start;flex-direction:column}.item-actions{width:100%;justify-content:flex-start}
  .topbar{align-items:flex-start}.header-actions{flex-direction:column;align-items:flex-end}
}

.fleet-card{overflow:hidden}.fleet-summary{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 14px}.fleet-chip,.fleet-state{display:inline-flex;align-items:center;gap:5px;padding:7px 10px;border-radius:999px;font-size:12px;font-weight:850}.fleet-chip b{font-size:15px}.fleet-chip.live,.fleet-state.live{background:#e3f5e8;color:#176b32}.fleet-chip.delayed,.fleet-state.delayed{background:#fff5d9;color:#8b6500}.fleet-chip.connection-lost,.fleet-state.connection-lost{background:#ffe8e5;color:#a83024}.fleet-chip.starting,.fleet-state.starting{background:#e8f0ff;color:#245ea7}.fleet-chip.idle,.fleet-state.idle{background:#edf1f4;color:#596a78}.fleet-map{height:360px;border-radius:15px;border:1px solid #d7e2ea;overflow:hidden;background:#e8eef3;margin-bottom:14px}.fleet-list{margin-top:4px}.fleet-item{align-items:center}.van-div-icon{background:transparent!important;border:0!important}.van-pin{width:38px;height:38px;display:grid;place-items:center;border-radius:50%;background:#fff;border:3px solid #ff8e00;font-size:22px;box-shadow:0 5px 12px rgba(0,0,0,.25)}.map-tiles-unavailable:after{content:'Map tiles unavailable';position:absolute;z-index:999;inset:50% auto auto 50%;transform:translate(-50%,-50%);background:#fff;padding:8px 12px;border-radius:8px;color:#6b7f91}@media(max-width:760px){.fleet-map{height:300px}.fleet-state{align-self:flex-start}}

.card-assign-grid{display:grid;grid-template-columns:1fr 1fr auto;gap:10px;align-items:end;margin:12px 0 4px}.card-assign-grid label{margin:0}.card-stock-item .item-actions{gap:7px}@media(max-width:760px){.card-assign-grid{grid-template-columns:1fr}.card-assign-grid .primary.inline{width:100%}}
