@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');
:root{--bg:#f5f7f5;--panel:#fff;--ink:#182c35;--muted:#6d8187;--line:#e1e8e7;--nav:#101d27;--accent:#a3db62;--accent-dark:#527b18;--cyan:#3e9994;--radius:14px;--shadow:0 15px 45px #1d343b09}*{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,textarea,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}h1,h2,h3,h4{font-family:'Outfit',Arial,sans-serif;letter-spacing:-.035em}h1{font-size:32px;margin:4px 0 10px}h2{font-size:22px;margin:0}h3{font-size:18px;margin:0}p{line-height:1.6}a{color:inherit;text-decoration:none}.muted{color:var(--muted)}.tiny{font-size:11px}.eyebrow{font-size:11px;font-weight:800;letter-spacing:.16em;color:#68925c;text-transform:uppercase}.shell{display:grid;grid-template-columns:248px 1fr;min-height:100vh}.sidebar{background:var(--nav);color:#d1dfdf;padding:28px 15px;display:flex;flex-direction:column;gap:17px;position:sticky;top:0;height:100vh;overflow:auto}.logo{display:flex;align-items:center;gap:12px;color:white;font-family:Outfit;font-size:24px;font-weight:800;letter-spacing:-.06em;padding:0 14px 21px;border-bottom:1px solid #283943}.mark{background:var(--accent);color:var(--nav);width:34px;height:34px;border-radius:10px;font-family:Outfit;font-weight:900;font-size:23px;display:inline-grid;place-items:center;letter-spacing:-.09em}.mark span{font-size:14px;margin-left:-7px;margin-top:-16px}.nav-heading{font-weight:700;font-size:10px;color:#718993;letter-spacing:.18em;padding:11px 15px 4px}.nav-list{display:grid;gap:4px}.nav-item{border:0;background:transparent;color:#acbdc3;text-align:left;width:100%;padding:12px 13px;border-radius:9px;display:flex;align-items:center;gap:13px;font-weight:600}.nav-item:hover{background:#21333c;color:white}.nav-item.active{background:#b9e785;color:#172a25}.nav-icon{font-size:18px;width:22px;text-align:center}.sidebar-bottom{margin-top:auto;padding:17px 12px;border-top:1px solid #2f404a}.avatar{display:inline-grid;place-items:center;background:#ddecc9;color:#1f442a;font-size:16px;font-weight:800;border-radius:11px;width:41px;height:41px}.profile{display:flex;align-items:center;gap:10px}.sidebar-bottom .profile{font-size:12px}.sidebar-bottom button{color:#c7d7da;font-size:12px;border:none;background:transparent;text-align:left;padding:10px 0}.main{min-width:0}.topbar{height:76px;border-bottom:1px solid var(--line);background:#ffffffd9;display:flex;justify-content:space-between;align-items:center;padding:0 clamp(18px,3vw,43px);gap:18px}.topbar-left{font-size:12px;color:var(--muted)}.topbar-right{display:flex;align-items:center;gap:16px}.live-dot{width:7px;height:7px;background:#69b64c;border-radius:50%;display:inline-block;box-shadow:0 0 0 4px #b6e4a566}.content{max-width:1560px;margin:auto;padding:32px clamp(16px,3vw,42px) 80px}.page-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:26px;flex-wrap:wrap}.page-head p{margin:0;color:var(--muted)}.btn{display:inline-flex;justify-content:center;align-items:center;gap:8px;border:1px solid #cddbd8;background:white;color:var(--ink);padding:11px 16px;border-radius:9px;font-weight:800;font-size:13px;white-space:nowrap}.btn:hover{filter:brightness(.965)}.btn-primary{background:#b8e878;border-color:#b8e878;color:#1a3126}.btn-dark{background:#182b35;color:white;border-color:#182b35}.btn-red{background:#fff0ef;color:#a3302e;border-color:#f3d4d1}.btn-small{padding:8px 11px;font-size:12px}.toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin-bottom:21px}.metric{border:1px solid var(--line);border-radius:var(--radius);background:var(--panel);padding:23px 22px;box-shadow:var(--shadow);min-width:0}.metric-top{display:flex;justify-content:space-between;gap:8px;color:var(--muted);font-weight:600;font-size:13px}.metric .big{font:700 clamp(25px,2.8vw,37px) Outfit,sans-serif;letter-spacing:-.05em;margin:14px 0 6px}.metric .bottom{font-size:12px;color:#738a84}.metric .glyph{display:grid;place-items:center;width:35px;height:35px;background:#f0f6e8;border-radius:10px;font-size:18px}.columns{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(280px,1fr);gap:20px}.card{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}.card-pad{padding:24px}.card-head{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:22px 24px;border-bottom:1px solid var(--line)}.card-head .muted{font-size:12px}.table-scroll{overflow:auto}.data-table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}.data-table th{background:#f9fbfa;color:#829198;font-size:11px;letter-spacing:.06em;text-transform:uppercase;padding:14px 19px}.data-table td{padding:16px 19px;border-top:1px solid #edf1ef;font-size:13px}.data-table tr:hover td{background:#fbfdfb}.data-table td.primary{font-weight:800}.pill{font-size:11px;display:inline-flex;align-items:center;border-radius:100px;padding:5px 10px;color:#40644c;background:#e6f6e7;font-weight:800;text-transform:capitalize;white-space:nowrap}.pill.gray{background:#eef2f2;color:#6f8186}.pill.amber{background:#fff1d1;color:#94611c}.pill.red{background:#fde7e5;color:#a44739}.empty{text-align:center;padding:65px 25px;color:#8b9b9f}.empty b{display:block;color:#40565c;font-size:17px;margin-bottom:7px}.filter{border:1px solid var(--line);background:white;padding:11px 14px;border-radius:9px;min-width:230px;outline-color:var(--cyan)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.field{display:grid;gap:8px;font-size:12px;font-weight:800;color:#536a70}.field input,.field select,.field textarea{padding:13px 14px;border:1px solid #d3dedd;border-radius:9px;background:white;color:#20353f;outline-color:#7aaa60;width:100%}.field textarea{min-height:90px;resize:vertical}.field.full{grid-column:1/-1}.overlay{position:fixed;inset:0;z-index:100;background:#051319a8;display:grid;place-items:center;padding:22px}.dialog{max-width:690px;max-height:91vh;width:100%;overflow:auto;border-radius:16px;background:white;box-shadow:0 35px 80px #00101955}.dialog-head{display:flex;justify-content:space-between;align-items:center;padding:24px 28px;border-bottom:1px solid var(--line)}.dialog-body{padding:24px 28px}.dialog-foot{display:flex;justify-content:flex-end;gap:9px;padding:18px 28px;border-top:1px solid var(--line)}.icon-btn{border:none;background:#f2f5f4;font-size:20px;border-radius:8px;width:34px;height:34px;color:#425960}.loading-view{min-height:100vh;display:grid;place-content:center;text-align:center;gap:15px}.loading-view .mark{margin:auto;width:70px;height:70px;font-size:40px}.auth-bg{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.auth-left{background:radial-gradient(circle at 60% 75%,#426361,#152e36 60%,#0d1b25);color:white;padding:8vw;display:flex;flex-direction:column;justify-content:space-between}.auth-left h1{font-size:clamp(46px,5.5vw,85px);max-width:570px;line-height:1}.auth-left p{color:#b2c5c8;font-size:17px;max-width:470px}.auth-right{display:grid;place-items:center;padding:28px}.auth-panel{width:min(410px,100%)}.auth-panel h2{font-size:36px}.auth-panel .field{margin:19px 0}.auth-panel button{width:100%;margin-top:11px;padding:15px}.auth-art{border:1px solid #64817e;padding:15px;max-width:420px;border-radius:12px;background:#1f3a434e}.auth-art>div{display:flex;justify-content:space-between;border-bottom:1px solid #54716d;padding:11px}.auth-art>div:last-child{border:0}.auth-err{color:#ab332d;font-size:13px;min-height:17px}.map{height:520px;border-radius:0 0 14px 14px;background:#e8efee}.map.small{height:300px}.stat-bar{display:flex;gap:10px;flex-wrap:wrap}.mini-stat{border:1px solid var(--line);background:#fff;padding:12px 16px;border-radius:10px}.detail-list{display:grid;gap:11px}.detail-row{display:flex;justify-content:space-between;padding:14px 0;border-bottom:1px solid var(--line);gap:15px}.detail-row b{font-size:13px}.duty{background:#122b35;color:white;padding:23px;border-radius:14px;margin-bottom:20px;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.duty h3{font-size:23px}.duty p{color:#afc3c6;margin:5px 0}.driver-card{background:white;border:1px solid var(--line);padding:22px;border-radius:14px;margin-bottom:14px}.route-visual{display:flex;gap:10px;margin:18px 0}.route-line{width:3px;background:#b4dd8b;position:relative;margin-left:6px}.route-line:before,.route-line:after{content:'';position:absolute;width:12px;height:12px;left:-5px;background:#83b646;border-radius:50%}.route-line:before{top:0}.route-line:after{bottom:0}.route-points{display:grid;gap:30px}.driver-actions{display:flex;gap:8px;flex-wrap:wrap}.builder{display:grid;grid-template-columns:215px minmax(300px,1fr) 270px;gap:12px;min-height:720px}.builder-toolbox,.builder-inspector{background:white;border:1px solid var(--line);border-radius:12px;padding:17px}.builder-stage{background:#dce5e2;border:1px solid #cdd6d2;border-radius:12px;padding:21px}.block-palette{display:grid;gap:9px;margin:15px 0}.block-add{display:flex;gap:9px;align-items:center;background:#f8faf9;border:1px solid var(--line);padding:12px;border-radius:9px;text-align:left;font-weight:700}.block-add:hover{background:#ebf4e7}.edit-block{background:white;border:2px solid transparent;min-height:95px;border-radius:8px;padding:16px 20px;margin-bottom:10px;cursor:grab;box-shadow:0 4px 12px #11302b0e}.edit-block.selected{border-color:#649b65}.edit-block small{color:#7c9791;text-transform:uppercase;letter-spacing:.15em}.edit-block h3{margin:8px 0;font-size:27px}.edit-block p{color:#6b7e7b;white-space:pre-wrap}.edit-block[data-kind=hero]{padding:60px 28px;color:white;background:#15343f}.edit-block[data-kind=hero] p{color:#bcd1d0}.edit-block[data-kind=cta]{background:#bee889}.block-commands{display:flex;gap:5px;flex-wrap:wrap;margin-top:13px}.mobile-toggle{display:none}.note{background:#f4f8ee;border:1px solid #d7e9c9;color:#4c6642;padding:14px;border-radius:9px;line-height:1.6}.notice{background:#fff8e6;color:#886b31;border:1px solid #f1e1ae;padding:13px;border-radius:9px;font-size:13px}.seg{display:inline-flex;border:1px solid var(--line);border-radius:10px;background:#fff;overflow:hidden}.seg button{padding:10px 13px;border:0;background:white}.seg button.selected{background:var(--nav);color:white}.upload-drop{display:grid;gap:10px;border:2px dashed #b6cbc1;padding:25px;border-radius:12px;text-align:center}.wide{width:100%}#toast{position:fixed;bottom:28px;right:28px;background:#19343a;color:white;padding:16px 20px;border-radius:10px;z-index:300;box-shadow:0 10px 25px #0003;max-width:400px;display:none}#toast.show{display:block}#toast.error{background:#ac433b}.mobile-header{display:none}@media(max-width:1200px){.builder{grid-template-columns:185px minmax(280px,1fr)}.builder-inspector{grid-column:1/-1}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:950px){.shell{grid-template-columns:1fr}.sidebar{position:fixed;z-index:90;left:-260px;top:0;bottom:0;width:245px;transition:left .2s}.sidebar.open{left:0}.mobile-toggle{display:inline-flex}.topbar{padding:0 16px;height:64px}.content{padding:23px 15px 80px}.columns{grid-template-columns:1fr}.auth-left{padding:45px}.auth-bg{grid-template-columns:1fr 1fr}}@media(max-width:670px){.auth-bg{grid-template-columns:1fr}.auth-left{display:none}.auth-right{min-height:100vh}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.metric{padding:16px}.metric .big{font-size:27px}.form-grid{grid-template-columns:1fr}.builder{grid-template-columns:1fr}.builder-stage{padding:10px;min-height:250px}.builder-inspector{grid-column:auto}.page-head h1{font-size:27px}.topbar-right{font-size:11px}.map{height:360px}.dialog{max-height:95vh}.dialog-body{padding:16px}.dialog-head,.dialog-foot{padding:18px}.data-table td{padding:12px}.filter{min-width:150px}.desktop-only{display:none}}

.truck-marker img{filter:drop-shadow(0 8px 14px rgba(0,0,0,.28));}
.truck-marker.stale img{opacity:.55;filter:grayscale(.35) drop-shadow(0 6px 10px rgba(0,0,0,.18));}

.btn-block{width:100%;justify-content:center}
.mobile-list{display:grid;gap:16px}
.mobile-ticket{border:1px solid var(--line);border-radius:18px;padding:18px;background:#fff;display:grid;gap:14px}
.mobile-ticket-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}
.mobile-ticket-head h3{margin:6px 0 0;font-size:1.08rem;line-height:1.25}
.mobile-ticket-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:12px}
.mobile-ticket-grid small{display:block;color:var(--muted);font-size:.74rem;margin-bottom:4px;text-transform:uppercase;letter-spacing:.05em}
.mobile-ticket-grid b{font-size:.98rem}
.mobile-actions{display:flex;flex-wrap:wrap;gap:10px}
.mobile-actions .btn,.mobile-actions .btn-small{min-height:46px;padding:12px 16px;font-size:.96rem}
.inspection-mobile select,.inspection-mobile input,.inspection-mobile textarea{min-height:50px;font-size:16px}
.inspection-mobile textarea{min-height:108px}
@media (max-width: 900px){
  .data-table{font-size:14px}
  .btn,.btn-small{min-height:46px;padding:12px 16px}
  .metric-grid{grid-template-columns:1fr 1fr}
  .driver-card,.mobile-ticket,.card.card-pad{padding:18px}
  .mobile-ticket-head{flex-direction:column;align-items:flex-start}
  .toolbar{gap:10px;flex-wrap:wrap}
}
@media (max-width: 640px){
  .metric-grid{grid-template-columns:1fr}
  .mobile-actions .btn,.mobile-actions .btn-small{width:100%;justify-content:center}
  .duty{grid-template-columns:1fr;gap:14px}
  .driver-actions{display:grid;gap:10px}
  .driver-actions .btn,.driver-actions .btn-small{width:100%;justify-content:center;min-height:48px}
}

