/* Emich Trucking v8.0 — stable, readable and unified UI */
:root{
  --v8-bg:#f5f4f2;--v8-card:#fff;--v8-soft:#faf8f7;--v8-line:#e3dfdb;--v8-line2:#eeeae7;
  --v8-text:#20262a;--v8-muted:#6c757a;--v8-wine:#81263f;--v8-wine2:#9a405a;--v8-wine-soft:#f6ecef;
  --v8-green:#2f7659;--v8-sidebar:236px;--v8-shadow:0 12px 32px rgba(28,35,39,.06);--v8-radius:19px;
}
*{box-sizing:border-box}html{-webkit-text-size-adjust:100%;text-size-adjust:100%;background:var(--v8-bg)}
html,body{font-size:17px!important;background:var(--v8-bg)!important;color:var(--v8-text)!important;overflow-x:hidden!important}
body{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;line-height:1.45!important}
.app{display:flex!important;min-height:100vh!important;max-width:100vw!important;background:var(--v8-bg)!important;overflow-x:hidden!important}

/* Desktop navigation: labels are always visible. No collapsed menu, no hover tooltip. */
.side{width:var(--v8-sidebar)!important;min-width:var(--v8-sidebar)!important;max-width:var(--v8-sidebar)!important;padding:20px 14px!important;background:#fff!important;border-right:1px solid var(--v8-line)!important;display:flex!important;flex-direction:column!important;overflow-y:auto!important;overflow-x:hidden!important}
.brand{height:auto!important;min-height:72px!important;margin:0 0 14px!important;padding:4px 10px 18px!important;border-bottom:1px solid var(--v8-line2)!important;background:none!important}
.brand-logo,.brand-meta,.v6109-logo,.v701-mobile-logo,.v712-rail-logo,.v712-top-logo{display:none!important}
.v800-brand{display:flex;flex-direction:column;gap:5px}.v800-brand b{font-size:20px!important;line-height:1.1!important;letter-spacing:-.025em!important;color:var(--v8-text)!important}.v800-brand small{font-size:12px!important;line-height:1.35!important;color:var(--v8-muted)!important}
.nav{display:flex!important;flex-direction:column!important;gap:6px!important}.nav-group,.v800-nav-group{display:flex!important;flex-direction:column!important;gap:5px!important}.v800-nav-label{font-size:9.5px!important;font-weight:850!important;letter-spacing:.13em!important;color:#9a9fa1!important;padding:14px 12px 6px!important}
.nav button{width:100%!important;height:50px!important;min-height:50px!important;margin:0!important;padding:0 12px!important;border:1px solid transparent!important;border-radius:14px!important;background:transparent!important;color:#596269!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:11px!important;font-size:14px!important;font-weight:740!important;box-shadow:none!important;position:static!important}
.nav button:hover{background:#f7f5f3!important;color:#20262a!important;border-color:#eee9e5!important;transform:none!important}.nav button.active{background:var(--v8-wine-soft)!important;color:var(--v8-wine)!important;border-color:#ead8de!important}
.nav button:before,.nav button:after{display:none!important;content:none!important}.v800-nav-icon{width:31px!important;height:31px!important;border-radius:10px!important;background:#f2efed!important;display:grid!important;place-items:center!important;color:var(--v8-wine)!important;font-size:16px!important;flex:0 0 31px!important}.nav button.active .v800-nav-icon{background:#fff!important}
.side-foot{margin-top:auto!important;display:flex!important;align-items:center!important;gap:9px!important;padding:12px 13px!important;border:1px solid var(--v8-line2)!important;border-radius:14px!important;background:#faf9f8!important;color:var(--v8-muted)!important;font-size:12px!important}.sync-dot{width:9px!important;height:9px!important;border-radius:50%!important;flex:0 0 9px!important}

/* Main work area */
.main{flex:1 1 auto!important;min-width:0!important;width:calc(100vw - var(--v8-sidebar))!important;max-width:calc(100vw - var(--v8-sidebar))!important;padding:0 28px 60px!important;overflow-x:hidden!important}
.top{position:sticky!important;top:0!important;z-index:40!important;min-height:92px!important;padding:18px 0 15px!important;margin:0 0 12px!important;background:rgba(245,244,242,.91)!important;border:0!important;backdrop-filter:blur(18px)!important;-webkit-backdrop-filter:blur(18px)!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:20px!important}
.top h1{margin:0!important;font-size:36px!important;line-height:1.02!important;letter-spacing:-.04em!important;color:var(--v8-text)!important}.top .sub{font-size:14px!important;line-height:1.45!important;color:var(--v8-muted)!important;margin-top:7px!important;max-width:760px!important}.top-actions{display:flex!important;gap:10px!important;align-items:center!important;flex-wrap:wrap!important}
.btn{min-height:46px!important;padding:10px 15px!important;border-radius:13px!important;border:1px solid var(--v8-line)!important;background:#fff!important;color:#303a3f!important;font-size:14px!important;line-height:1.2!important;font-weight:760!important;box-shadow:0 4px 14px rgba(30,36,40,.035)!important;white-space:nowrap!important}.btn:hover{background:#fbfaf9!important;border-color:#d8d2cd!important}.btn.primary{background:var(--v8-wine)!important;border-color:var(--v8-wine)!important;color:#fff!important;box-shadow:0 10px 24px rgba(129,38,63,.17)!important}.btn.primary:hover{background:var(--v8-wine2)!important}.btn.tiny,.btn.small{min-height:38px!important;padding:8px 11px!important;font-size:12.5px!important;border-radius:11px!important}.btn.danger{color:#a02d3e!important}
#view,#view>*{min-width:0!important;max-width:100%!important}

/* Cards and global typography */
.card,.stage,.calc,.calcbox,.v5-module,.v69-unit-card,.v6103-unit-card,.dispatch-col,.modalbox{background:#fff!important;border:1px solid var(--v8-line)!important;border-radius:var(--v8-radius)!important;box-shadow:var(--v8-shadow)!important}.card{padding:20px!important}.section{margin-top:16px!important;margin-bottom:16px!important}.section-title{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:16px!important;margin-bottom:17px!important}.section-title h2,.card h2,.stage h3,.modalbox h2{margin:0!important;font-size:20px!important;line-height:1.2!important;letter-spacing:-.02em!important;color:var(--v8-text)!important}.section-title .sub,.sub,.note,.notice{font-size:13px!important;line-height:1.5!important;color:var(--v8-muted)!important}.notice{padding:13px 15px!important;border-radius:13px!important}
.grid,.v5-kpis,.calcgrid{gap:12px!important}.metric .label,.calcbox small,.v5-kpis small{font-size:11px!important}.metric .value,.calcbox b,.v5-kpis b{font-size:24px!important}.quick b{font-size:14px!important}.quick span{font-size:12px!important;line-height:1.45!important}

/* V8 dashboard */
.v800-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:22px;padding:8px 0 20px}.v800-hero>div:first-child{max-width:780px}.v800-hero>div>span{font-size:11px;font-weight:850;letter-spacing:.14em;color:var(--v8-wine)}.v800-hero h2{font-size:38px;line-height:1.04;letter-spacing:-.045em;margin:7px 0 8px}.v800-hero p{font-size:15px;line-height:1.5;color:var(--v8-muted);margin:0}.v800-actions{display:flex;gap:10px;flex-wrap:wrap}.v800-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:14px}.v800-stat{background:#fff;border:1px solid var(--v8-line);border-radius:17px;padding:18px;box-shadow:var(--v8-shadow);min-height:118px;display:flex;flex-direction:column}.v800-stat small{font-size:11px;font-weight:780;color:var(--v8-muted);text-transform:uppercase;letter-spacing:.06em}.v800-stat b{font-size:26px;line-height:1.1;letter-spacing:-.035em;margin:12px 0 7px}.v800-stat span{font-size:11.5px;color:#8b9295}.v800-grid2{display:grid;grid-template-columns:1.2fr .8fr;gap:14px}.v800-card{padding:21px!important}.v800-trip-list{display:flex;flex-direction:column;gap:9px}.v800-trip-list>button{width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:center;background:#faf9f8;border:1px solid var(--v8-line2);border-radius:14px;padding:13px 14px;text-align:left}.v800-trip-list>button:hover{background:#fff;border-color:#dcd6d1}.v800-trip-list b{font-size:13.5px}.v800-trip-list small{display:block;font-size:11.5px;color:var(--v8-muted);margin-top:3px}.v800-trip-list span{display:block;font-size:10.5px;font-weight:850;color:var(--v8-wine);text-align:right}.v800-attention{display:grid;grid-template-columns:1fr 1fr;gap:9px}.v800-attention button{min-height:102px;padding:15px;border:1px solid var(--v8-line2);border-radius:15px;background:#faf9f8;text-align:left}.v800-attention button:hover{background:#fff}.v800-attention b{display:block;font-size:21px;line-height:1.1;color:var(--v8-text);overflow:hidden;text-overflow:ellipsis}.v800-attention span{display:block;font-size:11.5px;line-height:1.35;color:var(--v8-muted);margin-top:8px}.v800-quick{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin-top:14px}.v800-quick button{min-height:112px;padding:17px;border:1px solid var(--v8-line);border-radius:17px;background:#fff;box-shadow:var(--v8-shadow);text-align:left}.v800-quick b{display:block;font-size:15px;margin-bottom:6px}.v800-quick span{font-size:12px;line-height:1.45;color:var(--v8-muted)}

/* Unified tabs */
.v800-tabs{display:flex;align-items:center;gap:6px;padding:5px;margin:2px 0 18px;background:#ebe7e4;border-radius:15px;width:max-content;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.v800-tabs button{display:flex;align-items:center;gap:7px;min-height:39px;padding:8px 13px;border:0;border-radius:11px;background:transparent;color:#697277;font-size:13px;font-weight:760;white-space:nowrap}.v800-tabs button.active{background:#fff;color:var(--v8-wine);box-shadow:0 5px 15px rgba(30,36,40,.06)}.v800-tabs button b,.v800-count{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:24px;padding:0 7px;border-radius:999px;background:#f0ecea;color:#70777b;font-size:10px}.v800-tabs button.active b{background:var(--v8-wine-soft);color:var(--v8-wine)}

/* Operation board and data rows */
.dispatch-board{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important;align-items:start!important}.dispatch-col{padding:14px!important;min-width:0!important}.dispatch-head{padding:2px 3px 12px!important}.dispatch-head b{font-size:12px!important;letter-spacing:.04em!important}.dispatch-head span{font-size:11px!important}.dispatch-card{border-radius:15px!important;background:#fff!important;border:1px solid var(--v8-line)!important;box-shadow:0 5px 18px rgba(31,38,42,.04)!important;padding:0!important;overflow:hidden!important}.dispatch-open{padding:15px!important}.dispatch-open>b{font-size:14px!important}.dispatch-open>small,.dispatch-open>span,.v699-dispatch-telemetry small{font-size:11.5px!important;line-height:1.42!important}.dispatch-card select{height:44px!important;font-size:13px!important;margin:0 12px 12px!important;width:calc(100% - 24px)!important;border-radius:11px!important}.dispatch-empty{font-size:12px!important;padding:26px 12px!important}

/* Tables */
.tablewrap{max-width:100%!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch!important;border-radius:14px!important}.table{width:100%!important;border-collapse:collapse!important;min-width:860px!important;font-size:13px!important}.table th{padding:13px 14px!important;font-size:10.5px!important;line-height:1.25!important;text-transform:uppercase!important;letter-spacing:.06em!important;color:#838b8f!important;background:#fbfaf9!important;white-space:nowrap!important}.table td{padding:14px!important;font-size:13px!important;line-height:1.45!important;color:#313a3f!important;vertical-align:middle!important;border-bottom:1px solid var(--v8-line2)!important}.table td b{font-size:13.5px!important}.table td small,.import-badge{font-size:10.5px!important;color:var(--v8-muted)!important}.pill{font-size:10.5px!important;padding:5px 9px!important;border-radius:999px!important}.empty{font-size:13px!important;padding:28px!important;text-align:center!important;color:#8b9296!important}

/* Forms */
.toolbar{display:flex!important;flex-wrap:wrap!important;gap:9px!important;align-items:center!important}.toolbar input,.toolbar select{height:46px!important;min-width:150px!important;font-size:14px!important;border-radius:12px!important;padding:0 12px!important}.toolbar input:first-child{flex:1 1 260px!important}.formgrid{gap:13px!important}.field{min-width:0!important}.field label,.formgrid label{font-size:12px!important;font-weight:730!important;color:#606a70!important}.field input,.field select,.field textarea,.formgrid input,.formgrid select,.formgrid textarea,body.ui68 input,body.ui68 select,body.ui68 textarea{width:100%!important;max-width:100%!important;min-width:0!important;height:48px!important;padding:0 13px!important;border:1px solid #dcd6d1!important;border-radius:12px!important;background:#fcfbfa!important;color:#2f393e!important;font-size:14px!important;line-height:1.3!important}.field textarea,.formgrid textarea,textarea{height:auto!important;min-height:104px!important;padding:12px 13px!important}.actions{gap:9px!important;flex-wrap:wrap!important}.modal{padding:18px!important}.modalbox{width:min(930px,calc(100vw - 36px))!important;max-width:930px!important;padding:22px!important;max-height:92vh!important;overflow:auto!important}.modalbox h2{font-size:22px!important;margin-bottom:16px!important}

/* Catalog / embedded legacy */
.v800-embedded>.catalog-tabs:first-child,.v800-embedded>.admin-tabs:first-child{display:none!important}.v800-embedded>.card:first-child{margin-top:0!important}.v800-embedded>.section:first-child{margin-top:0!important}.catalog-tabs{gap:7px!important;overflow-x:auto!important}.catalog-tabs .btn{font-size:12px!important}.v800-count{font-size:11px!important;min-width:30px!important}

/* Kill the duplicate v6.10.22 mobile shell: v8 has one mobile nav only. */
#v6109MobileShell,#v6109Drawer,.v6109-mobile-shell,.v6109-drawer,.v6109-update-bar{display:none!important}
.mobilebar{display:none!important}

@media(max-width:1320px) and (min-width:901px){:root{--v8-sidebar:210px}.main{padding-left:20px!important;padding-right:20px!important}.top h1{font-size:32px!important}.v800-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.v800-grid2{grid-template-columns:1fr}.dispatch-board{grid-template-columns:repeat(2,minmax(0,1fr))!important}.v800-quick{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){
  .side{display:none!important}.main{width:100%!important;max-width:100%!important;padding:0 13px calc(92px + env(safe-area-inset-bottom))!important}.top{min-height:78px!important;padding:11px 0!important}.top h1{font-size:27px!important}.top .sub{font-size:12px!important;max-width:60vw!important}.top-actions .btn{min-height:43px!important;font-size:12.5px!important}.top-actions .btn.ghost{display:none!important}
  .v800-hero{align-items:flex-start;flex-direction:column}.v800-hero h2{font-size:30px}.v800-hero p{font-size:13px}.v800-stats{grid-template-columns:1fr 1fr}.v800-stat{min-height:105px;padding:15px}.v800-stat b{font-size:22px}.v800-grid2{grid-template-columns:1fr}.v800-quick{grid-template-columns:1fr 1fr}.dispatch-board{grid-template-columns:1fr!important}.table{min-width:760px!important}.toolbar{display:grid!important;grid-template-columns:1fr 1fr!important}.toolbar input:first-child{grid-column:1/-1!important}.toolbar .btn{width:100%!important}.formgrid.two-col{grid-template-columns:1fr!important}
  .mobilebar{display:grid!important;position:fixed!important;left:8px!important;right:8px!important;bottom:calc(8px + env(safe-area-inset-bottom))!important;z-index:100!important;grid-template-columns:repeat(5,1fr)!important;padding:5px!important;background:rgba(255,255,255,.96)!important;border:1px solid var(--v8-line)!important;border-radius:17px!important;box-shadow:0 16px 40px rgba(30,36,40,.16)!important;backdrop-filter:blur(16px)!important}.mobilebar button{height:54px!important;border:0!important;border-radius:12px!important;background:transparent!important;color:#737c80!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:2px!important}.mobilebar button span{font-size:17px!important}.mobilebar button small{font-size:8.5px!important;font-weight:780!important}.mobilebar button.active{background:var(--v8-wine-soft)!important;color:var(--v8-wine)!important}
}
@media(max-width:560px){html,body{font-size:16px!important}.main{padding-left:9px!important;padding-right:9px!important}.top h1{font-size:23px!important}.top .sub{font-size:11px!important;max-width:58vw!important}.top-actions .btn.primary{width:44px!important;min-width:44px!important;padding:0!important;font-size:0!important}.top-actions .btn.primary:after{content:'+';font-size:21px!important}.v800-hero h2{font-size:26px}.v800-stats{grid-template-columns:1fr 1fr;gap:8px}.v800-stat{padding:13px}.v800-stat small{font-size:9.5px}.v800-stat b{font-size:19px}.v800-attention{grid-template-columns:1fr 1fr}.v800-quick{grid-template-columns:1fr}.toolbar{grid-template-columns:1fr!important}.toolbar input:first-child{grid-column:auto!important}.field input,.field select,.formgrid input,.formgrid select,body.ui68 input,body.ui68 select,body.ui68 textarea{font-size:16px!important}.card{padding:15px!important}.modal{padding:8px!important;align-items:flex-end!important}.modalbox{width:100%!important;max-height:94vh!important;border-radius:20px 20px 12px 12px!important;padding:17px!important}.v800-tabs{width:100%!important}.v800-tabs button{flex:0 0 auto!important}}
.v800-catalog-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 14px;padding:15px 17px;border:1px solid #eadde1;border-radius:16px;background:linear-gradient(135deg,#fff 0%,#faf4f6 100%)}.v800-catalog-actions>div{display:flex;flex-direction:column;gap:3px;min-width:0}.v800-catalog-actions b{font-size:14px}.v800-catalog-actions span{font-size:12px;line-height:1.4;color:var(--v8-muted)}
@media(max-width:700px){.v800-catalog-actions{align-items:stretch;flex-direction:column}.v800-catalog-actions .btn{width:100%!important;text-align:center!important}}
body.ui68 .side{background:linear-gradient(180deg,#3c101d 0%,#2f0b16 100%)!important;border-right-color:#4c1c2a!important}
body.ui68 .v800-brand b{color:#fff!important}body.ui68 .v800-brand small{color:#cdb8bf!important}body.ui68 .brand{border-bottom-color:rgba(255,255,255,.18)!important}
body.ui68 .v800-nav-label{color:#a98f98!important}body.ui68 .nav button{color:#e3d8dc!important}body.ui68 .nav button:hover{background:rgba(255,255,255,.07)!important;color:#fff!important;border-color:rgba(255,255,255,.08)!important}body.ui68 .nav button.active{background:rgba(255,255,255,.13)!important;color:#fff!important;border-color:rgba(255,255,255,.10)!important;box-shadow:inset 3px 0 0 #e9a8ba!important}body.ui68 .v800-nav-icon{background:rgba(255,255,255,.09)!important;color:#f5d8e1!important}body.ui68 .nav button.active .v800-nav-icon{background:#fff!important;color:var(--v8-wine)!important}body.ui68 .side-foot{background:rgba(255,255,255,.94)!important;color:#6f7275!important;border-color:rgba(255,255,255,.15)!important}
.dispatch-open>b{font-size:15px!important}.dispatch-open>small,.dispatch-open>span,.v699-dispatch-telemetry small{font-size:12.5px!important}
@media(min-width:901px){.v800-catalog-actions + .v800-tabs{width:100%!important;max-width:100%!important;flex-wrap:wrap!important;overflow:visible!important}}
@media(max-width:900px){
  html body.ui68{padding-top:0!important;padding-bottom:0!important}
  body.ui68 .main{padding-top:0!important;padding-bottom:calc(88px + env(safe-area-inset-bottom))!important}
  body.ui68 .top{top:0!important;margin-top:0!important;min-height:76px!important}
  body.ui68 .mobilebar{display:grid!important;visibility:visible!important;opacity:1!important}
  body.ui68 .top-actions .btn.primary{width:44px!important;min-width:44px!important;max-width:44px!important;height:44px!important;padding:0!important;font-size:0!important;overflow:hidden!important}
  body.ui68 .top-actions .btn.primary::after{content:'+'!important;font-size:22px!important;line-height:1!important;color:#fff!important}
  body.ui68 .top-actions .btn.ghost{display:none!important}
}
.v800-catalog-actions.loaded{background:#f7faf8!important;border-color:#d8e8df!important}.login .brandmark{display:none!important}
