/* Heavy-Haul Quote, visual audit batch 2 (2026-11-20). Linked after heavy-haul-form-polish.css. Tokens only; layout, colour and wording, nothing here prices anything.
   The Transit breakdown card stays the deliberate light slab (owner decision). */

/* LANE CHARGES (HH-1, HH-2): the name keeps clear of the figure column, and the figure, its pencil and the x sit in one right-aligned stack, so every
   delete button is on the same vertical line and the name and the figure share the row's middle. */
.hh-ct tbody tr.hh-ct-laner > th.hh-ct-lanelab { vertical-align: middle; padding-top: 8px; padding-bottom: 8px; }
.hh-ct tbody tr.hh-ct-laner > td { padding-top: 8px; padding-bottom: 8px; }
.hh-ct tbody tr.hh-ct-laner > td .hh-manual-amount { justify-content: flex-end; }
.hh-ct tbody tr.hh-ct-laner > td .hh-ct-v { min-width: 72px; text-align: right; }
@media (max-width: 640px) {
  .hh-ct .hh-ct-laner .hh-ct-lanein { width: calc(100vw - 200px); }
  /* Three lines before any ellipsis, so a long charge name is read whole. */
  .hh-ct .hh-ct-laner.is-system .hh-lt-name-show { -webkit-line-clamp: 3; line-clamp: 3; }
}

/* POSSIBLE EXTRA COSTS (HH-5): the chevron stays on the line of its text on a phone; the range wraps beneath only if it must. */
@media (max-width: 480px) {
  .hh-extra-i > summary { flex-wrap: nowrap; }
  .hh-extra-k { flex: 1 1 0; }
  .hh-extra-v { flex: 0 1 40%; text-align: right; }
}

