
:root{font-family:"Segoe UI",sans-serif;font-size:14px;color:#18243a;background:#f5f7fa;--nav:#182437;--ink:#18243a;--muted:#627187;--rule:#e3e8f0;--accent:#b84d25;--orange:#fd794c;--white:#fff;--blue:#325c9f}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible{outline:2px solid #2a6dcc;outline-offset:3px}button:disabled{cursor:not-allowed;opacity:.46}
#shell {
  --sidebar-width: 221px;
  --sidebar-slide: 270ms cubic-bezier(.25, .7, .3, 1);
  --truck-drive: 240ms ease-in-out;
  --departure-lead: 140ms;
  --return-delay: 115ms;
  --sidebar-delay: 0ms;
  --truck-home: 20px;
  --truck-parking: 32px;
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  transition: grid-template-columns var(--sidebar-slide) var(--sidebar-delay);
}
#shell.sidebar-collapsed {
  --sidebar-delay: var(--departure-lead);
  grid-template-columns: 0px minmax(0, 1fr);
}
.sidebar-slot {
  position: sticky;
  top: 0;
  z-index: 2;
  min-width: 0;
  height: 100dvh;
  pointer-events: none;
}
#sidebar {
  width: var(--sidebar-width);
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--nav);
  color: #c6d0e0;
  pointer-events: auto;
  transition: transform var(--sidebar-slide) var(--sidebar-delay);
}
.sidebar-collapsed #sidebar { transform: translateX(-100%); pointer-events: none; }
#sidebar-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #4c5e74 var(--nav);
}
.brand {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  height: 83px;
  padding: 0 14px 0 66px;
  border-bottom: 1px solid #ffffff14;
}
#sidebar-toggle {
  position: absolute;
  z-index: 1;
  top: 24px;
  left: var(--truck-home);
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--orange);
  color: var(--nav);
  pointer-events: auto;
  transition: transform var(--truck-drive) var(--return-delay), top var(--truck-drive) var(--return-delay);
}
#sidebar-toggle:hover { background: #ff916c; }
#sidebar-toggle svg { width: 22px; height: 22px; }
#sidebar-toggle .truck-wheel {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform var(--truck-drive) var(--return-delay);
}
.sidebar-collapsed #sidebar-toggle {
  top: 16px;
  transform: translateX(calc(var(--truck-parking) - var(--truck-home)));
  transition-delay: 0ms;
}
.sidebar-collapsed #sidebar-toggle .truck-wheel {
  transform: rotate(1turn);
  transition-delay: 0ms;
}
#top { transition: padding-left var(--sidebar-slide) var(--sidebar-delay); }
.sidebar-collapsed #top {
  position: sticky;
  top: 0;
  z-index: 1;
  padding-left: calc(var(--truck-parking) + 47px);
}
.brand b{font-size:21px;line-height:1;font-weight:800;color:#fff;letter-spacing:.04em}.brand small{display:block;font-size:10px;color:#a9b7ca;margin-top:4px;letter-spacing:.08em}.nav{padding:10px 12px 15px;flex:1}.group{font-size:10px;font-weight:700;letter-spacing:.105em;color:#94a5ba;margin:16px 10px 6px;text-transform:uppercase}.nav a{display:flex;align-items:center;gap:11px;padding:8px 10px;margin:2px 0;border-radius:6px;font-weight:550;font-size:13px;min-height:35px}.nav a:hover{background:#ffffff0e;color:white}.nav a.active{background:#344256;color:white;box-shadow:inset 3px 0 var(--orange)}.nav a.active svg{color:#ff936e}.nav .count{margin-left:auto;background:#fb80552b;color:#ffac90;font-size:10px;padding:2px 6px;border-radius:5px}.sidebar-foot{padding:14px 17px;border-top:1px solid #ffffff17;font-size:11px;display:flex;gap:8px;align-items:center;color:#abbacf}.sidebar-foot i{width:7px;height:7px;background:#69cba4;border-radius:50%}.sidebar-foot button{color:#fff;border:0;background:none;margin-left:auto;font-size:11px;text-decoration:underline;text-underline-offset:3px;padding:0}
svg.icon{width:17px;height:17px;display:inline-block;vertical-align:middle;flex:none}#top{height:67px;background:#fff;border-bottom:1px solid var(--rule);display:flex;align-items:center;justify-content:space-between;gap:15px;padding:0 32px}.crumb{display:flex;align-items:center;gap:8px;color:#526177;font-size:13px}.crumb strong{color:var(--ink)}.crumb .icon{width:13px}.top-tools{display:flex;align-items:center;gap:15px}.search-top{display:flex;align-items:center;justify-content:flex-start;gap:8px;width:220px;background:#f6f8fb;border:1px solid #e8edf4;border-radius:7px;padding:8px 10px;color:#586982;text-align:left}.search-top kbd{margin-left:auto;border:1px solid #dce4ee;padding:0 4px;border-radius:4px;font-size:10px;background:#fff}.avatar{height:34px;width:34px;border-radius:50%;background:#e6eaf7;color:#404f91;display:grid;place-items:center;font-weight:750;font-size:12px}.top-profile{display:flex;align-items:center;gap:8px;border-left:1px solid var(--rule);padding-left:14px}.top-profile .user{display:block;max-width:148px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.top-profile small{display:block;color:var(--muted);font-size:10px;margin-top:2px}
main{padding:28px 32px 48px;max-width:1700px;margin:auto;outline:none}.titlebar{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:24px}.titlebar h1{margin:0;font-size:34px;letter-spacing:-.046em;font-weight:760;line-height:1.15}.titlebar p{margin:8px 0 0;color:var(--muted);font-size:14px}.button{display:inline-flex;justify-content:center;align-items:center;gap:7px;border:1px solid #dbe3ed;background:#fff;color:var(--ink);border-radius:7px;padding:8px 12px;min-height:37px;font-weight:650;line-height:1.15;white-space:nowrap}.button:hover{border-color:#a9b8cc;background:#f4f7fb}.button.primary{background:#c04f2a;border-color:#c04f2a;color:white}.button.primary:hover{background:#a44020;border-color:#a44020}.button.danger{color:#ab342a;border-color:#f1c9c4}.button.small{min-height:31px;font-size:12px;padding:5px 8px}.button.flat{border-color:transparent;background:transparent;color:var(--blue)}.button .icon{width:15px;height:15px}.actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.date-note{display:flex;align-items:center;gap:7px;color:#516078;font-size:12px;margin-right:4px}
.hero{background:#213047;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:22px 26px;min-height:125px;position:relative;overflow:hidden;border-radius:11px;margin-bottom:20px;isolation:isolate}.hero h2{font-size:24px;letter-spacing:-.033em;margin:4px 0 6px}.hero p{margin:0;color:#cfdaea;font-size:13px}.hero .route-art{position:absolute;right:0;top:0;height:100%;width:53%;z-index:-1;background:repeating-linear-gradient(124deg,transparent 0 18px,#ffffff08 19px 20px,transparent 21px 36px);mask-image:linear-gradient(to right,transparent,black 42%)}.hero .route-art:before,.hero .route-art:after{content:"";position:absolute;display:block;border-top:2px dashed #f89c746a;border-right:2px dashed #f89c746a;width:55%;height:52%;right:10%;top:17%;border-radius:0 45px 0 0;transform:skewX(-23deg)}.hero .route-art:after{border-color:#aec3e55e;right:22%;top:43%;width:47%;height:67%}.hero .eyebrow{color:#ffaf91;font-size:10px;font-weight:750;letter-spacing:.11em;text-transform:uppercase;display:flex;gap:6px;align-items:center}.hero .signal{width:7px;height:7px;border-radius:50%;background:#fb926b;box-shadow:0 0 0 3px #fb926b32}.hero .button{background:#ffffff12;color:white;border-color:#ffffff48}
.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:23px}.metric{text-align:left;border:1px solid var(--rule);background:#fff;border-radius:9px;padding:14px 14px 12px;color:var(--ink);min-width:0}.metric:hover{border-color:#aabbd0}.metric-caption{display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:12px;font-weight:650;color:#516078}.tile-icon{width:31px;height:31px;border-radius:7px;background:#e9effc;color:#345e9e;display:grid;place-items:center}.tile-icon.orange{background:#fcebe4;color:#ad4826}.tile-icon.teal{background:#e5f4ed;color:#22664f}.tile-icon.violet{background:#f0ebfa;color:#65509e}.metric strong{display:block;font-size:26px;line-height:1.15;letter-spacing:-.055em;margin:4px 0 5px;overflow-wrap:anywhere}.metric small{color:var(--muted);font-size:11px}.dashboard-grid{display:grid;grid-template-columns:minmax(0,2.45fr) minmax(233px,1fr);gap:17px;align-items:start}.card{background:#fff;border:1px solid var(--rule);border-radius:9px;min-width:0}.card-head{padding:15px 16px;display:flex;align-items:center;justify-content:space-between;gap:10px}.card h2,.card h3{margin:0;font-size:16px;letter-spacing:-.025em}.card-head p{margin:4px 0 0;font-size:12px;color:var(--muted)}.queue-item{display:flex;align-items:center;gap:10px;width:100%;text-align:left;border:0;border-top:1px solid #edf0f5;background:#fff;padding:12px 13px;color:var(--ink)}.queue-item:last-child{border-radius:0 0 9px 9px}.queue-item:hover{background:#f7f9fc}.queue-item span:nth-child(2){flex:1;min-width:0}.queue-item b,.queue-item small{display:block}.queue-item b{font-size:12px}.queue-item small{font-size:11px;color:var(--muted);margin-top:4px}.queue-item strong{font-size:15px}.queue-item .chev{color:#8190a5}.queue-item .tile-icon{width:28px;height:28px}.split-right{display:grid;gap:15px}.pipeline{padding:14px 15px}.pipeline h3{margin-bottom:12px}.pipeline-row{display:grid;grid-template-columns:80px 1fr 20px;align-items:center;gap:8px;font-size:11px;color:#526279;margin:9px 0}.bar{height:6px;background:#e9eef5;border-radius:8px;overflow:hidden}.bar i{display:block;height:100%;background:#607cac;border-radius:8px}
.table-wrap{overflow:auto;max-width:100%}table{width:100%;border-collapse:collapse;text-align:left;font-size:13px;white-space:nowrap}th{background:#f7f9fc;border-top:1px solid #edf0f5;border-bottom:1px solid #edf0f5;color:#526178;font-size:11px;font-weight:700;text-align:left}th,td{padding:11px 13px}td{border-bottom:1px solid #edf0f5}tr:last-child td{border-bottom:0}tbody tr:hover{background:#fafbfd}td:first-child,th:first-child{padding-left:16px}td:last-child,th:last-child{padding-right:16px}td .sub{display:block;color:#65738a;font-size:11px;margin-top:4px}.num{text-align:right;font-variant-numeric:tabular-nums}.id-link{padding:0;border:0;background:none;color:#2c568f;font-weight:700;text-align:left}.id-link:hover{text-decoration:underline;text-underline-offset:3px}.chip{display:inline-flex;align-items:center;gap:5px;padding:4px 7px;border-radius:5px;background:#edf1f6;color:#47556a;font-size:10px;font-weight:750;white-space:nowrap}.chip:before{content:"";display:inline-block;width:5px;height:5px;border-radius:50%;background:currentColor}.chip.orange{background:#fff0dc;color:#8b5414}.chip.blue{background:#e7efff;color:#325a9b}.chip.green{background:#e5f4ed;color:#1e674e}.chip.red{background:#fce9e7;color:#a53230}.chip.violet{background:#eee8fa;color:#63458f}
.tabs{display:flex;gap:13px;border-bottom:1px solid var(--rule);margin-bottom:15px;overflow:auto}.tab{border:0;border-bottom:2px solid transparent;background:transparent;padding:8px 5px 11px;color:#526178;font-weight:650;white-space:nowrap}.tab.active{border-bottom-color:var(--accent);color:var(--accent)}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 13px}.toolbar .actions{max-width:100%}.toolbar input,.toolbar select{width:auto;min-width:110px;max-width:100%}.toolbar .table-search{min-width:220px}.section{margin-top:17px}.table-footer{padding:9px 15px;border-top:1px solid #edf0f5;color:var(--muted);font-size:11px;display:flex;justify-content:space-between;align-items:center;gap:6px}.empty{color:var(--muted);padding:25px 18px;text-align:center;font-size:13px}.empty strong{display:block;color:var(--ink);font-size:14px;margin-bottom:5px}.muted{color:var(--muted)}.negative{color:#a8322e;font-weight:700}.section-title{margin:0 0 10px;font-size:15px}.detail-list{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0 0 16px}.detail-list div{background:#f5f7fb;padding:10px;border-radius:6px}.detail-list dt{font-size:11px;color:var(--muted);margin:0 0 5px}.detail-list dd{font-weight:700;margin:0;overflow-wrap:anywhere}.form-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.form-row.three{grid-template-columns:repeat(3,minmax(0,1fr))}label.field{display:flex;min-width:0;flex-direction:column;gap:5px;font-weight:650;color:#334258;font-size:12px;margin:0 0 12px}.field.full{grid-column:1/-1}input:not([type=checkbox]),select,textarea{min-height:36px;width:100%;border:1px solid #d9e1ec;border-radius:6px;padding:7px 9px;background:#fff;color:var(--ink)}textarea{min-height:56px;resize:vertical}input[type=checkbox]{accent-color:#a74727;width:15px;height:15px;vertical-align:middle}.info{background:#eaf1fb;border:1px solid #e1eafa;border-radius:6px;padding:10px 11px;color:#37577d;font-size:12px;margin:0 0 14px}.form-error{background:#fce7e6;color:#982e26;padding:9px;border-radius:6px;display:none;margin:7px 0}.form-error.show{display:block}.dialog-actions{display:flex;justify-content:flex-end;gap:7px;flex-wrap:wrap;margin-top:16px}.compact-line{border:1px solid #e3e9f2;border-radius:7px;margin:8px 0;padding:10px}.compact-line .field{margin-bottom:7px}.line-title{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:7px;font-size:12px;font-weight:700}
body:has(#panel[open]) { overflow: hidden; }
#panel {
  --panel-width: 620px;
  position: fixed;
  inset: 0;
  width: var(--panel-width);
  max-width: calc(100% - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 12px;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 16px 56px #15283c41;
  overflow: auto;
  overscroll-behavior: contain;
}
#panel[data-size="compact"] { --panel-width: 540px; }
#panel[data-size="wide"] { --panel-width: 740px; }
#panel::backdrop { background: #17263858; }
.panel-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--rule);
  background: var(--white);
}
.panel-head h2 { font-size: 21px; margin: 0; letter-spacing: -.035em; overflow-wrap: anywhere; }
.panel-head > button { flex: none; width: 32px; padding: 0; }
.panel-body { padding: 18px 20px 20px; }
.panel-body > p:first-of-type { margin-top: 0; }
.loading{padding:26px;color:var(--muted)}#notice{position:fixed;bottom:20px;right:22px;z-index:4;background:#192c45;color:white;padding:10px 15px;border-radius:7px;display:none;max-width:90vw}#notice.show{display:block}.period-widget{color:#586980}.calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:1px;background:var(--rule);border:1px solid var(--rule);border-radius:8px;overflow:hidden}.day{background:white;min-height:85px;padding:7px;min-width:0}.day.header{min-height:0;background:#f2f5fa;font-weight:650;color:#526178}.day.today{box-shadow:inset 0 0 0 2px #f7a78e}.day.blank{background:#eef2f7}.cal-item{margin-top:3px;display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;border:0;background:#e9f0ff;color:#2b4c83;border-radius:4px;padding:3px 5px;width:100%;text-align:left;font-size:10px}.cal-item.draft{background:#f6eddf;color:#84592c}.statement{text-align:right;background:#f6f8fb;padding:12px;border-radius:6px;margin-top:12px}.statement div{margin:5px 0}.row-check{display:flex;gap:8px;align-items:center;margin:8px 0}.truncate{max-width:160px;overflow:hidden;text-overflow:ellipsis}
@media(max-width:1150px){#shell{--sidebar-width:188px;--truck-parking:25px}main,#top{padding-left:22px;padding-right:22px}.dashboard-grid{grid-template-columns:1fr}.split-right{grid-template-columns:1fr 1fr}}@media(max-width:800px){#shell{--sidebar-width:65px;--truck-home:15px;--truck-parking:21px}.brand{height:67px;padding:0;visibility:hidden}#sidebar-toggle{top:16px}.nav a>span,.group,.sidebar-foot{display:none}.nav{padding:8px}.nav a{justify-content:center}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}main,#top{padding-left:14px;padding-right:14px}.search-top{width:auto}.search-top kbd,.top-profile .user,.top-profile small{display:none}.titlebar h1{font-size:27px}.hero{padding:15px}.hero .button,.titlebar .date-note{display:none}}@media(max-width:580px){.titlebar{flex-wrap:wrap}.split-right{grid-template-columns:1fr}.form-row.three{grid-template-columns:repeat(2,minmax(0,1fr))}.hero{min-height:113px}.calendar .day{min-height:44px}.day.header{min-height:0;font-size:9px}.cal-item{font-size:8px}}
@media (max-width: 580px) {
  #panel { max-width: calc(100% - 20px); max-height: calc(100dvh - 20px); }
  .panel-head, .panel-body { padding-left: 13px; padding-right: 13px; }
}
@media (max-width: 380px) {
  #panel .form-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  #shell {
    --sidebar-slide: 0ms;
    --truck-drive: 0ms;
    --departure-lead: 0ms;
    --return-delay: 0ms;
  }
}
@media print{#shell,#notice,.panel-head button,.dialog-actions,.no-print{display:none!important}#panel{display:block!important;position:static;width:100%;max-width:none;max-height:none;overflow:visible;border:0;border-radius:0;box-shadow:none}.panel-head{position:static}#panel::backdrop{display:none}}

#panel[data-size="sheet"] { --panel-width: 1060px; }
.booking-steps { display:flex; gap:8px; padding-bottom:12px; margin-bottom:16px; border-bottom:1px solid var(--rule); }
.booking-steps button[aria-pressed="true"] { color:var(--blue); background:#eaf1fb; border-color:#b9ccec; }
.sheet-intro h3 { font-size:16px; margin:0 0 4px; }
.sheet-intro p,.sheet-note { margin:0 0 10px; color:var(--muted); font-size:12px; }
.sheet-tools { display:flex; flex-wrap:wrap; gap:10px; align-items:flex-end; margin:12px 0; }
.sheet-tools .field { margin:0; width:135px; }
.sheet-tools > .button { min-height:36px; }
.sheet-tools .row-check { margin:0; }
.sheet-wrap,.uj-review-table { border:1px solid var(--rule); border-radius:6px; }
.container-sheet { table-layout:fixed; min-width:860px; }
.container-sheet th:first-child { width:42px; }
.container-sheet th:nth-child(2) { width:160px; }
.container-sheet th:nth-child(3) { width:76px; }
.container-sheet th:last-child { width:78px; }
.container-sheet th,.container-sheet td { padding:0; border-right:1px solid var(--rule); }
.container-sheet thead th,.container-sheet tbody th,.container-sheet td:has(.chip) { padding:8px; }
.container-sheet td:last-child,.container-sheet th:last-child { border-right:0; }
.container-sheet input:not([type=checkbox]) { min-height:38px; padding:6px 7px; border:0; border-radius:0; }
.container-sheet input:focus-visible { outline:2px solid #426dab; outline-offset:-2px; background:#f6faff; }
.container-sheet input[readonly] { background:#f2f4f7; color:#536278; }
.sheet-wrap + .sheet-note,#container-sheet + .sheet-note { margin-top:9px; }
.uj-review-table table { min-width:720px; }
.uj-review-table input[type=number] { min-width:115px; }
.uj-review-table input[disabled] { color:#627187; background:#f2f4f7; }
.uj-review-table tr:has([data-release]:checked) { background:#edf4ff; }
.field input[type=file] { padding:5px; }
.field:has(input[type=file]) + .sheet-note { margin-top:-7px; }
@media(max-width:580px){#top{gap:8px}.crumb>span,.crumb>.icon:nth-of-type(2),.search-top>span{display:none}.top-tools{gap:8px}.top-profile{padding-left:8px}.search-top{min-width:35px;justify-content:center}.nav a{padding-left:0;padding-right:0}.metric strong{font-size:21px}}
