/* SGH quote journey (sgh-rfq 1.1). x-q prefix; tokens from the theme sgh-tokens.css.
   Light only, no shadows or gradients, motion limited to colour changes. 360 to 1440 px. */

.x-q { --q-gap: var(--space-5); --q-pad: var(--space-5); color: var(--ink); font-size: var(--fs-body); }
.x-q *, .x-q *::before, .x-q *::after { box-sizing: border-box; }
.x-q h2, .x-q h3 { font-family: var(--display, var(--sans)); letter-spacing: -0.01em; color: var(--ink); }
.x-q .x-q-ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
/* Article bodies colour every link orange; buttons and cards here keep their own colours. */
.sgh-article-body .x-q a.x-q-path, .sgh-article-body .x-q a.x-q-pname, .sgh-article-body .x-q .x-q-steps a, .sgh-article-body .x-q a.x-q-ref-link { color: var(--ink); }
.sgh-article-body .x-q .x-q-steps li:not(.is-done):not(.is-now) a { color: var(--slate); }
.x-q .btn .x-q-ic { width: 18px; height: 18px; }
.x-q-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.x-q-help { margin: 2px 0 8px; font-size: var(--fs-small); line-height: 1.45; color: var(--slate); }
.x-q-kicker { margin: 0 0 10px; font: 700 var(--fs-micro)/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--slate); }
.x-q-note { margin: 12px 0 0; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--ground); font-size: var(--fs-small); color: var(--charcoal); }
.x-q-muted { color: var(--slate); }

/* notices */
.x-q-notices:empty { display: none; }
.x-q-notices { margin-bottom: 16px; outline: none; }
.x-q-notices .sgh-notice { margin: 0 0 10px; }
.x-q-errsum p { margin: 0 0 4px; }
.x-q-errsum a { color: inherit; }

/* account requirement */
.x-q-gate { display: flex; gap: 18px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--orange-press); border-radius: var(--radius); padding: 20px var(--q-pad); margin-bottom: var(--q-gap); }
.x-q-gate-ic { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--orange-tint); color: var(--orange-press); display: grid; place-items: center; }
.x-q-gate-ic .x-q-ic { width: 22px; height: 22px; }
.x-q-gate h2 { font-size: var(--fs-h3); line-height: 1.25; margin: 2px 0 6px; }
.x-q-gate p { margin: 0 0 14px; max-width: 70ch; color: var(--charcoal); }
.x-q-gate-act { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.x-q-gate-act .x-q-help { margin: 0; }

/* starting paths */
.x-q-paths { margin-bottom: var(--q-gap); }
.x-q-paths ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.x-q-path { display: flex; gap: 12px; align-items: flex-start; height: 100%; padding: 16px; background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: border-color .15s, background-color .15s; }
.x-q-path:hover { border-color: var(--line-strong); }
.x-q-path .x-q-ic { width: 24px; height: 24px; margin-top: 1px; color: var(--charcoal); }
.x-q-path > span { display: grid; gap: 4px; }
.x-q-path strong { font: 700 var(--fs-body)/1.25 var(--display, var(--sans)); }
.x-q-path > span > span { font-size: var(--fs-small); line-height: 1.45; color: var(--slate); }
.x-q-path.is-on { border-color: var(--orange-press); background: var(--orange-tint); }
.x-q-path.is-on .x-q-ic { color: var(--orange-press); }

/* process indicator */
.x-q-steps { list-style: none; margin: 0 0 var(--q-gap); padding: 0; display: flex; gap: 0; counter-reset: none; }
.x-q-steps li { flex: 1 1 0; min-width: 0; position: relative; }
.x-q-steps li + li::before { content: ""; position: absolute; top: 15px; right: calc(50% + 20px); left: calc(-50% + 20px); height: 2px; background: var(--line); }
.x-q-steps li.is-done + li::before, .x-q-steps li.is-done + li.is-now::before { background: var(--charcoal); }
.x-q-steps a, .x-q-steps li.is-last { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--slate); text-align: center; font-size: var(--fs-small); line-height: 1.3; }
.x-q-steps .n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: 700 var(--fs-small)/1 var(--sans); background: var(--paper); border: 2px solid var(--line-strong); color: var(--slate); position: relative; z-index: 1; }
.x-q-steps .n .x-q-ic { width: 16px; height: 16px; stroke-width: 2.4; }
.x-q-steps li.is-done .n { background: var(--charcoal); border-color: var(--charcoal); color: var(--paper); }
.x-q-steps li.is-done a { color: var(--ink); }
.x-q-steps li.is-now .n { border-color: var(--orange-press); color: var(--orange-press); background: var(--orange-tint); }
.x-q-steps li.is-now a { color: var(--ink); font-weight: 700; }
.x-q-steps a:hover .t { text-decoration: underline; text-underline-offset: 3px; }