/* ONE CHEVRON ON EVERY DISCLOSURE (HH-6): these summaries are flex boxes, which drops the browser's own marker. */
#hh-extra-h { display: flex; align-items: center; }
#hh-extra-h::before, .hh-equipment-comparison > summary::before, .hh-equipment-screened > summary::before, .hh-why-not > summary::before, .hh-ps > summary::before, .hhb-sum::before { content: ""; flex: 0 0 auto; width: 6px; height: 6px; margin-right: 8px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(-45deg); transition: transform .12s; }
#hh-extra[open] > #hh-extra-h::before, .hh-equipment-comparison[open] > summary::before, .hh-equipment-screened[open] > summary::before, .hh-why-not[open] > summary::before, .hh-ps[open] > summary::before, .hhb[open] > .hhb-sum::before { transform: rotate(45deg); }
#hh-extra-h::-webkit-details-marker, .hh-equipment-comparison > summary::-webkit-details-marker, .hh-equipment-screened > summary::-webkit-details-marker, .hh-why-not > summary::-webkit-details-marker, .hh-ps > summary::-webkit-details-marker, .hhb-sum::-webkit-details-marker { display: none; }
@media (prefers-reduced-motion: reduce) { #hh-extra-h::before, .hh-equipment-comparison > summary::before, .hh-equipment-screened > summary::before, .hh-why-not > summary::before, .hh-ps > summary::before, .hhb-sum::before { transition: none; } }

/* ROUTE-SURVEY DIALOG (HH-8): air under the heading, values lighter than their labels, a textarea tall enough for its text. */
.hh-survey-dialog header + p { margin: 8px 0 0; }
.hh-survey-fields :is(input, select, textarea) { font-weight: 400; }
.hh-survey-fields textarea { min-height: 96px; }

/* TOUCH TARGETS (HH-4): small controls keep their look and gain a larger hit area. */
.hh-ct-info, .hh-ct-headtip, .hh-tc .hh-tc-more { position: relative; }
.hh-ct-info::after, .hh-ct-headtip::after, .hh-tc .hh-tc-more::after { content: ""; position: absolute; inset: -12px -8px; }

/* The empty live-status line under the cost table no longer reserves a blank row (HH-6 dead gap). */
.hh-ct-status:empty { min-height: 0; margin: 0; }

/* A "could not place that" note under one address box uses the width of both boxes on a phone (not a 174px column), unless both boxes carry one. */
@media (max-width: 640px) {
  .hh-inaddr:not(:has(#hh-destination-note.hh-addr-note--todo)) #hh-origin-note.hh-addr-note--todo { width: calc(200% + 10px); }
  .hh-inaddr:not(:has(#hh-origin-note.hh-addr-note--todo)) #hh-destination-note.hh-addr-note--todo { width: calc(200% + 10px); margin-left: calc(-100% - 10px); }
}

/* TRANSIT CARD FLAGS (HH-10): the warning icon shares the line of its text instead of standing alone above a long sentence; the code chip wraps beneath. */
.hh-tc .hh-tc-flag { align-items: flex-start; }
.hh-tc .hh-tc-flag > span { flex: 1 1 8em; min-width: 0; }
.hh-tc .hh-tc-flag > .hh-tc-flag-ico { margin-top: 4px; }

/* PLANNING ALLOWANCE SUBTOTAL: OUR figures, kept apart from the published agency fees (QA-fix, shipper #1/#2). */
.hh-plan-allow { margin: 12px 0 8px; padding: 12px; border: 1px dashed var(--warn); border-radius: 12px; background: color-mix(in srgb, var(--warn) 6%, var(--surface)); color: var(--ink); }
.hh-plan-allow-h { margin: 0 0 8px; font-size: 14px; font-weight: 700; }
.hh-plan-allow-h span { font-weight: 400; color: var(--muted); }
.hh-plan-allow-l { margin: 0; padding: 0; list-style: none; }
.hh-plan-allow-l li, .hh-plan-allow-t { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 4px 0; font-size: 13px; line-height: 1.4; }
.hh-plan-allow-t { margin-top: 4px; border-top: 1px solid var(--line, currentColor); font-weight: 700; }
.hh-plan-allow-s { margin: 8px 0 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
.hh-eng-na { color: var(--muted); }

/* TOTAL STATUS: the total's own headline (priced items vs complete estimate, open items, readiness). */
.hh-tstatus { margin: 8px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink); }
.hh-tstatus-h { margin: 0; font-weight: 600; }
.hh-tstatus ul { margin: 4px 0 0; padding-left: 24px; }

/* PERMIT RULES AND SOURCES, STATE BY STATE */
.hh-ps .hh-ps-st { margin: 12px 0; padding-top: 8px; border-top: 1px solid var(--line, currentColor); }
.hh-ps h4 { margin: 0 0 4px; font-size: 14px; }
.hh-ps ul { margin: 4px 0; padding-left: 24px; font-size: 13px; line-height: 1.5; }
.hh-ps .hh-ps-fees { padding-left: 0; list-style: none; }
.hh-ps .hh-ps-fees li { display: flex; justify-content: space-between; gap: 12px; }
.hh-ps .hh-ps-k { margin: 8px 0 0; font-size: 12px; font-weight: 600; color: var(--muted); }
.hh-ps .hh-ps-pub, .hh-ps .hh-ps-dates { color: var(--muted); }
.hh-ps a { overflow-wrap: anywhere; }

/* NO-JAVASCRIPT NOTICE: the tool cannot price without script, and a visitor without it is told so above the form. */
.hh-nojs { margin: 16px 0; padding: 16px; border: 1px solid var(--warn); border-radius: 12px; background: color-mix(in srgb, var(--warn) 8%, var(--surface)); color: var(--ink); font-size: 16px; line-height: 1.5; }

/* PRINT (Ctrl+P): the quote, not the page. The form, map, header, footer, FAQ, chat and every button are left off; the total prints in ink on paper
   (the blue bar's white text used to print white on white because browsers drop backgrounds); a block that holds together stays on one page. */
@media print {
  .qf-skip, .site-header, #site-mobile-menu, .qtt-crumbs, .qtt-band, .premium-footer, #hh-qbar, #hh-top, #hh-gobar, #related, #faq, #qtt-report,
  .qf-mc-fab, .qf-mc-backdrop, .qf-mc-panel, dialog, button, .hh-cue, .hh-ct-addrow, .hh-ct-swipe, .hh-nojs { display: none !important; }
  body, main, .qh-shell { background: Canvas !important; color: CanvasText !important; }
  .hh-ctotal, .hh-ctotal * { color: CanvasText !important; background: none !important; }
  .hh-ctotal { border: 2px solid CanvasText; break-inside: avoid; }
  .hh-ctable-scroll { overflow: visible !important; }
  .hh-eng, .hh-plan-allow, .hh-tstatus, .hh-ps-st, .hh-tr, .hh-ctotal, .hh-ct tr, #hh-rig3d, .hh-rig3d, [class*="rig3d"] { break-inside: avoid; }
  .hh-cue-body, details > :not(summary) { display: block !important; }
  a { color: CanvasText !important; text-decoration: underline; }
}

/* SAME PICKUP AND DELIVERY NOTICE */
.hh-lane-warn { margin: 12px 0; padding: 12px; border: 1px solid var(--warn); border-radius: 12px; background: color-mix(in srgb, var(--warn) 8%, var(--surface)); color: var(--ink); font-size: 14px; line-height: 1.5; }

/* SMART DIMENSION READOUT: what the typed length was understood as, with a plain warning when it is far outside any load. */
.hh-readout { grid-column: 1 / -1; margin: 8px 0; font-size: 14px; line-height: 1.5; color: var(--ink); }
.hh-readout--warn { color: var(--warn); font-weight: 600; }

/* The status line sits inside the blue total bar: it takes the bar's own text colour, not the page ink. */
.hh-ctotal .hh-tstatus, .hh-ctotal .hh-tstatus summary, .hh-ctotal .hh-tstatus li { color: inherit; }

/* ESTIMATED-TOTAL SUMMARY (owner, 2026-12-01) (spec said 20px 24px padding; the spacing guard's grid has no 20, so 24px): the blue banner, the scope grid, the accordion, the status pill and the one action bar. Tokens only:
   the banner is the site's single primary blue (--accent-fill, white --accent-ink). Secondary banner text is --accent-ink at 88-90%, which stays above
   4.5:1 on that blue (78% did not). */
.hh-ctotal.hh-ctotal--foot { padding: 24px; border-radius: 12px; }
.hh-ctotal-main { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px 24px; }
.hh-ctotal-copy { flex: 1 1 240px; min-width: 0; }
.hh-ctotal--foot .hh-tl { display: block; font-size: 11px; font-weight: 600; line-height: 1.4; letter-spacing: 0.06em; text-transform: uppercase; color: color-mix(in srgb, var(--accent-ink) 88%, transparent); }
.hh-ctotal--foot .hh-tvalid { margin: 8px 0 0; font-size: 13px; font-weight: 700; line-height: 1.4; color: var(--accent-ink); }
.hh-ctotal--foot .hh-tmay { margin: 4px 0 0; font-size: 12px; line-height: 1.5; color: color-mix(in srgb, var(--accent-ink) 90%, transparent); }
.hh-ctotal--foot .hh-tstatus { margin: 8px 0 0; font-size: 12px; line-height: 1.5; }
.hh-ctotal--foot .hh-tstatus .hh-assumption-detail { margin: 4px 0 0; padding: 0; }
.hh-ctotal-fig { flex: 0 0 auto; margin-left: auto; gap: 8px; }
.hh-ctotal--foot .hh-ctotal-fig .hh-tv { font-size: 36px; font-weight: 700; line-height: 1.4; font-variant-numeric: tabular-nums; color: var(--accent-ink); }
.hh-ctotal--foot .hh-ctotal-cur { margin: 0; padding: 4px 8px; border-radius: var(--radius-pill); background: color-mix(in srgb, var(--accent-ink) 18%, transparent); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; line-height: 1.4; color: var(--accent-ink); opacity: 1; }
.hh-ctotal--foot.hh-ctotal--foot .hh-ctotal-i { width: 28px; height: 28px; min-width: 28px; min-height: 28px; font-size: 14px; }
.hh-ctotal--foot .hh-ctotal-i::after { inset: -8px; }
.hh-ctotal--foot.hh-ctotal--foot .hh-cue:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.hh-ctotal--foot .hh-ctotal-curnote { margin: 12px 0 0; font-size: 12px; color: color-mix(in srgb, var(--accent-ink) 90%, transparent); opacity: 1; }
@media (max-width: 480px) {
  .hh-ctotal.hh-ctotal--foot { padding: 24px 16px; }
  .hh-ctotal--foot .hh-ctotal-fig .hh-tv { font-size: 32px; }
  .hh-ctotal-fig { margin-left: 0; }
}

/* THE (i) PANEL under the banner: rate validity, fuel basis, accessorials. */
.hh-ctotal-pop { position: relative; margin: 12px 0 0; padding: 16px; border-radius: 12px; font-size: 13px; line-height: 1.5; }
.hh-ctotal-pop::before { content: ""; position: absolute; top: -4px; right: 24px; width: 8px; height: 8px; background: inherit; border-left: 1px solid var(--border); border-top: 1px solid var(--border); transform: rotate(45deg); }
.hh-ctotal-pop .hh-pop-row { margin: 0 0 8px; }
.hh-ctotal-pop .hh-pop-row b { display: block; color: var(--ink); }

/* THE STATUS PILL under the total (a table edit, "Manual charge removed. Total $3,455."): subtle, dismissible, announced politely. */
.hh-ct-statuswrap { margin: 12px 0 0; min-height: 0; }
.hh-ct-statuswrap:empty { display: none; margin: 0; }
.hh-pill { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-3); color: var(--ink-soft); font-size: 12px; line-height: 1.4; }
.hh-pill svg { flex: 0 0 auto; color: var(--success); }
.hh-pill-t { min-width: 0; overflow-wrap: anywhere; }
.hh-pill-x { position: relative; flex: 0 0 auto; width: 24px; height: 24px; padding: 0; border: 0; border-radius: var(--radius-pill); background: transparent; color: inherit; font-size: 16px; line-height: 1.4; cursor: pointer; }
.hh-pill-x::after { content: ""; position: absolute; inset: -12px; }
.hh-pill-x:hover { color: var(--ink); }
.hh-pill-x:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* THE SCOPE GRID: Included | Not included, short lines, a check, a dash or an alert icon each. */
.hh-incl { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px 24px; margin: 0; padding: 16px 0; }
.hh-incl .hh-incl-k { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.hh-incl-n { padding: 0 8px; border-radius: var(--radius-pill); background: var(--surface-3); color: var(--ink-soft); font-size: 12px; font-weight: 600; letter-spacing: 0; line-height: 1.5; }
.hh-incl .hh-incl-ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.hh-incl-i { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 1.5; color: var(--ink); }
.hh-incl-i .hh-sc-ico { flex: 0 0 16px; transform: translateY(2px); }
.hh-incl-line.is-in .hh-sc-ico { color: var(--success); }
.hh-incl-line.is-out .hh-sc-ico { color: var(--muted); }
.hh-incl-line.is-out .hh-incl-i.is-warn .hh-sc-ico { color: var(--warn); }

/* POSSIBLE EXTRA COSTS as an accordion row, with the real item count. */
.hh-extra { margin-top: 0; padding-top: 0; border-top: 1px solid var(--border); }
#hh-extra-h.hh-extra-h { min-height: 44px; margin: 0; padding: 12px 0; font-size: 15px; font-weight: 600; cursor: pointer; box-sizing: border-box; }
#hh-extra-h .hh-extra-t { min-width: 0; }
#hh-extra-h .hh-extra-n { margin-left: 8px; padding: 0 8px; border-radius: var(--radius-pill); background: var(--surface-3); color: var(--ink-soft); font-size: 12px; font-weight: 600; line-height: 1.5; }
#hh-extra-h:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* THE ONE ACTION BAR under the scope and extra-costs block (it replaces the row that sat above the table). */
.hh-actbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.hh-actbar .btn { min-height: 44px; padding: 8px 16px; font-size: 14px; font-weight: 600; }
.hh-actbar .btn-primary { background: var(--accent-fill); color: var(--accent-ink); border: 1px solid var(--accent-fill); border-radius: var(--radius-btn); cursor: pointer; }
.hh-actbar .btn-secondary { cursor: pointer; }
.hh-actbar .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hh-actbar-say { flex-basis: 100%; font-size: 12px; line-height: 1.5; color: var(--ink-soft); }
.hh-actbar-say:empty { display: none; }
@media (max-width: 480px) { .hh-actbar .btn { flex: 1 1 calc(50% - 8px); } }
@media print { .hh-actbar, .hh-ct-statuswrap { display: none !important; } }

/* THE ONE ACTION AREA: the share block is docked under the extra-costs block, so it drops the card chrome it had as a separate row. */
.hh-share--docked { margin-top: 16px; padding: 16px 0 0; border: 0; border-top: 1px solid var(--border); border-radius: 0; background: transparent; }
.hh-actbar .hh-pdf-comparison-toggle { flex-basis: 100%; display: flex; align-items: center; gap: 8px; min-height: 44px; margin: 0; font-size: 13px; color: var(--ink-soft); }
.hh-share--docked .hh-sharelink { margin-top: 12px; }
.hh-share--docked .hh-sharestat { padding-bottom: 8px; }

/* A rig change the new cargo position needs is offered, never swapped in silently. */
.hh-r3-switch { display: grid; gap: 8px; padding: 12px; border-radius: 12px; border: 1px solid var(--accent); background: var(--surface); }
.hh-r3-switch p { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink); }
.hh-r3-switch-b { display: flex; flex-wrap: wrap; gap: 8px; }
.hh-r3-switch-b .hh-r3-btn { min-height: 44px; }
.hh-share .hh-actbar { margin-top: 0; padding-top: 0; border-top: 0; }
@media print { .hh-share--docked { display: none !important; } }

/* The labels hidden to keep the 3D drawing readable are named in a legend row under it. */
.hh-r3 .hh-r3-legend { margin: 8px 0 0; font-size: 12px; line-height: 1.5; color: var(--ink-soft); }
.hh-r3 .hh-r3-legend[hidden] { display: none; }

/* PHONE: a taller drawing, labels and hints at 12px or more, axle badges at 24px or more (their 44px hit area comes from the coarse-pointer rule), 44px controls. */
@media (max-width: 640px) {
  .hh-r3 .hh-r3-view, .hh-r3 .hh-r3-view[data-r3-view="side"], .hh-r3 .hh-r3-view[data-r3-view="top"] { min-height: 296px; }
  .hh-r3 .hh-r3-chip { font-size: 12px; }
  .hh-r3 .hh-r3-load .hh-r3-tag, .hh-r3 .hh-r3-load .hh-r3-lb { font-size: 12px; }
  .hh-r3 .hh-r3-axles .hh-r3-axle-btn { font-size: 12px; transform: translate(-50%, -50%) scale(max(var(--hh-axb-s, 1), 1)); }
  .hh-r3 .hh-r3-controls .hh-r3-btn, .hh-r3 .hh-r3-controls .hh-r3-module-list button, .hh-r3-inspection .hh-r3-btn, .hh-r3-inspection .hh-r3-manual-t, .hh-r3-inspection details > summary { min-height: 44px; }
  .hh-r3 .hh-r3-note, .hh-r3 .hh-r3-span, .hh-r3 .hh-r3-foot, .hh-r3-inspection .hh-r3-manual-n, .hh-r3-inspection .hh-r3-fig-k { font-size: 12px; }
}
@media (pointer: coarse) { .hh-r3-inspection .hh-cue, .hh-r3 .hh-cue { position: relative; } .hh-r3 .hh-cue::after { content: ""; position: absolute; inset: -16px; } }

/* The rig-change note by the total. */
.hh-rigchange { margin: 8px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink-soft); }
.hh-rigchange strong { color: var(--ink); }
