/* Mockup app điều phối Xe Ghép Thái Bình — hệ thiết kế dùng chung cho 4 màn hình.
   Toàn bộ số liệu/tên/SĐT/biển số trong mockup là DỮ LIỆU MẪU. */
:root{
  --bg:#F5F7FA; --card:#fff; --line:#E3E8EF; --line2:#D5DCE6;
  --navy:#0B3C6F; --navy2:#2A5B91; --orange:#F26B1D; --orange-d:#D95A12;
  --text:#1B2430; --muted:#6B7686;
  --blue:#2F80ED; --purple:#7C4DFF; --amber:#F2994A; --green:#27AE60; --grey:#9AA5B1; --red:#EB5757;
}
*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%}
body{font-family:'Be Vietnam Pro','Inter','Segoe UI',Roboto,Arial,sans-serif;background:var(--bg);color:var(--text);font-size:14px;line-height:1.45;-webkit-font-smoothing:antialiased}
button{font:inherit;cursor:pointer}
a{color:inherit}
.i{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}
.i-sm{width:16px;height:16px}
.row{display:flex;align-items:center;gap:8px}
.between{justify-content:space-between}
.wrap{flex-wrap:wrap}
.grow{flex:1;min-width:0}
.muted{color:var(--muted)}
.b{font-weight:700}