/* layout */
.x-q-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--q-gap); align-items: start; }
.x-q-main { display: grid; gap: var(--q-gap); min-width: 0; }
.x-q-form { display: grid; gap: var(--q-gap); min-width: 0; margin: 0; }
.x-q-aside { position: sticky; top: 16px; }
@media (max-width: 1023px) {
  .x-q-grid { grid-template-columns: minmax(0, 1fr); }
  .x-q-aside { position: static; }
}

/* cards */
/* Steps read as sections on a fine rule (the theme section language), not boxed cards. */
.x-q-card { background: none; border: 0; border-top: 1px solid var(--line-strong); border-radius: 0; padding: 22px 0 4px; min-width: 0; scroll-margin-top: 16px; }
.x-q-card-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.x-q-card-head > div { flex: 1; min-width: 0; }
.x-q-card-head h2 { font: 800 var(--fs-h3)/1.2 var(--display); letter-spacing: -0.01em; margin: 0 0 4px; }
.x-q-card-head .x-q-help { margin: 0; }
.x-q-num { flex: none; min-width: 24px; padding-top: 8px; background: none; color: var(--orange-press); font: 700 var(--fs-small)/1 var(--mono); font-variant-numeric: tabular-nums; }
.x-q-count { flex: none; align-self: center; font: 700 var(--fs-small)/1 var(--sans); padding: 7px 11px; border-radius: 999px; background: var(--ground); border: 1px solid var(--line); color: var(--charcoal); white-space: nowrap; }

/* fields */
.x-q-field { margin: 0 0 16px; min-width: 0; }
.x-q-field:last-child { margin-bottom: 0; }
.x-q-field > label, .x-q-label, .x-q-choice legend, .x-q-inline > label, .x-q-search > label { display: block; font-size: var(--fs-small); font-weight: 600; color: var(--ink); margin: 0 0 2px; padding: 0; }
.x-q-req, .x-q-opt { display: inline-block; margin-left: 6px; font-size: var(--fs-micro); font-weight: 600; letter-spacing: .02em; vertical-align: 1px; }
.x-q-req { color: var(--orange-press); }
.x-q-opt { color: var(--slate); font-weight: 400; }
.x-q input[type="text"], .x-q input[type="search"], .x-q input[type="tel"], .x-q input[type="number"], .x-q input[type="date"], .x-q input:not([type]), .x-q select, .x-q textarea {
  width: 100%; min-height: 44px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); padding: 9px 12px; font: inherit; font-size: 15px; color: var(--ink); background: var(--paper); }
.x-q textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.x-q input:focus-visible, .x-q select:focus-visible, .x-q textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
.x-q [aria-invalid="true"] { border-color: var(--error) !important; }
.x-q-err { display: flex; gap: 6px; align-items: flex-start; margin: 4px 0 8px; font-size: var(--fs-small); font-weight: 600; color: var(--error); }
.x-q-err .x-q-ic { width: 16px; height: 16px; margin-top: 1px; }
.x-q-row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.x-q-row3 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) 120px; gap: 0 16px; }
.x-q-row2 > .x-q-field, .x-q-row3 > .x-q-field { margin-bottom: 16px; display: flex; flex-direction: column; }
.x-q-row2 > .x-q-field > input, .x-q-row2 > .x-q-field > select, .x-q-row3 > .x-q-field > input { margin-top: auto; }
.x-q-chip { display: inline-block; margin: 0 0 14px; padding: 6px 12px; border-radius: 999px; background: var(--ground); border: 1px solid var(--line); font-size: var(--fs-small); font-weight: 600; color: var(--charcoal); }

