/* sample.css: filled by lane q1125-sample. The Sample's own styles (card P4390, a slice of P4051; created empty by q1125-port, card P4384). The band and the shell are frame.css.
   THE SHEETS. Under [data-mode="sample"] (the module's root while the Sample is open) every letter sheet of the PDF route (designer-quotes/customer-views.js, .qc-sheet-letter)
   carries a diagonal SAMPLE watermark and the footer "Sample Quote From A Sample Shop. Not An Offer.", drawn by pseudo elements so no screen file knows. A real quote's sheets
   (another data-mode) are not touched.
   ON SCREEN the sheet's own ::before is the watermark and its ::after the footer. The watermark is drawn OVER the sheet's content (the layer --layer-step-1, it takes no click), because under
   it the cover's kitchen picture covered the middle of the word and only the S and the E showed (the live check of 11/25/2026). It is sized from the sheet's own width (the
   sheet is its size container: cqw is a hundredth of the sheet's content width, 688 px at full size), so the whole word fits a narrow sheet too, and it sits 528 px down,
   the middle of the sheet's first page height: the same place on a long sheet as on a short one, and under the shop's band at a phone's width, where a place taken from the
   width put it on the band's own words. Its ink is a mid gray at a low strength with a thin outline in the paper's color at a higher one, so
   it reads on white paper (darker, the same soft tone as before), on the dark island of the picture (lighter) and on a mid gray (by its outline). No blend mode: a printed
   file does not keep one, and the word printed solid when one was tried. */
[data-mode="sample"] .qc-sheet-letter{ position:relative; isolation:isolate; overflow:hidden; container-type:inline-size; }
[data-mode="sample"] .qc-sheet-letter::before{ content:'SAMPLE'; position:absolute; left:50%; top:528px; transform:translate(-50%, -50%) rotate(-32deg); z-index:var(--layer-step-1); padding-left:.14em; font:800 min(148px, 21.5cqw)/1 var(--font); letter-spacing:.14em; color:color-mix(in srgb, color-mix(in srgb, var(--text) 50%, var(--surface)) 19%, transparent); -webkit-text-stroke:.018em color-mix(in srgb, var(--surface) 40%, transparent); paint-order:stroke fill; white-space:nowrap; pointer-events:none; user-select:none; }
[data-mode="sample"] .qc-sheet-letter::after{ content:'Sample Quote From A Sample Shop. Not An Offer.'; display:block; margin-top:auto; padding-top:14px; border-top:1px solid var(--border); font:600 12px/16px var(--font); letter-spacing:.02em; text-align:center; color:var(--text-muted); }

/* ---- the Reset dialog: what it clears, one short item a line ---- */
.qm-sample-reset p{ margin:0; }
.qm-sample-clears{ margin:0; padding-left:20px; display:flex; flex-direction:column; gap:4px; }

/* ---- print and Save As PDF: every printed PAGE carries the marks, and a sheet breaks cleanly ----
   WHAT WAS WRONG (the live check of 11/25/2026, Letter paper, 8 pages for the 4 sheets). A sheet is as tall as a letter page on screen (min-height 1056 px) and two of the four
   are longer, so on paper: a sheet's footer spilled alone onto a page of its own, the one watermark of a long sheet was cut by the page break and its other pages had none, and
   the page's own contact line (.qc-foot) printed alone on a last page with no mark.
   WHAT PRINTS NOW. Only the sheets, on plain paper. Each sheet starts a page and gives up its screen height.
   THE SHEET IS A PLAIN BLOCK IN PRINT, AND SO IS THE GROUND. As the flex columns they are on screen, the browser left a blank page after a sheet (measured: after the packages
   sheet at one inch margins, and after the terms of a budget estimate on A4 at the print dialog's own margins), put the sheet's last line alone on a page, and dropped the
   break after a sheet. As a grid, a page held only the tail of a price list (73 letters). The room between a sheet's parts is written here as the screen draws it: 28 px
   between any two, and a paragraph's or a list's own line of room above and below. Below it is padding, so it never folds into the 28 px the way two margins would; above it
   is margin, which a page break drops, so a paragraph that starts a page starts at its top. A budget estimate's block keeps its own 24 px more.
   WHAT STAYS TOGETHER. A heading stays with what follows it and a paragraph with what is before it; a line, a list item, a table row, the picture, the signature block and the
   whole approval are never cut; a price list stays whole; the wide comparison of the packages (the one table of three or more columns) and a list may run on to the next page,
   never within three rows of either end, and the browser repeats the table's heading row there. The last part of a sheet is never alone on a page: it takes the part before it
   along (Made With CabDesign had a page to itself after a budget estimate's terms).
   THE SHEET IS SCALED TO THE PAGE (the zoom block). The sheet is a letter page at no margin: 816 px wide, 1056 px a page. Where the printed page is narrower or shorter than
   that (the print dialog's own margins, A4, a page turned on its side), the ground and its marks are scaled by the smaller of the page's width over 816 and its height over
   1056, so every paper and margin prints the same sheet whole and every page holds at least what a letter page at no margin holds. Before this the browser's margin and the
   sheet's own room added up, and a signed Sample's cover ran one line over at the dialog's margins (Signed By had a page to itself); and a page turned on its side cut the
   cover in three, the last page for one line. It is never enlarged and never widened: on a wider page the same sheet sits in the middle. It is never under half size, so a
   browser that measures a printed page another way cannot shrink it away. vw and vh are a hundredth of the printed page's width and height. A browser that cannot divide two
   lengths prints the sheet unscaled, as wide as the page.
   THE MARKS RIDE ON THE PAGE, NOT ON THE SHEET (the clone block). A browser repeats a fixed box on every printed page, so the ground's own ::before (the watermark, in the
   middle of the page, over the content) and ::after (the footer line, at the page's foot) are on every page whole, however a sheet breaks. box-decoration-break: clone gives
   every page a sheet runs to its own top and bottom room, which is where the footer line sits, so the line never lies on a row: 80 px at the foot, the line's own 53 px and
   27 px clear above its rule, close to the 28 px the screen keeps between two parts (at 19 px a table cut by the page showed its last row's rule and the footer's as one
   double rule).
   Where the page carries the marks the sheet's own are off, so no page shows two. A browser without the cloned room keeps the sheet's own marks: the watermark in the
   sheet's first page (never across a break) and the footer after the sheet's last line.
   NO @page RULE. This stylesheet is on the page in every mode and an @page rule cannot be kept to the Sample, so the paper and its margins stay the browser's. A named page
   was tried and it added two blank pages after the last sheet.
   COLORS ARE KEPT EXACT on the ground and so on its marks: with Background Graphics off, a browser darkens light type for white paper, and the watermark printed at about
   twice its strength (measured: the word's gray read 207 of 255 on white paper for a written 227). */
