/* Freight Hub (era-bot.com/freight). Scoped under .fh so it cannot restyle
   another tab, and every class is fh- (D42) so no era-bot style reaches in.
   Shape: every corner 4 px (Digital Brand Guideline 1.1, 2026-10-18), circles stay round;
   controls 40 px, 44 px for the one main field; spacing on the 4 px grid. Tokens: ERALUX Digital Brand Guideline 2026 (Y:\01-DeliveryDashboard\BRAND);
   layout: the approved mockup, docs\design\. */

.fh {
  --ink: #142536; --ink2: #4A5868; --ink3: #5E6976;
  --canvas: #F4F2ED; --line: #E4E0D8; --line2: #C9C4BA; --white: #fff;
  --blue: #142536; --blue-ink: #142536; --blue-wash: #E3E8EF;
  --orange: #FF671F; --orange-ink: #B8410C; --orange-wash: #FFF0E8;
  --sent: #1F7A3A; --sent-wash: #E8F4EC;
  --shadow: 0 1px 2px rgba(20,37,54,.04), 0 8px 24px rgba(20,37,54,.06);
  --mont: Montserrat, "Segoe UI", Arial, sans-serif;
  --body: Calibri, Carlito, "Segoe UI", Arial, sans-serif;
  --mono: "IBM Plex Mono", Consolas, "Courier New", monospace;
  background: var(--canvas); color: var(--ink); font: 15px/1.5 var(--body);
  /* No side padding of its own: era-bot's page (main.wrap) gives the margins, so Freight Hub lines up
     with the header and the other tabs instead of sitting 24 px further in. */
  max-width: 1392px; margin: 0 auto; padding: 0 0 40px; box-sizing: border-box;
}
.fh *, .fh *::before, .fh *::after { box-sizing: border-box; }
.fh button, .fh input, .fh select, .fh textarea { font: inherit; color: inherit; }
.fh :focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.fh .fh-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.fh h1 { font: 700 26px/1.15 var(--mont); letter-spacing: -.015em; margin: 0; }
.fh h2 { font: 700 16px/1.3 var(--mont); margin: 0; letter-spacing: -.005em; }
.fh h3 { font: 600 13px/1.3 var(--mont); margin: 0 0 8px; color: var(--ink2); }
.fh p { margin: 0; }
/* Header (D55): the name, what it is for, and tabs underlined in ink where you are. */
.fh .fh-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px 24px; margin-bottom: 16px; flex-wrap: wrap;
  border-bottom: 1px solid var(--line2); }
.fh .fh-brandline { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding-bottom: 12px; }
.fh .fh-tagline { color: var(--ink2); font-size: 14px; }
.fh .fh-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.fh .fh-tab { height: 44px; padding: 0 14px; border: 0; background: none; cursor: pointer; font: 600 14px var(--mont); color: var(--ink2);
  border-bottom: 3px solid transparent; margin-bottom: -1px; transition: color .15s ease-out, border-color .15s ease-out; }