/* choices */
.x-q-choice { border: 0; padding: 0; margin: 0 0 16px; }
.x-q-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.x-q-option { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); cursor: pointer; background: var(--paper); }
.x-q-option input { margin: 3px 0 0; width: 18px; height: 18px; accent-color: var(--orange-press); flex: none; }
.x-q-option > span { display: grid; gap: 3px; }
.x-q-option strong { font-size: var(--fs-body); }
.x-q-option > span > span { font-size: var(--fs-small); line-height: 1.45; color: var(--slate); }
.x-q-option:has(input:checked) { border-color: var(--orange-press); background: var(--orange-tint); }
.x-q-option:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.x-q-check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.x-q-check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--orange-press); flex: none; }
.x-q-check > span { display: block; font-size: var(--fs-body); }
.x-q-check .x-q-help { display: block; margin: 2px 0 0; }

/* date */
.x-q-date-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.x-q-date-row input { max-width: 220px; }
.x-q-date-out { font-size: var(--fs-small); font-weight: 600; color: var(--charcoal); }
.x-q-date-out:not(:empty)::before { content: "\2192\00a0"; color: var(--slate); font-weight: 400; }

/* files */
.x-q label.x-q-drop { display: flex; gap: 12px; align-items: center; justify-content: center; padding: 18px; border: 1.5px dashed var(--line-strong); border-radius: var(--radius-sm); background: var(--ground); color: var(--charcoal); cursor: pointer; font-size: var(--fs-small); text-align: center; transition: border-color .15s, background-color .15s; }
.x-q-drop .x-q-ic { width: 24px; height: 24px; color: var(--slate); }
.x-q-drop:hover, .x-q-drop.is-over { border-color: var(--orange-press); background: var(--orange-tint); }
.x-q-file-input { display: block; width: 100%; margin-top: 8px; font-size: 13.5px; }
.x-q-files .x-q-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.x-q-files .x-q-file-input:focus-visible + .x-q-filelist, .x-q-files:focus-within .x-q-drop { outline: 2px solid var(--focus); outline-offset: 2px; }
.x-q-filelist { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.x-q-filelist:empty { display: none; }
.x-q-filelist li { display: flex; gap: 8px; align-items: center; justify-content: space-between; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); font-size: var(--fs-small); }
.x-q-filelist li .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.x-q-filelist li .sz { color: var(--slate); white-space: nowrap; }
.x-q-filelist li.is-bad { border-color: var(--error-line); background: var(--error-bg); color: var(--error); }
.x-q-filelist li.is-bad .sz { color: inherit; font-weight: 600; }
.x-q-locked { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 0; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--ground); font-size: var(--fs-small); color: var(--charcoal); }
.x-q-locked .x-q-ic { margin-top: 1px; color: var(--slate); }

/* badges */

