/* 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, .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, .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, .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, .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; }

/* QUICK ACTIONS AT THE TOP OF THE RESULT: one row, 44px targets, wraps on a phone. */
.hh-topacts { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.hh-topacts .btn { min-height: 44px; flex: 1 1 auto; }
