/* Stage 3 quote app — layered on the Quincus tokens in styles.css.
   Page is a flex column: sticky header, growing main, footer pinned to the
   bottom. No absolute/floated positioning for any shell part. */
body.app {
  display: flex;
  flex-direction: column;
  align-items: stretch;      /* override the login page's centered body */
  justify-content: flex-start;
  min-height: 100vh;
  margin: 0; padding: 0;     /* override the login body's 24px padding — the shell is full-bleed */
  background: var(--paper);   /* flat near-white; no beige, no gold wash */
}

/* Header: full-bleed white, hairline bottom border, 64px; contents ride the
   1100px container grid so the logo aligns with the card edge below it. */
.topbar {
  position: sticky; top: 0; z-index: 40;
  height: 64px; background: #fff;
  border-bottom: 1px solid var(--rule-dark);
}
/* one shared 1100 container for header + footer content (matches .wrap) */
.shell { width: 100%; max-width: 1100px; height: 100%; margin: 0 auto; padding: 0 26px;
  display: flex; align-items: center; gap: 28px; }
.topbar-logo { height: 34px; width: auto; }

/* header nav — same header on every route */
.nav { display: flex; gap: 4px; }
.nav-item {
  font-family: inherit; font-size: 14px; font-weight: 600; color: var(--ink-70);
  background: none; border: none; border-radius: 8px; padding: 8px 12px; cursor: pointer;
}
.nav-item:hover { background: var(--paper-alt); color: var(--ink); }
.nav-item.active { color: var(--navy); background: var(--paper-alt); }
/* pending-request count — the passive nav signal (replaces the on-page banner) */
.nav-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px;
  margin-left: 6px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #3a2c05;
  font-size: 11px; font-weight: 800; line-height: 1; vertical-align: middle; }
.nav-badge[hidden] { display: none; }
.acct { position: relative; margin-left: auto; }

.acct { position: relative; }
.acct-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: inherit; font-size: 13px; font-weight: 600; color: var(--ink);
  background: var(--paper-alt); border: 1px solid var(--rule-dark-strong);
  border-radius: 8px; padding: 8px 14px; cursor: pointer;
}
.acct-chip .caret { color: var(--ink-55); font-size: 11px; }
.acct-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 30;
  background: #fff; border: 1px solid var(--rule-dark-strong); border-radius: 10px;
  box-shadow: var(--shadow); min-width: 160px; overflow: hidden;
}
.acct-item {
  display: block; width: 100%; text-align: left; background: none; border: none;
  font-family: inherit; font-size: 14px; color: var(--ink); padding: 11px 14px; cursor: pointer;
}
.acct-item:hover { background: var(--paper-alt); }

/* main is transparent — the page background (#FAFAF8) shows edge to edge
   between header and footer; only cards are white. No white sheet, no gutters.
   flex:1 0 auto lets it grow so the footer pins to the viewport bottom. */
.wrap { flex: 1 0 auto; width: 100%; max-width: 1100px; margin: 0 auto; padding: 30px 26px 56px; background: transparent; }

/* form lives in a full-width card; history strip and offers sit below it.
   (override the login page's .card { max-width: 440px }) */
.card { width: 100%; max-width: none; background: var(--card); border: 1px solid var(--rule-dark); border-radius: 12px; padding: 14px 26px; box-shadow: var(--shadow); }

.q-title { font-size: 28px; font-weight: 700; letter-spacing: -0.015em; color: var(--ink); margin: 0 0 6px; }
/* subheading spans the container (was clamped ~65ch, forcing a wrap); one line
   at 1280px+, natural wrap below. Font is not shrunk to fit. */
.q-sub { font-size: 14px; color: var(--ink-70); margin: 0 0 20px; max-width: none; line-height: 1.5; }

