.compact-linehaul [hidden],.compact-linehaul [data-compact-hidden]{display:none!important}
.compact-linehaul .dossier-body{padding:16px 22px}
body #order-panel.compact-linehaul .dossier-head{padding:8px 20px 0}
body #order-panel.compact-linehaul .dossier-top{display:grid;grid-template-columns:auto minmax(160px,1fr) auto;gap:6px 12px;padding:0;align-items:center}
body #order-panel.compact-linehaul .dossier-top .back-button{grid-column:1;grid-row:1}
body #order-panel.compact-linehaul .dossier-identification{grid-column:2;grid-row:1;margin:0}
body #order-panel.compact-linehaul .dossier-identification h2{font-size:var(--fs-dossier-heading,22px);margin:0}
body #order-panel.compact-linehaul .dossier-identification h2>span{display:inline;margin-left:12px;font-size:var(--fs-value,15px);font-weight:500;color:var(--text-muted,#596577)}
body #order-panel.compact-linehaul .dossier-identification h2>span:first-child{margin-left:0;font-size:var(--fs-dossier,20px);font-weight:600;color:var(--text-ink,var(--ink,#202b39));letter-spacing:-.2px}
body #order-panel.compact-linehaul .dossier-identification>:not(h2){display:none}
body #order-panel.compact-linehaul .dossier-top>.icon-button{grid-column:3;grid-row:1}
body #order-panel.compact-linehaul .dossier-top>.about-view{grid-column:3;grid-row:2;padding:5px 8px;min-height:30px;font-size:var(--fs-note,13px)}
body #order-panel.compact-linehaul .dossier-meta{grid-row:2;grid-column:1/3;gap:6px;align-items:center}
body #order-panel.compact-linehaul .header-order-type:has([aria-label="Order interface"]){display:none}
body #order-panel.compact-linehaul .dossier-meta .badge{padding:4px 7px;font-size:var(--fs-badge,12px)}
.sps-header-status{display:inline-flex;align-items:center;gap:6px;min-height:32px;margin:0;padding:4px 10px;border-radius:999px;border:1px solid;font:inherit;font-size:12px;font-weight:700;line-height:1.3;cursor:pointer;text-align:left}
.sps-header-status .sps-header-icon{font-size:13px;line-height:1}
.sps-header-status[data-sps-tone=error]{background:#fef2f2;color:#7f1d1d;border-color:#b91c1c}
.sps-header-status[data-sps-tone=warning]{background:#fffbeb;color:#78350f;border-color:#b45309}
.sps-header-status[data-sps-tone=ok]{background:#f0fdf4;color:#14532d;border-color:#15803d}
.sps-header-status[data-sps-tone=neutral]{background:#f3f4f6;color:#1f2937;border-color:#6b7280}
.sps-dialog-state{display:flex;align-items:center;gap:8px;margin:0 0 12px;padding:8px 10px;border-radius:8px;font-weight:700}
.sps-dialog-state[data-sps-tone=error]{background:#fef2f2;color:#7f1d1d}
.sps-dialog-state[data-sps-tone=warning]{background:#fffbeb;color:#78350f}
.sps-dialog-state[data-sps-tone=ok]{background:#f0fdf4;color:#14532d}
.sps-dialog-state[data-sps-tone=neutral]{background:#f3f4f6;color:#1f2937}
.sps-status-messages{margin:0 0 12px;padding-left:1.2em}
.sps-status-messages li{margin:0 0 6px}
.sps-status-facts{display:grid;gap:8px;margin:0}
.sps-status-facts div{display:grid;gap:2px}
.sps-status-facts dt{font-size:12px;color:#374151}
.sps-status-facts dd{margin:0;font-weight:650}
@media(max-width:700px){body #order-panel.compact-linehaul .sps-header-status{flex:1 1 100%;white-space:normal}}
body #order-panel.compact-linehaul .dossier-body{padding:12px 18px}
body #order-panel.compact-linehaul .dossier-foot{padding:6px 18px;gap:5px}
body #order-panel.compact-linehaul .execution-action-bar{flex:1 1 auto;border:0;padding:0}
body #order-panel.compact-linehaul .dossier-foot .save-actions{width:auto;min-height:0}
body #order-panel.compact-linehaul .dossier-foot .save-note{font-size:var(--fs-note,13px);color:var(--text-muted,#596577)}
body #order-panel.compact-linehaul .order-information>.block-heading{margin-bottom:8px;padding:0;border:0;min-height:0}
body #order-panel.compact-linehaul .order-information>.block-heading{display:none}
body #order-panel.compact-linehaul .order-information>.block-body{padding:0}
body #order-panel.compact-linehaul .order-information .party-selector{min-height:36px;padding:7px 10px}
body #order-panel.compact-linehaul .order-information .party-selector small{display:none}
body #order-panel.compact-linehaul .order-information .reference-section{margin:8px 0 0;padding:8px 0 0}
body #order-panel.compact-linehaul .order-information .reference-section>.subsection-heading{display:none}
body #order-panel.compact-linehaul .order-information .compact-disclosure{margin:4px 0 0;padding:3px 0}
body #order-panel.compact-linehaul .order-information #overview-form>.four-columns{grid-template-columns:minmax(0,1.2fr) minmax(0,1.2fr) minmax(140px,.8fr)}
body #order-panel.compact-linehaul .order-details-type{min-width:0}
body #order-panel.compact-linehaul .order-details-type select{width:100%;min-height:36px}
body #order-panel.compact-linehaul .stop-planned{grid-template-columns:1fr 1fr!important;gap:8px!important}
.compact-linehaul .form-block,.compact-linehaul .entry-booking{margin-bottom:12px;padding:12px 14px}
.compact-linehaul .form-block h3,.compact-linehaul .entry-booking h3{font-size:var(--fs-section,18px);margin:0 0 10px}
.compact-linehaul .block-description,.compact-linehaul .subsection-heading>span,.compact-linehaul .goods-footnote{display:none}
.compact-linehaul .order-information .form-grid{gap:10px}
.compact-linehaul .order-information .reference-section{margin-top:10px;padding-top:8px}
.compact-linehaul .order-information .reference-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.compact-linehaul .compact-disclosure{padding:8px 0;border:0;border-top:1px solid var(--line,#dce3ed);margin:6px 0}
.compact-linehaul .compact-disclosure>summary{font-size:var(--fs-note,13px);font-weight:600;cursor:pointer;padding:4px 0}
.compact-linehaul .compact-disclosure[open]>summary{margin-bottom:10px}
.compact-linehaul .entry-booking{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.compact-linehaul .entry-booking .clean-section-heading{margin:0;flex:1}
.compact-linehaul .entry-booking .entry-booking-fields:empty{display:none}
.compact-linehaul .compact-sps{min-width:230px;margin:0;border:0}
.compact-linehaul .compact-sps-fields,.compact-linehaul .compact-booking-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.compact-linehaul .compact-booking-fields{margin-bottom:12px;max-width:440px}
.compact-linehaul .stop-card-content{padding:12px 14px}
.compact-linehaul .stop-card-top{padding:9px 14px;gap:8px}
.compact-linehaul .clean-stop-location{display:grid;grid-template-columns:150px minmax(0,1fr);gap:10px;align-items:end}
.compact-linehaul .clean-stop-location>details{grid-column:1/-1;margin:0}
.compact-linehaul .loading-card .clean-stop-location{grid-template-columns:1fr}
.compact-linehaul .stop-planned{display:grid;grid-template-columns:150px 100px 100px minmax(140px,1fr);gap:10px;margin-top:10px}
.compact-linehaul .stop-planned>h4{display:none}
.compact-linehaul .entry-goods-main{display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:10px;margin:8px 0}
.compact-linehaul .goods-card{padding:10px;margin:8px 0;border-radius:8px}
.compact-linehaul .workflow-stop-goods{margin-top:12px}
.compact-linehaul[data-compact-section=Actuals] .stop-card-top{padding:14px 16px 12px}
.compact-linehaul[data-compact-section=Actuals] .actual-stop-identity{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:12px;row-gap:6px;min-width:0}
.compact-linehaul[data-compact-section=Actuals] .actual-stop-identity .stop-number{width:auto;min-width:1.9em;height:auto;min-height:1.9em;padding:0 6px;font-size:14px;font-weight:700;color:#1f2937}
.compact-linehaul[data-compact-section=Actuals] .actual-stop-identity .operation-label,
.compact-linehaul[data-compact-section=Actuals] .actual-stop-identity .operation-label.loading,
.compact-linehaul[data-compact-section=Actuals] .actual-stop-identity .operation-label.unloading{font-size:13px;font-weight:700;letter-spacing:.04em;color:#1f2937}
.compact-linehaul[data-compact-section=Actuals] .actual-stop-name{flex:1 0 100%;margin:0;font-size:18px;font-weight:700;line-height:1.35;color:#111827;letter-spacing:-.01em}
.compact-linehaul .actual-loaded-provenance{margin:0 0 8px;font-size:12px;line-height:1.4;color:#5c6b7e}
.compact-linehaul[data-compact-section=Actuals] .workflow-actual .goods-card{margin-top:12px}
.compact-linehaul .actual-unloaded-field{display:grid;gap:4px;margin-top:12px;max-width:100%}
.compact-linehaul .actual-unloaded-field input{max-width:160px}
.compact-linehaul .actual-unloaded-field small{color:#374151;font-size:12px;line-height:1.35}
.compact-linehaul .goods-actual>.form-grid{display:grid;grid-template-columns:140px minmax(0,1fr);gap:10px}
.compact-linehaul .goods-actual>.form-grid>details{grid-column:2}

.compact-linehaul .stop-specific{margin:8px 0}
.compact-linehaul .stop-quick-actions{padding:6px 14px;justify-content:flex-end}
.compact-linehaul .workflow-delivery{padding:10px;display:flex;gap:14px;align-items:end;flex-wrap:wrap}
.compact-linehaul .workflow-delivery>label{width:140px;margin-left:auto}
.compact-linehaul .workflow-pricing #simple-pricing-form{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.compact-linehaul .workflow-pricing .workflow-euro input{font-size:16px}
.compact-linehaul .transport-block .compact-vehicle-fields{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
.compact-linehaul .compact-vehicle-fields textarea{min-height:36px;height:36px}
.compact-linehaul .workflow-actual .actual-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.compact-linehaul[data-compact-section=Actuals] .order-workflow-layout{display:block}
@media(min-width:1100px){.compact-linehaul[data-compact-section=Order] .stops-block .stop-stack{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}.compact-linehaul .stops-block>.block-heading{margin-bottom:8px}.compact-linehaul .stops-block .stop-card{margin:0}.compact-linehaul .stop-planned{grid-template-columns:1fr 1fr}.compact-linehaul .clean-stop-location{grid-template-columns:120px minmax(0,1fr)}}
@media(max-width:700px){.compact-linehaul .dossier-body{padding:10px}.compact-linehaul .clean-stop-location{grid-template-columns:1fr}.compact-linehaul .stop-planned{grid-template-columns:1fr 1fr}.compact-linehaul .entry-goods-main{grid-template-columns:1fr 1fr}.compact-linehaul .compact-sps{width:100%}.compact-linehaul .workflow-actual .actual-grid{grid-template-columns:1fr}.compact-linehaul .goods-actual>.form-grid{grid-template-columns:1fr}.compact-linehaul .goods-actual>.form-grid>details{grid-column:auto}}
@media(max-width:700px){body #order-panel.compact-linehaul .order-information #overview-form>.four-columns{grid-template-columns:1fr 1fr}body #order-panel.compact-linehaul .dossier-identification h2>span{display:block;margin:2px 0}body #order-panel.compact-linehaul .dossier-top .back-button{padding:6px}body #order-panel.compact-linehaul .execution-action-bar{flex-wrap:wrap}body #order-panel.compact-linehaul .execution-action-buttons{gap:5px}body #order-panel.compact-linehaul .dossier-foot .save-note{display:none}}
/* Manifest lockup: three shortening bars and the STMS wordmark on one baseline.
   SHAOKE standard: Saira Expanded Bold in SHAOKE ink #242c48 everywhere the
   lockup appears (sidebar, login card, required password screen, customer
   portal header). The @font-face is declared further down in this file. */
a.brand{display:inline-flex;align-items:center;gap:10px;letter-spacing:0;text-decoration:none;font-weight:560}
a.brand .brand-bars{width:18px;height:18px;flex:none;display:block}
a.brand .brand-bars rect{fill:#242c48}
a.brand .brand-word{font-family:"Saira Expanded",sans-serif!important;font-size:15px!important;font-weight:700!important;font-stretch:125%!important;letter-spacing:.04em!important;line-height:1!important;margin:0!important;position:static!important;top:auto!important;color:#242c48!important}
aside.sidebar a.brand{color:#242c48;height:76px}
.login-card a.brand{height:auto;padding:0;margin:0;gap:12px}
.login-card a.brand .brand-bars{width:26px;height:26px}
.login-card a.brand .brand-word{font-size:28px!important;letter-spacing:.04em!important}
/* Auth screens (sign-in and required password change) share one card: lockup left,
   environment and release badges right, then heading and fields. */
.login-card .login-card-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 12px;margin:0 0 26px}
.login-card .login-card-head a.brand{flex:none}
.login-card .login-card-badges{display:flex;flex-direction:column;align-items:flex-end;gap:4px;margin-left:auto}
.login-card .login-card-badges :is(.prototype-badge,.release-badge){display:inline-flex!important;align-items:center;max-width:none;white-space:nowrap;border:1px solid #c5c9d6;border-radius:4px;padding:3px 7px;line-height:1.3}
.login-card .login-card-badges .prototype-badge{color:#242c48;background:#e8eaf1;font:700 9px/1.3 var(--font-ui,Roboto,"Segoe UI",Arial,sans-serif);letter-spacing:.08em}
.login-card .login-card-badges .release-badge{color:#5d6678;background:#fff;font:600 9px/1.3 ui-monospace,monospace;letter-spacing:0}
.login-card .login-card-head+h2{margin:0 0 6px;color:#242c48}
.password-card>p{color:#5d6678}
.password-card>.primary{width:100%;margin-top:24px}
@media(max-width:420px){.login-card a.brand .brand-word{font-size:24px!important}.login-card a.brand .brand-bars{width:22px;height:22px}}
@media(max-width:750px){.sidebar a.brand .brand-bars{width:22px;height:22px}.mobile-menu-open .sidebar a.brand .brand-word{display:inline!important;font-size:14px!important;letter-spacing:.12em!important}}

.total-pallets-loaded-header{font-weight:700}
.total-pallets-loaded-actuals{margin:12px 0 0;padding:12px 14px;border:1px solid #d5e0ee;border-radius:6px;background:#eef4fb;color:#3f536b;font-size:13px;font-weight:700;line-height:1.45}
.total-pallets-loaded-actuals[data-total-state="partial"],.total-pallets-loaded-actuals[data-total-state="unknown"],.total-pallets-loaded-header[data-total-state="partial"],.total-pallets-loaded-header[data-total-state="unknown"]{background:#fff8eb;border-color:#ead7a8;color:#7a6230}
@media(max-width:700px){.total-pallets-loaded-actuals{font-size:12px;padding:10px 12px}.total-pallets-loaded-header{white-space:normal}}

/* 0013: locked generated Loading reference (double-click to edit) with lock icon and copy button */
.compact-stop-reference input[data-reference-locked][readonly]{background:var(--surface-muted,#f3f4f6);cursor:default}
.compact-stop-reference .compact-copy-reference{margin-left:6px;padding:2px 8px;font-size:.85em;min-height:0;width:auto}
.compact-stop-reference .compact-reference-lock{margin-left:4px;cursor:default}
.compact-stop-reference input[data-reference-locked="unlocked"]{border-color:#d9a400}
/* Sidebar wordmark (bold solid): larger, sturdier STMS in self-hosted Saira
   Expanded Bold (SIL OFL 1.1, a visual match for the official SHAOKE
   lettering, not the original), with tighter tracking and SHAOKE ink
   #242c48. Size and spacing below are scoped to aside.sidebar; the login card
   lockup uses the same face and ink at 26px bars / 28px word (see the
   Manifest lockup rules above). Sidebar width is not modified. The
   wordmark size is fixed and does not follow the Small / Normal / Large
   text-size tokens, so the subtitle stays on one line in the 216px rail. */
@font-face{
  font-family:"Saira Expanded";
  src:url("/vendor/saira-expanded-700.woff2") format("woff2");
  font-weight:700;
  font-style:normal;
  font-stretch:125%;
  font-display:swap;
}
aside.sidebar a.brand{
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  letter-spacing:0!important;
  text-decoration:none;
  height:auto!important;
  padding:20px 18px 6px!important;
  box-sizing:border-box;
}
aside.sidebar a.brand .brand-bars{
  width:26px!important;
  height:26px!important;
  flex:none;
  display:block;
}
aside.sidebar a.brand .brand-word{
  font-family:"Saira Expanded",sans-serif!important;
  font-size:28px!important;
  font-weight:700!important;
  font-stretch:125%!important;
  letter-spacing:.04em!important;
  line-height:1!important;
  overflow:visible!important;
  margin:0!important;
  position:static!important;
  top:auto!important;
}
aside.sidebar .workspace-label{
  margin:2px 18px 16px!important;
  padding:0!important;
  font-size:var(--fs-nav-group,12px)!important;
  font-weight:600!important;
  letter-spacing:.1em!important;
  line-height:1.2!important;
  text-transform:uppercase;
  white-space:nowrap!important;
}
/* SHAOKE ink for every STMS lockup (sidebar, login card, required password
   screen, customer portal). Not gated on data-tms-interface or the sidebar, so
   the auth screens never depend on a sidebar-only selector. */
html:root a.brand .brand-bars rect{
  fill:#242c48!important;
}
html:root a.brand .brand-word{
  color:#242c48!important;
}
html[data-tms-interface="current"] aside.sidebar .workspace-label{
  color:#5d6678!important;
}

/* Collapsed rail: bars only, centered. Width stays the existing 72px rail. */
body.sidebar-collapsed aside.sidebar a.brand{
  justify-content:center!important;
  align-items:center!important;
  padding:22px 0!important;
  min-height:72px;
  height:72px!important;
  gap:0!important;
}
body.sidebar-collapsed aside.sidebar a.brand .brand-word,
body.sidebar-collapsed aside.sidebar .workspace-label{
  display:none!important;
}
body.sidebar-collapsed aside.sidebar a.brand .brand-bars{
  width:24px!important;
  height:24px!important;
}

/* Mobile open drawer: keep the 28px word; do not fall back to 14px. */
@media(max-width:750px){
  aside.sidebar a.brand .brand-bars{width:26px!important;height:26px!important}
  body.mobile-menu-open aside.sidebar a.brand .brand-word{
    display:inline!important;
    font-size:28px!important;
    letter-spacing:.04em!important;
  }
  body.mobile-menu-open aside.sidebar .workspace-label{
    display:block!important;
  }
  body.sidebar-collapsed.mobile-menu-open aside.sidebar a.brand .brand-bars{
    width:24px!important;
    height:24px!important;
  }
}
/* Linehaul (Gani 12-11): pallets and pallet type per destination are shown from SPS, read-only. */
.sps-pallets-field output{display:block;margin-top:4px;padding:7px 9px;border:1px solid var(--line,#dce3ed);border-radius:8px;background:var(--surface-soft,#f5f7fa);font-weight:600;line-height:1.3;overflow-wrap:anywhere}
.clean-order .entry-goods-main:has(> .sps-pallets-field){grid-template-columns:repeat(auto-fit,minmax(110px,1fr))!important}
/* Manual quantities add fields; wrap to the stop card's width, not the viewport. */
.clean-order .entry-goods-main.manual-entry-goods{grid-template-columns:repeat(auto-fit,minmax(min(100%,120px),1fr))!important}
/* Ljubica 24-11 (point 15): loading stops left, unloading stops right. */
@media(min-width:1100px){.compact-linehaul[data-compact-section=Order] .stops-block .stop-stack:has(>.loading-card):has(>.unloading-card){grid-auto-flow:row dense}.compact-linehaul[data-compact-section=Order] .stops-block .stop-stack:has(>.loading-card):has(>.unloading-card)>.loading-card{grid-column:1}.compact-linehaul[data-compact-section=Order] .stops-block .stop-stack:has(>.loading-card):has(>.unloading-card)>.unloading-card{grid-column:2}}
