/* Energy quote comparer (public/tools/quotes.css). Every rule is scoped under #quotes.
   Built from the shared classes in tools.css (.tool-head .card .field .label .input .seg .btn .note);
   the q- classes below are this tool's own layout. Colours are the page tokens only; fallbacks repeat them. */

#quotes h5 { margin: 0; }
#quotes .q-headbtns { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
#quotes .q-private { margin-top: 14px; }
#quotes .q-undo { margin-top: 10px; padding: 8px 12px; border-left: 2px solid var(--clay, #C96F4E); background: var(--clay-wash, rgba(201, 111, 78, .1)); font-size: 14px; }

#quotes .q-step { display: flex; align-items: baseline; gap: 10px; margin: 30px 0 12px; }
#quotes .q-step b {
  font-family: var(--serif); font-weight: 700; font-size: 22px; line-height: 1; letter-spacing: 0;
  color: var(--ink, #1F1D1A); font-variant-numeric: lining-nums;
}
#quotes .q-link {
  font: inherit; font-size: 13px; color: var(--ink-soft, rgba(31, 29, 26, .74)); background: transparent; border: 0; padding: 6px 0; min-height: 32px;
  cursor: pointer; text-decoration: underline; text-decoration-color: var(--rule-strong, rgba(31, 29, 26, .34)); text-underline-offset: 4px; text-align: left;
}
#quotes .q-link:hover:not(:disabled) { color: var(--clay-deep, #A85538); }
#quotes .q-link:disabled { opacity: .36; cursor: not-allowed; }

#quotes .q-err { margin-top: 6px; font-size: 13px; line-height: 1.4; color: var(--clay-deep, #A85538); }
#quotes .q-err:empty { display: none; }
#quotes .input-wrap:has([aria-invalid="true"]) { border-color: var(--clay-deep, #A85538); }
#quotes .input-wrap:has(:disabled) { opacity: .5; }
#quotes .input { font-variant-numeric: lining-nums tabular-nums; }
#quotes .input-suffix { font-size: 13px; white-space: nowrap; }

#quotes .q-check { display: inline-flex; align-items: center; gap: 9px; min-height: 36px; cursor: pointer; font-size: 14px; }
#quotes .q-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--clay-deep, #A85538); flex: none; }

/* ---------- 1 the customer ---------- */
#quotes .q-customer { display: grid; grid-template-columns: auto minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr); gap: 22px 30px; align-items: start; }
#quotes .q-customer .note { margin-top: 8px; }
#quotes .q-helper { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 10px; }
#quotes .q-helper-label { flex: 1 1 100%; font-size: 13px; color: var(--ink-faint, rgba(31, 29, 26, .5)); }
#quotes .q-presets { display: flex; flex-wrap: wrap; gap: 6px; }
#quotes .q-presets .btn span { color: var(--ink-faint, rgba(31, 29, 26, .5)); font-variant-numeric: lining-nums tabular-nums; }
#quotes .q-presets .btn:hover span { color: inherit; }
#quotes .q-monthly { margin-top: 8px; max-width: 240px; }
#quotes .q-f-ccl { display: flex; flex-direction: column; }
#quotes .q-f-ccl .q-check { margin-top: 5px; }
#quotes .q-ccl-rate { margin-top: 8px; }
#quotes .q-f-ccl:not(.is-on) .q-ccl-rate .label { opacity: .5; }
#quotes .q-ccl-hint { color: var(--ink-soft, rgba(31, 29, 26, .74)); padding-left: 10px; border-left: 2px solid var(--clay, #C96F4E); }

/* ---------- 2 the quotes ---------- */
#quotes .q-quotes-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 30px 0 12px; }
#quotes .q-quotes-head .q-step { margin: 0; }
#quotes .q-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(236px, 1fr)); gap: 16px; align-items: start; }
#quotes .q-quote { display: grid; gap: 14px; padding: 18px 20px 22px; border-top: 1.5px solid var(--ink, #1F1D1A); }
#quotes .q-quote.is-bad { border-top-color: var(--clay, #C96F4E); }
#quotes .q-quote-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
#quotes .q-quote-head h5 { font-size: 11.5px; }
#quotes .q-quote-btns { display: flex; gap: 14px; }
#quotes .q-quote .q-check { margin: -4px 0; }
#quotes .q-two { display: grid; gap: 14px; padding-left: 14px; border-left: 1px solid var(--rule-strong, rgba(31, 29, 26, .34)); }
#quotes .q-len .seg { display: flex; }
#quotes .q-len .seg label { flex: 1; }
#quotes .q-len .seg span { flex: 1; padding-inline: 6px; }

/* ---------- 3 the comparison ---------- */
#quotes .q-results { margin-top: 4px; }
#quotes .q-empty { padding: 22px; border: 1px dashed var(--rule-strong, rgba(31, 29, 26, .34)); border-radius: 3px; }
#quotes .q-empty > p { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--ink-soft, rgba(31, 29, 26, .74)); }
#quotes .q-problems { display: grid; gap: 6px; margin: 12px 0 0; }
#quotes .q-problems li { padding-left: 10px; border-left: 2px solid var(--clay, #C96F4E); font-size: 14px; color: var(--ink-soft, rgba(31, 29, 26, .74)); }
#quotes #quotes-out > .q-problems { margin: 0 0 18px; }

