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