/* Routeweaver-inspired visual language for the connected logistics prototype. */
:root {
  color-scheme: dark;
  --burgundy: #70dec6;
  --burgundy-dark: #a7e9da;
  --burgundy-light: #153b40;
  --ink: #e8f2ef;
  --muted: #a8bbc0;
  --line: #31515d;
  --soft: #102631;
  --green: #95e2c9;
  --amber: #ffce72;
  --red: #ffc1b5;
  --canvas: #07131b;
  --surface: #0e242e;
  --raised: #14303b;
  --text: #e8f2ef;
}

html { background: #07131b; }
body { background: var(--canvas); color: var(--text); }
::selection { background: #367987; color: #fff; }

.prototype-bar {
  background: #061720;
  border-bottom: 1px solid #294651;
  color: var(--text);
  min-height: 56px;
  height: auto;
  padding: 7px 22px;
}
.prototype-name { color: #a8c1c7; font-size: 11px; letter-spacing: .15em; }
.prototype-mark,
.brand-icon {
  border: 1px solid #477883;
  background: #163944;
  color: #b1dedd;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  border-radius: 2px;
}
.portal-switcher {
  align-self: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid #2c4b56;
  border-radius: 4px;
  background: #0b222d;
}
.portal-button {
  border: 0;
  border-radius: 2px;
  color: #a7bac1;
  padding: 8px 15px;
  font-size: 13px;
}
.portal-button:hover { background: #193a45; color: #e8f4f2; }
.portal-button.active {
  border: 0;
  background: #24515d;
  color: #f4fbf9;
  box-shadow: inset 0 0 0 1px #507d86;
}
.reset-button {
  color: #b5c7cb;
  border-color: #42616b;
  background: transparent;
  font-size: 12px;
}
.reset-button:hover { background: #173844; color: #fff; }

.app-shell { min-height: calc(100vh - 56px); }
.sidebar {
  flex-basis: 232px;
  background: linear-gradient(180deg,#081824,#07141b 58%,#0b1c23);
  border-color: #294651;
  height: calc(100vh - 56px);
}
.brand { height: 76px; border-color: #294651; }
.brand strong { color: #f0f8f6; letter-spacing: -.045em; }
.brand small { color: #83a8af; letter-spacing: .16em; }
.account-card {
  background: #102b36;
  border-color: #31525c;
  border-radius: 4px;
}
.account-icon { background: #1e4652; color: #aad7d6; }
.account-card strong { color: #e7f2f1; font-size: 13px; }
.account-card small { color: #93abb3; font-size: 12px; }
.nav-label { color: #7ea1aa; font-size: 11px; }
.side-nav { gap: 5px; }
.nav-item {
  color: #aec1c6;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 600;
}
.nav-item:hover { background: #15323e; color: #f1f8f7; }
.nav-item.active {
  background: #15313b;
  border-color: #376575;
  color: #eaf9f6;
  box-shadow: inset 3px 0 #70dec6;
}
.nav-icon { color: #91c2c1; }
.nav-count { background: #275663; color: #eaf6f3; }
.sidebar-foot { color: #89a5ae; border-color: #294651; font-size: 12px; }
.live-dot { background: #75c6b1; }

.main { background: radial-gradient(circle at 52% 20%,#102834 0,#091923 40%,#07131b 80%); }
.topbar {
  height: 68px;
  background: transparent;
  border-color: #2c4b56;
}
.breadcrumbs { color: #93aab2; font-size: 13px; }
.breadcrumbs strong { color: #e3f0ef; }
.top-actions { color: #a4b8be; font-size: 13px; }
.avatar { background: #204652; color: #d0ece8; border: 1px solid #47717a; }
.main-inner { padding-top: 30px; }
.eyebrow { color: #a2cacc; font-size: 11px; letter-spacing: .15em; }
.page-head h1 { color: #f3f8f7; }
.page-head p { color: #acc0c5; font-size: 14px; line-height: 1.5; }

.card,
.metric,
.project,
.load-row {
  background: var(--surface);
  border-color: #31515d;
  border-radius: 4px;
  box-shadow: 0 1px 0 rgba(255,255,255,.025);
}
.card-head { border-color: #31515d; background: #14303b; }
.card-head h2,
.card-head h3,
.section-title,
.detail-header h2 { color: #edf6f4; }
.card-head p { color: #a3b9c0; font-size: 13px; }
.card-body { color: #c9d9dc; }
.load-detail .card-body[style] { color: #c9d9dc !important; font-size: 13px !important; }
.metric-row { gap: 0; border: 1px solid #315360; background: #102a35; }
.metric {
  min-height: 105px;
  border: 0;
  border-right: 1px solid #315360;
  border-radius: 0;
  background: transparent;
}
.metric:last-child { border-right: 0; }
.metric-top { color: #abc0c5; font-size: 12px; }
.metric-icon {
  background: #1b4551;
  color: #a5d8d4;
  border: 1px solid #3b6971;
}
.metric strong { color: #f2f8f6; }
.metric small { color: #9fb6bd; font-size: 12px; }
.metric small.good { color: #9ddbc6; }

.btn {
  background: #173642;
  color: #e2f0ef;
  border-color: #42636e;
  border-radius: 3px;
  font-size: 13px;
}
.btn:hover { background: #24505b; border-color: #74a5ac; color: #fff; }
.btn.primary {
  background: #2c6570;
  border-color: #71a9ad;
  color: #f5fcfa;
}
.btn.primary:hover { background: #377782; border-color: #a4d1d1; }
.btn.soft { background: #1c4652; border-color: #4c8188; color: #cae9e5; }
.btn.soft:hover { background: #255967; }
.btn:disabled { opacity: .48; }
.text-link { color: #a6d7d6; font-size: 13px; }
.text-link:hover { color: #d4f1ed; }
.chip {
  background: #12313d;
  color: #c4d5d8;
  border-color: #3d5c68;
  font-size: 13px;
}
.chip:hover { background: #1a414d; }
.chip.active { background: #22505b; border-color: #74a6ab; color: #f0faf7; }
.pill-tab { color: #acc0c5; font-size: 13px; }
.pill-tab.active { color: #b6e1df; border-bottom-color: #8bc8c6; }
.tabs { border-color: #34545e; }

.field label { color: #a9c1c6; font-size: 12px; }
.field input,
.field select,
.field textarea,
.search {
  background: #0b222d;
  border-color: #45616c;
  color: #eef7f4;
  font-size: 14px;
}
.field input::placeholder,
.field textarea::placeholder,
.search::placeholder { color: #91a9b1; opacity: 1; }
.field .help,
.quote-note { color: #a9bfc5; font-size: 12px; }
.estimate { color: #d0e1e2; }
.estimate strong { color: #c4e8e4; }
.estimate small { color: #a6bac1; font-size: 12px; }
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #aedbd7;
  outline-offset: 2px;
}

.data-table th {
  background: #0d2732;
  color: #a9c1c6;
  border-color: #365560;
  font-size: 12px;
}
.data-table td { color: #d5e3e4; border-color: #294651; font-size: 13px; }
.data-table .strong { color: #f0f8f6; }
.data-table .muted { color: #9eb3b9; font-size: 12px; }
.data-table tbody tr:hover { background: #183943; }
.status { background: #1a313d; color: #d4e6e7; border: 1px solid #506874; border-radius: 3px; font-size: 12px; }
.status.green { background: #163b38; color: #95e2c9; border-color: #54877a; }
.status.amber { background: #3c3423; color: #ffe09b; border-color: #88764b; }
.status.red { background: #482d30; color: #ffc1b5; border-color: #a4696b; }
.status.burgundy { background: #1b4149; color: #bce6e2; border-color: #54888a; }
.activity-item,
.divider,
.doc-row,
.parcel-row { border-color: #2b4c58; }
.activity-item strong { color: #dce8e8; font-size: 13px; }
.activity-item small { color: #a3b9c0; font-size: 12px; }
.activity-bullet.green { background: #83d1bb; }
.activity-bullet.amber { background: #e8c073; }
.activity-bullet.burgundy { background: #86c7c7; }
.split-line { color: #c5d6d8; font-size: 13px; }
.split-line strong { color: #edf5f3; }
.split-line.total { border-color: #3d606b; }
.split-line.total strong { color: #c8e7e2; }
.progress { background: #29434c; }
.progress span { background: #82b9bc; }
.progress.green span { background: #8ed1b9; }

.fact { background: #173541; }
.fact small { color: #adc2c6; font-size: 12px; }
.fact strong { color: #f0f6f4; font-size: 13px; }
.detail-header p,
.route-end span { color: #a6bbc1; font-size: 13px; }
.route-end small { color: #abc2c7; font-size: 11px; }
.route-end strong { color: #f0f7f5; }
.route-line { background: linear-gradient(90deg,#8ec9c6,#6d939d); }
.route-line:before { background: #a4ddda; }
.route-line:after { background: #8fadb4; }
.doc-row { color: #d2e0e1; font-size: 13px; }
.doc-row .status { font-size: 11px; }
.flow-step { background: #102c37; border-color: #3a5963; }
.flow-step:last-child { border-color: #3a5963; }
.flow-step small { color: #a8bfc4; font-size: 11px; }
.flow-step strong { color: #d5e5e4; font-size: 12px; }
.flow-step.done { background: #173e3c; border-color: #497c72; }
.flow-step.done strong { color: #b5e4d0; }
.flow-step.active { background: #244c58; border-color: #74aeb1; }
.flow-step.active strong { color: #e6f8f3; }
.callout {
  background: #18353e;
  color: #c5d9d9;
  border-left-color: #c7cfaa;
  font-size: 13px;
}
.callout strong { color: #e7eac9; }
.load-row:hover { border-color: #6a9da5; background: #193c47; }
.load-row strong { color: #eef7f5; font-size: 13px; }
.load-row small { color: #a9bfc4; font-size: 12px; }
.load-row .price { color: #e9f5f1; }
.empty { color: #a8bdc2; font-size: 13px; }
.empty strong { color: #ecf5f3; }
.empty-icon { color: #91aeb7; }
.project summary strong { color: #edf5f4; font-size: 13px; }
.project summary small,
.parcel-row small { color: #a6bac0; font-size: 12px; }
.parcel-row { color: #dce8e7; font-size: 13px; }
.modal-shade { background: rgba(0,10,15,.74); }
.drawer { background: #0e2833; color: #e8f3f1; }
.close { color: #c4d8d9; }
.close:hover { color: #fff; }
.toast { background: #254c56; color: #f2faf8; border: 1px solid #70a0a5; font-size: 13px; }

@media (max-width: 1100px) {
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid #315360; }
}

@media (max-width: 780px) {
  .prototype-bar { padding: 9px 12px; gap: 9px; }
  .portal-switcher { order: 2; width: 100%; justify-content: stretch; }
  .portal-button { flex: 1; white-space: normal; line-height: 1.2; min-height: 40px; padding: 7px 6px; }
  .sidebar { height: auto; border-color: #294651; }
  .brand { height: 55px; }
  .side-nav { background: #0a222d; padding: 7px 10px; }
  .nav-item { font-size: 12px; }
  .topbar { height: 48px; }
  .main-inner { padding-top: 20px; }
}

@media (max-width: 530px) {
  .metric { padding: 13px; }
  .metric strong { font-size: 22px; }
  .field input,
  .field select,
  .field textarea { min-height: 42px; }
  .data-table tbody tr { border-color: #365560; }
  .data-table td { font-size: 13px; }
  .project summary { flex-wrap: wrap; }
  .parcel-row { flex-wrap: wrap; }
  .flow-step { padding: 8px 6px; }
  .flow-step strong { font-size: 11px; }
  .flow-step small { font-size: 10px; }
}

/* Shared customer account: freight, vendor parcels, and installation readiness. */
.rollout-list { padding: 0 19px; }
.rollout-row {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  text-align: left;
}
.rollout-row:last-child { border-bottom: 0; }
.rollout-row:hover { background: #14303b; }
.rollout-row > span:first-child { min-width: 0; }
.rollout-row strong { display: block; font: 700 14px Manrope, sans-serif; }
.rollout-row small { display: block; color: var(--muted); font-size: 12px; line-height: 1.5; margin-top: 4px; }
.rollout-count { display: block; color: #b6cecf; font-size: 12px; margin-top: 6px; line-height: 1.5; }
.rollout-state { display: flex; flex-direction: column; align-items: flex-end; gap: 9px; flex-shrink: 0; }
.readiness-number { margin-bottom: 14px; }
.readiness-number > strong { display: block; font: 800 34px Manrope, sans-serif; color: #eaf7f3; }
.readiness-number strong small { color: #a4bcc0; font-size: 20px; font-weight: 600; }
.readiness-number > span { display: block; margin-top: 5px; font-size: 13px; color: var(--muted); }
.rollout-project { margin-bottom: 0; }
.rollout-project summary { background: #14303b; padding: 18px; }
.rollout-project summary > .store-heading { flex: 1; min-width: 0; }
.rollout-project summary strong { font-size: 15px; }
.rollout-project summary small { line-height: 1.5; }
.expand-hint { color: #a5c4c8; font-size: 23px; transition: transform .15s; }
.rollout-project[open] .expand-hint { transform: rotate(180deg); }
.rollout-project .project-inner { padding: 18px; }
.store-plan { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.store-plan small { display: block; font-size: 11px; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .05em; }
.store-plan strong { font-size: 13px; line-height: 1.5; display: block; }
.readiness-explanation { color: #c8dbdc; font-size: 13px; line-height: 1.6; margin: 12px 0 18px; }
.parcel-table { min-width: 0; table-layout: fixed; }
.parcel-table th { font-size: 11px; letter-spacing: .03em; padding: 12px 8px; white-space: normal; }
.parcel-table td { white-space: normal; padding: 13px 8px; vertical-align: top; line-height: 1.5; overflow-wrap: anywhere; }
.parcel-table th:nth-child(1) { width: 23%; }
.parcel-table th:nth-child(2) { width: 16%; }
.parcel-table th:nth-child(3), .parcel-table th:nth-child(4) { width: 12%; }
.parcel-table th:nth-child(5) { width: 17%; }
.parcel-table th:nth-child(6) { width: 20%; }
.parcel-table .status { white-space: normal; line-height: 1.3; }
.parcel-table .status::before { flex-shrink: 0; }
.parcel-table .muted { font-size: 11px; }
.parcel-note { display: block; color: #c4bfae; font-size: 11px; line-height: 1.5; margin-top: 8px; }
.installation-handoff { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0 4px; border-top: 1px solid var(--line); }
.installation-handoff strong { font-size: 14px; }
.installation-handoff p { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 6px 0 0; }
.installation-handoff .btn { flex-shrink: 0; }
.notification-record { background: #163b38; border: 1px solid #477c70; padding: 15px; margin-top: 18px; border-radius: 3px; }
.notification-record strong, .notification-record small { display: block; font-size: 12px; }
.notification-record small { color: #a8c9c0; margin-top: 6px; }
.notification-record p { font-size: 13px; line-height: 1.6; margin-bottom: 0; overflow-wrap: anywhere; }
.readiness-gate span { color: #aae0d8; font: 700 13px Manrope, sans-serif; }
.readiness-gate p { font-size: 13px; line-height: 1.6; color: var(--muted); margin: 6px 0 20px; }
.readiness-gate p:last-child { margin-bottom: 0; }
.activity-bullet.red { background: #fb7973; }
.toast { max-width: calc(100vw - 32px); }
.split-line > strong { text-align: right; }
@media (max-width: 1100px) {
  .store-plan { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 780px) {
  .rollout-state { align-items: flex-start; }
  .rollout-row { align-items: flex-start; flex-wrap: wrap; }
  .rollout-state { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; }
  .store-plan { grid-template-columns: 1fr 1fr; }
  .store-plan > div:last-child { grid-column: 1 / -1; }
  .parcel-table thead { display: none; }
  .parcel-table tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
  .parcel-table td { display: block; padding: 0; border: 0; white-space: normal; }
  .parcel-table td::before { content: attr(data-label); display: block; color: #9ab6bd; font-size: 10px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 5px; }
  .parcel-table td:first-child { grid-column: 1 / -1; }
  .parcel-table td:last-child { text-align: left; }
  .installation-handoff { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 530px) {
  .rollout-list { padding: 0 15px; }
  .rollout-project summary { align-items: flex-start; gap: 10px; }
  .rollout-project summary > .store-heading { flex-basis: 100%; }
  .rollout-project .project-inner { padding: 15px; }
  .store-plan { grid-template-columns: 1fr; }
  .store-plan > div:last-child { grid-column: auto; }
  .notification-record { padding: 12px; }
}

/* Full shipper setup: network, recurring lanes, order requirements, and records. */
.sidebar { overflow-y: auto; }
.sidebar > * { flex-shrink: 0; }
.network-strip { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1px; margin: 0 0 24px; border: 1px solid var(--line); background: var(--line); }
.network-strip button { display: flex; align-items: center; gap: 12px; text-align: left; border: 0; padding: 17px; color: var(--text); background: #14303b; min-width: 0; }
.network-strip button:hover { background: #1b414c; }
.network-strip strong { color: var(--burgundy); font: 700 22px Manrope,sans-serif; }
.network-strip span { font-size: 12px; }
.network-strip span:last-child { margin-left: auto; color: #93c8c5; }
.route-shortlist .split-line { gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.route-shortlist .split-line:first-child { padding-top: 0; }
.route-shortlist .split-line:last-child { border-bottom: 0; padding-bottom: 0; }
.route-shortlist small { display: block; margin-top: 7px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.route-shortlist .btn { flex-shrink: 0; }
.sample-note { color: #94aeb7; font-size: 12px; line-height: 1.6; margin-top: 20px; }
/* Parcel order import and tracking use the shared Routeweaver workspace. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.parcel-search { margin-bottom: 22px; }
.parcel-search .card-body { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.parcel-search input { background: #0d242e; color: var(--text); border: 1px solid #3c5b66; border-radius: 3px; padding: 11px; min-height: 42px; width: 100%; }
.parcel-search input::placeholder { color: #8fa9b2; }
.installation-plan-bar { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 16px; }
.installation-plan-bar .store-plan { flex: 1; min-width: 0; margin-bottom: 0; }
.installation-plan-bar .btn { flex-shrink: 0; }
.parcel-logistics-table,.import-table { min-width: 0; table-layout: fixed; }
.parcel-logistics-table th,.import-table th { padding: 13px 9px; font-size: 11px; letter-spacing: .03em; white-space: normal; }
.parcel-logistics-table td,.import-table td { padding: 16px 9px; line-height: 1.6; white-space: normal; vertical-align: top; overflow-wrap: anywhere; }
.parcel-logistics-table th:nth-child(1) { width: 23%; }
.parcel-logistics-table th:nth-child(2) { width: 25%; }
.parcel-logistics-table th:nth-child(3) { width: 15%; }
.parcel-logistics-table th:nth-child(4) { width: 19%; }
.parcel-logistics-table th:nth-child(5) { width: 18%; }
.parcel-logistics-table .status,.import-table .status { margin: 7px 0; white-space: normal; line-height: 1.4; }
.parcel-logistics-table .status::before,.import-table .status::before { flex-shrink: 0; }
.parcel-logistics-table .text-link,.import-table .text-link { display: block; margin-top: 12px; line-height: 1.5; text-align: left; }
.parcel-logistics-table .muted,.import-table .muted { line-height: 1.6; font-size: 12px; }
.vendor-order { display: block; margin-top: 8px; font-size: 12px; color: #bddbd6; }
.parcel-timestamp,.connection-indicator { display: block; margin-top: 7px; font-size: 11px; line-height: 1.5; color: #8fb0b8; }
.connection-indicator { color: #a1d2c7; }
.proof-line { display: block; font-size: 12px; margin: 5px 0; }
.inline-editor { margin: 22px 0; scroll-margin-top: 20px; border-color: #77b5aa; }
.prior-notification { background: #122d35; border-color: #42606a; }
.import-intro p { font-size: 13px; line-height: 1.6; margin: 0 0 8px; color: #cadbdc; }
.import-intro small { font-size: 12px; line-height: 1.6; color: var(--muted); }
.import-metrics { margin-top: 24px; }
.import-table th:nth-child(1) { width: 13%; }
.import-table th:nth-child(2) { width: 27%; }
.import-table th:nth-child(3) { width: 22%; }
.import-table th:nth-child(4) { width: 18%; }
.import-table th:nth-child(5) { width: 20%; }
.group-order-input { background: #0b242e; color: #e3f0ee; border: 1px solid #476974; width: 100%; min-width: 0; padding: 10px 8px; border-radius: 3px; font-size: 12px; }
.group-order-input:disabled { opacity: .5; }
.import-row-errors { color: #f4aeaa; display: block; line-height: 1.6; font-size: 12px; margin-top: 7px; }
.import-error-summary { padding: 16px 19px; color: #f4aeaa; background: #38282b; font-size: 13px; line-height: 1.6; }
.import-log { display: flex; flex-direction: column; gap: 7px; padding: 15px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.import-log:first-child { padding-top: 0; }
.import-log:last-child { border: 0; padding-bottom: 0; }
.import-log strong { font-size: 14px; }
.import-log span,.import-log small { font-size: 12px; color: var(--muted); }
.connection-demo-note { margin-bottom: 24px; }
.connection-card .card-head { flex-wrap: wrap; }
.connection-card h2 { margin-top: 6px; overflow-wrap: anywhere; }
.connection-card .split-line { gap: 15px; align-items: flex-start; }
.connection-card .split-line > * { min-width: 0; overflow-wrap: anywhere; }
.connection-card .split-line > strong { max-width: 60%; }
.missing-carrier-list { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border: 1px solid #446571; padding: 17px; margin: 0 0 24px; }
.missing-carrier-list strong { font-size: 13px; }
.missing-carrier-list > span { font-size: 12px; color: var(--muted); width: 100%; }
.remove-link { color: #f4aeaa; }
@media (max-width: 1100px) {
  .installation-plan-bar { flex-direction: column; }
  .installation-plan-bar .store-plan { width: 100%; }
}
@media (max-width: 780px) {
  .parcel-search .card-body { grid-template-columns: 1fr; gap: 16px; }
  .parcel-logistics-table thead,.import-table thead { display: none; }
  .parcel-logistics-table tbody tr,.import-table tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: 15px 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
  .import-table tbody tr { margin: 0 19px; }
  .parcel-logistics-table td,.import-table td { display: block; padding: 0; border: 0; }
  .parcel-logistics-table td::before,.import-table td::before { content: attr(data-label); display: block; margin-bottom: 6px; color: #9ab6bd; font-size: 10px; text-transform: uppercase; letter-spacing: .05em; }
  .parcel-logistics-table td:first-child,.import-table td:nth-child(2) { grid-column: 1 / -1; }
  .parcel-logistics-table td:last-child,.import-table td:last-child { text-align: left; }
  .connection-grid { grid-template-columns: 1fr; }
}
@media (max-width: 530px) {
  .parcel-logistics-table tbody tr,.import-table tbody tr { grid-template-columns: 1fr; gap: 18px; }
  .parcel-project .store-heading > strong { overflow-wrap: anywhere; }
  .connection-card .split-line { flex-wrap: wrap; }
  .connection-card .split-line > strong { max-width: 100%; text-align: left; }
}
.order-kind-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-bottom: 25px; }
.order-kind { text-align: left; background: #102b36; color: var(--text); border: 1px solid #365762; border-radius: 3px; padding: 15px; min-width: 0; }
.order-kind:hover { background: #1b424b; border-color: #76abae; }
.order-kind.active { background: #214b53; border-color: #91c7c0; box-shadow: inset 3px 0 #70dec6; }
.order-kind strong,.order-kind small { display: block; }
.order-kind strong { font-size: 13px; }
.order-kind small { margin-top: 8px; color: #b0c7c9; font-size: 12px; }
.order-section { border: 0; border-top: 1px solid #3c5d67; padding: 22px 0 28px; margin: 0; min-width: 0; }
.order-section legend { color: #d6eeeb; font: 700 15px Manrope,sans-serif; padding: 0 14px 0 0; }
.section-help { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 0 0 18px; max-width: 760px; }
.is-hidden { display: none; }
.field input[readonly] { background: #102832; color: #b8cfce; }
.field .help { line-height: 1.5; margin-top: 5px; }
.form-error { color: var(--red); font-size: 13px; line-height: 1.5; }
.form-error:empty { display: none; }
.estimate .btn { margin-top: 10px; }
.route-prefill { display: flex; gap: 12px; align-items: flex-start; color: #c4dada; background: #173d42; padding: 15px; margin-bottom: 26px; font-size: 13px; line-height: 1.5; }
.route-prefill .status { flex-shrink: 0; }
.route-grid,.facility-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.lane-card,.facility-card { min-width: 0; }
.lane-card .card-head { align-items: flex-start; }
.lane-card .card-head h2,.facility-card .card-head h2 { margin-top: 8px; line-height: 1.5; }
.lane-card .status { flex-shrink: 0; }
.lane-stops { display: flex; flex-direction: column; gap: 13px; margin-bottom: 20px; }
.lane-stops small,.lane-stops strong,.lane-stops div>span { display: block; }
.lane-stops small { color: #8fb9bc; font-size: 11px; }
.lane-stops strong { font-size: 14px; margin: 5px 0; }
.lane-stops div>span { color: var(--muted); font-size: 12px; }
.lane-stops>span { color: #81baba; font-size: 18px; line-height: 1; }
.compact-facts { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.fact { min-width: 0; overflow-wrap: anywhere; }
.compact-facts .fact { padding: 13px; }
.lane-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 22px; }
.editor-card,.account-ledger { margin-top: 24px; scroll-margin-top: 20px; }
.facility-address { color: #d4e4e3; line-height: 1.6; font-size: 14px; margin: 0 0 18px; }
.facility-card .split-line { gap: 20px; align-items: flex-start; }
.facility-card strong { overflow-wrap: anywhere; }
.account-table td { white-space: normal; vertical-align: top; }
.account-table .text-link { display: block; text-align: left; margin-bottom: 8px; }
.account-table .muted { line-height: 1.5; overflow-wrap: anywhere; }
.document-controls { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.document-preview { margin-top: 24px; scroll-margin-top: 20px; }
.document-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.document-sheet { background: #eff5f1; color: #14303b; border: 1px solid #839d98; padding: 28px; border-radius: 2px; }
.document-masthead { display: flex; flex-direction: column; border-bottom: 2px solid #1b4e56; padding-bottom: 22px; }
.document-masthead>span { font-size: 11px; letter-spacing: .14em; color: #35616a; font-weight: 700; }
.document-masthead>strong { font: 700 24px Manrope,sans-serif; color: #12343f; margin: 12px 0 8px; }
.document-masthead>small { color: #476963; font-size: 12px; }
.document-section { margin-top: 22px; }
.document-section h3 { color: #174851; font-size: 14px; margin: 0 0 12px; padding: 10px; background: #dce9e4; }
.document-line { display: grid; grid-template-columns: minmax(120px,1fr) 2.5fr; gap: 18px; font-size: 12px; line-height: 1.6; padding: 7px 2px; border-bottom: 1px solid #cfdfd8; }
.document-line>span { color: #416359; }
.document-line>strong { color: #183e43; font-weight: 500; overflow-wrap: anywhere; }
.document-footnote { color: #4d645e; font-size: 11px; line-height: 1.6; margin-top: 24px; }
.attached-image { display: block; max-width: 100%; max-height: 600px; object-fit: contain; margin: 0 auto 20px; }
.shipment-addresses { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-bottom: 22px; }
.shipment-addresses small,.shipment-addresses strong,.shipment-addresses span { display: block; line-height: 1.6; }
.shipment-addresses small { font-size: 12px; color: #97c3c5; }
.shipment-addresses strong { font-size: 13px; color: #dcecea; margin: 7px 0; }
.shipment-addresses span { font-size: 12px; color: var(--muted); }
.temperature-band { display: flex; gap: 15px; align-items: center; background: #164552; border: 1px solid #50868f; padding: 15px; margin-top: 18px; }
.temperature-band strong { font: 700 22px Manrope,sans-serif; color: #a0e3e1; }
.temperature-band span { font-size: 12px; color: #bfdedc; }
.requirement-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.requirement-tags .status { white-space: normal; line-height: 1.4; }
.qualification { border: 1px solid #56887c; background: #153c38; padding: 15px; margin-top: 18px; }
.qualification.needs-review { border-color: #8c7955; background: #3c3728; }
.qualification>strong { font-size: 13px; }
.qualification>p { font-size: 12px; line-height: 1.6; color: #c5d7d0; }
.carrier-match { padding: 0 0 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.carrier-match .split-line { align-items: flex-start; gap: 16px; }
.carrier-match small { display: block; font-size: 12px; color: var(--muted); line-height: 1.5; margin-top: 7px; }
.carrier-match>.status { margin-top: 12px; }
.doc-row>span:first-child { flex: 1; }
.metric>strong { overflow-wrap: anywhere; }
@media (max-width: 1000px) {
  .network-strip { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .route-grid,.facility-grid { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
  .sidebar { overflow-y: visible; }
  .sidebar > * { flex-shrink: initial; }
  .side-nav { overflow-y: hidden; }
  .order-kind-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .document-controls { grid-template-columns: 1fr; }
  .shipment-addresses { grid-template-columns: 1fr; }
  .account-table { min-width: 0; }
  .account-table thead { display: none; }
  .account-table tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; padding: 16px; border-bottom: 1px solid var(--line); }
  .account-table td { display: block; padding: 0; border: 0; }
  .account-table td::before { content: attr(data-label); display: block; font-size: 10px; color: #9ab6bd; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
  .account-table td:first-child,.account-table td[colspan] { grid-column: 1/-1; }
  .account-table td:last-child { text-align: left; }
}
@media (max-width: 530px) {
  .network-strip button { padding: 13px; gap: 8px; }
  .order-kind { padding: 13px 10px; }
  .order-section { padding-top: 16px; }
  .route-shortlist .split-line { flex-direction: column; align-items: flex-start; }
  .route-prefill,.temperature-band { flex-direction: column; }
  .lane-card .card-head,.document-preview .card-head { flex-wrap: wrap; gap: 12px; }
  .document-sheet { padding: 15px; }
  .document-line { grid-template-columns: 1fr; gap: 2px; }
  .document-actions .btn { width: 100%; }
  .compact-facts { grid-template-columns: 1fr 1fr; }
  .doc-row { flex-wrap: wrap; }
}
@media print {
  :root { color-scheme: light; }
  body { background: #fff; }
  body * { visibility: hidden; }
  #print-record,#print-record * { visibility: visible; }
  #print-record { position: absolute; left: 0; top: 0; width: 100%; border: 0; padding: 12mm; background: #fff; }
  .document-section { break-inside: avoid; }
  .document-line { grid-template-columns: 1fr 2.5fr; }
  .document-masthead { break-after: avoid; }
}
