/* real.css: filled by lane q1125-real-desk. Card P4388; created empty by q1125-port, card P4384. A real quote's own styles: the project's picture block where the Sample draws its
   kitchen, a control drawn off with its reason, the Cost Not Known chip, and the Project route's card; card P4444 added the Proposal step's picker of pictures and the paper's
   pictures and Products And Materials. Tokens only, nothing typed in a color (the print's black on white is the paper's, as before). Both themes. */
.qd-realpic { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 160px; height: 100%; padding: 18px; text-align: center; border: 1px dashed var(--border-strong); border-radius: var(--radius-md, 12px); background: var(--surface-hi, var(--surface)); color: var(--text-muted); font-size: 13px; line-height: 1.45; }
.qd-realpic b { color: var(--text); font-size: 15px; }
.qd-realpic-sm { min-height: 120px; padding: 12px; font-size: 12px; }
.qd-realpic-sm b { font-size: 13px; }
.qd-realpic-kinds { font-weight: 600; color: var(--text); }
/* the saved views themselves: up to four pictures in one row that wraps, each whole (never cropped); the row takes no room until a picture has arrived */
.qd-realpic-views { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; width: 100%; }
.qd-realpic-views:not(:has(img:not([hidden]))) { display: none; }
.qd-realpic-img { flex: 1 1 240px; min-width: 0; max-width: 100%; max-height: 320px; object-fit: contain; border: 1px solid var(--border); border-radius: var(--radius-sm, 8px); background: var(--surface); }
.qd-realpic-img[hidden] { display: none; }
.qd-realpic-sm .qd-realpic-img { max-height: 96px; }
.qa-project-real .qd-realpic-img { max-height: 520px; }
.qk-realpic { min-height: 200px; }
.qd-plan-real { display: flex; flex-direction: column; gap: 12px; }
.qd-plan-real .qd-plan-draw { flex: 1 1 auto; min-height: 240px; }
/* a control that cannot be true on a real project yet: in place, drawn off, its reason in its tip; never hidden, never a silent no-op */
.qd-off-real, .qd-off-real * { cursor: not-allowed; }
.qd-off-real { opacity: .55; }
/* a heading of a real-only card with its info icon beside it, never inside it (rule R-32: one short line in the open, the rest behind the icon) */
.qd-realhead, .ql-realhead { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.ql-realhead h3 { margin: 0; }
/* the Cost Not Known chip on Check The Job and the Cost grid */
.qd-cnk-chip { white-space: nowrap; }
/* Cost Not Known in a number cell of the Cost grid sits inside its fill, with its padding (item 6 of card P4387 round 5, found by the P3866 live check of 11/26/2026): a number cell
   does not wrap (desk.css, the approved design's own, kept byte for byte), so the words, wider than the Unit Cost and Direct columns, ran out of the fill on the left, and in Midnight Oak
   the first letter read dark red on the dark ground. They wrap at a space instead. The Sample's Not Priced fits its column, so it reads as before. */
.qd-gc.qd-n.qd-f-notpriced { white-space: normal; line-height: 16px; overflow-wrap: normal; }
.qd-amt-np [data-one-total] small, .qd-amt[data-one-total] small { color: var(--text-muted); font-weight: 600; }
/* the Project route of a real project */
.qa-project-real { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 24px; padding: 24px; min-height: 560px; }
.qa-project-real .qd-realpic { min-height: 420px; }
/* fix round 2 (card P4388): the card takes its column's width, never the Sample's 520 px (it ran 100 px past a 420 px column and past the window); a job name of any length wraps in
   it, a name past three lines ends with an ellipsis and its title shows it whole, and the eyebrow and the customer line wrap too */
.qa-project-real .qa-project-card { position: static; width: auto; min-width: 0; max-width: 100%; box-sizing: border-box; }
.qa-project-real .qa-project-name { overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.qa-project-real .qa-project-who { overflow-wrap: anywhere; }
.qa-project-real .qa-project-eyebrow > span { min-width: 0; overflow-wrap: anywhere; }
.qa-project-real .qa-project-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
@media (max-width: 1100px) { .qa-project-real { grid-template-columns: 1fr; } }
/* the Proposal step's preview of the customer face on a real project: one paper, the shop's words and figures only */
.ql-realpaper { max-width: 760px; margin: 0 auto; padding: 28px 32px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md, 12px); color: var(--text); }
.ql-realpaper h2 { margin: 0 0 4px; font-size: 20px; }
.ql-realpaper .ql-realpaper-sub { color: var(--text-muted); font-size: 13px; margin-bottom: 16px; }
.ql-realpaper table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.ql-realpaper td { padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.ql-realpaper td.q-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ql-realpaper tr.ql-realpaper-total td { border-top: 2px solid var(--text); border-bottom: 0; font-weight: 700; font-size: 16px; }
.ql-realpaper .ql-realpaper-note { font-size: 13px; color: var(--text-muted); white-space: pre-line; }
/* THE PICTURES HE PICKS, ON THE PROPOSAL STEP (card P4444): one row per picture of the project, the whole row the label of its In The Quote tick, the picture whole in its frame (never
   cropped), its name, its kind and where it came from; a live drawing's row has its tick drawn off, one line and a link to the Designer. A ticked row wears the accent border. */
.ql-qpics { display: flex; flex-direction: column; gap: 8px; }
.ql-qpic { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; border: 1px solid var(--border); border-radius: var(--radius-md, 12px); background: var(--surface); color: var(--text); cursor: pointer; }
.ql-qpic:hover { background: var(--surface-hi, var(--surface)); }
.ql-qpic:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.ql-qpic-on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.ql-qpic-ro, .ql-qpic-live { cursor: default; }
.ql-qpic-ro:hover, .ql-qpic-live:hover { background: var(--surface); }
.ql-qpic-thumb { display: flex; align-items: center; justify-content: center; width: 112px; height: 72px; box-sizing: border-box; border: 1px solid var(--border); border-radius: var(--radius-sm, 8px); background: var(--surface-hi, var(--surface)); color: var(--text-muted); overflow: hidden; }
.ql-qpic-img { display: block; width: 100%; height: 100%; object-fit: contain; background: var(--surface); }
.ql-qpic-img[hidden] { display: none; }
.ql-qpic-words { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ql-qpic-name { overflow-wrap: anywhere; }
.ql-qpic-line { margin: 4px 0 0; color: var(--text-muted); overflow-wrap: anywhere; }
.ql-qpic-in { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 13px; font-weight: 600; color: var(--text); }
.ql-qpic-tick { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--accent); }
.ql-qpic-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.ql-qpic-side .q-btn { white-space: nowrap; }
/* the paper's own parts (card P4444): the pictures he ticked, two to a row, each whole with its name under it, and Products And Materials, words only */
.ql-realpaper .ql-paper-part { margin-top: 22px; }
.ql-realpaper .ql-paper-h { margin: 0 0 10px; font-size: 16px; }
.ql-paper-pics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ql-paper-pics-one { grid-template-columns: minmax(0, 1fr); }
.ql-paper-pic { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; break-inside: avoid; page-break-inside: avoid; }
.ql-paper-img { display: block; width: 100%; height: auto; max-height: 360px; object-fit: contain; box-sizing: border-box; border: 1px solid var(--border); border-radius: var(--radius-sm, 8px); background: var(--surface-hi, var(--surface)); }
.ql-paper-img[hidden] { display: none; }
.ql-paper-name { font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--text); overflow-wrap: anywhere; }
.ql-realpaper .ql-paper-table { margin: 0 0 12px; }
.ql-realpaper .ql-paper-table th { padding: 7px 16px 7px 0; border-bottom: 1px solid var(--border); font-size: 14px; font-weight: 600; text-align: left; vertical-align: top; }
.ql-realpaper .ql-paper-table td { vertical-align: top; overflow-wrap: anywhere; }
.ql-realpaper .ql-paper-table tbody th[scope="row"] { width: 36%; }
.ql-realpaper .ql-paper-cabs td { padding-right: 16px; }
.ql-realpaper .ql-paper-cabs td:last-child, .ql-realpaper .ql-paper-cabs th:last-child { padding-right: 0; }
.ql-realpaper .ql-paper-cabs thead th { font-size: 12px; color: var(--text-muted); }
.ql-realpaper .ql-paper-room th { padding-top: 14px; }
.ql-realpaper .ql-paper-size, .ql-realpaper .ql-paper-table th.ql-paper-size { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }   /* the Size heading sits over its sizes (the table's th rule ranks higher than a class alone) */
/* PRINT A SAVED VERSION (fix round 1, card P4388): the Desk's Print on a saved version prints the proposal paper alone. html.qr-print is set only for that one print. */
@media print {
  html.qr-print body * { visibility: hidden !important; }
  html.qr-print .ql-realpaper, html.qr-print .ql-realpaper * { visibility: visible !important; }
  /* card P4444: the paper now runs over more than one page (the pictures he ticked, the products and materials). Everything that is neither the paper nor a box that holds it takes no
     room, and the boxes that hold it neither clip nor scroll, so the paper flows from the top of the first page over as many pages as it needs, each picture whole on one page. */
  html.qr-print body *:not(:has(.ql-realpaper)):not(.ql-realpaper):not(.ql-realpaper *) { display: none !important; }
  html.qr-print, html.qr-print body, html.qr-print body *:has(.ql-realpaper) { display: block !important; position: static !important; overflow: visible !important; height: auto !important; min-height: 0 !important; max-height: none !important; width: auto !important; margin: 0 !important; padding: 0 !important; border: 0 !important; transform: none !important; }
  html.qr-print .ql-realpaper { position: static; left: 0; top: 0; width: 100%; max-width: none; margin: 0; border: 0; border-radius: 0; background: #fff; color: #000; }
  html.qr-print .ql-realpaper .ql-realpaper-sub, html.qr-print .ql-realpaper .ql-realpaper-note, html.qr-print .ql-realpaper .ql-paper-cabs thead th { color: #333; }
  html.qr-print .ql-paper-pic, html.qr-print .ql-paper-table tr { break-inside: avoid; page-break-inside: avoid; }
  html.qr-print .ql-paper-img { max-height: 420px; border-color: #333; background: #fff; }
  html.qr-print .ql-paper-name { color: #000; }
}
/* REVIEW AND SEND WITH NO PAYMENT SCHEDULE (fix round 1, card P4388): the row sits in a narrow column (211 px at 1920 by 1080), so the words and Set A Payment Schedule do not fit
   on one line. The row wraps: the words and their info icon keep one line, and the button goes under them, whole. Without this the words were squeezed to 54 px over three lines
   and the button ran 46 px past the row. */
[data-no-schedule="1"] { flex-wrap: wrap; justify-content: flex-start; row-gap: 6px; }
[data-no-schedule="1"] > .q-row { flex: 0 0 auto; white-space: nowrap; }