/* quote list table */
.x-q-table-wrap { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow-x: auto; margin-bottom: 12px; }
.x-q-table, .sgh-article-body .x-q-table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); background: var(--paper); margin: 0; }
.x-q-table th { text-align: left; font-size: var(--fs-micro); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--slate); padding: 10px 12px; background: var(--ground); border-bottom: 1px solid var(--line); }
.x-q-table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.x-q-table tr:last-child td { border-bottom: 0; }
.x-q-prod-in { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.x-q-prod-in > div { min-width: 0; display: grid; gap: 3px; }
.x-q-thumb { width: 52px; height: 52px; object-fit: contain; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); flex: none; }
.x-q-thumb-none { display: grid; place-items: center; color: var(--slate); background: var(--ground); }
.x-q-pname { font-weight: 600; color: var(--ink); text-decoration: none; line-height: 1.35; }
a.x-q-pname:hover { color: var(--orange-press); text-decoration: underline; }
.x-q-conf { font-size: var(--fs-small); color: var(--charcoal); }
.x-q-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: var(--fs-micro); color: var(--slate); }
.x-q-meta code { font-family: var(--mono); font-size: var(--fs-micro); color: var(--charcoal); background: var(--ground); padding: 2px 6px; border-radius: 4px; }
.x-q-price { font-weight: 600; color: var(--charcoal); }
.x-q-qty { width: 96px; }
.x-q-qty input, .x-q-qty-in { width: 80px !important; text-align: center; padding: 8px 6px !important; }
.x-q-note-cell { min-width: 170px; }
.x-q-sub { min-width: 200px; }
.x-q-table td input[type="text"], .x-q-table td select { font-size: 14px; }
.x-q-rm { width: 52px; text-align: right; }
.x-q-remove { width: 40px; height: 40px; display: inline-grid; place-items: center; border: 1px solid transparent; border-radius: var(--radius-sm); background: none; color: var(--slate); cursor: pointer; }
.x-q-remove:hover { color: var(--error); border-color: var(--error-line); background: var(--error-bg); }
.x-q-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 4px 0 6px; }
.x-q-inline { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.x-q-search-row { display: flex; gap: 8px; align-items: stretch; flex-wrap: wrap; }
.x-q-search-row input { flex: 1 1 200px; min-width: 0; }
.x-q-import-table select { margin-top: 6px; }
.x-q-import-table tr.st-none td { background: var(--ground); }

/* empty state */
.x-q-empty { text-align: center; padding: 28px 16px; border: 1.5px dashed var(--line-strong); border-radius: var(--radius-sm); background: var(--ground); }
.x-q-empty .x-q-ic { width: 32px; height: 32px; color: var(--slate); }
.x-q-empty h3 { font-size: var(--fs-h3); margin: 8px 0 6px; }
.x-q-empty p { margin: 0 auto 14px; max-width: 52ch; color: var(--charcoal); font-size: var(--fs-small); }

/* add items */
.x-q-search { margin: 0 0 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.x-q-import h3, .x-q-import h2 { font-size: var(--fs-body); margin: 0 0 2px; }
.x-q-import-grid { margin-top: 12px; }
.x-q-import-grid textarea { min-height: 128px; font-family: var(--mono); font-size: 14px; }
.x-q-sample { margin: 4px 0 14px; font-size: var(--fs-small); }
.x-q-sample summary { cursor: pointer; font-weight: 600; color: var(--charcoal); }
.x-q-sample-table { border-collapse: collapse; margin: 10px 0 6px; font-family: var(--mono); font-size: var(--fs-small); background: var(--paper); }
.x-q-sample-table th, .x-q-sample-table td { border: 1px solid var(--line); padding: 5px 14px; text-align: left; }
.x-q-sample-table th { background: var(--ground); }
.x-q-collapse { margin-top: 10px; }
.x-q-collapse summary { cursor: pointer; font-size: var(--fs-small); font-weight: 600; color: var(--charcoal); margin-bottom: 10px; }
.x-q-include { margin-top: 4px; padding: 14px; border-radius: var(--radius-sm); background: var(--ground); }

/* contact */
.x-q-profile { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; padding: 14px 16px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--ground); }
.x-q-profile > div { display: grid; gap: 2px; min-width: 0; }
.x-q-k { font-size: var(--fs-micro); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--slate); }
.x-q-v { font-weight: 600; overflow-wrap: anywhere; }
.x-q-profile .x-q-help { grid-column: 1 / -1; margin: 0; }
.x-q-biz { border: 1px solid var(--line); border-radius: var(--radius-sm); }
.x-q-biz summary { cursor: pointer; padding: 12px 14px; font-size: var(--fs-small); font-weight: 600; list-style-position: inside; }
.x-q-biz[open] summary { border-bottom: 1px solid var(--line); }
.x-q-biz-body { padding: 14px; }
.x-q-locked-card { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: var(--radius-sm); background: var(--ground); }
.x-q-locked-card > .x-q-ic { width: 28px; height: 28px; color: var(--slate); }
.x-q-locked-card p { margin: 0 0 4px; }
.x-q-locked-card .x-q-gate-act { margin-top: 10px; }