/* HaulDesk v0.2.6 fleet GPS with tractor + explicit status badges */
.gps-layout{display:grid;grid-template-columns:minmax(0,1.9fr) minmax(280px,1fr);gap:18px;align-items:start}
.gps-summary{display:flex;flex-wrap:wrap;gap:12px;margin:10px 0 20px}
.gps-status-card{display:flex;align-items:center;gap:10px;background:white;border:1px solid var(--line);border-radius:14px;padding:14px 18px;font-size:15px}
.gps-status-card strong{font-size:24px;color:#143044}
.gps-status-dot{width:16px;height:16px;display:inline-flex;border-radius:50%;flex:0 0 16px;border:2px solid white;box-shadow:0 0 0 1px #acbac1,0 2px 5px #0002}
.gps-status-dot.online,.gps-status-indicator.online{background:#06c954}
.gps-status-dot.offline,.gps-status-indicator.offline{background:#ef2937}
.gps-list{display:grid;gap:0;max-height:620px;overflow:auto}
.gps-driver{display:grid;grid-template-columns:20px minmax(0,1fr) auto;align-items:center;gap:12px;padding:14px 16px;border-bottom:1px solid var(--line)}
.gps-driver:last-child{border-bottom:0}
.gps-driver b{display:block;font-size:14px;line-height:1.5}
.gps-driver .btn{min-height:42px}
.gps-driver .muted{overflow-wrap:anywhere}
.gps-marker-shell{background:transparent;border:0}
.gps-truck-art{position:relative;width:62px;height:68px;filter:drop-shadow(0 3px 3px #122c3650)}
.gps-truck-art img{width:100%;height:100%;object-fit:contain}
.gps-status-indicator{position:absolute;right:2px;top:3px;border:3px solid white;box-shadow:0 1px 7px #0008;border-radius:100%;height:19px;width:19px}
.export-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}
.export-card{display:flex;flex-direction:column;justify-content:space-between;gap:22px;min-height:175px}
.export-card h3{margin:0 0 8px;font-size:17px}
.export-card p{margin:0;font-size:14px}
.export-card a.btn{width:100%;justify-content:center;min-height:46px}
@media(max-width:1000px){.gps-layout{grid-template-columns:1fr}}
@media(max-width:640px){.gps-summary{display:grid;grid-template-columns:1fr 1fr}.gps-status-card{padding:12px 9px;gap:6px;font-size:12px}.gps-status-card strong{font-size:19px}.gps-driver{grid-template-columns:18px minmax(0,1fr);padding:16px 13px}.gps-driver .btn,.gps-driver>span.muted{grid-column:2;justify-self:start}.export-grid{grid-template-columns:1fr}}