/* all five labels share one baseline; all five inputs share one top edge */
.fields { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
.f { flex: 1 1 150px; min-width: 130px; }
.f.f-sm { flex: 0 1 110px; }
.f label { display: block; height: 16px; font-size: 12px; font-weight: 500; margin-bottom: 4px; color: var(--ink-70); }
.f input, .f select {
  width: 100%; height: 48px; padding: 0 12px; font-family: inherit; font-size: 15px;
  color: var(--ink); background: #fff; border: 1px solid var(--rule-dark-strong); border-radius: 8px;
}
.f input:focus, .f select:focus { outline: none; border-color: var(--lavender-deep); box-shadow: inset 0 0 0 1px var(--lavender-deep); }
.f-err { display: none; color: #a5342f; font-size: 12px; margin-top: 5px; }
.f-err.show { display: block; }
/* primary fields reserve an 18px error slot (empty by default) so labels and
   input boxes never move when an error appears or clears */
.f .f-err { display: block; min-height: 18px; margin-top: 4px; }
.f-note { font-size: 12px; color: var(--ink-70); margin-top: 5px; }

/* Row 2 (details): two dropdowns + dims composite + commodity. align-items
   flex-start + single-line labels => all controls share one top edge. */
.details-row { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: flex-start; margin-top: 12px; }
.row-err { margin-top: 8px; }

.cf { display: flex; flex-direction: column; gap: 4px; }
.cf[hidden] { display: none; }
.cf label { font-size: 12px; font-weight: 500; color: var(--ink-70); white-space: nowrap; }
.cf input, .cf select { height: 40px; padding: 0 10px; font-family: inherit; font-size: 14px;
  color: var(--ink); background: #fff; border: 1px solid var(--rule-dark-strong); border-radius: 8px; }
.cf input:focus, .cf select:focus { outline: none; border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.sel-load { width: 130px; }
.sel-cargo { width: 170px; }
#uldType, #tempRange { width: 150px; }
.cf-commodity input { width: 220px; max-width: 100%; }
.w-un { width: 7ch; }

/* dims: separate bordered inputs, muted × separators, plain "= n m³" text.
   The volume text sits in a fixed-width slot so the + never shifts. */
.dims-row { display: inline-flex; align-items: center; gap: 8px; }
.dims-row[hidden] { display: none; }
.dc-in { width: 56px; height: 40px; text-align: center; padding: 0 6px; font-family: inherit; font-size: 14px;
  color: var(--ink); background: #fff; border: 1px solid var(--rule-dark-strong); border-radius: 8px; -moz-appearance: textfield; }
.dc-in::-webkit-outer-spin-button, .dc-in::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.dc-in:focus { outline: none; border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.dc-x { color: var(--ink-55); font-size: 14px; }
.dc-vol { min-width: 96px; color: var(--ink-55); font-size: 13px; white-space: nowrap; }  /* reserved slot keeps + fixed */
.dc-add { flex: 0 0 auto; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 600; line-height: 1; color: var(--primary); background: #fff;
  border: 1px solid var(--rule-dark-strong); border-radius: 8px; cursor: pointer; }
.dc-add:hover { border-color: var(--primary); }
#dimsSheet { margin-top: 8px; }

/* Row 3 (flags): plain checkboxes, no boxes, no background — quietest row.
   DG reveals UN number inline to its right. */
.flags-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; margin-top: 10px; }
.chk { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); cursor: pointer; }
.chk input { width: 16px; height: 16px; accent-color: var(--navy); cursor: pointer; }
.inline-un { display: inline-flex; align-items: center; gap: 8px; }
.inline-un[hidden] { display: none; }
.inline-un label { font-size: 12px; font-weight: 500; color: var(--ink-70); white-space: nowrap; }
.inline-un input { height: 34px; padding: 0 8px; font-family: inherit; font-size: 14px; border: 1px solid var(--rule-dark-strong); border-radius: 7px; }
.inline-un input:focus { outline: none; border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.inline-un .f-err { margin: 0; }

/* button row: guest line left, primary action right */
.submit-row { display: flex; align-items: center; gap: 16px; margin-top: 12px; }
.btn-primary { background: var(--navy); color: #fff; border: none; border-radius: 8px; height: 48px; padding: 0 26px; font-weight: 700; font-size: 15px; cursor: pointer; }
.btn-primary:hover { background: var(--navy-mid); }
/* disabled reads clearly inert — muted grey fill + reduced opacity, never a
   dimmed navy that still looks clickable */
.btn-primary:disabled, .btn-primary:disabled:hover { background: var(--rule-dark-strong); color: #fff; opacity: 0.55; cursor: default; }
.submit-row .btn-primary { width: auto; min-width: 220px; margin-left: auto; }
.guest-note { font-size: 12.5px; color: var(--ink-55); }

.halt { background: #f4f1ea; border-left: 3px solid var(--amber); color: #6b5d40; padding: 12px 14px; border-radius: 8px; margin: 18px 0 0; font-size: 14px; }

#cwStrip:not(:empty) { margin-top: 26px; }
.cw-strip { font-size: 13px; color: var(--ink-70); background: #fff; border: 1px solid var(--rule-dark); border-radius: 8px; padding: 10px 12px; }

/* three equal columns across the container (~340px each at 1100px) */
/* ---- date strip (ready date ±3) ---- */
.date-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }   /* pills only */
.date-strip[hidden] { display: none; }
/* persistent "Offers expired · Refresh offers" line above the greyed cards */
/* the ONE quote-level countdown: its own row directly above the date strip,
   left-aligned with the first pill (no horizontal padding, so the text edge and
   the pill edge coincide in EVERY state). One element, one position, three
   states. A constant box height reserves the row so the strip and cards never
   move when the state changes.
     resting  navy   "Offers valid for 14:32"   — no card, no fill, no border
     warn     amber  "Offers expire in 1:54"    — dark amber on a soft amber tint
     expired  amber  "Offers expired · Refresh offers" */
.offers-timer { display: block; box-sizing: border-box; margin: 20px 0 0; padding: 6px 0; min-height: 30px;
  font-size: 14px; font-weight: 600; color: var(--ink); border-radius: 6px; }
.offers-timer[hidden] { display: none; }
.offers-timer .ot-clock { font-family: var(--mono); }
/* < 2:00 and expired share the soft amber tint + dark amber ink; the tint spans
   the row (vertical padding only) so the text stays flush with the pill edge */
.offers-timer.warn, .offers-timer.expired { color: var(--gold-ink); background: var(--gold-tint); }
.offers-timer.warn .ot-clock { color: var(--gold-ink); }
.offers-timer.expired .ot-label { font-weight: 700; }
.offers-timer .route-dot { color: var(--gold-ink); }
.offers-timer .link { color: var(--gold-ink); font-weight: 700; text-decoration: underline;
  background: none; border: none; cursor: pointer; font: inherit; padding: 0; }
.date-pill {
  position: relative; flex: 1 1 0; min-width: 96px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 11px 10px 12px; background: #fff; border: 1px solid var(--rule-dark-strong);
  border-radius: 8px; font-family: inherit; cursor: pointer;
}
.date-pill:hover:not(:disabled):not(.selected) { border-color: var(--primary); }
.date-pill:disabled { cursor: default; }
.dp-day { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-55); }
.dp-date { font-size: 13px; font-weight: 700; color: var(--ink); }
.dp-price { font-size: 13px; font-family: var(--mono); color: var(--ink-70); margin-top: 2px; }
/* heat: strict-lowest day soft green + green ink; highest day price in primary
   ink; middle days neutral. (declared before .selected so selection wins) */
.date-pill.heat-low { background: #EAF5EE; border-color: #cfe6d8; }
.date-pill.heat-low .dp-price { color: #3f7a5f; }
.date-pill.heat-high .dp-price { color: var(--primary); }
.date-pill.selected { background: var(--navy); border-color: var(--navy); }
.date-pill.selected .dp-day, .date-pill.selected .dp-date, .date-pill.selected .dp-price { color: #fff; }
.date-pill.noflights { background: var(--paper-alt); }
.date-pill.noflights .dp-day, .date-pill.noflights .dp-date { color: var(--ink-55); }
.date-pill.noflights .dp-price { color: var(--ink-55); font-family: inherit; font-size: 12px; }
.dp-tag {
  position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: 9px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em; padding: 2px 8px; border-radius: 4px; white-space: nowrap;
}

/* three equal columns across the container (~340px each at 1100px). align-items
   start so expanding one card grows only it — siblings keep height, top-aligned */
.offers-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 16px; margin-top: 16px; }
@media (max-width: 820px) { .offers-grid { grid-template-columns: 1fr; } }

/* narrow viewports: keep every region inside the page width (no h-scroll).
   The two regions that would otherwise force width are the header (logo · nav ·
   account) and the dimensions row (fixed-width inputs). */
@media (max-width: 680px) {
  .topbar { height: auto; }                        /* header grows when nav wraps */
  .topbar .shell { flex-wrap: wrap; gap: 10px 14px; padding: 10px 16px; }
  .nav { order: 3; width: 100%; }                 /* nav drops to its own row */
  .acct { margin-left: auto; }
  .dims-row { flex-wrap: wrap; }                   /* L×W×H + volume + add can stack */
  .cf-commodity input { width: 100%; }
}

.offer {
  background: var(--card); border: 1px solid var(--rule-dark);
  border-radius: 12px; padding: 20px 18px 18px; display: flex; flex-direction: column; gap: 10px;
}
/* fixed row skeleton so Book + Price details align across cards. The chip zone
   is a HARD 28px on every card (empty when a card earns no chip), chips top-
   aligned, 10px to the headline — so all three headlines share one baseline y. */
.offer-chips { display: flex; align-items: flex-start; gap: 6px; height: 28px; margin-bottom: 10px; }
/* soft filled tints — 11px uppercase, no border; colours from tokens only */
.chip-label { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 6px 10px; border-radius: 999px; border: none; line-height: 1; white-space: nowrap; }
.chip-label.cheapest { color: var(--gold-ink); background: var(--gold-tint); }   /* CHEAPEST — gold tint */
.chip-label.fastest { color: var(--primary); background: var(--navy-tint); }     /* FASTEST — navy tint */
.chip-label.earliest { color: var(--teal); background: var(--teal-tint); }       /* EARLIEST — teal tint */
.offer-headline { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trade-note { font-size: 11px; color: var(--ink-55); font-weight: 500; margin-left: 4px; }
.offer-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; }
.offer-k { flex-shrink: 0; color: var(--ink-55); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; }
.offer-v { text-align: right; }
.offer-v { font-weight: 600; }
.offer-price .offer-v { font-family: var(--mono); }
/* muted delta line under All-in — slot reserved on every card (empty on cheapest) */
.offer-delta { font-size: 12px; color: var(--ink-55); margin-top: -4px; min-height: 15px; }
/* per-leg flight block — 3-column grid (flight | route | times) aligned across
   cards. The times cell is minmax(0,1fr): it fills the row but may shrink below
   its content, so times wrap/truncate inside the card and never overflow it. */
.offer-routing { font-family: var(--mono); font-size: 12px; line-height: 1.5; min-height: 36px;
  display: flex; flex-direction: column; gap: 2px; }
.leg-line { display: grid; grid-template-columns: 52px auto minmax(0, 1fr); align-items: baseline; gap: 8px; }
.leg-fno { font-weight: 700; color: var(--primary); white-space: nowrap; }
.leg-pair { font-weight: 700; white-space: nowrap; }
.leg-times { min-width: 0; display: flex; flex-direction: column; color: var(--ink-55); }
/* times wrap to fit the cell — never ellipsis-truncated, so the zone shows whole */
.leg-time { white-space: normal; overflow-wrap: anywhere; }
.leg-time .tz { color: var(--ink-55); white-space: nowrap; }   /* zone label — muted; kept intact */
.route-node { font-weight: 700; }
.route-arrow { color: var(--lavender-deep); margin: 0 4px; }
.route-dot { color: var(--ink-55); margin: 0 4px; }
.route { white-space: nowrap; }
.muted { color: var(--ink-55); font-weight: 400; font-size: 12px; }
/* element 6: a compact one-line status token — no fill, no border */
.offer-status { font-size: 13px; font-weight: 600; line-height: 1.3; }
.offer-status.ok { color: #3f7a5f; }         /* muted green ink — space confirmed */
.offer-status.caveat { color: #8a6d3b; }     /* muted amber ink — subject to dimensions */
/* filled amber box reserved for true per-offer warnings (thin data, expiring) */
.offer-status.new, .offer-status.warn { background: #f6edd8; color: #7a5f2e; border-radius: 6px; padding: 7px 10px; }
.offer-actions { display: flex; align-items: center; justify-content: flex-start; margin-top: 4px; }
.btn-book { background: var(--navy); color: #fff; border: none; border-radius: 8px; padding: 9px 18px; font-weight: 700; font-size: 13px; font-family: inherit; cursor: pointer; }
.btn-book:hover { background: var(--navy-mid); }

/* price-details expander — full-width row at the card bottom, below Book */
.price-expander { margin-top: 12px; border-top: 1px solid var(--rule-dark); }
/* "Price details ▾" reads as one unit: label + chevron grouped at the left,
   not split across the card width. Whole row is the click target (set in JS);
   the hover state darkens label+chevron and tints the row so it reads clickable. */
.pd-toggle { width: 100%; display: flex; align-items: center; justify-content: flex-start; gap: 6px;
  background: none; border: none; padding: 11px 8px; font-family: inherit; font-size: 14px; font-weight: 600;
  color: var(--primary); cursor: pointer; border-radius: 6px; transition: background 0.12s ease, color 0.12s ease; }
.pd-toggle:hover { background: var(--paper-alt); color: var(--navy-deep); }
/* chevron shares the label ink and darkens with it; ▾ swaps to ▴ when open,
   same 16px size and colour in both states */
.pd-chev { color: inherit; font-size: 16px; line-height: 1; }
.pd-body[hidden] { display: none; }
.pd-body .why-body { border-top: none; margin-top: 2px; padding-top: 0; }

.slate-note { font-size: 13px; color: var(--ink-70); margin: 16px 0 8px; }
.funnel-line { font-size: 13px; color: var(--ink-70); margin: 16px 0 8px; }
/* funnel row: funnel text left, "Make an offer" outline button right */
.funnel-row { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin: 18px 0 8px; }
.funnel-row .funnel-line { margin: 0; flex: 1 1 300px; min-width: 0; }
/* outline action — white fill, navy border + ink, never navy-filled or full-width.
   Auto width (content + 24px padding), min 140px, 40px tall, right-aligned. */
.btn-outline { width: auto; flex: 0 0 auto; min-width: 140px; height: 40px; box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: var(--navy); border: 1px solid var(--navy); border-radius: 8px;
  padding: 0 24px; font-family: inherit; font-weight: 700; font-size: 13px; cursor: pointer; white-space: nowrap; }
.btn-outline:hover { background: var(--paper-alt); }
.request-rate { font-size: 14px; }

.why-body { margin-top: 6px; border-top: 1px dashed var(--rule-dark-strong); padding-top: 12px; font-size: 13px; color: var(--ink-70); }
.why-body p { margin: 0 0 8px; line-height: 1.5; }
.why-charges { background: var(--paper-alt); border-radius: 8px; padding: 10px 12px; margin: 6px 0; }
.why-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding: 3px 0; }
.why-row span:last-child { font-family: var(--mono); white-space: nowrap; }
.why-basis { color: var(--ink-55); font-size: 12px; font-family: var(--mono); }
.why-row.total { border-top: 1px solid var(--rule-dark-strong); margin-top: 4px; padding-top: 6px; font-weight: 700; color: var(--ink); }
.why-cap { color: var(--lavender-deep); font-weight: 600; }
.why-conf { font-style: italic; }
.why-ref { font-family: var(--mono); font-size: 11px; color: var(--ink-55); margin-top: 8px; }

.interim { font-size: 12.5px; color: var(--ink-70); background: var(--paper-alt); border-radius: 6px; padding: 8px 10px; margin-top: 8px; }

.zero { background: #fff; border: 1px solid var(--rule-dark); border-radius: 10px; padding: 18px; margin-top: 16px; }
.zero p { margin: 0 0 8px; font-size: 14px; }
.zero-sub { color: var(--ink-70); font-size: 13px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { background: var(--paper-alt); border: 1px solid var(--rule-dark-strong); border-radius: 8px; padding: 7px 14px; font-family: inherit; font-size: 13px; cursor: pointer; }
.chip:hover { border-color: var(--primary); }

/* ---- typeahead ---- */
.ta-wrap { position: relative; }
.ta-list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% - 18px); margin: 0; padding: 4px; list-style: none;
  background: #fff; border: 1px solid var(--rule-dark-strong); border-radius: 8px; box-shadow: var(--shadow); max-height: 220px; overflow: auto; }
.ta-list li { padding: 8px 10px; border-radius: 6px; font-size: 14px; cursor: pointer; }
.ta-list li:hover { background: var(--paper-alt); }
.ta-list li b { font-family: var(--mono); }

/* ---- pieces read-only while sheet active ---- */
.f input.readonly { background: var(--paper-alt); color: var(--ink-70); }

/* ---- dimension sheet ---- */
#dimsSheet { position: relative; padding-top: 10px; }
.sheet-x { position: absolute; top: 0; right: 0; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center;
  background: none; border: none; font-size: 16px; color: var(--ink-55); cursor: pointer; border-radius: 6px; }
.sheet-x:hover { background: var(--rule-dark); color: var(--ink); }
.dim-sheet { width: 100%; border-collapse: collapse; margin-top: 4px; }
.dim-sheet th { text-align: left; font-size: 11px; font-weight: 600; color: var(--ink-55); text-transform: uppercase; letter-spacing: 0.05em; padding: 4px 6px; }
.dim-sheet td { padding: 4px 6px; }
.dim-sheet input { width: 100%; height: 40px; padding: 0 10px; font-family: inherit; font-size: 14px; border: 1px solid var(--rule-dark-strong); border-radius: 7px; }
.dim-sheet input:focus { outline: none; border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.dim-sheet .d-qty { max-width: 70px; }
.row-x { background: none; border: none; color: var(--ink-55); font-size: 18px; cursor: pointer; line-height: 1; padding: 4px 8px; }
.row-x:hover { color: var(--error); }
.dim-row-act { white-space: nowrap; text-align: right; }
.add-row { display: none; background: none; border: none; font-family: inherit; font-size: 13px; font-weight: 600; color: var(--primary); cursor: pointer; padding: 4px 6px; }
.dim-row:last-child .add-row { display: inline-block; }  /* only the last row shows "+ add row" */

/* ---- dangerous-goods confirmation ---- */
.dg-confirm { background: #f4f1ea; border-left: 3px solid var(--amber); color: #6b5d40; padding: 14px 16px; border-radius: 8px; margin-top: 16px; font-size: 14px; line-height: 1.5; }

/* ---- confirm-booking modal (centered ~520px over a scrim) ---- */
.cm-scrim { position: fixed; inset: 0; background: rgba(6,31,56,0.5); z-index: 64;
  display: flex; align-items: flex-start; justify-content: center; padding: 40px 24px; overflow-y: auto; }
/* flex column: scrollable body + sticky footer so Confirm stays visible even
   with the price expander open on a short viewport */
.cm-modal { position: relative; width: 100%; max-width: 520px; background: #fff; border-radius: 14px;
  box-shadow: 0 24px 60px rgba(6,31,56,0.32); display: flex; flex-direction: column; max-height: calc(100vh - 80px); }
.cm-body { flex: 1 1 auto; overflow-y: auto; padding: 28px 30px 10px; }
.cm-footer { flex: 0 0 auto; padding: 10px 30px 22px; background: #fff; border-top: 1px solid var(--rule-dark); border-radius: 0 0 14px 14px; }
.cm-x { position: absolute; top: 12px; right: 12px; z-index: 1; width: 40px; height: 40px; padding: 0; border: none;
  background: none; border-radius: 8px; font-size: 22px; line-height: 40px; color: var(--ink-55); cursor: pointer; }
.cm-x:hover { background: var(--paper-alt); color: var(--ink); }
.cm-title { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 14px; padding-right: 34px; }
.cm-flights { margin-bottom: 14px; }
.cm-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 14px; padding: 5px 0; }
.cm-k { color: var(--ink-55); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.cm-v { font-weight: 600; text-align: right; } .cm-v.mono, .cm-modal .mono { font-family: var(--mono); }
.cm-total { border-top: 1px solid var(--rule-dark); margin-top: 6px; padding-top: 10px; }
.cm-allin { font-family: var(--mono); font-size: 22px; font-weight: 700; color: var(--ink); }
.cm-field { margin: 12px 0 0; }
.cm-field label { display: block; font-size: 12px; font-weight: 600; color: var(--ink-70); margin-bottom: 4px; }
.cm-field input { width: 100%; height: 42px; padding: 0 12px; font-family: inherit; font-size: 14px;
  border: 1px solid var(--rule-dark-strong); border-radius: 8px; }
.cm-field input:focus { outline: none; border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.cm-err { display: none; color: #a5342f; font-size: 12px; margin: 10px 0 0; }
.cm-err.show { display: block; }
/* live countdown directly above the button — the one number that changes while
   the user decides, so it reads as live info: navy body ink, body weight (not
   muted grey). Escalates to amber under 2:00 (.warn); 0:00 hands off to expiry. */
/* resting: full navy body ink (a live number is not furniture). Warning (<2:00):
   the dark chip-text amber, heavier — escalation reads stronger, never paler.
   Both states clear WCAG AA (navy ~14:1, amber ~5:1 on the modal's white). */
.cm-countdown { font-family: var(--mono); font-size: 13px; color: var(--ink); font-weight: 600; margin: 0 0 8px; min-height: 18px; }
.cm-countdown.warn { color: var(--gold-ink); font-weight: 800; }
.cm-confirm { width: 100%; height: 48px; min-width: 0; }
/* price-details expander inside the modal — sits between All-in and the footer */
.cm-body .price-expander { margin-top: 12px; }
/* success state (swapped in place) */
.cm-success { padding: 28px 30px; }
.cm-success-actions { display: flex; align-items: center; gap: 16px; margin-top: 4px; }
.cm-ok { font-size: 20px; font-weight: 700; color: #3f7a5f; margin: 4px 0 16px; padding-right: 34px; }
.cm-line { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--rule-dark); }
.cm-accept { background: rgba(9,51,89,0.05); border-left: 3px solid var(--primary); color: var(--ink);
  font-weight: 600; padding: 12px 14px; border-radius: 8px; margin: 16px 0; font-size: 14px; }

/* ---- booking confirmation ---- */
.booking-confirm { background: var(--card); border: 1px solid var(--rule-dark); border-radius: 12px; padding: 26px; max-width: 620px; }
.bk-ok { font-size: 20px; font-weight: 700; color: #3f7a5f; margin-bottom: 16px; }
.bk-line { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--rule-dark); }
.bk-k { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-55); }
.bk-v { font-weight: 700; } .bk-v.mono, .mono { font-family: var(--mono); }
.bk-total .bk-v { font-size: 18px; }
.bk-ref { font-size: 12px; color: var(--ink-55); margin: 6px 0 0; }   /* footer style, like the rate-reference line */
.bk-actions { display: flex; align-items: center; gap: 16px; margin-top: 18px; }
.bk-flights { margin: 16px 0; display: grid; gap: 8px; }
.bk-flight { font-size: 14px; } .bk-fno { font-family: var(--mono); font-weight: 700; color: var(--primary); }
.bk-accept { background: rgba(9,51,89,0.05); border-left: 3px solid var(--primary); color: var(--ink); font-weight: 600; padding: 12px 14px; border-radius: 8px; margin: 8px 0 18px; font-size: 14px; }
/* receiver-details prominence: one amber action block (the reserved warning
   treatment) directly under the acceptance line — the ONLY filled amber
   element on the surface; resolves to a green line when complete */
.accept-action { background: #f6ecda; border: 1px solid #e6d3a8; border-radius: 10px; padding: 14px 16px; margin: 12px 0 18px; }
.aa-head { font-size: 14px; font-weight: 700; color: #8a5a1f; margin-bottom: 6px; }
.aa-body { font-size: 13px; color: #6b5d40; line-height: 1.5; margin: 0 0 12px; }
.accept-action .aa-btn { min-width: 0; }
.accept-ready { font-size: 14px; font-weight: 700; color: #3f7a5f; margin: 12px 0 18px; }

/* ---- my bookings ---- */
.mybk { background: #fff; border: 1px solid var(--rule-dark); border-radius: 12px; padding: 22px; }
.mybk h2 { font-size: 20px; margin: 0 0 14px; }
.mybk-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.mybk-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-55); border-bottom: 1px solid var(--rule-dark-strong); padding: 8px 10px; }
.mybk-table td { padding: 10px; border-bottom: 1px solid var(--rule-dark); }
.mybk-table .ok { color: #3f7a5f; font-weight: 600; }
.mybk-table .caveat { color: #6b5d40; font-weight: 600; }
.mybk-empty { color: var(--ink-55); font-size: 14px; margin: 18px 0; }

/* tabs with count badges */
.mybk-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--rule-dark-strong); margin-bottom: 6px; }
.mybk-tab { font-family: inherit; font-size: 14px; font-weight: 600; color: var(--ink-70); background: none;
  border: none; border-bottom: 2px solid transparent; padding: 8px 12px; margin-bottom: -1px; cursor: pointer; }
.mybk-tab:hover { color: var(--ink); }
.mybk-tab.active { color: var(--navy); border-bottom-color: var(--navy); }
.tab-count { display: inline-block; min-width: 18px; text-align: center; font-size: 11px; font-weight: 700;
  color: var(--ink-70); background: var(--paper-alt); border-radius: 999px; padding: 1px 6px; margin-left: 4px; }
.mybk-tab.active .tab-count { color: #fff; background: var(--navy); }

/* rows clickable; selection column */
.mybk-row { cursor: pointer; }
.mybk-row:hover { background: var(--paper-alt); }
.col-sel { width: 34px; text-align: center; }
.col-sel input { width: 15px; height: 15px; accent-color: var(--navy); cursor: pointer; }
.col-act { width: 96px; white-space: nowrap; }
.col-act .link { font-size: 13px; }

/* selection bar (Upcoming only) */
.mybk-selbar { display: flex; align-items: center; gap: 14px; background: var(--paper-alt);
  border: 1px solid var(--rule-dark-strong); border-radius: 8px; padding: 8px 12px; margin: 8px 0; }
.mybk-selbar[hidden] { display: none; }
.sel-count { font-size: 13px; font-weight: 600; color: var(--ink); }
.mybk-selbar .btn-outline { height: 34px; min-width: 0; }

/* status chips (derived) */
.chip { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.chip.confirmed { color: #3f7a5f; background: #eaf4ee; }
.chip.action { color: #8a5a1f; background: #f6ecda; }
.chip.not-tendered { color: #8a3a34; background: #f4e3e1; }
.chip.cancelled { color: var(--ink-55); background: var(--paper-alt); }
.chip.departed { color: #35506e; background: #e7edf4; }
.chip.declined, .chip.withdrawn { color: var(--ink-55); background: var(--paper-alt); }
.chip.lapsed { color: #8a3a34; background: #f4e3e1; }
.rq-lapsed-line { font-size: 12px; margin-top: 4px; max-width: 220px; }

/* ---- My requests: decision states, validity, withdraw, detail expander ---- */
.rq-table td { vertical-align: top; }
.rq-status .rq-approved-rate { font-size: 13px; font-weight: 700; color: var(--ink); margin-top: 4px; }
.rq-validity { font-size: 12px; color: var(--ink-55); margin-top: 2px; }
.rq-validity.expired { color: #8a3a34; font-weight: 600; }
.rq-withdraw { color: var(--ink-55); font-size: 13px; }
.rq-withdraw:hover { color: #8a3a34; }
.btn-sm { padding: 6px 12px; font-size: 13px; min-width: 0; }
.rq-expired { display: inline-block; font-size: 13px; font-weight: 600; color: var(--ink-55); }
.rq-detail-toggle { background: none; border: none; color: var(--ink-55); cursor: pointer; font-size: 12px; padding: 4px 6px; margin-left: 4px; border-radius: 6px; }
.rq-detail-toggle:hover { background: var(--paper-alt); color: var(--ink); }
.rq-detail td { color: var(--ink-70); font-size: 13px; background: var(--paper-alt); padding: 16px; }
.rq-detail-k { font-weight: 700; color: var(--ink-55); text-transform: uppercase; font-size: 11px; letter-spacing: 0.05em; margin-right: 6px; }
/* muted terminal timestamp under the status chip */
.rq-stamp { font-size: 12px; color: var(--ink-55); margin-top: 4px; font-variant-numeric: tabular-nums; }
/* expander: three stacked sections (challenged offer / your offer / timeline) */
.rq-detail-grid { display: flex; flex-direction: column; gap: 16px; max-width: 560px; }
.rq-detail-sec h4 { font-size: 12px; font-weight: 700; color: var(--ink); text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 8px; }
.rq-challenged .why-body { background: var(--card, #fff); border: 1px solid var(--rule-dark); border-radius: 8px; padding: 12px; }
.rq-yo { display: flex; gap: 8px; font-size: 13px; color: var(--ink); margin-bottom: 4px; }
.rq-yo-k { flex: 0 0 64px; color: var(--ink-55); font-weight: 600; }
/* timeline — one line per event, aligned event | time */
.rq-timeline { display: flex; flex-direction: column; gap: 6px; }
.rq-tl-row { display: flex; gap: 12px; font-size: 13px; align-items: baseline; }
.rq-tl-ev { flex: 0 0 92px; font-weight: 600; color: var(--ink); }
.rq-tl-at { color: var(--ink-70); font-variant-numeric: tabular-nums; }
.rq-detail-actions { margin-top: 4px; }

/* booking detail — a CENTERED modal over a scrim (no right drawer) */
.bk-scrim { position: fixed; inset: 0; background: rgba(6,31,56,0.5); z-index: 60; display: none;
  align-items: flex-start; justify-content: center; padding: 40px 24px; overflow-y: auto; }
.bk-scrim.show { display: flex; }
.bk-modal { position: relative; width: 100%; max-width: 640px; max-height: calc(100vh - 80px);
  display: flex; flex-direction: column; background: #fff; border-radius: 14px;
  box-shadow: 0 24px 60px rgba(6,31,56,0.32); }
.bk-modal-body { overflow-y: auto; padding: 24px 26px 8px; }
.bk-modal-footer { position: sticky; bottom: 0; flex: 0 0 auto; padding: 14px 26px;
  border-top: 1px solid var(--rule-dark); background: #fff; border-radius: 0 0 14px 14px; }
.bk-x { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; padding: 0; border: none;
  background: none; border-radius: 8px; font-size: 22px; line-height: 40px; color: var(--ink-55); cursor: pointer; z-index: 1; }
.bk-x:hover { background: var(--paper-alt); color: var(--ink); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; padding-right: 34px; }
.drawer-ref { font-size: 13px; font-weight: 700; color: var(--primary); }
.drawer-x { width: 40px; height: 40px; padding: 0; border: none; background: none; border-radius: 8px;
  font-size: 20px; line-height: 40px; color: var(--ink-55); cursor: pointer; }
.drawer-x:hover { background: var(--paper-alt); color: var(--ink); }
.drawer-banner { font-size: 14px; font-weight: 700; padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; }
.drawer-banner.confirmed { color: #3f7a5f; background: #eaf4ee; }
.drawer-banner.action { color: #8a5a1f; background: #f6ecda; }
.drawer-banner.not-tendered { color: #8a3a34; background: #f4e3e1; }
.drawer-banner.cancelled { color: var(--ink-70); background: var(--paper-alt); }
.drawer-banner.departed { color: #35506e; background: #e7edf4; }
.drawer-accept { background: rgba(9,51,89,0.05); border-left: 3px solid var(--primary); color: var(--ink);
  padding: 12px 14px; border-radius: 8px; font-size: 14px; margin-bottom: 16px; }
.drawer-sec { border-top: 1px solid var(--rule-dark); padding-top: 14px; margin-top: 14px; }
.drawer-sec h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-55); margin: 0 0 8px; }
.drawer-flights .bk-flight { font-size: 13px; margin-bottom: 4px; }
.drawer-line { font-size: 14px; } .drawer-line.muted { color: var(--ink-55); font-size: 13px; margin-top: 4px; }
.drawer-price { font-size: 20px; font-weight: 700; }
.completion { background: #f6ecda; border: 1px solid #e6d3a8; border-radius: 10px; padding: 14px 16px; }
.completion h4 { color: #8a5a1f; }
.completion-sub { font-size: 13px; color: #6b5d40; margin: 0 0 12px; }
.cf-field { margin-bottom: 10px; }
.cf-field label { display: block; font-size: 12px; font-weight: 600; color: var(--ink-70); margin-bottom: 4px; }
.cf-field input { width: 100%; height: 40px; padding: 0 11px; font-family: inherit; font-size: 14px;
  border: 1px solid var(--rule-dark-strong); border-radius: 8px; }
.cf-field input:focus { outline: none; border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.cf-err { display: none; color: #a5342f; font-size: 12px; margin-bottom: 8px; }
.cf-err.show { display: block; }
.cf-save { height: 42px; }
.drawer-cancel { display: block; width: 100%; margin-top: 18px; background: none; border: none;
  color: #a5342f; font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; padding: 8px; }
.drawer-cancel:hover { text-decoration: underline; }
.bk-modal-footer .drawer-cancel { margin-top: 0; }
.bk-modal-footer .btn-primary { width: 100%; }

/* ===== Shipment Details — shared component (modal + drawer mounts) ===== */
.sd-scrim { position: fixed; inset: 0; background: rgba(6,31,56,0.5); z-index: 65;
  display: none; align-items: flex-start; justify-content: center; padding: 40px 24px; overflow-y: auto; }
.sd-scrim.show { display: flex; }
.sd-modal { position: relative; width: 100%; max-width: 520px; background: #fff; border-radius: 14px;
  box-shadow: 0 24px 60px rgba(6,31,56,0.32); padding: 26px 28px; }
.sd-x { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; padding: 0; border: none;
  background: none; border-radius: 8px; font-size: 22px; line-height: 40px; color: var(--ink-55); cursor: pointer; }
.sd-x:hover { background: var(--paper-alt); color: var(--ink); }
.sd-title { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 6px; padding-right: 34px; }
.sd-sub { font-size: 14px; color: var(--ink-70); line-height: 1.5; margin: 0 0 18px; }
.drawer-completion .sd-title { font-size: 16px; }
.sd-block { margin-bottom: 16px; }
/* SENDER — a visually grouped unit: tinted card + hairline, 16px padding, the
   ✓ lines and Edit inside it, 24px of air below before the next group. */
.sd-sender { position: relative; background: var(--paper); border: 1px solid var(--rule-dark);
  border-radius: 10px; padding: 16px; margin-bottom: 24px; }
/* Edit is vertically centred on the whole block, not floating at a text edge */
.sd-sender .sd-edit { position: absolute; top: 50%; right: 16px; transform: translateY(-50%); }
/* COMMODITY — its own field group with a section heading (mirrors RECEIVER),
   24px above and below; optional, so no requirement badge. */
.sd-commodity { margin: 24px 0; }
.sd-commodity h3 { font-size: 14px; font-weight: 700; color: var(--ink); margin: 0 0 12px; }
/* RECEIVER — section-heading rhythm: 24px above, 12px below, fields at 16px */
.sd-receiver { margin-top: 24px; margin-bottom: 16px; }
.sd-receiver h3 { font-size: 14px; font-weight: 700; color: var(--ink); margin: 0 0 12px; }
.sd-receiver .sd-fields { gap: 16px; }
/* ✓ confirmed lines — 8px between SENDER and SENDER ADDRESS rows */
.sd-known { display: flex; flex-direction: column; gap: 8px; }
.sd-ok { display: flex; align-items: baseline; gap: 10px; font-size: 14px; }
.sd-sender .sd-ok { padding-right: 44px; }   /* clear the absolutely-placed Edit */
.sd-check { color: #3f7a5f; font-weight: 700; }
.sd-ok .sd-k { flex: 0 0 120px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-55); }
.sd-ok .sd-v { flex: 1 1 auto; color: var(--ink); }
.sd-edit { flex: 0 0 auto; }
/* one input style everywhere: label above, bordered input */
.sd-fields { display: flex; flex-direction: column; gap: 12px; }
.sd-field label { display: block; font-size: 12px; font-weight: 600; color: var(--ink-70); margin-bottom: 4px; }
.sd-field input { width: 100%; height: 42px; padding: 0 12px; font-family: inherit; font-size: 14px;
  border: 1px solid var(--rule-dark-strong); border-radius: 8px; }
.sd-field input:focus { outline: none; border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.sd-chk { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-70); cursor: pointer; }
.sd-chk input { width: 15px; height: 15px; accent-color: var(--navy); }
/* receiver typeahead */
.sd-typeahead { position: relative; }
.sd-suggest { position: absolute; left: 0; right: 0; top: 100%; z-index: 5; margin: 4px 0 0; padding: 4px; list-style: none;
  background: #fff; border: 1px solid var(--rule-dark-strong); border-radius: 8px; box-shadow: var(--shadow); max-height: 200px; overflow: auto; }
.sd-suggest-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 6px; cursor: pointer; font-size: 13px; }
.sd-suggest-item:hover, .sd-suggest-item.active { background: var(--paper-alt); }   /* keyboard + mouse share one highlight */
.sug-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.sug-name { font-weight: 600; color: var(--ink); }
.sug-addr { color: var(--ink-55); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sug-x { flex: 0 0 auto; width: 24px; height: 24px; padding: 0; border: none; background: none; color: var(--ink-55);
  font-size: 16px; line-height: 1; cursor: pointer; border-radius: 6px; }
.sug-x:hover { background: #f4e3e1; color: #8a3a34; }
/* inline delete confirm on the row */
.sd-suggest-item.confirming { cursor: default; }
.sug-confirm { font-size: 13px; color: #8a3a34; }
.sug-confirm-actions { display: flex; gap: 12px; flex: 0 0 auto; }
.sd-err { display: none; color: #a5342f; font-size: 12px; margin: 10px 0 0; }
.sd-err.show { display: block; }
.sd-actions { display: flex; justify-content: flex-end; margin-top: 18px; }
.sd-actions .btn-primary { min-width: 0; }
/* requirement-source labels — inform without shouting: 10px, uppercase, muted,
   plain text (no filled pill competing with the acceptance banner) */
.sd-source { display: inline-block; margin-left: 8px; font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--ink-55); vertical-align: middle; }
.sd-source.pricing { color: #6b4d8a; }
/* optional-field hint — quiet, sentence case, no uppercase shout */
.sd-optional, .cf-optional { font-size: 11px; font-weight: 500; color: var(--ink-55); letter-spacing: 0; text-transform: none; }
.sd-pricing h3 { font-size: 14px; font-weight: 700; color: var(--ink); margin: 0 0 10px; }
.sd-pricing-item { margin-bottom: 12px; }
.sd-pricing-item label { display: block; font-size: 12px; font-weight: 600; color: var(--ink-70); margin-bottom: 4px; }
.sd-pricing-item input { width: 100%; height: 42px; padding: 0 12px; font-family: inherit; font-size: 14px;
  border: 1px solid var(--rule-dark-strong); border-radius: 8px; }
.sd-pricing-item input:focus { outline: none; border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.sd-note { font-size: 13px; color: var(--ink-70); font-style: italic; margin: 0 0 6px; }

/* expiry modal — small centered overlay at 0:00 */
.expiry-scrim { position: fixed; inset: 0; background: rgba(6,31,56,0.5); z-index: 66;
  display: none; align-items: center; justify-content: center; padding: 24px; }
.expiry-scrim.show { display: flex; }
.expiry-modal { position: relative; width: 100%; max-width: 380px; background: #fff; border-radius: 14px;
  box-shadow: 0 24px 60px rgba(6,31,56,0.32); padding: 26px 28px; text-align: left; }
.expiry-x { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; padding: 0; border: none;
  background: none; border-radius: 8px; font-size: 22px; line-height: 40px; color: var(--ink-55); cursor: pointer; }
.expiry-x:hover { background: var(--paper-alt); color: var(--ink); }
.expiry-modal h2 { font-size: 19px; font-weight: 700; margin: 0 0 8px; padding-right: 34px; }
.expiry-modal p { font-size: 14px; color: var(--ink-70); line-height: 1.5; margin: 0 0 20px; }
.expiry-modal .btn-primary { width: 100%; min-width: 0; }

/* cancel confirm dialog */
.mybk-confirm-scrim { position: fixed; inset: 0; background: rgba(6,31,56,0.5); z-index: 70;
  display: none; align-items: center; justify-content: center; padding: 24px; }
.mybk-confirm-scrim.show { display: flex; }
.mybk-confirm { position: relative; background: #fff; border-radius: 12px; padding: 24px; max-width: 380px; box-shadow: var(--shadow); }
.mybk-confirm p { font-size: 15px; color: var(--ink); margin: 0 0 18px; line-height: 1.5; padding-right: 28px; }
.mybk-confirm .btn-row { display: flex; gap: 10px; }
.mybk-confirm .btn-row .btn { flex: 1; }

/* ---- contract-rate line (scenario 4) ---- */
.contract-line { font-size: 12px; font-weight: 700; color: var(--primary); }

/* ---- validity / expiry (scenario 2) ---- */
/* expiring offer (<2 min) — a true warning, so it earns the filled amber box */
.offer-status.warn { background: #f6edd8; color: #7a5f2e; border-radius: 6px; padding: 7px 10px; }
.offer-status.expired { color: var(--ink-55); }
.offer.expired { opacity: 0.6; }
.offer.expired .btn-book { background: var(--rule-dark-strong); cursor: default; }
.refresh-offers { display: inline-block; margin-bottom: 12px; }

/* ---- ready-date note (scenario 16) ---- */
#note-readyDate { color: #6b5d40; }

/* ---- rate request (scenario 10) ---- */
.rr-panel { position: relative; background: var(--card); border: 1px solid var(--rule-dark); border-radius: 12px; padding: 18px; margin-top: 12px; max-width: 460px; }
/* inside the modal scrim it is centred, not offset below the funnel row */
.rr-overlay .rr-panel { margin-top: 0; width: 100%; box-shadow: 0 18px 48px rgba(6, 31, 56, 0.28); }
.rr-x { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; padding: 0; border: none; background: none; border-radius: 8px; font-size: 20px; line-height: 40px; color: var(--ink-55); cursor: pointer; }
.rr-x:hover { background: var(--paper-alt); color: var(--ink); }
.rr-panel h3 { font-size: 15px; margin: 0 0 8px; padding-right: 34px; }
.rr-offer { font-size: 13px; color: var(--ink-70); margin-bottom: 12px; }
.rr-field { margin-bottom: 12px; }
.rr-field label { display: block; font-size: 12px; font-weight: 600; color: var(--ink-70); margin-bottom: 5px; }
.rr-field input, .rr-field select, .rr-field textarea { width: 100%; padding: 9px 11px; font-family: inherit; font-size: 14px; border: 1px solid var(--rule-dark-strong); border-radius: 8px; }
.rr-field input:focus, .rr-field select:focus, .rr-field textarea:focus { outline: none; border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
/* target rate: no native number-spinner arrows */
.rr-target { -moz-appearance: textfield; appearance: textfield; }
.rr-target::-webkit-outer-spin-button, .rr-target::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
/* Submit offer: primary navy, right-aligned, auto-width */
.rr-actions { display: flex; justify-content: flex-end; }
.rr-actions .rr-submit { width: auto; min-width: 0; }
.rr-guidance { font-size: 13px; min-height: 18px; margin-bottom: 10px; font-weight: 600; }
.rr-guidance.at-or-above { color: var(--ink-55); }
.rr-guidance.analyst { color: var(--primary); }
.rr-guidance.manager { color: #a5342f; }
.rr-err { display: none; color: #a5342f; font-size: 12px; margin-bottom: 8px; }
.rr-err.show { display: block; }
/* submit success state — swaps into the modal in place (no inline banner) */
.rr-success { text-align: left; }
.rr-ok { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); margin: 0 0 8px; padding-right: 34px; }
.rr-sub { font-size: 14px; color: var(--ink-70); line-height: 1.55; margin: 0 0 18px; }
.rr-success .btn-row { justify-content: flex-start; }
/* routing cell in My requests */
.rq-route { font-size: 14px; } .rq-route .muted { color: var(--ink-55); }

/* ---- recent strip (signed-in with history) ---- */
.recent { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; font-size: 13px; }
.recent[hidden] { display: none; }
.recent .recent-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-55); }
.recent .dot { color: var(--rule-dark-strong); }

/* ---- footer (all routes) — pinned to the bottom by the flex column ---- */
/* Footer: full-bleed white, hairline top border, 56px, one line; content on the
   same 1100 container grid. Pinned to the viewport bottom by the flex column
   (main grows) — no absolute positioning, no grey band beneath it. */
.footer { flex-shrink: 0; height: 56px; font-size: 13px; color: var(--ink-55); border-top: 1px solid var(--rule-dark); background: #fff; }
.footer .shell { gap: 10px; }
.footer a { color: var(--ink-70); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer .dot { color: var(--rule-dark-strong); }

/* the cost summary is a print-only document — never on screen */
.cost-summary { display: none; }

/* ---- print: two variants of the SAME page, no PDF generation ----
   default (operational) = the confirmation card (driver: acceptance prominent,
   no charge table); body.printing-cost-summary = the finance cost summary. */
@media print {
  .topbar, .footer, #quoteView, #mybookings, #myrequests,
  #recentStrip, #cwStrip, #dateStrip, #offers, #signInModal,
  .cm-scrim, .expiry-scrim, .bk-scrim, .sd-scrim, .mybk-confirm-scrim, .rr-overlay { display: none !important; }
  .wrap { padding: 0 !important; margin: 0 !important; max-width: none !important; }
  #booking { display: block !important; }
  /* black-on-white; strip chrome */
  .booking-confirm { border: none; box-shadow: none; max-width: none; padding: 0; margin: 0; background: #fff; color: #000; }
  .bk-ok, .bk-k, .bk-v, .bk-flight, .bk-fno, .bk-ref { color: #000 !important; }
  .bk-line { border-bottom: 1px solid #000; }
  /* reference + AWB prominent */
  .booking-confirm .bk-line:nth-of-type(1) .bk-v,
  .booking-confirm .bk-line:nth-of-type(2) .bk-v { font-size: 17px; font-weight: 800; }
  /* acceptance line boxed */
  .bk-accept { background: #fff !important; border: 1px solid #000 !important; color: #000 !important; border-radius: 0; }
  /* no interactive controls in the print */
  .bk-actions, .task-chip, .booking-confirm button, .booking-confirm .link { display: none !important; }

  /* default print hides the cost summary; the cost-summary variant swaps the
     two documents so exactly one prints */
  .cost-summary { display: none !important; }
  body.printing-cost-summary .booking-confirm { display: none !important; }
  body.printing-cost-summary .cost-summary { display: block !important; color: #000; max-width: none; margin: 0; padding: 0; }
  /* cost summary layout — black on white, itemised */
  .cost-summary, .cost-summary * { color: #000 !important; }
  .cs-head { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 2px solid #000; padding-bottom: 8px; margin-bottom: 14px; }
  .cs-wordmark { font-size: 15px; font-weight: 800; letter-spacing: 0.02em; }
  .cs-title { font-size: 20px; font-weight: 800; margin: 0; }
  .cs-meta { margin-bottom: 14px; }
  .cs-row, .cs-line { display: flex; justify-content: space-between; gap: 16px; padding: 4px 0; border-bottom: 1px solid #ddd; }
  .cs-k { font-weight: 700; }
  .cs-shipment { margin: 14px 0; }
  .cs-flights { margin: 6px 0; }
  .cs-flight { font-size: 13px; padding: 2px 0; }
  .cs-fno { font-weight: 700; }
  .cs-charges { margin: 14px 0; border-top: 1px solid #000; padding-top: 10px; }
  .cs-charges .why-body { border: none; }
  .cs-foot { font-size: 12px; font-style: italic; margin-top: 18px; padding-top: 10px; border-top: 1px solid #000; }
  .cs-billto { margin: 12px 0; }
  .cs-billto-k { font-weight: 700; text-transform: uppercase; font-size: 11px; letter-spacing: 0.05em; color: #000; }
  .cs-billto-name { font-weight: 700; } .cs-billto-addr, .cs-billto-trn { font-size: 13px; }
}
/* bill-to shown on screen too (cost summary is print-only, but keep it black-on-white legible) */
.cs-billto { margin: 12px 0; }
.cs-billto-k { font-weight: 700; text-transform: uppercase; font-size: 11px; letter-spacing: 0.05em; color: var(--ink-55); margin-bottom: 4px; }
.cs-billto-name { font-weight: 700; color: var(--ink); }
.cs-billto-addr, .cs-billto-trn { font-size: 13px; color: var(--ink-70); }

/* ===== Profile page — three grouped cards, view/edit like the sender block == */
.pf-page { background: #fff; border: 1px solid var(--rule-dark); border-radius: 12px; padding: 22px; max-width: 720px; }
.pf-title { font-size: 20px; margin: 0 0 16px; }
.pf-group { border: 1px solid var(--rule-dark); border-radius: 10px; padding: 16px; margin-bottom: 16px; }
.pf-group:last-child { margin-bottom: 0; }
.pf-group-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.pf-group-head h3 { font-size: 14px; font-weight: 700; color: var(--ink); margin: 0; }
.pf-hint { font-weight: 500; font-size: 11px; color: var(--ink-55); text-transform: none; letter-spacing: 0; }
.pf-actions { display: flex; justify-content: flex-end; margin-top: 14px; }
.pf-actions .btn-primary { min-width: 0; }