/* summary */
.x-q-sum { background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--charcoal); border-radius: var(--radius); padding: 20px; }
.x-q-sum h2 { font-size: var(--fs-h3); margin: 0 0 12px; }
.x-q-sum dl { margin: 0 0 16px; display: grid; gap: 0; }
.x-q-sum dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-small); }
.x-q-sum dt { color: var(--slate); }
.x-q-sum dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.x-q-submit { width: 100%; font-size: var(--fs-body); }
.x-q-submit[disabled] { opacity: .7; cursor: progress; }
.x-q-sum .x-q-help { margin: 10px 0 0; }
.x-q-who { display: flex; gap: 6px; align-items: center; margin: 12px 0 0; font-size: var(--fs-small); color: var(--charcoal); }
.x-q-who .x-q-ic { width: 16px; height: 16px; color: var(--slate); }

/* mobile bar */
.x-q-mbar { display: none; }
@media (max-width: 1023px) {
  .x-q-mbar { display: flex; position: sticky; bottom: 0; z-index: var(--z-bottom-bar, 40); margin: 16px calc(-1 * var(--mbar-bleed, 0px)) 0; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--paper); border-top: 1px solid var(--line-strong); font: 700 var(--fs-small)/1.2 var(--sans); }
  .x-q-mbar span { white-space: nowrap; }
  .x-q-mbar .btn { padding: 0 14px; }
}

/* confirmation */
.x-q-confirm { display: flex; gap: 18px; align-items: flex-start; background: var(--paper); border: 1px solid var(--ok-line); border-left: 4px solid var(--ok); border-radius: var(--radius); padding: var(--q-pad); margin-bottom: var(--q-gap); outline: none; }
.x-q-confirm-ic { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; }
.x-q-confirm-ic .x-q-ic { width: 26px; height: 26px; stroke-width: 2.4; }
.x-q-confirm .x-q-kicker { color: var(--ok); }
.x-q-confirm h2 { font-size: var(--fs-h3); margin: 0 0 6px; line-height: 1.3; }
.x-q-ref { font-family: var(--mono); font-size: .95em; background: var(--ground); padding: 2px 8px; border-radius: 4px; white-space: nowrap; }
.x-q-confirm p { margin: 0 0 14px; color: var(--charcoal); }
.x-q .x-q-next, .sgh-article-body .x-q .x-q-next { list-style: none; counter-reset: q; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.x-q-next li { counter-increment: q; display: grid; gap: 4px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--ground); font-size: var(--fs-small); color: var(--charcoal); }
.x-q-next strong { font-size: var(--fs-small); color: var(--ink); }
.x-q-next strong::before { content: counter(q) ". "; color: var(--slate); }