#quotes .q-headline { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 30px; }
#quotes .q-fig { display: flex; flex-direction: column; padding: 12px 0 14px; border-top: 1.5px solid var(--clay, #C96F4E); min-width: 0; }
#quotes .q-fig + .q-fig { border-top-color: var(--ink, #1F1D1A); }
#quotes .q-fig-name { margin-top: 4px; font-family: var(--serif); font-weight: 700; font-size: 19px; line-height: 1.25; overflow-wrap: anywhere; }
#quotes .q-fig-val { font-family: var(--serif); font-weight: 500; font-size: 40px; line-height: 1.12; letter-spacing: -.012em; font-variant-numeric: lining-nums tabular-nums; overflow-wrap: anywhere; }
#quotes .q-fig-sub { font-size: 13px; color: var(--ink-faint, rgba(31, 29, 26, .5)); font-variant-numeric: lining-nums tabular-nums; }
#quotes .q-words { padding: 13px 0 0; border-top: 1px solid var(--rule, rgba(31, 29, 26, .16)); font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.4; color: var(--ink-soft, rgba(31, 29, 26, .74)); }
#quotes .q-words.is-differ { font-style: normal; color: var(--ink, #1F1D1A); padding: 12px 0 12px 14px; border-top: 0; border-left: 2px solid var(--clay, #C96F4E); margin-top: 4px; }