.fh .fh-tab:hover { color: var(--ink); border-bottom-color: var(--line2); }
.fh .fh-tab[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

.fh .fh-btn { height: 40px; padding: 0 16px; border-radius: 4px; border: 1px solid var(--line2); background: var(--white);
  font: 600 13px var(--mont); display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  white-space: nowrap; text-decoration: none; color: var(--ink); transition: transform .15s ease-out, background-color .15s ease-out; }
.fh .fh-btn:active { transform: translateY(1px); }
.fh .fh-btn.fh-primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.fh .fh-btn.fh-accent { background: var(--blue); border-color: var(--blue); color:#fff; }
.fh .fh-btn.fh-small { height: 36px; padding: 0 12px; font-size: 13px; }
.fh .fh-btn.fh-big { height: 44px; }
/* Working (David, 2026-11-04: "when we press on BOOK, it feels like nothing is happening"):
   a spinner in place of the icon, the button's own working words, no second press. */
.fh .fh-btn[aria-busy="true"] { opacity: .85; cursor: progress; pointer-events: none; }
.fh .fh-btn[aria-busy="true"] svg { display: none; }
.fh .fh-btn[aria-busy="true"]::before, .fh .fh-spin { content: ""; display: inline-block; width: 14px; height: 14px; flex: none;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: fh-spin .8s linear infinite; vertical-align: -2px; }
@keyframes fh-spin { to { transform: rotate(360deg); } }
.fh .fh-working { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--blue); border-left-width: 4px; border-radius: 4px; background: var(--white); margin: 0; }
.fh .fh-working b { display: block; font: 600 14px/1.4 var(--mont); color: var(--ink); }
/* The PRO, headline of a booked shipment (D52). */
.fh .fh-prohead { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.fh .fh-prolabel { font: 600 12px var(--mont); letter-spacing: .08em; color: var(--ink2); }
.fh .fh-pro { font: 600 26px/1.15 var(--mono); letter-spacing: .04em; color: var(--ink); }
.fh .fh-papers { display: grid; grid-template-columns: auto auto; gap: 8px; justify-content: end; }
.fh .fh-btn:disabled { opacity: .45; cursor: not-allowed; }
.fh .fh-btn svg { width: 16px; height: 16px; flex: none; }
.fh .fh-linkbtn { border: 0; background: none; padding: 0; min-height: 24px; font: 600 12.5px var(--mont); color: var(--blue-ink); cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; }   /* 24 px: WCAG 2.2 target size */
.fh .fh-linkbtn.fh-danger { color: var(--orange-ink); }

.fh .fh-panel { background: var(--white); border: 1px solid var(--line); border-radius: 4px; box-shadow: var(--shadow); }
.fh .fh-phead { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; min-height: 64px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.fh .fh-phead .fh-how { margin-top: 2px; }
.fh .fh-pbody { padding: 16px 20px; }
.fh .fh-work .fh-pbody { padding: 16px; }
.fh .fh-work .fh-phead { padding: 16px; }   /* the handling-unit table needs its 496 px inside the 536 px panel */
.fh .fh-group + .fh-group { margin-top: 24px; }
.fh .fh-inline { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.fh .fh-how { color: var(--ink3); font-size: 13px; }
.fh .fh-id { font: 600 13px var(--mono); letter-spacing: .02em; white-space: nowrap; }

/* fields */
.fh .fh-field { display: flex; flex-direction: column; gap: 4px; }
.fh .fh-field > span, .fh label.fh-lab { font: 600 12.5px var(--mont); color: var(--ink2); }
.fh .fh-input { height: 40px; border: 1px solid var(--line2); border-radius: 4px; padding: 0 12px; background: var(--white); min-width: 0; }
.fh .fh-input.fh-mono { font: 600 15px var(--mono); letter-spacing: .02em; }
.fh .fh-input.fh-so { width: 260px; height: 44px; font-size: 17px; }
.fh [aria-invalid="true"] { border-color: var(--orange) !important; background: var(--orange-wash); }
.fh .fh-input:disabled, .fh .fh-hu input:disabled, .fh .fh-hu select:disabled { background: var(--canvas); color: var(--ink2); }
.fh .fh-note-err { color: var(--orange-ink); font-size: 14px; display: flex; gap: 6px; align-items: flex-start; }
.fh .fh-note-err svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
/* D59: a line taller than a carrier allows: the H cell outlined in orange, the reason under the table. */
.fh .fh-num.fh-over { border-color: var(--orange) !important; box-shadow: inset 0 0 0 1px var(--orange); }
.fh .fh-heights { display: grid; gap: 4px; margin-top: 8px; }
.fh .fh-heights:empty { display: none; }
.fh .fh-heights .fh-note-err { margin: 0; }
/* D61: the commercial invoice: a drop zone that names the file once attached. */
.fh .fh-drop { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; border: 1px dashed var(--line2, #C9C4BA);
  border-radius: 4px; background: #fff; font: 600 13px var(--mont); color: var(--ink2); cursor: pointer; transition: border-color .15s ease-out, background .15s ease-out; }
.fh .fh-drop svg { width: 16px; height: 16px; flex: none; }
.fh .fh-drop:hover, .fh .fh-drop.fh-over { border-color: var(--blue); background: var(--blue-wash, #E3E8EF); color: var(--ink); }
.fh .fh-drop:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }
.fh .fh-drop.fh-busy { cursor: progress; }
/* D62: the in-row question before a connection still in use is removed. */
.fh .fh-list tr.fh-ask td { background: var(--orange-wash); }
.fh .fh-list tr.fh-ask .fh-inline { gap: 8px; flex-wrap: wrap; align-items: center; }
.fh .fh-list tr.fh-ask .fh-note-err { flex: 1 1 320px; color: var(--ink); }
.fh .fh-list tr.fh-ask .fh-note-err svg { color: var(--orange-ink); }
.fh .fh-ci { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 40px; }
.fh .fh-ci .fh-iconbtn.fh-del { margin-left: auto; }
@media (prefers-reduced-motion: reduce) { .fh .fh-drop { transition: none; } }
.fh .fh-note { color: var(--ink2); font-size: 14px; }
.fh .fh-seg { display: inline-flex; border: 1px solid var(--line2); border-radius: 4px; padding: 3px; background: var(--canvas); height: 44px; }
.fh .fh-seg button { border: 0; background: none; border-radius: 2px; padding: 0 16px; font: 600 13px var(--mont); color: var(--ink2); cursor: pointer; }
.fh .fh-seg button[aria-checked="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 2px rgba(20,37,54,.12); }

/* Start a shipment: the lookup, the first thing on the start view. */
.fh .fh-lookup { padding: 20px; display: grid; gap: 14px; border-top: 3px solid var(--ink); }
.fh .fh-lookhead .fh-how { margin-top: 4px; font-size: 14px; }
.fh .fh-lookrow { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.fh .fh-orderbar .fh-full { flex-basis: 100%; }
.fh .fh-saved { font-size: 13px; color: var(--ink3); min-width: 88px; }

/* The shipment strip (D55): black like a waybill's header; the FH number leads in Plex Mono. */
.fh .fh-strip { background: var(--ink); color: #fff; border-radius: 4px; box-shadow: var(--shadow); padding: 14px 18px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.fh .fh-strip .fh-slabel { display: block; font: 600 11.5px/1.2 var(--mont); color: rgba(255,255,255,.66); margin-bottom: 4px; }
.fh .fh-strip .fh-sno { font: 600 24px/1.1 var(--mono); letter-spacing: .03em; color: #fff; white-space: nowrap; }
.fh .fh-strip .fh-sid { padding-right: 28px; border-right: 1px solid rgba(255,255,255,.18); }
.fh .fh-strip .fh-sval { font: 600 14.5px/1.35 var(--mont); white-space: nowrap; }
.fh .fh-strip .fh-sval .fh-id { font-size: 14.5px; color: #fff; }
.fh .fh-strip .fh-sdim, .fh .fh-strip .fh-spost { color: rgba(255,255,255,.72); font-weight: 500; }
.fh .fh-strip .fh-arrow { color: rgba(255,255,255,.66); font-weight: 700; }
.fh .fh-strip .fh-scell { min-width: 0; }
.fh .fh-strip .fh-scell .fh-sval { overflow: hidden; text-overflow: ellipsis; max-width: 280px; }
.fh .fh-strip .fh-who { margin-left: auto; display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; justify-content: flex-end; }
.fh .fh-strip .fh-src, .fh .fh-strip .fh-saved { font-size: 13px; color: rgba(255,255,255,.66); min-width: 0; }
.fh .fh-strip .fh-chip { background: #fff; color: var(--ink); border-color: #fff; }
.fh .fh-strip .fh-chip.fh-prog { background: var(--blue); border-color: var(--blue); color:#fff; }
.fh .fh-strip .fh-iconbtn.fh-del { background: rgba(255,255,255,.14); color: #fff; }
.fh .fh-strip .fh-iconbtn.fh-del:hover { background: rgba(255,255,255,.26); }
.fh .fh-strip .fh-note-err { color: #FFB38F; }
.fh .fh-strip .fh-btn { background: #fff; }
.fh .fh-strip :focus-visible { outline-color: #fff; }

/* steps */
/* A track across the page (Guideline 5, Steps): done steps ticked in black, the step the
   shipment waits on ringed in orange, future steps grey. The lines between them stretch, so
   the four steps sit evenly whatever the width. */
.fh .fh-steps { display: flex; align-items: center; gap: 12px; margin: 24px 0; padding: 0 4px; list-style: none;
  position: relative; }   /* keeps the visually hidden step words inside the box */
.fh { position: relative; }
.fh .fh-step { display: flex; align-items: center; gap: 10px; flex: none; font: 600 14px/1 var(--mont); color: var(--ink3); white-space: nowrap; }
.fh .fh-step i { width: 28px; height: 28px; flex: none; border-radius: 50%; border: 2px solid var(--line2); display: grid; place-items: center;
  font: 600 13px/1 var(--mont); font-style: normal; background: var(--white); color: var(--ink3); }
.fh .fh-step i svg { width: 14px; height: 14px; }
.fh .fh-step.fh-done { color: var(--ink); } .fh .fh-step.fh-done i { background: var(--ink); border-color: var(--ink); color: #fff; }
.fh .fh-step.fh-now { color: var(--ink); } .fh .fh-step.fh-now i { border-color: var(--orange); background: var(--orange-wash); color: var(--ink); }
.fh .fh-steps .fh-bar { flex: 1 1 24px; min-width: 16px; height: 2px; background: var(--line2); }
.fh .fh-steps .fh-bar.fh-done { background: var(--ink); }

/* the two panels */
/* 520 px is what the handling-unit table needs; below 1360 px the rate board
   would no longer fit beside it, so the panels stack. */
.fh .fh-work { display: grid; grid-template-columns: 536px minmax(0, 1fr); gap: 16px; align-items: start; }
.fh .fh-work > * { min-width: 0; }
@media (max-width: 1360px) { .fh .fh-work { grid-template-columns: minmax(0, 1fr); } }

/* shipment */
.fh dl.fh-dg { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 12px; margin: 0; align-items: start; }
/* Labels sit level with the middle of a 40 px field; the ship-to text block starts on the same line. */
.fh dl.fh-dg dt { font: 600 13px/22px var(--mont); color: var(--ink2); padding-top: 9px; }
.fh dl.fh-dg > dd:first-of-type > div:not(.fh-editgrid) { padding-top: 9px; }
.fh dl.fh-dg dd { margin: 0; min-width: 0; }
.fh .fh-src { color: var(--ink3); font-size: 13px; }
.fh .fh-inline .fh-input { height: 40px; }
.fh .fh-editgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fh .fh-editgrid .fh-wide { grid-column: 1 / -1; }
.fh .fh-editgrid .fh-input { height: 40px; width: 100%; }

.fh table { border-collapse: collapse; width: 100%; }
.fh th { font: 600 11px var(--mont); letter-spacing: .06em; text-transform: uppercase; color: var(--ink3); text-align: left; padding: 0 6px 6px; white-space: nowrap; }
.fh .fh-list thead th { padding-top: 12px; padding-bottom: 8px; background: #F8FAFB; border-bottom: 1px solid var(--line); }
.fh .fh-list thead + tbody tr:first-child td { border-top: 0; }
.fh .fh-hscroll { overflow-x: auto; position: relative; }   /* relative: hidden header words stay inside the scroll box */
.fh .fh-hu { table-layout: fixed; min-width: 496px; width: 496px; }   /* its own width, not stretched when the panels stack */
.fh .fh-hu th { padding: 0 2px 6px; }
.fh .fh-hu td { padding: 4px 2px; }
.fh .fh-hu input, .fh .fh-hu select { height: 40px; width: 100%; border: 1px solid var(--line2); border-radius: 4px; padding: 0 8px;
  background: var(--white); font-variant-numeric: tabular-nums; }
.fh .fh-hu select { padding: 0 2px 0 6px; }
.fh .fh-hu .fh-num, .fh .fh-hu th.fh-num { text-align: right; }
.fh .fh-hu .fh-ck { width: 18px; height: 18px; accent-color: var(--ink); }
.fh .fh-hu .fh-rowact { display: flex; gap: 4px; align-items: center; justify-content: flex-end; }
.fh .fh-iconbtn { width: 28px; height: 32px; border: 0; background: none; color: var(--ink3); border-radius: 4px; cursor: pointer; display: grid; place-items: center; padding: 0;
  transition: background-color .15s ease-out, color .15s ease-out; }
.fh .fh-iconbtn:hover { background: var(--canvas); color: var(--ink); }
.fh .fh-iconbtn svg { width: 15px; height: 15px; }
/* Delete (Guideline 5): a round mark, always visible, last on its row, named for what it removes. */
.fh .fh-iconbtn.fh-del { width: 30px; height: 30px; border-radius: 50%; background: rgba(20,37,54,.06); color: var(--ink2); }
.fh .fh-iconbtn.fh-del:hover { background: rgba(20,37,54,.12); color: var(--ink); }
.fh .fh-iconbtn.fh-del svg { width: 14px; height: 14px; }
@media (pointer: coarse) { .fh .fh-iconbtn.fh-del { width: 44px; height: 44px; } }
.fh .fh-totals { display: flex; gap: 24px; flex-wrap: wrap; padding: 10px 6px 0; border-top: 1px solid var(--line); margin-top: 8px; }
.fh .fh-totals div { display: flex; flex-direction: column; }
.fh .fh-totals small { font: 600 11px var(--mont); color: var(--ink3); text-transform: uppercase; letter-spacing: .06em; }
.fh .fh-totals b { font: 700 17px var(--mont); font-variant-numeric: tabular-nums; }
.fh .fh-toggles { display: flex; flex-wrap: wrap; gap: 8px; }
.fh .fh-tog { height: 36px; padding: 0 12px; border-radius: 4px; border: 1px solid var(--line2); background: var(--white);
  font: 600 12.5px var(--mont); color: var(--ink2); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.fh .fh-tog[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.fh .fh-tog svg { width: 14px; height: 14px; }
.fh .fh-tog:disabled { cursor: default; opacity: .8; }

/* chips */
.fh .fh-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 4px;
  font: 600 12px var(--mont); white-space: nowrap; border: 1px solid transparent; }
.fh .fh-chip svg { width: 13px; height: 13px; flex: none; }
.fh .fh-chip.fh-ready { background: var(--canvas); color: var(--ink2); }
.fh .fh-chip.fh-prog { background: var(--blue-wash); color: var(--blue-ink); }
.fh .fh-chip.fh-you { background: var(--orange-wash); color: var(--orange-ink); }
.fh .fh-chip.fh-fail { background: var(--white); color: var(--orange-ink); border-color: var(--orange); }
.fh .fh-chip.fh-sent { background: var(--sent-wash); color: var(--sent); }
.fh .fh-chip.fh-done { background: var(--white); color: var(--ink); border-color: var(--line2); }
.fh .fh-chip.fh-mark { height: 24px; font-size: 11px; background: var(--white); border-color: var(--ink); color: var(--ink); }

/* the rate board */
.fh .fh-board th { padding-top: 12px; }
.fh .fh-board th:first-child, .fh .fh-board td:first-child { padding-left: 16px; }
.fh .fh-board td { padding: 12px 6px; border-top: 1px solid var(--line); vertical-align: top; }
.fh .fh-board td.fh-act { text-align: right; white-space: nowrap; padding-right: 16px; }
.fh .fh-board td.fh-act .fh-inline { justify-content: flex-end; flex-wrap: nowrap; gap: 6px; }
.fh .fh-board td.fh-act .fh-btn { padding: 0 10px; }
.fh .fh-board tr.fh-chosen > td { background: #F6FBFE; }
.fh .fh-board tr.fh-chosen > td:first-child { box-shadow: inset 3px 0 0 var(--blue); }
.fh .fh-board .fh-cname { display: flex; gap: 10px; align-items: flex-start; }
.fh .fh-board .fh-sel { width: 18px; height: 18px; flex: none; accent-color: var(--ink); margin-top: 2px; }
.fh .fh-board .fh-carrier { font: 600 14px/1.3 var(--mont); white-space: nowrap; }
.fh .fh-board .fh-cname .fh-how { white-space: nowrap; }   /* "Carrier website" on one line, under the name */
.fh .fh-board .fh-money { font: 700 17px var(--mont); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fh .fh-board .fh-money small { font: 600 12px var(--mont); color: var(--ink2); margin-left: 3px; }
.fh .fh-board .fh-money.fh-unchecked { color: var(--ink2); }
/* Quoted before the shipment changed (D38): kept to compare, struck through, never counts. */
.fh .fh-board .fh-money.fh-outdated { color: var(--ink2); text-decoration: line-through; }
.fh .fh-board .fh-r, .fh .fh-board th.fh-r { text-align: right; }
.fh .fh-board .fh-dash { color: var(--line2); }
.fh .fh-board .fh-marks { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.fh .fh-board tr.fh-sub > td { border-top: 0; padding-top: 0; }
.fh .fh-board tr:has(+ tr.fh-sub) > td { padding-bottom: 6px; }
.fh .fh-board .fh-say { font-size: 14px; color: var(--ink2); line-height: 1.4; }
.fh .fh-board .fh-detail { background: var(--canvas); border-radius: 4px; padding: 12px; margin-top: 4px; }
.fh .fh-board .fh-bd { display: grid; grid-template-columns: auto auto; gap: 2px 24px; width: max-content; font-size: 13.5px; }
.fh .fh-board .fh-bd span:nth-child(even) { text-align: right; font-variant-numeric: tabular-nums; }
.fh pre.fh-mail { white-space: pre-wrap; background: var(--white); border: 1px solid var(--line); border-radius: 4px; padding: 12px;
  font: 13px/1.45 var(--mono); max-height: 320px; overflow: auto; margin: 8px 0; }
.fh .fh-rateform { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: end; }
.fh .fh-rateform .fh-input { height: 40px; width: 100%; }
.fh .fh-extnote { padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--blue-wash); color: var(--blue-ink); font-size: 14px;
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

.fh .fh-bookbar { border-top: 1px solid var(--line); padding: 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: end; }
.fh .fh-bookbar .fh-big { font: 700 30px/1.1 var(--mont); font-variant-numeric: tabular-nums; }
.fh .fh-bookbar .fh-big small { font-size: 15px; color: var(--ink2); margin-left: 4px; }
.fh .fh-bookbar p { margin-top: 6px; color: var(--ink2); font-size: 14px; max-width: 520px; }

/* The notice (D55): sticky near the top of the window, so it is seen wherever the person is;
   rail and disc in the kind's colour (orange: a person must act; blue: under way; ink: done). */
.fh .fh-msg { position: sticky; top: 12px; z-index: 6; display: flex; gap: 12px; align-items: flex-start; margin: 0 0 16px; padding: 12px 8px 12px 14px;
  background: var(--white); border: 1px solid var(--line2); border-left: 4px solid var(--ink); border-radius: 4px; box-shadow: var(--shadow);
  font-size: 15px; line-height: 1.45; animation: fh-in .18s ease-out; }
.fh .fh-msg.fh-err { border-left-color: var(--orange); background: var(--orange-wash); border-color: #F6C7AE; border-left-color: var(--orange); }
.fh .fh-msg.fh-info { border-left-color: var(--blue); }
.fh .fh-msgtext { flex: 1; min-width: 0; padding-top: 3px; overflow-wrap: anywhere; }
.fh .fh-msgkind { font: 700 13px var(--mont); margin-right: 8px; }
.fh .fh-msg .fh-dismiss { flex: none; width: 32px; height: 32px; }
@keyframes fh-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
/* A filled disc carries the icon of a message or result: the brand's fill colours, black icon on blue and orange. */
.fh .fh-disc { width: 28px; height: 28px; flex: none; border-radius: 50%; display: inline-grid; place-items: center; background: var(--ink); color: #fff; vertical-align: middle; }
.fh .fh-disc svg { width: 15px; height: 15px; }
.fh .fh-msg.fh-err .fh-disc, .fh .fh-disc.fh-you { background: var(--orange); color: var(--ink); }
.fh .fh-msg.fh-info .fh-disc { background: var(--blue); color:#fff; }
.fh .fh-disc.fh-done { background: var(--ink); color: #fff; }

/* Rail boxes: a result or a must-do inside a panel, in the same language as the notice. */
.fh .fh-rail { display: flex; gap: 14px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line2); border-left: 4px solid var(--line2);
  border-radius: 4px; background: var(--white); }
.fh .fh-rail > div { min-width: 0; flex: 1; }
.fh .fh-rail p { margin: 6px 0 0; color: var(--ink); font-size: 14.5px; }
.fh .fh-rail p.fh-how { color: var(--ink2); font-size: 13.5px; }
.fh .fh-rail b { font: 700 14px/1.4 var(--mont); display: inline-flex; align-items: center; gap: 8px; }
.fh .fh-rail ul { margin: 8px 0 0 18px; padding: 0; font-size: 14.5px; }
.fh .fh-rail li + li { margin-top: 2px; }
.fh .fh-rail.fh-prog { border-left-color: var(--blue); background: #F7FCFE; }
.fh .fh-rail.fh-you { border-left-color: var(--orange); background: var(--orange-wash); border-color: #F6C7AE; border-left-color: var(--orange); }
.fh .fh-rail.fh-done { border-left-color: var(--ink); }

/* ERABOT (Guideline 7): 64 px in an empty or error state, 48 px beside a message; thinking bobs. */
.fh .fh-bot { width: auto; flex: none; display: block; user-select: none; }
.fh .fh-bot.fh-bob { animation: fh-bob 1.6s ease-in-out infinite; }
@keyframes fh-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.fh .fh-empty { display: flex; gap: 16px; align-items: center; padding: 28px 20px; color: var(--ink); }
.fh .fh-empty .fh-emptyline { font: 600 15px/1.4 var(--mont); max-width: 520px; }
.fh .fh-empty .fh-btn { margin-top: 10px; }
.fh .fh-count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 4px; background: var(--ink);
  color: #fff; font: 700 12px var(--mont); }

.fh .fh-list td { padding: 12px 8px; border-top: 1px solid var(--line); }
.fh .fh-list tr.fh-go { cursor: pointer; }
.fh .fh-list tr.fh-go:hover td { background: #F6F9FA; }
.fh .fh-list tr.fh-go:focus-visible { outline-offset: -2px; }
/* Each shipment's state as a rail on its first cell: grey draft, blue quoting, ink booked. */
.fh .fh-list tr.fh-go > td:first-child { box-shadow: inset 3px 0 0 var(--line2); }
.fh .fh-list tr.fh-st-quoting > td:first-child { box-shadow: inset 3px 0 0 var(--blue); }
.fh .fh-list tr.fh-st-booked > td:first-child { box-shadow: inset 3px 0 0 var(--ink); }
.fh .fh-list tr.fh-st-cancelled > td { color: var(--ink3); }
.fh .fh-list th:first-child, .fh .fh-list td:first-child { padding-left: 20px; }
.fh .fh-list th:last-child, .fh .fh-list td:last-child { padding-right: 16px; }
.fh .fh-list td.fh-r { text-align: right; }
.fh .fh-list .fh-ck { width: 18px; height: 18px; accent-color: var(--ink); }
.fh .fh-audit { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.fh .fh-audit li { padding: 6px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; }
.fh .fh-audit time { color: var(--ink3); font-variant-numeric: tabular-nums; }
.fh details > summary { cursor: pointer; font: 600 13px var(--mont); color: var(--ink2); }
.fh .fh-code { font: 700 28px var(--mono); letter-spacing: .12em; }

@media (max-width: 640px) {
  .fh { padding: 0 0 32px; }
  .fh h1 { font-size: 22px; }
  /* On a phone the track keeps every circle; only the step being worked on keeps its word. */
  .fh .fh-steps { gap: 8px; margin: 16px 0; }
  .fh .fh-step:not(.fh-now) .fh-lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  /* Handling units on a phone (Guideline 5, Tables): each line becomes a card, every field keeps its label. */
  .fh .fh-hu { min-width: 0; width: 100%; }
  .fh .fh-hu colgroup, .fh .fh-hu thead { display: none; }
  .fh .fh-hu tbody { display: block; }
  .fh .fh-hu tr { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); }
  .fh .fh-hu tr:first-child { border-top: 0; padding-top: 0; }
  .fh .fh-hu td { padding: 0; display: flex; flex-direction: column; gap: 4px; min-width: 0; text-align: left !important; }
  .fh .fh-hu td[data-l]::before { content: attr(data-l); font: 600 11px var(--mont); color: var(--ink3); text-transform: uppercase; letter-spacing: .06em; }
  .fh .fh-hu .fh-c-qty, .fh .fh-hu .fh-c-length_in, .fh .fh-hu .fh-c-width_in, .fh .fh-hu .fh-c-height_in,
  .fh .fh-hu .fh-c-weight_lb, .fh .fh-hu .fh-c-freight_class { grid-column: span 2; }
  .fh .fh-hu .fh-c-pkg_type { grid-column: span 4; }
  .fh .fh-hu .fh-c-stackable { grid-column: span 1; align-items: flex-start; }
  .fh .fh-hu .fh-c-act { grid-column: span 1; justify-content: flex-end; }
  .fh .fh-hu input, .fh .fh-hu select { height: 44px; }
  .fh .fh-hu .fh-ck { width: 24px; height: 24px; margin: 10px 0; }
  .fh .fh-board td:has(> .fh-dash) { display: none; }   /* no empty "Total" rows on a phone card */
  .fh .fh-board thead { display: none; }
  .fh .fh-board, .fh .fh-board tbody, .fh .fh-board tr, .fh .fh-board td { display: block; width: 100%; }
  .fh .fh-board tr { border-top: 1px solid var(--line); padding: 12px 16px; }
  .fh .fh-board tr.fh-sub { border-top: 0; padding-top: 0; }
  .fh .fh-board td { border: 0; padding: 2px 0 !important; text-align: left !important; }
  .fh .fh-board tr.fh-sub > td:first-child { display: none; }
  .fh .fh-board td[data-l]::before { content: attr(data-l); font: 600 11px var(--mont); color: var(--ink3); text-transform: uppercase;
    letter-spacing: .06em; display: inline-block; width: 92px; }
  .fh .fh-board td.fh-act { padding-top: 8px !important; }
  .fh .fh-board td.fh-act .fh-inline { justify-content: stretch; }
  .fh .fh-board td.fh-act .fh-btn { flex: 1; height: 44px; }
  .fh .fh-rateform { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fh .fh-bookbar { grid-template-columns: minmax(0, 1fr); }
  .fh .fh-bookbar .fh-btn { width: 100%; height: 44px; }
  .fh .fh-list thead { display: none; }
  .fh .fh-list tr { display: grid; grid-template-columns: 1fr auto; padding: 10px 16px; border-top: 1px solid var(--line); }
  .fh .fh-list td { border: 0; padding: 0 !important; }
  .fh .fh-tog { height: 40px; }
  .fh .fh-btn.fh-small { height: 40px; }
}
@media (prefers-reduced-motion: reduce) { .fh *, .fh *::before, .fh *::after { transition: none !important; animation: none !important; } }

/* Booking from Freight Hub (D32): what will be booked, read before the press. */
.fh dl.fh-confirm { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 6px 12px; margin: 12px 0 0; padding: 12px 16px;
  border: 1px solid var(--line2); border-radius: 4px; background: var(--white); }
.fh dl.fh-confirm dt { font: 600 13px/22px var(--mont); color: var(--ink2); }
.fh dl.fh-confirm dd { margin: 0; min-width: 0; font-size: 14.5px; line-height: 22px; overflow-wrap: anywhere; }
.fh #fh-book-state { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; max-width: none; }
.fh .fh-bookbar .fh-btn[disabled] { opacity: .45; cursor: not-allowed; }
.fh output.fh-cls { display: inline-block; min-width: 44px; padding: 0 4px; font: 600 14px/40px var(--mont); font-variant-numeric: tabular-nums; color: var(--ink); }

/* ------------------------------------------------------------ D55, 2026-11-04 */
/* Booking area: the chosen rate's price is the loudest number on the panel. */
.fh .fh-bookbar { background: #FBFCFD; }
.fh .fh-bookbar h3 { font: 700 14px/1.3 var(--mont); color: var(--ink); }
.fh .fh-bookbar .fh-big { font: 700 34px/1.05 var(--mont); letter-spacing: -.01em; }
.fh .fh-working.fh-rail { border-left-color: var(--blue); }
.fh .fh-working b .fh-spin { margin-right: 2px; color: var(--blue-ink); }
/* Booked: the outcome card under the rates, ink rule on top. */
.fh .fh-bookbar.fh-booked { background: var(--white); border-top: 3px solid var(--ink); }
.fh .fh-bookedh { display: flex; align-items: center; gap: 10px; margin: 0 0 10px !important; font: 700 15px/1.3 var(--mont) !important; }
.fh .fh-bookbar.fh-booked .fh-pro { font-size: 32px; }
.fh .fh-bcline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line2);
  font-size: 14px; }
.fh .fh-bcline.fh-bad { padding: 10px 12px; border: 1px solid #F6C7AE; border-left: 4px solid var(--orange); border-radius: 4px; background: var(--orange-wash); }
.fh .fh-bcline .fh-id { font-size: 13px; }
/* The rate board: the chosen rate carries the accent rail and wash. */
.fh .fh-board tr.fh-chosen > td { background: #F2FAFE; }
.fh .fh-board tr.fh-chosen > td:first-child { box-shadow: inset 4px 0 0 var(--blue); }
.fh .fh-board .fh-money { font-size: 18px; }
.fh .fh-board th { background: #F8FAFB; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.fh .fh-board thead + tbody tr:first-child > td { border-top: 0; }
/* Settings: BC agents in a grid of labelled boxes. */
.fh .fh-agentgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.fh .fh-agentgrid .fh-input { width: 100%; text-transform: uppercase; }
.fh .fh-phead .fh-saved { text-align: right; }
/* Steps: the done line in ink, the current step's word in ink and bolder. */
.fh .fh-step.fh-now .fh-lbl { font-weight: 700; }
@media (max-width: 900px) {
  .fh .fh-strip { gap: 10px 20px; }
  .fh .fh-strip .fh-sid { border-right: 0; padding-right: 0; flex-basis: 100%; }
  .fh .fh-strip .fh-who { margin-left: 0; justify-content: flex-start; flex-basis: 100%; }
}
@media (max-width: 640px) {
  .fh .fh-head { align-items: stretch; }
  .fh .fh-tabs { width: 100%; gap: 0; }
  .fh .fh-tab { flex: 1 1 auto; padding: 0 6px; font-size: 13px; }
  .fh .fh-tagline { display: none; }
  .fh .fh-lookup { padding: 16px; }
  .fh .fh-lookrow .fh-field, .fh .fh-lookrow .fh-input.fh-so { width: 100%; }
  .fh .fh-lookrow > .fh-btn { flex: 1; height: 44px; }
  .fh .fh-strip { padding: 12px 14px; }
  .fh .fh-strip .fh-sno { font-size: 21px; }
  .fh .fh-strip .fh-scell .fh-sval { max-width: 100%; white-space: normal; }
  .fh .fh-empty { padding: 20px 16px; }
  .fh .fh-bookbar .fh-big { font-size: 30px; }
  .fh .fh-bookbar.fh-booked .fh-pro { font-size: 26px; }
  .fh .fh-msg { top: 8px; }
}
/* Ship-from addresses: one card each, the round x in its corner (Guideline 5). */
.fh .fh-orgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 12px; }
.fh .fh-orgcard { position: relative; border: 1px solid var(--line2); border-radius: 4px; padding: 14px; background: var(--white); }
.fh .fh-orgcard .fh-corner { position: absolute; top: 10px; right: 10px; }
.fh .fh-orggrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; padding-right: 36px; }
.fh .fh-orggrid .fh-wide { grid-column: 1 / -1; }
.fh .fh-orggrid .fh-input { width: 100%; }
.fh .fh-ckfield { flex-direction: row !important; align-items: center; gap: 8px !important; grid-column: 1 / -1; min-height: 40px; }
.fh .fh-ck { width: 18px; height: 18px; accent-color: var(--ink); }
/* EMMA beside a message (Guideline 11): 48 px, top-aligned with its words. */
.fh .fh-asking { display: flex; gap: 14px; align-items: center; padding: 10px 20px; border-bottom: 1px solid var(--line); background: #F7FCFE;
  box-shadow: inset 4px 0 0 var(--blue); font-size: 14.5px; }
.fh .fh-asking p { margin: 0; }
.fh .fh-bcline.fh-bad { align-items: flex-start; gap: 12px; }
.fh .fh-bcline.fh-bad > div { flex: 1; min-width: 0; }
.fh .fh-bookedh .fh-bot { margin: -6px 0 -6px -4px; }
.fh .fh-lookup .fh-rail { margin-top: 2px; }
.fh .fh-lookup .fh-rail p { margin: 4px 0 0; }
/* The Shipments list: its finders in one bar; a filter box under each column header. */
.fh .fh-listbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); background: #FBFCFD; }
.fh .fh-listbar .fh-grow { flex: 1 1 220px; min-width: 200px; }
.fh .fh-listbar .fh-grow .fh-input { width: 100%; }
.fh .fh-list tr.fh-filters th { padding: 6px 4px 8px; background: #F8FAFB; text-transform: none; letter-spacing: 0; }
.fh .fh-list tr.fh-filters th:first-child { padding-left: 16px; }
.fh .fh-input.fh-cf { height: 32px; width: 100%; min-width: 72px; padding: 0 8px; font: 400 13px var(--body); color: var(--ink); }
.fh select.fh-input.fh-cf { padding: 0 4px; }
.fh .fh-list thead tr:first-child th { border-bottom: 0; }
@media (max-width: 640px) { .fh .fh-listbar { padding: 12px 16px; } .fh .fh-listbar .fh-field, .fh .fh-listbar .fh-input { width: 100% !important; } .fh .fh-listbar .fh-seg { flex-wrap: wrap; height: auto !important; } .fh .fh-listbar .fh-seg button { height: 36px; } }