/* account */
.x-q-acc-head { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.x-q-acc-head .x-q-help { margin: 0; max-width: 60ch; }
.x-q-account .x-q-note { margin: 0 0 16px; }
.x-q-ref-link { font-family: var(--mono); font-size: var(--fs-small); font-weight: 600; color: var(--ink); }
.x-q-acc-table small { color: var(--slate); }

/* tablet and phone */
@media (max-width: 900px) {
  .x-q-paths ul { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .x-q-path { padding: 12px 14px; }
  .x-q-row3 { grid-template-columns: minmax(0, 1fr); }
  .x-q-row3 #req_qty { max-width: 160px; }
  .x-q-next { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .x-q { --q-pad: var(--space-4); --q-gap: var(--space-4); }
  .x-q-gate, .x-q-confirm { flex-direction: column; gap: 12px; }
  .x-q-row2, .x-q-options, .x-q-profile { grid-template-columns: minmax(0, 1fr); }
  .x-q-steps .t { font-size: var(--fs-micro); }
  .x-q-steps li.is-last .t { display: none; }
  .x-q-steps .n { width: 28px; height: 28px; font-size: var(--fs-micro); }
  .x-q-steps li + li::before { top: 13px; }
  .x-q-card-head { gap: 10px; flex-wrap: wrap; }
  .x-q-card-head h2 { font-size: var(--fs-h3); }
  .x-q-card-head > div { flex: 1 1 calc(100% - 40px); }
  .x-q-count { order: 3; margin-left: 38px; }
}
/* Tables become stacked cards when their card is narrow (container query), whatever the viewport. */
.x-q-card, .x-q-account { container-type: inline-size; }
@container (max-width: 760px) {
  /* list rows become cards */
  .x-q-table thead { display: none; }
  .x-q-table, .x-q-table tbody, .x-q-table tr, .x-q-table td { display: block; width: 100%; }
  .x-q-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 10px; padding: 14px 12px; border-bottom: 1px solid var(--line); }
  .x-q-table tr:last-child { border-bottom: 0; }
  .x-q-table td { padding: 0; border: 0; }
  .x-q-table td.x-q-prod { grid-column: 1 / 2; }
  .x-q-table td.x-q-rm { grid-column: 2; grid-row: 1; width: auto; }
  .x-q-table td.x-q-qty, .x-q-table td.x-q-note-cell, .x-q-table td.x-q-sub { grid-column: 1 / -1; display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: center; gap: 10px; min-width: 0; }
  .x-q-table td[data-label]::before { content: attr(data-label); font-size: var(--fs-micro); font-weight: 600; color: var(--slate); }
  .x-q-table td.x-q-prod::before { display: none; }
  .x-q-qty input { width: 100% !important; max-width: 120px; }
  .x-q-import-table td { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; align-items: center; }
  .x-q-acc-table td { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; }
}
@media (max-width: 720px) {
  .x-q-actions .btn { flex: 1 1 auto; }
  .x-q-date-row input { max-width: none; }
}
.x-q-steps-now { display: none; }
@media (max-width: 560px) {
  .x-q-steps { margin-bottom: 8px; }
  .x-q-steps .t { display: none; }
  .x-q-steps-now { display: block; margin: 0 0 var(--q-gap); text-align: center; font-size: var(--fs-small); font-weight: 700; color: var(--ink); }
}
@media (prefers-reduced-motion: reduce) { .x-q * { transition: none !important; } }
@media print { .x-q-mbar, .x-q-paths, .x-q-steps, .x-q-gate { display: none !important; } }

/* ---------- Batch 6 flows: progress that matches the page, options per line, buy-now or quote routes ---------- */
.x-q-num.is-cont { background: transparent; }
.x-q-card-cont { border-top-color: var(--line); }
.x-q-steps li.is-opt .n { border-style: dashed; }
.x-q-steps .t .x-q-opt { display: block; margin: 2px 0 0; }
.x-q-gate-act button.btn { cursor: pointer; }
.x-q-var { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 6px 0 2px; font-size: var(--fs-small); color: var(--slate); }
.x-q-var select { max-width: 100%; min-height: 36px; font-size: 13.5px; }
.x-q-split { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 0 12px; }
.x-q-split .x-q-help { margin: 0; }
.x-q-route { display: block; margin-top: 4px; font-size: var(--fs-micro); font-weight: 600; color: var(--warn); }
.x-q-route.is-cart { color: var(--ok); }
@media (max-width: 560px) {
  .x-q-gate { flex-direction: column; gap: 10px; padding: 16px; }
  .x-q-gate-ic { display: none; }
  .x-q-gate-act .btn { flex: 1 1 100%; }
}

/* ---------- batch 7 flows (flag quote_flows): sources, context, selected items, Quick Order v2, Quotes view ---------- */
.x-q-src { display: block; font-size: var(--fs-micro); color: var(--slate); margin-top: 2px; }
.x-q-ctx { margin: 0 0 14px; padding: 12px 14px; border-left: 3px solid var(--charcoal); background: var(--ground); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.x-q-ctx-item + .x-q-ctx-item { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.x-q-ctx-h { margin: 0 0 4px; font-weight: 600; font-size: var(--fs-body); }
.x-q-ctx-h span { font-weight: 700; font-size: var(--fs-micro); letter-spacing: .1em; text-transform: uppercase; color: var(--slate); margin-right: 4px; }
.x-q-ctx-l { margin: 6px 0 2px; font-size: var(--fs-small); font-weight: 600; }
.x-q-ctx ul { margin: 0; padding-left: 18px; font-size: var(--fs-small); }
.x-q-ctx > .x-q-help { margin: 8px 0 0; }
.x-q-sum dl > div.x-q-sum-items { display: block; }
.x-q-sum-items dd { text-align: left; font-weight: 400; margin-top: 6px; }
.x-q-sum-items ul { list-style: none; margin: 0; padding: 0; }
.x-q-sum-items li { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; font-size: var(--fs-small); line-height: 1.35; }
.x-q-sum-items li .n { min-width: 0; overflow-wrap: anywhere; }
.x-q-sum-items li small { display: block; color: var(--slate); font-size: var(--fs-micro); }
.x-q-sum-items li .q { flex: none; font-weight: 600; }
.x-q-sum-items a { font-size: var(--fs-small); }

.x-qo .x-q-card + .x-q-card, .x-qo-done + .x-q-card { margin-top: var(--q-gap, 18px); }
.x-qo h2 { font-size: var(--fs-h3); margin: 0 0 6px; }
.x-qo-table td { vertical-align: top; }
.x-qo-entered code { font-family: var(--mono); font-size: var(--fs-micro); background: var(--ground); padding: 2px 6px; border-radius: 4px; overflow-wrap: anywhere; }
.x-qo-entered .x-q-badge { margin-top: 6px; }
.x-qo-item { min-width: 0; }
.x-qo-item select { display: block; width: 100%; max-width: 100%; margin-top: 6px; }
.x-qo-item a { overflow-wrap: anywhere; }
.x-qo-item .x-q-route, .x-qo-have, .x-qo-find { display: block; margin-top: 4px; font-size: var(--fs-small); }
.x-qo-have { color: var(--q-warn-ink, var(--warn)); }
.x-qo-done { background: var(--paper); border: 1px solid var(--q-ok-line, var(--ok-line)); border-left: 4px solid var(--ok); border-radius: var(--radius); padding: var(--q-pad, 20px); margin-bottom: var(--q-gap, 18px); }
.x-qo-done.is-undone { border-left-color: var(--charcoal); border-color: var(--line); }
.x-qo-done h3 { font-size: var(--fs-body); margin: 12px 0 4px; }
.x-qo-added { list-style: none; margin: 0; padding: 0; }
.x-qo-added li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-small); }
.x-qo-added li span { min-width: 0; overflow-wrap: anywhere; }
.x-qo-added li b { flex: none; }
.x-qo-undo { display: inline; margin: 0; }
.x-qo-editform { margin-top: 8px; }

.x-q-qlist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.x-q-qrow { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 20px; padding: 14px 0; border-bottom: 1px solid var(--line); margin: 0; }
.x-q-qmain { min-width: 0; flex: 1 1 320px; }
.x-q-qmain p { margin: 0 0 3px; }
.x-q-qref a { font-weight: 700; font-size: var(--fs-body); }
.x-q-qref .sgh-status { margin-left: 6px; vertical-align: middle; }
.x-q-qmeta { font-size: var(--fs-small); color: var(--slate); }
.x-q-qquote { font-size: var(--fs-small); }
.x-q-qquote small { color: var(--slate); }
.x-q-qact { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.sgh-order-docs { margin-top: 24px; }
.sgh-order-docs ul { margin: 0 0 12px; padding-left: 18px; }
@media (max-width: 600px) {
  .x-q-qact { width: 100%; }
  .x-q-qact .btn { flex: 1 1 auto; justify-content: center; }
}
@media print {
  .x-q-qact, .sgh-order-docs button { display: none; }
}
.x-q-more > summary { cursor: pointer; font-weight: 600; font-size: var(--fs-body); padding: 6px 0; color: var(--orange-press); }
.x-q-more > summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.x-q-more[open] > summary { margin-bottom: 10px; }

@container (max-width: 760px) {
  .x-qo-table tr { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .x-qo-table td { grid-column: 1 / -1; display: block; position: relative; padding-left: 96px; min-width: 0; min-height: 22px; }
  .x-qo-table td::before { position: absolute; left: 0; top: 2px; width: 88px; }
  .x-qo-table .x-qo-entered code { display: inline-block; margin: 0 4px 4px 0; }
  .x-qo-table td .x-q-qty-in { max-width: 120px; }
}
.x-q .x-q-qlist, .x-q .x-qo-added, .x-q .x-q-sum-items ul { padding-left: 0; }
.x-q .x-q-qlist > li, .x-q .x-qo-added > li, .x-q .x-q-sum-items li { margin-bottom: 0; }