@media print{
  body:has([data-mode="sample"] .qc-pdf-ground), main:has([data-mode="sample"] .qc-pdf-ground), [data-mode="sample"]:has(.qc-pdf-ground) :is(.qm-cmain, .qm-frame, .qc){ background:none; }
  [data-mode="sample"] .qc:has(.qc-pdf-ground) .qc-foot{ display:none; }
  [data-mode="sample"] .qc-pdf-ground{ display:block; --qc-mark-size:min(148px, 18.1vw); --qc-mark-top:min(528px, 64.7vw); -webkit-print-color-adjust:exact; print-color-adjust:exact; }
  [data-mode="sample"] .qc-sheet-letter{ display:block; position:relative; isolation:isolate; container-type:normal; min-height:0; overflow:visible; -webkit-print-color-adjust:exact; print-color-adjust:exact; break-after:page; }
  [data-mode="sample"] .qc-sheet-letter:last-child{ break-after:auto; }
  [data-mode="sample"] .qc-sheet-letter > * + *{ margin-top:28px; }
  [data-mode="sample"] .qc-sheet-letter > :is(p, ul, ol){ margin-top:calc(28px + 1em); margin-bottom:0; padding-bottom:1em; }
  [data-mode="sample"] .qc-sheet-letter > :is(p, ul, ol):first-child{ margin-top:1em; }
  [data-mode="sample"] .qc-sheet-letter > .qc-pdf-budget{ margin-top:52px; }
  [data-mode="sample"] .qc-sheet-letter > :last-child{ padding-bottom:0; }
  [data-mode="sample"] .qc-sheet-letter::before{ content:'SAMPLE'; display:block; top:var(--qc-mark-top); font-size:var(--qc-mark-size); color:color-mix(in srgb, color-mix(in srgb, var(--text) 50%, var(--surface)) 25%, transparent); }
  [data-mode="sample"] .qc-sheet-letter::after{ content:'Sample Quote From A Sample Shop. Not An Offer.'; display:block; margin-top:28px; }
  [data-mode="sample"] .qc-sheet-letter h2{ break-after:avoid; }
  [data-mode="sample"] .qc-sheet-letter table:not(:has(th:nth-child(3))){ break-inside:avoid; }
  [data-mode="sample"] .qc-sheet-letter :is(p, li, tr, .qc-two, .qc-pdf-pic, .qc-pdf-band, .qc-pdf-sig, .qc-pdf-budget, div:has(> .qc-pdf-sig)){ break-inside:avoid; }
  [data-mode="sample"] .qc-sheet-letter :is(tr, li):nth-child(-n+2){ break-after:avoid; }
  [data-mode="sample"] .qc-sheet-letter :is(tr, li):nth-last-child(-n+2){ break-before:avoid; }
  [data-mode="sample"] .qc-sheet-letter > :is(p, :last-child){ break-before:avoid; }
  @supports (box-decoration-break:clone){
    [data-mode="sample"] .qc-sheet-letter{ padding:40px 64px 80px; box-decoration-break:clone; }
    [data-mode="sample"] .qc-sheet-letter::before, [data-mode="sample"] .qc-sheet-letter::after{ content:none; }
    [data-mode="sample"] .qc-pdf-ground::before{ content:'SAMPLE'; position:fixed; left:50%; top:50%; transform:translate(-50%, -50%) rotate(-32deg); z-index:var(--layer-step-1); padding-left:.14em; font:800 var(--qc-mark-size)/1 var(--font); letter-spacing:.14em; color:color-mix(in srgb, color-mix(in srgb, var(--text) 50%, var(--surface)) 25%, transparent); -webkit-text-stroke:.018em color-mix(in srgb, var(--surface) 45%, transparent); paint-order:stroke fill; white-space:nowrap; pointer-events:none; }
    [data-mode="sample"] .qc-pdf-ground::after{ content:'Sample Quote From A Sample Shop. Not An Offer.'; position:fixed; left:64px; right:64px; bottom:24px; z-index:var(--layer-step-1); padding-top:12px; border-top:1px solid var(--border); font:600 12px/16px var(--font); letter-spacing:.02em; text-align:center; color:var(--text-muted); }
  }
  @supports (zoom:min(1, 100vw / 816px)){
    [data-mode="sample"] .qc-pdf-ground{ zoom:clamp(.5, min(100vw / 816px, 100vh / 1056px), 1); --qc-mark-size:148px; --qc-mark-top:528px; }
    [data-mode="sample"] .qc-sheet-letter{ width:816px; margin-inline:auto; }
    [data-mode="sample"] .qc-pdf-ground::after{ left:50%; right:auto; width:688px; margin-left:-344px; }
  }
}
