/* price-steps.css: lane rw-steps, card P4102. How This Was Measured on Price, the DIY Cost grid's warning cells, the Options offer tags and sentence, the Buy List and its print.
   Every selector is under qp-; every color is a token of the theme or of quote-tokens.css, in both themes. */

/* ---- Price: How This Was Measured ---- */
.qp-mhost:empty{ display:none; }
.qp-measured{ margin:4px 0 14px; border:1px solid var(--border); border-radius:var(--radius-md); padding:10px 12px 8px; background:var(--surface); }
.qp-mhead{ display:flex; align-items:center; gap:8px; margin-bottom:6px; }
.qp-mhead .q-h{ margin:0; font-size:14px; }
.qp-mgrid{ display:grid; column-gap:0; font-size:13px; line-height:18px; }
.qp-mc{ padding:4px 8px; border-bottom:1px solid var(--border); min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.qp-mc.qp-n{ text-align:right; font-family:var(--font-num); font-variant-numeric:tabular-nums; }
.qp-mh{ font-weight:600; color:var(--text-muted); font-size:12px; white-space:normal; }
.qp-mh-name{ display:inline-flex; align-items:center; gap:4px; color:var(--text); }
.qp-mh.qp-n .qp-mh-name{ justify-content:flex-end; width:100%; }
.qp-mrate{ display:block; font-weight:500; font-family:var(--font-num); font-variant-numeric:tabular-nums; }
.qp-mroom{ font-weight:500; }
.qp-mspan{ color:var(--text-muted); }
.qp-mtot{ border-top:1px solid var(--border-strong); border-bottom:0; font-weight:600; }
.qp-close{ margin-top:8px; }
.qp-crow{ display:grid; grid-template-columns:240px minmax(0, 1fr) 132px; align-items:center; column-gap:12px; min-height:30px; padding:2px 8px; font-size:14px; }
.qp-crow > span:nth-child(2){ font-size:13px; }
.qp-crow > span:nth-child(3){ text-align:right; white-space:nowrap; }
/* a line Outside The Rate, under its own name: the name takes the room it needs, what is in it sits beside it, the amount stays in the amount column */
.qp-crow.qp-c-sub{ grid-template-columns:minmax(0, 1.2fr) minmax(0, 1fr) 132px; padding-left:30px; font-size:13px; line-height:18px; min-height:26px; color:var(--text); }
.qp-crow.qp-c-sub > span:first-child, .qp-crow.qp-c-sub > span:nth-child(2){ overflow-wrap:anywhere; }
.qp-crow.qp-c-amount{ color:var(--text); }
.qp-obtn{ display:inline-flex; align-items:center; gap:6px; }
.qp-otwist{ display:inline-flex; transition:transform .12s ease; }
.qp-obtn[aria-expanded="true"] .qp-otwist{ transform:rotate(90deg); }
.qp-onote{ display:inline-flex; align-items:center; gap:6px; }
@media (prefers-reduced-motion: reduce){ .qp-otwist{ transition:none; } }
.qp-crow.qp-c-price{ border-top:1px solid var(--border-strong); font-weight:650; }
.qp-cnk{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin:0 0 10px; padding:8px 12px; border-radius:var(--radius-md); background:var(--warn-soft); color:var(--warn-ink); border:1px solid var(--warn-edge, var(--warn)); font-size:13px; line-height:18px; }
/* the fill stays light in both themes, so the words and the glyph on it are the warning ink in both (round 2 of P4102: the theme's text color could not be read on it in the dark theme) */
.qp-cnk > .q-icon{ color:var(--warn-ink); }
.qp-cnk > span:nth-child(2){ flex:1 1 320px; min-width:0; }
.qp-cmp4.qd-cmp{ grid-template-columns:repeat(4, minmax(0, 1fr)); }

/* ---- the warning style of a row with no price: never the danger state ---- */
/* the words are the theme's warning TEXT color (4.5 to 1 or better on the surface in both themes); the amber is the glyph's alone */
.qp-warn{ color:var(--warn-text, var(--text)); font-weight:600; display:inline-flex; align-items:center; gap:4px; }
.qp-warn > .q-icon{ color:var(--warn); flex:none; }
/* a sum with nothing priced under it: quiet, because the State cell beside it carries the warning and the count */
.qp-none{ color:var(--text-muted); font-weight:500; }
/* Add Price in the Cost grid: a value he may type, so the typing ink, with the dotted rule of a field not yet filled */
.qp-addprice{ color:var(--accent-deep); font-weight:600; text-decoration:underline dotted; text-underline-offset:3px; cursor:text; }
.qp-store{ color:var(--text-muted); display:inline-flex; align-items:center; gap:4px; }

/* ---- Options: the offer ---- */
.qp-tag{ display:inline-flex; align-items:center; align-self:center; flex:none; width:max-content; max-width:100%; margin-left:6px; padding:0 6px; border-radius:var(--radius-xs); border:1px solid var(--border); color:var(--text-muted); font:500 11px/16px var(--font); white-space:nowrap; }
/* the four ways to start, side by side; in a start button the tag is its last line, at its own width, never a bar across the button */
.qp-start4.ql-startrow{ grid-template-columns:repeat(4, minmax(0, 300px)); justify-content:center; }
.qp-start{ min-height:124px; }
.qp-start > .qp-tag{ align-self:flex-start; margin:auto 0 0; }
/* on the filled button the tag takes the button's own ink, so it reads in both themes */
.qp-start.ql-startbtn-main > .qp-tag{ color:var(--on-accent, var(--surface)); border-color:currentColor; }
.qp-onesent{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; padding:12px 14px; border:1px solid var(--border); border-radius:var(--radius-md); background:var(--surface); }
.qp-onesent > .q-icon{ color:var(--ok); }
.qp-onesent > .qp-tag{ margin-left:0; }
.qp-onesent-acts{ display:flex; align-items:center; gap:8px; margin-left:auto; }
.qp-onebtn{ border-style:dashed; }
/* Options when the setup leaves it out: one calm card in the middle of the worksheet */
.qp-calm{ display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; min-height:420px; height:100%; padding:40px 24px; text-align:center; }
.qp-calm-mark{ display:inline-flex; align-items:center; justify-content:center; width:36px; height:36px; border:1.5px dotted var(--text-muted); border-radius:50%; color:var(--text-muted); }
.qp-calm-title{ display:inline-flex; align-items:center; gap:8px; margin:0; font:650 18px/26px var(--font); color:var(--text); }
.qp-calm-words{ margin:0 0 6px; max-width:520px; font-size:14px; line-height:20px; color:var(--text-muted); }

/* ---- the Buy List: the page holds still, the list scrolls inside the worksheet ---- */
/* S04 of the three-seat review (11/21/2026): one scroller. The Buy List takes the worksheet host's exact height with nothing to overflow, so the worksheet has nothing to scroll on this step;
   the rows scroll inside .qp-bscroll, the wheel stops at its end (overscroll-behavior), and the column heads stay sticky inside it */
.qp-buy{ display:grid; grid-template-rows:auto minmax(0, 1fr) auto; height:100%; max-height:100%; min-height:0; overflow:hidden; box-sizing:border-box; }
.qp-bhd{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 16px 8px; border-bottom:1px solid var(--border); flex-wrap:wrap; }
.qp-bhd-l, .qp-bhd-r{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.qp-bscroll{ overflow:auto; min-height:0; padding:0 16px; overscroll-behavior:contain; }
.qp-blist{ display:flex; flex-direction:column; }
.qp-brow{ display:grid; grid-template-columns:64px minmax(0, 1fr) 260px 150px 150px 96px 280px; align-items:center; column-gap:10px; min-height:38px; padding:3px 4px; border-bottom:1px solid var(--border); font-size:13px; line-height:18px; }
.qp-brow.qp-bhead{ position:sticky; top:0; z-index:var(--layer-step-1); background:var(--surface); font-weight:600; color:var(--text-muted); font-size:12px; min-height:32px; }
.qp-brow.qp-bought .qp-bname{ text-decoration:line-through; color:var(--text-muted); }
.qp-bc{ min-width:0; display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.qp-bc.qp-n{ justify-content:flex-end; text-align:right; font-family:var(--font-num); font-variant-numeric:tabular-nums; }
.qp-bitem .qp-bname{ overflow-wrap:anywhere; }
.qp-bqty{ flex-direction:column; align-items:flex-start; gap:0; }
.qp-plain{ color:var(--text); }
.qp-bacts{ justify-content:flex-start; }
.qp-tick{ width:18px; height:18px; margin:0 0 0 12px; accent-color:var(--accent); }
.qp-chip{ font-size:11px; }
/* a group's total and the list's totals are rows of the same seven columns as every item row, so a total sits under Cost, right aligned like the Cost cells above it, in both themes (P4102 item 6) */
.qp-brow.qp-bgroup{ padding:10px 4px 4px; min-height:0; border-bottom:1px solid var(--border-strong); }
.qp-bgroup > .qp-bname-cell, .qp-btot > .qp-bname-cell{ grid-column:1 / 5; flex-wrap:nowrap; gap:10px; }
.qp-bc[data-col="cost"]{ grid-column:5; }
.qp-gcents{ text-align:right; font-weight:600; }
.qp-nf{ flex-direction:row !important; align-items:center; gap:0 !important; margin:0; }
.qp-nf > span:first-child{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.qp-nf > div{ min-height:0 !important; position:absolute; transform:translateY(22px); font-size:11px; }
.qp-nf .q-input{ width:96px; height:28px; font-size:13px; }
/* the two boxes of a row are told apart while they are empty: Add Price says so in the typing ink on a dashed edge, On Hand is a short count box */
.qp-addfield .q-input{ width:104px; border-style:dashed; border-color:var(--accent-deep); }
.qp-addfield .q-input::placeholder{ color:var(--accent-deep); opacity:1; font-weight:600; }
.qp-handfield .q-input{ width:64px; }
.qp-handfield .q-input::placeholder{ color:var(--text-muted); opacity:1; }
.qp-bfoot{ display:flex; align-items:center; gap:16px; flex-wrap:wrap; padding:8px 16px 10px; border-top:1px solid var(--border-strong); background:var(--surface); }
.qp-bnote{ display:flex; align-items:center; gap:8px; flex:1 1 420px; min-width:0; font-size:13px; color:var(--text-muted); }
.qp-time{ display:flex; flex-direction:column; gap:4px; padding:6px 10px; border:1px solid var(--border); border-radius:var(--radius-md); font-size:13px; }
.qp-time-top{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.qp-time-big{ font-weight:600; }
.qp-time-pace{ color:var(--text-muted); }
.qp-time-depts{ display:flex; gap:14px; flex-wrap:wrap; }
.qp-off{ opacity:.5; cursor:not-allowed; }
/* the totals close the list inside the scroller, in view at its foot, on the same columns as the rows above */
.qp-btots{ position:sticky; bottom:0; z-index:var(--layer-step-1); background:var(--surface); border-top:1px solid var(--border-strong); }
.qp-brow.qp-btot{ border-bottom:0; min-height:34px; }
.qp-btotal{ font-size:15px; }
.qp-blistsum{ font-size:13px; }
.qp-listcents{ font-weight:600; }
.qp-bigcents{ font-weight:650; font-size:18px; }

/* ---- the DIY add-ons editor ---- */
.qp-xed{ display:flex; flex-direction:column; gap:6px; }
.qp-xrow{ display:grid; grid-template-columns:minmax(0, 1fr) 90px 120px; gap:8px; }
.qp-xhead{ font-size:12px; font-weight:600; color:var(--text-muted); }

/* ---- Print: the browser's own print of the list, a box per row. Only while buy-list.js sets qp-printing on the page. ---- */
.qp-print{ display:none; }
@media print {
  .qp-printing body > *:not(.qp-print){ display:none !important; }
  .qp-printing .qp-print{ display:block; color:var(--text); font:13px/18px var(--font); }
  .qp-print h1{ font-size:20px; margin:0 0 12px; }
  .qp-print h2{ font-size:15px; margin:14px 0 6px; }
  .qp-print-row{ display:grid; grid-template-columns:22px 220px minmax(0, 1fr) 110px; gap:8px; padding:3px 0; border-bottom:1px solid var(--border); break-inside:avoid; }
  .qp-print-box{ width:14px; height:14px; border:1.5px solid var(--text); display:inline-block; }
}
/* the Where pick under each item (S06 of the three-seat review, 11/21/2026): small and quiet, one line */
.qp-bc.qp-bitem{ flex-direction:column; align-items:flex-start; gap:2px; }
.qp-bitem .qp-where{ display:block; height:22px; max-width:220px; padding:0 22px 0 6px; font-size:12px; color:var(--text-muted); }
.qp-stores{ width:100%; box-sizing:border-box; font:inherit; }