#quotes .q-scroll { margin-top: 22px; overflow-x: auto; border: 1px solid var(--rule, rgba(31, 29, 26, .16)); border-radius: 3px; background: var(--cream, #F7F4EC); -webkit-overflow-scrolling: touch; }
#quotes .q-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: lining-nums tabular-nums; }
#quotes .q-table th, #quotes .q-table td { padding: 10px 16px; border-bottom: 1px solid var(--rule, rgba(31, 29, 26, .16)); vertical-align: top; }
#quotes .q-table tbody tr:last-child > * { border-bottom: 0; }
#quotes .q-table td, #quotes .q-table thead th { text-align: right; white-space: nowrap; }
#quotes .q-table thead th { vertical-align: bottom; padding-top: 14px; border-bottom: 1.5px solid var(--ink, #1F1D1A); font-weight: 400; min-width: 132px; }
#quotes .q-table thead th.is-best { box-shadow: inset 0 3px 0 var(--clay, #C96F4E); }
#quotes .q-table tbody th { text-align: left; font-weight: 400; color: var(--ink-soft, rgba(31, 29, 26, .74)); min-width: 150px; max-width: 230px;
  position: sticky; left: 0; background: var(--cream, #F7F4EC); box-shadow: 1px 0 0 var(--rule, rgba(31, 29, 26, .16)); }
#quotes .q-table .q-corner { position: sticky; left: 0; background: var(--cream, #F7F4EC); min-width: 0; }
#quotes .q-table td.is-best { background: var(--clay-wash, rgba(201, 111, 78, .1)); }
#quotes .q-col-name { display: block; font-family: var(--serif); font-weight: 700; font-size: 16px; line-height: 1.25; white-space: normal; overflow-wrap: anywhere; }
#quotes .q-col-sub, #quotes .q-cell-sub { display: block; font-size: 12px; color: var(--ink-faint, rgba(31, 29, 26, .5)); }
#quotes .q-cell-unit { font-size: 12px; color: var(--ink-faint, rgba(31, 29, 26, .5)); }
#quotes .q-tag { display: block; width: fit-content; margin: 5px 0 0 auto; padding: 2px 6px; border-radius: 1px; font-size: 9.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; line-height: 1.5; white-space: nowrap; }
#quotes .q-tag-year { background: var(--clay-deep, #A85538); color: var(--cream, #F7F4EC); }
#quotes .q-tag-contract { box-shadow: inset 0 0 0 1px var(--ink, #1F1D1A); color: var(--ink, #1F1D1A); }
#quotes .q-table .q-sum > * { border-top: 1px solid var(--rule-strong, rgba(31, 29, 26, .34)); }
#quotes .q-table .q-sum td, #quotes .q-table .q-sum th { font-weight: 600; color: var(--ink, #1F1D1A); }
#quotes .q-table .q-total td { font-family: var(--serif); font-weight: 700; font-size: 19px; }
#quotes .q-table .q-total th { font-weight: 600; color: var(--ink, #1F1D1A); }
#quotes .q-table .q-allin td { font-family: var(--serif); font-size: 16px; }
#quotes .q-best-word { font-weight: 600; color: var(--clay-deep, #A85538); }

#quotes .q-swipe { display: none; margin-top: 8px; }
#quotes .q-chart { margin: 28px 0 0; }
#quotes .q-bar-row { margin-top: 12px; }
#quotes .q-bar-name { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; }
#quotes .q-bar-name span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#quotes .q-bar-name b { flex: none; font-family: var(--serif); font-weight: 700; font-size: 15px; font-variant-numeric: lining-nums tabular-nums; }
#quotes .q-bar { display: block; width: 100%; height: 18px; margin-top: 4px; }
#quotes .q-bar-energy { fill: var(--clay, #C96F4E); background: var(--clay, #C96F4E); }
#quotes .q-bar-standing { fill: var(--sky, #9DB8CC); background: var(--sky, #9DB8CC); }
#quotes .q-bar-ccl { fill: var(--olive, #7C8363); background: var(--olive, #7C8363); }
#quotes .q-bar-vat { fill: var(--amber, #E9A03B); background: var(--amber, #E9A03B); }
#quotes .q-legend { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 12px; font-size: 13px; color: var(--ink-soft, rgba(31, 29, 26, .74)); }
#quotes .q-legend li { display: flex; align-items: center; gap: 7px; }
#quotes .q-key { width: 12px; height: 12px; border-radius: 1px; flex: none; }

#quotes .q-sens { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--rule, rgba(31, 29, 26, .16)); }
#quotes .q-sens ul { display: grid; gap: 6px; margin-top: 8px; }
#quotes .q-sens li { font-family: var(--serif); font-size: 17px; line-height: 1.4; font-variant-numeric: lining-nums; padding-left: 14px; border-left: 2px solid var(--rule-strong, rgba(31, 29, 26, .34)); }
#quotes .q-sens li.is-changed { border-left-color: var(--clay, #C96F4E); font-weight: 700; }
#quotes .q-sens .note { margin-top: 10px; color: var(--ink-soft, rgba(31, 29, 26, .74)); max-width: 52em; }

#quotes .q-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 26px; }
#quotes .q-done { font-size: 13px; color: var(--ink-soft, rgba(31, 29, 26, .74)); }
#quotes .q-copybox { margin-top: 14px; }
#quotes .q-copybox textarea { display: block; width: 100%; margin-top: 6px; padding: 12px; border: 1px solid var(--rule-strong, rgba(31, 29, 26, .34)); border-radius: 2px; background: var(--cream, #F7F4EC); font: 13px/1.5 var(--sans); color: var(--ink, #1F1D1A); resize: vertical; }

#quotes .q-how { margin-top: 26px; border-top: 1px solid var(--rule, rgba(31, 29, 26, .16)); padding-top: 12px; }
#quotes .q-how summary { cursor: pointer; font-size: 14px; color: var(--ink-soft, rgba(31, 29, 26, .74)); padding: 6px 0; width: fit-content; }
#quotes .q-how summary:hover { color: var(--clay-deep, #A85538); }
#quotes .q-how ul { display: grid; gap: 6px; margin-top: 8px; max-width: 58em; }
#quotes .q-how li { position: relative; padding-left: 16px; font-size: 14px; color: var(--ink-soft, rgba(31, 29, 26, .74)); }
#quotes .q-how li::before { content: ""; position: absolute; left: 0; top: .72em; width: 7px; height: 1px; background: var(--clay, #C96F4E); }
#quotes .q-general { margin-top: 14px; }
#quotes .q-vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- narrower screens ---------- */
@media (max-width: 1000px) {
  #quotes .q-customer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  #quotes .q-headbtns { width: 100%; flex-direction: row; justify-content: flex-start; }
  #quotes .q-headbtns .btn-primary { flex: 1; }
  #quotes .q-customer { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  #quotes .seg span { align-items: center; }
  #quotes .q-link { min-height: 44px; font-size: 14px; }
  #quotes .q-check { min-height: 44px; }
  #quotes .q-check input { width: 20px; height: 20px; }
  #quotes .q-quotes { grid-template-columns: minmax(0, 1fr); }
  #quotes .q-quote { padding: 16px 14px 20px; }
  #quotes .q-headline { grid-template-columns: minmax(0, 1fr); }
  #quotes .q-fig-val { font-size: 34px; }
  #quotes .q-table { font-size: 13.5px; }
  #quotes .q-table th, #quotes .q-table td { padding: 9px 11px; }
  #quotes .q-table tbody th { min-width: 112px; max-width: 128px; white-space: normal; }
  #quotes .q-table thead th { min-width: 116px; }
  #quotes .q-swipe { display: block; }
  #quotes .q-actions .btn { flex: 1 1 auto; min-height: 46px; }
  #quotes .q-done { flex: 1 1 100%; }
  #quotes .q-sens li { font-size: 16px; }
}
@media print {
  #quotes .q-headbtns, #quotes .q-actions, #quotes .q-link, #quotes #quotes-add { display: none; }
}

/* lead, 06/10/2026: on a phone this tool has three header buttons (Share, sample, Clear); they do not fit
   beside the title, so they take their own row under the introduction */
@media (max-width: 720px) {
  #quotes .tool-head .tool-side { grid-column: 1 / -1; grid-row: auto; justify-content: flex-start; flex-wrap: wrap; margin-top: 10px; }
}