/* ---------- Nút ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:40px;padding:0 16px;border-radius:10px;border:1px solid var(--line2);background:#fff;color:var(--text);font-weight:600;font-size:14px;white-space:nowrap;text-decoration:none}
.btn-primary{background:var(--orange);border-color:var(--orange);color:#fff}
.btn-navy{background:var(--navy);border-color:var(--navy);color:#fff}
.btn-green{background:var(--green);border-color:var(--green);color:#fff}
.btn-ghost{border-color:transparent;background:transparent;color:var(--muted)}
.btn-sm{height:32px;padding:0 12px;font-size:13px;border-radius:8px}
.btn-lg{height:52px;font-size:16px;border-radius:12px}
.btn-block{width:100%}
.btn[disabled],.btn.disabled{background:#E9EDF2;border-color:#E9EDF2;color:#9AA5B1}

/* ---------- Thẻ, huy hiệu, trạng thái ---------- */
.card{background:var(--card);border:1px solid var(--line);border-radius:12px}
.badge{display:inline-flex;align-items:center;height:22px;padding:0 9px;border-radius:999px;font-size:12px;font-weight:600;white-space:nowrap}
.b-ads{background:#E3EEFF;color:#1D5FC4}
.b-old{background:#E3F6EA;color:#1B8A4A}
.b-drv{background:#FFF1C7;color:#8A6A00}
.b-hot{background:#EBEEF3;color:#47536A}
.b-zalo{background:#E0F0FF;color:#0068FF}
.b-web{background:#EFE8FF;color:#5B34C9}
.b-type{background:#EEF1F5;color:#47536A}
.b-type-bao{background:#E6EDF7;color:var(--navy)}
.st{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600;white-space:nowrap}
.st::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--c)}
.st-new{--c:var(--blue);color:#1D5FC4}
.st-assigned{--c:var(--purple);color:#5B34C9}
.st-run{--c:var(--amber);color:#B4620F}
.st-done{--c:var(--green);color:#1B8A4A}
.st-cancel{--c:var(--grey);color:#6B7686}
.st-alert{--c:var(--red);color:#C0392B}
.seats{display:inline-flex;gap:3px;vertical-align:middle}
.seat{width:12px;height:12px;border-radius:3px;border:1.5px solid #B3BECC;background:#fff}
.seat.on{background:var(--navy);border-color:var(--navy)}

/* ---------- Form ---------- */
.field{display:flex;flex-direction:column;gap:6px}
.field>label{font-size:12px;font-weight:600;color:var(--muted)}
.input{height:44px;border:1px solid var(--line2);border-radius:10px;padding:0 12px;background:#fff;display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:15px;color:var(--text)}
.input .ph{color:#9AA5B1}
.input.focus{border-color:var(--navy);box-shadow:0 0 0 3px rgba(11,60,111,.12)}
.input.area{height:72px;align-items:flex-start;padding-top:10px}
.hint{font-size:12px;color:var(--muted)}
.seg{display:flex;background:#EBEEF3;border-radius:10px;padding:3px;gap:3px}
.seg span{flex:1;text-align:center;min-height:38px;display:flex;align-items:center;justify-content:center;border-radius:8px;font-weight:600;font-size:13px;color:var(--muted);padding:0 6px;line-height:1.2}
.seg span.on{background:#fff;color:var(--navy);box-shadow:0 1px 2px rgba(16,24,40,.14)}
.stepper{display:flex;align-items:center;justify-content:space-between;height:44px;border:1px solid var(--line2);border-radius:10px;background:#fff;padding:0 6px}
.stepper b{font-size:16px}
.stepper .sb{width:34px;height:34px;border-radius:8px;background:#EBEEF3;display:grid;place-items:center;color:var(--navy)}
.notice{display:flex;gap:8px;align-items:flex-start;padding:10px 12px;border-radius:10px;font-size:13px;line-height:1.4}
.notice .i{width:18px;height:18px;margin-top:1px}
.n-warn{background:#FFF5DC;color:#7A5200}
.n-ok{background:#E6F6EC;color:#176B3A}
.n-info{background:#E6F0FF;color:#1D4F9C}
.n-bad{background:#FDECEC;color:#B03030}
.tag{display:inline-flex;align-items:center;gap:6px;height:22px;padding:0 8px;border-radius:6px;background:#EBEEF3;font-size:12px;font-weight:600;color:#47536A}

/* ---------- Desktop ---------- */
.desk{display:flex;min-height:100vh}
.side{width:232px;flex:none;background:var(--navy);color:#fff;display:flex;flex-direction:column;padding:20px 12px;position:sticky;top:0;height:100vh}
.brand{font-weight:700;font-size:17px;line-height:1.25;padding:4px 12px 22px}
.brand small{display:block;font-weight:500;font-size:12px;color:#9DB6D3;margin-top:2px}
.nav a{display:flex;gap:12px;align-items:center;padding:11px 12px;border-radius:10px;color:#CFE0F3;font-weight:500;text-decoration:none;margin-bottom:2px}
.nav a.on{background:rgba(255,255,255,.15);color:#fff;font-weight:600}
.nav .cnt{margin-left:auto;background:var(--orange);color:#fff;border-radius:999px;font-size:12px;font-weight:700;padding:1px 8px}
.me{margin-top:auto;display:flex;gap:10px;align-items:center;padding:14px 12px 0;border-top:1px solid rgba(255,255,255,.16)}
.avatar{width:36px;height:36px;border-radius:50%;background:var(--navy2);display:grid;place-items:center;font-weight:700;font-size:13px;color:#fff;flex:none}
.main{flex:1;min-width:0;padding:20px 24px 90px}
.top{display:flex;align-items:center;gap:14px;margin-bottom:16px}
.top h1{font-size:22px;font-weight:700;letter-spacing:-.2px}
.daynav{display:flex;align-items:center;gap:4px}
.daynav .btn{width:36px;padding:0;height:36px}
.search{margin-left:auto;width:360px;height:40px}
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:16px}
.stat{padding:14px 18px}
.stat .k{font-size:13px;color:var(--muted);font-weight:500}
.stat .v{font-size:28px;font-weight:700;margin-top:2px;letter-spacing:-.5px}
.stat.alert{border-color:#F4B9B9;background:#FFF7F7}
.stat.alert .v{color:#C0392B}
.board{display:grid;grid-template-columns:340px minmax(0,1fr) 360px;gap:16px;align-items:start}
.colh{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.colh h2{font-size:15px;font-weight:700}
.ucard{padding:14px;margin-bottom:12px}
.ucard .route{font-size:16px;font-weight:700;margin:6px 0 4px}
.ucard .meta{display:flex;flex-wrap:wrap;gap:6px 14px;color:var(--muted);font-size:13px;margin-bottom:10px}
.ucard .meta span{display:inline-flex;align-items:center;gap:5px}
.ucard .price{font-size:16px;font-weight:700;color:var(--navy)}
.ucard .acts{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.ucard.urgent{border-color:#F4B9B9}
.tl{overflow:hidden}
.tl-head,.tl-row{display:grid;grid-template-columns:172px minmax(0,1fr)}
.tl-head{height:38px;border-bottom:1px solid var(--line);background:#FAFBFD}
.tl-head .hd{padding:11px 16px;font-size:12px;font-weight:600;color:var(--muted)}
.tl-hours{position:relative}
.tl-hours span{position:absolute;top:11px;font-size:12px;color:var(--muted);transform:translateX(-50%)}
.tl-hours span:first-child{transform:none;left:6px!important}
.tl-hours span:last-child{transform:translateX(-100%);left:calc(100% - 6px)!important}
.tl-row{border-bottom:1px solid var(--line);min-height:116px}
.tl-row:last-child{border-bottom:0}
.tl-drv{padding:14px 16px;border-right:1px solid var(--line)}
.tl-drv .nm{font-weight:700;font-size:15px}
.tl-drv .car{font-size:12px;color:var(--muted);margin:2px 0 8px}
.tl-track{position:relative;background-image:linear-gradient(to right,var(--line) 1px,transparent 1px);background-size:10% 100%}
.trip{position:absolute;top:10px;bottom:10px;border-radius:10px;padding:8px 10px;border-left:4px solid var(--c);overflow:hidden;display:flex;flex-direction:column;gap:3px}
.trip .t1{font-size:13px;font-weight:700;line-height:1.25}
.trip .t2{font-size:12px;color:var(--muted)}
.t-done{--c:var(--green);background:#E8F7EE}
.t-run{--c:var(--amber);background:#FFF1E0}
.t-assigned{--c:var(--purple);background:#F0EBFF}
.t-off{--c:var(--grey);background:#EEF1F5}
.panel{padding:16px}
.panel-h{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.panel-h h2{font-size:16px;font-weight:700}
.stack{display:flex;flex-direction:column;gap:12px}
.two{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.toast{position:fixed;left:256px;bottom:20px;display:flex;align-items:center;gap:12px;background:#1B2430;color:#fff;padding:12px 16px;border-radius:12px;font-size:14px;box-shadow:0 8px 24px rgba(16,24,40,.25)}
.toast .ic{width:32px;height:32px;border-radius:50%;background:#229ED9;display:grid;place-items:center;flex:none}
.toast small{display:block;color:#AEB8C6;font-size:12px}
@media (max-width:1700px){
  .board{grid-template-columns:320px minmax(0,1fr)}
  .board .col-form{grid-column:1 / -1}
}

/* ---------- Mobile ---------- */
body.mob{background:#E4E9EF}
.phone{width:390px;min-height:844px;margin:0 auto;background:var(--bg);position:relative;display:flex;flex-direction:column;border-left:1px solid var(--line);border-right:1px solid var(--line)}
.sbar{height:44px;display:flex;justify-content:space-between;align-items:center;padding:0 24px;font-size:14px;font-weight:600}
.sbar .sys{display:flex;gap:6px;align-items:center;font-size:12px}
.mhead{background:var(--navy);color:#fff}
.mhead .bar{display:flex;align-items:center;gap:12px;padding:6px 16px 16px}
.mhead .ttl{font-size:18px;font-weight:700;line-height:1.2}
.mhead .ttl small{display:block;font-size:13px;font-weight:500;color:#A9C0DB}
.bell{position:relative;width:40px;height:40px;border-radius:50%;background:rgba(255,255,255,.12);display:grid;place-items:center}
.bell::after{content:"";position:absolute;top:8px;right:9px;width:9px;height:9px;border-radius:50%;background:var(--orange);border:2px solid var(--navy)}
.mbody{padding:14px 16px 24px;flex:1;display:flex;flex-direction:column;gap:12px}
.chips{display:flex;gap:10px;overflow-x:auto;margin:0 -16px;padding:0 16px 2px}
.chip{flex:none;min-width:128px;padding:10px 14px;background:#fff;border:1px solid var(--line);border-radius:12px}
.chip .k{font-size:12px;color:var(--muted);font-weight:500}
.chip .v{font-size:20px;font-weight:700}
.chip.alert{border-color:#F4B9B9;background:#FFF7F7}
.chip.alert .v{color:#C0392B}
.tabs{display:flex;background:#E4E9EF;border-radius:12px;padding:3px;gap:3px}
.tabs span{flex:1;text-align:center;min-height:40px;display:flex;align-items:center;justify-content:center;border-radius:10px;font-weight:600;font-size:14px;color:var(--muted)}
.tabs span.on{background:#fff;color:var(--navy);box-shadow:0 1px 2px rgba(16,24,40,.14)}
.tabs .n{margin-left:6px;background:var(--red);color:#fff;border-radius:999px;font-size:12px;padding:0 7px;line-height:18px}
.mcard{padding:14px}
.mcard .route{font-size:17px;font-weight:700;margin:6px 0 6px}
.mcard .meta{display:flex;flex-wrap:wrap;gap:6px 14px;color:var(--muted);font-size:14px}
.mcard .meta span{display:inline-flex;align-items:center;gap:5px}
.mcard .price{font-size:18px;font-weight:700;color:var(--navy)}
.mcard .acts{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}
.mcard .acts .full{grid-column:1/-1}
.mcard.urgent{border-color:#F4B9B9}
.fab{position:sticky;bottom:88px;align-self:flex-end;margin:0 16px -56px 0;width:56px;height:56px;border-radius:50%;background:var(--orange);color:#fff;display:grid;place-items:center;box-shadow:0 6px 16px rgba(242,107,29,.4);z-index:5}
.fab .i{width:26px;height:26px}
.mnav{position:sticky;bottom:0;height:68px;background:#fff;border-top:1px solid var(--line);display:grid;z-index:6}
.mnav.c5{grid-template-columns:repeat(5,1fr)}
.mnav.c4{grid-template-columns:repeat(4,1fr)}
.mnav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:12px;font-weight:600;color:var(--muted);text-decoration:none}
.mnav a.on{color:var(--navy)}
.mnav a.on .i{stroke-width:2.4}
.sect{padding:16px}
.sect h3{font-size:15px;font-weight:700;margin-bottom:12px;display:flex;align-items:center;gap:8px}
.sect h3 .no{width:24px;height:24px;border-radius:50%;background:var(--navy);color:#fff;font-size:13px;display:grid;place-items:center}
.choice{border:1.5px solid var(--line2);border-radius:12px;padding:12px;display:flex;gap:12px;align-items:flex-start;background:#fff}
.choice .rd{width:20px;height:20px;border-radius:50%;border:2px solid #B3BECC;flex:none;margin-top:1px}
.choice.on{border-color:var(--navy);background:#F3F8FF}
.choice.on .rd{border-color:var(--navy);background:radial-gradient(circle,var(--navy) 45%,#fff 50%)}
.choice b{display:block;font-size:15px}
.choice small{color:var(--muted);font-size:13px}
.ext{border:1.5px dashed #B3BECC;border-radius:12px;padding:14px;background:#FAFBFD;position:relative}
.ext .lbl{position:absolute;top:-10px;left:12px;background:var(--bg);padding:0 8px;font-size:12px;font-weight:600;color:var(--muted)}
.sticky-act{position:sticky;bottom:0;background:#fff;border-top:1px solid var(--line);padding:12px 16px;display:grid;grid-template-columns:96px 1fr;gap:10px;z-index:6}

/* Màn tài xế */
.now{border:2px solid var(--orange);padding:16px;background:#fff}
.now .tm{font-size:34px;font-weight:700;line-height:1;letter-spacing:-1px}
.prog{height:8px;border-radius:99px;background:#EBEEF3;overflow:hidden;margin:12px 0 6px}
.prog i{display:block;height:100%;width:50%;background:var(--green);border-radius:99px}
.cust{padding:14px;position:relative}
.cust .nbr{width:28px;height:28px;border-radius:50%;background:var(--navy);color:#fff;display:grid;place-items:center;font-weight:700;font-size:14px;flex:none}
.cust.done{background:#F3FBF6;border-color:#BFE6CD}
.cust.done .nbr{background:var(--green)}
.cust .nm{font-size:17px;font-weight:700}
.cust .ph{color:var(--navy);font-weight:600;font-size:14px}
.cust .addr{display:flex;gap:6px;align-items:flex-start;margin:10px 0;color:var(--text);font-size:14px}
.cust .acts{display:grid;grid-template-columns:1fr 1.2fr 1.4fr;gap:8px;margin-top:12px}
.cust.later{opacity:.6;border-style:dashed;background:#FAFBFD}
.money .line{display:flex;align-items:center;justify-content:space-between;padding:10px 0;border-bottom:1px solid var(--line);font-size:14px;gap:8px}
.money .line:last-of-type{border-bottom:0}
.money .sum{display:flex;justify-content:space-between;align-items:center;margin-top:10px;padding:12px;background:#FFF5EC;border-radius:10px;font-weight:700}
.money .sum b{font-size:18px;color:var(--orange-d)}
