/* Printed client quote (design "Quote RIV2563"): letter pages 816 x 1056 px (8.5 x 11 in at 96 dpi). */
@font-face { font-family: 'QD Sans'; src: url(fonts/instrument-sans-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-style: normal; font-display: block; }
@font-face { font-family: 'QD Sans'; src: url(fonts/instrument-sans-latin-500-normal.woff2) format('woff2'); font-weight: 500; font-style: normal; font-display: block; }
@font-face { font-family: 'QD Sans'; src: url(fonts/instrument-sans-latin-600-normal.woff2) format('woff2'); font-weight: 600; font-style: normal; font-display: block; }
@font-face { font-family: 'QD Sans'; src: url(fonts/instrument-sans-latin-700-normal.woff2) format('woff2'); font-weight: 700; font-style: normal; font-display: block; }
@font-face { font-family: 'QD Display'; src: url(fonts/big-shoulders-latin-600-normal.woff2) format('woff2'); font-weight: 600; font-style: normal; font-display: block; }
@font-face { font-family: 'QD Display'; src: url(fonts/big-shoulders-latin-700-normal.woff2) format('woff2'); font-weight: 700; font-style: normal; font-display: block; }
@font-face { font-family: 'QD Display'; src: url(fonts/big-shoulders-latin-800-normal.woff2) format('woff2'); font-weight: 800; font-style: normal; font-display: block; }

.qd { --navy: #111a26; --or: #fe5e00; --ord: #c94a00; --mu: #5a6472; --ln: #d9dee5; --ln2: #e3e7ec; --lt: #f5f6f8; --lt2: #f7f8fa; --ink2: #3d4652; --hd: #c3cad4;
  color: var(--navy); font-family: 'QD Sans', 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.qd *, .qd *::before, .qd *::after { box-sizing: border-box; }
.qd h1, .qd h2, .qd h3 { font-family: inherit; letter-spacing: normal; }
.qd .disp { font-family: 'QD Display', 'Big Shoulders', 'Big Shoulders Display', 'Arial Narrow', sans-serif; }
.qd .num { font-variant-numeric: tabular-nums; }
.qd .b { font-weight: 600; }
.qd .r { text-align: right; }
.qd-muted, .qd .qd-muted { color: var(--mu); font-weight: 400; }
.qd-page { width: 816px; height: 1056px; position: relative; overflow: hidden; background: #fff; font-size: 14px; line-height: 1.4; margin: 0 auto 28px; box-shadow: 0 2px 16px rgba(17, 26, 38, .2); }
.qd-wm { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; z-index: 5; font-family: 'QD Display', sans-serif; font-weight: 800;
  font-size: 150px; letter-spacing: .08em; color: rgba(17, 26, 38, .07); transform: rotate(-30deg); }

/* --- shared header and footer (inner pages) */
.qd-h { padding: 40px 56px 0; display: flex; flex-direction: column; gap: 10px; }
.qd-h-row { display: flex; justify-content: space-between; align-items: flex-end; }
.qd-h-l { display: flex; align-items: center; gap: 14px; }
.qd-h-tt { display: flex; flex-direction: column; }
.qd-h-t { font-size: 26px; font-weight: 800; letter-spacing: .03em; line-height: 1; }
.qd-h-s { font-size: 12px; color: var(--mu); }
.qd-h-r { text-align: right; font-size: 12px; line-height: 1.5; color: var(--mu); }
.qd-h-r b { color: var(--navy); }
.qd-h-bar { height: 3px; background: var(--or); }
.qd-main { padding: 18px 56px 0; display: flex; flex-direction: column; gap: 16px; }
.qd-f { position: absolute; left: 56px; right: 56px; bottom: 40px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--mu); }
.qd-f-r { display: flex; align-items: center; gap: 10px; }
.qd-init { width: 64px; height: 26px; border: 1px solid #8a94a3; position: relative; }
.qd-signs > div > span:first-child, .qd-field > span { position: relative; }
/* e-signature field marks (copy sent to DocuSign only): invisible text where DocuSign puts each field */
.qd-sig { position: absolute; left: 4px; bottom: 2px; height: 40px; max-width: calc(100% - 8px); object-fit: contain; object-position: left bottom; }
.qd-sig.qd-sig-i { left: 2px; right: 2px; top: 1px; bottom: 1px; height: auto; max-height: 24px; margin: auto; object-position: center; }
.qd-sigdate { position: absolute; left: 4px; bottom: 3px; font-style: normal; font-size: 13px; color: var(--navy); white-space: nowrap; }
.qd-rec { display: grid; gap: 18px; }
.qd-rec-top { display: grid; gap: 6px; }
.qd-rec-r { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 12px; font-size: 13px; }
.qd-rec-r span { color: var(--mu); }
.qd-rec-r b { font-weight: 600; overflow-wrap: anywhere; }
.qd-rec-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.qd-rec-b { border: 1px solid var(--ln); padding: 14px 16px; display: grid; gap: 6px; align-content: start; }
.qd-rec-b .qd-rec-r { grid-template-columns: 90px minmax(0, 1fr); font-size: 12.5px; }
.qd-rec-sig { height: 90px; border-bottom: 1px solid var(--navy); display: flex; align-items: flex-end; }
.qd-rec-img { max-height: 84px; max-width: 100%; }
.qd-rec-note { font-size: 12px; color: var(--ink2); margin: 0; line-height: 1.5; }
.qd-anc { position: absolute; left: 2px; top: 1px; font: normal 400 5px/1 Arial, sans-serif; color: #fff; letter-spacing: 0; white-space: nowrap; }
.qd-pn { font-weight: 700; color: var(--navy); min-width: 38px; text-align: right; }
.qd-sec { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--navy); padding-bottom: 5px; border-bottom: 2px solid var(--or); text-transform: uppercase; }
.qd .lbl { font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--mu); text-transform: uppercase; }

/* --- cover */
.qd-ch { background: var(--navy); color: #fff; padding: 32px 56px 28px; display: flex; flex-direction: column; gap: 26px; position: relative; }
.qd-ch-col { display: none; } /* was a faint vertical line that crossed the dates of the cover (Oct 15, 2026) */
.qd-ch-top, .qd-ch-bot { display: flex; justify-content: space-between; position: relative; }
.qd-ch-top { align-items: flex-start; }
.qd-ch-bot { align-items: flex-end; }
.qd-ch-logo { display: flex; align-items: center; gap: 12px; }
.qd-ch-name { font-size: 26px; font-weight: 800; letter-spacing: .06em; }
.qd-ch-name span, .qd-ch-ref span { color: var(--or); }
.qd-ch-co { text-align: right; font-size: 12px; line-height: 1.55; color: var(--hd); }
.qd-ch-co .w { color: #fff; font-weight: 600; }
.qd-ch-no { display: flex; flex-direction: column; gap: 2px; }
.qd-ch-q { font-size: 12px; font-weight: 600; letter-spacing: .14em; color: var(--or); }
.qd-ch-ref { font-size: 72px; font-weight: 800; line-height: .95; letter-spacing: .01em; }
.qd-ch-meta { display: flex; gap: 28px; font-size: 12px; color: var(--hd); }
.qd-ch-meta > div { display: flex; flex-direction: column; gap: 3px; }
.qd-ch-meta span { letter-spacing: .08em; }
.qd-ch-meta b { font-size: 15px; color: #fff; font-weight: 600; text-align: left; }
.qd-ch-bar { height: 5px; background: var(--or); }
.qd-cmain { padding: 24px 56px 0; gap: 20px; }
.qd-who { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.qd-who > div { display: flex; flex-direction: column; gap: 4px; padding-top: 10px; border-top: 2px solid var(--navy); }
.qd-who .lbl { letter-spacing: .1em; }
.qd-who .nm { font-size: 17px; font-weight: 700; }
.qd-kinds { display: grid; gap: 16px; }
.qd-kind { background: var(--lt); border-top: 3px solid var(--or); padding: 12px 16px; display: flex; align-items: center; gap: 14px; }
.qd-kn { font-size: 52px; font-weight: 800; line-height: 1; min-width: 40px; }
.qd-kt { display: flex; flex-direction: column; }
.qd-kt b { font-size: 16px; }
.qd-kt span { font-size: 13px; color: var(--mu); }
.qd-glance { display: flex; flex-direction: column; gap: 10px; }
.qd-gt { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 2px solid var(--navy); padding-bottom: 6px; }
.qd-gt h2 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: .02em; line-height: 1; }
.qd-gt span { font-size: 13px; font-weight: 600; }
.qd-gtable { display: flex; flex-direction: column; font-size: 14px; }
.qd-gh, .qd-gr { display: grid; grid-template-columns: 30px 124px minmax(0, 1fr) 156px 90px 36px; gap: 8px; padding: 8px 10px; align-items: center; }
.qd-gh { background: var(--navy); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .05em; }
.qd-gr { border-bottom: 1px solid var(--ln); }
.qd-gr.alt { background: var(--lt2); }
.qd-gr.last { border-bottom: 2px solid var(--navy); }
.qd-gn { font-size: 18px; font-weight: 800; color: var(--ord); }
.qd-gnote { font-size: 12px; color: var(--mu); }
.qd-badges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ln); border-bottom: 1px solid var(--ln); }
.qd-badges > div { display: flex; gap: 10px; align-items: center; padding: 14px 12px; font-size: 13px; line-height: 1.3; }
.qd-badges > div:first-child { padding-left: 0; }
.qd-badges > div + div { border-left: 1px solid var(--ln); }
.qd-badges svg { flex: none; }
.qd-badges span { color: var(--mu); }

/* --- item pages */
.qd-title { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto auto; column-gap: 28px; align-items: end; padding-bottom: 12px; border-bottom: 2px solid var(--navy); }
.qd-no { font-size: 56px; font-weight: 800; line-height: .85; color: var(--or); }
.qd-tt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.qd-tt h1 { margin: 0; font-size: 24px; font-weight: 700; line-height: 1.15; }
.qd-tt span { font-size: 15px; color: var(--mu); }
.qd-big { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.qd-big .disp { font-size: 30px; font-weight: 800; line-height: 1; white-space: nowrap; }
.qd-wgrid { display: grid; grid-template-columns: 300px minmax(0, 1fr); column-gap: 28px; align-items: start; }
.qd-figs { background: var(--lt); padding: 12px; display: flex; flex-direction: column; gap: 12px; }
.qd-figrow { display: flex; justify-content: center; align-items: flex-end; gap: 12px; }
.qd-figrow2 { display: flex; justify-content: space-around; align-items: flex-end; gap: 8px; }
.qd-fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.qd-fig figcaption { font-size: 12px; color: var(--mu); text-align: center; white-space: nowrap; }
.qd-fig figcaption.wrap { white-space: normal; max-width: 150px; line-height: 1.25; } /* the cleaning-position captions (Nov 3, 2026) */
.qd-fig svg { display: block; font-family: 'QD Sans', 'Instrument Sans', Arial, sans-serif; }
.qd-fig .qd-cat { display: block; height: 126px; width: auto; border: 1px solid var(--ln, #dde3ea); border-radius: 4px; background: #fff; }
/* the hardware proposed, with its pictures (owner, Nov 19, 2026) */
.qd-hw { border-top: 1px solid var(--ln, #dde3ea); padding-top: 8px; margin-top: 10px; }
.qd-hwt { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--mu); text-align: center; margin-bottom: 6px; }
.qd-hwrow { display: flex; justify-content: space-around; align-items: flex-start; gap: 6px; }
.qd-hwf { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1 1 0; min-width: 0; }
.qd-hwbg { display: flex; align-items: center; justify-content: center; width: 100%; max-width: 108px; height: 76px; padding: 4px; box-sizing: border-box; }
.qd-hwbg svg { display: block; height: 100%; width: auto; max-width: 100%; }
.qd-hwf figcaption { font-size: 10px; line-height: 1.25; color: var(--mu); text-align: center; display: flex; gap: 4px; align-items: flex-start; justify-content: center; }
.qd-hwf figcaption .qd-sw { width: 9px; height: 9px; margin-top: 2px; }
.qd-specs { display: flex; flex-direction: column; gap: 10px; }
.qd-spec { display: flex; flex-direction: column; min-width: 0; }
.qd-kv { display: grid; grid-template-columns: 104px minmax(0, 1fr); column-gap: 10px; align-items: center; min-height: 22px; padding: 2px 0; border-bottom: 1px solid var(--ln2); font-size: 13.5px; line-height: 1.3; }
.qd-k { color: var(--mu); font-size: 13px; }
.qd-v { font-weight: 600; display: flex; align-items: center; gap: 7px; min-width: 0; }
.qd-sw { width: 12px; height: 12px; border: 1px solid var(--navy); flex: none; display: inline-block; }
.qd-badge { display: inline-flex; align-items: center; gap: 5px; padding: 1px 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; white-space: nowrap; border: 1.5px solid var(--navy); justify-self: start; }
/* the egress logo and word (owner, Nov 19, 2026): the exit sign, a vector, in its safety green */
.qd-egress { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; padding: 1px 6px 1px 2px; font-size: .62em; font-weight: 800; letter-spacing: .06em; vertical-align: middle; color: #1f8b3b; border: 1.5px solid #1f8b3b; border-radius: 3px; white-space: nowrap; }
.qd-egress .egress-logo { display: block; flex: none; }
.qd-pgrid { display: grid; grid-template-columns: 196px minmax(0, 1fr) minmax(0, 1fr); column-gap: 28px; row-gap: 14px; align-items: start; }
.qd-pfig { grid-row: span 2; background: var(--lt); display: flex; align-items: center; justify-content: center; padding: 18px 0; align-self: stretch; }
.qd-pgrid .qd-kv { grid-template-columns: 84px minmax(0, 1fr); }
.qd-pricing { display: flex; flex-direction: column; gap: 8px; }
.qd-pr { display: grid; grid-template-columns: minmax(0, 1fr) 216px; column-gap: 28px; align-items: start; }
.qd-prt { display: flex; flex-direction: column; }
.qd-tr { display: grid; grid-template-columns: minmax(0, 1fr) 100px 36px 96px; column-gap: 10px; align-items: center; min-height: 25px; padding: 2px 0; border-bottom: 1px solid var(--ln2); font-size: 13.5px; line-height: 1.3; }
.qd-tr > span + span { text-align: right; }
.qd-th { font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--mu); text-transform: uppercase; border-bottom: 1px solid var(--navy); min-height: 24px; }
.qd-sub { font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--navy); text-transform: uppercase; padding: 6px 0 2px; }
.qd-prs { display: flex; flex-direction: column; padding-top: 24px; }
.qd-srow { display: flex; justify-content: space-between; align-items: center; min-height: 29px; border-bottom: 1px solid var(--ln2); font-size: 13.5px; }
.qd-srow > span:first-child { color: var(--mu); }
.qd-srow b { font-weight: 600; }
.qd-srow.qd-disc, .qd-srow.qd-disc > span:first-child { color: var(--ord); font-weight: 700; }
.qd-net { background: var(--navy); color: #fff; padding: 12px 14px; margin-top: 10px; display: flex; flex-direction: column; gap: 2px; }
.qd-net > span:first-child { font-size: 12px; letter-spacing: .08em; color: var(--hd); }
.qd-net .disp { font-size: 30px; font-weight: 800; line-height: 1; }
.qd-item.tight .qd-main { gap: 12px; padding-top: 14px; }
.qd-item.tight .qd-kv, .qd-item.tight .qd-tr { min-height: 20px; font-size: 12.5px; }
.qd-item.tight .qd-figs { padding: 8px; gap: 8px; }

/* the prices on the item's page (owner, Nov 17, 2026: "make sure the price fits on the same page where the window image and
   details are, if you have to make the price colums smaller"): after .tight, smaller drawings, rows and price columns;
   only a page still too long sends its prices to the next page (qpaginate.js) */
.qd-item.tight2 .qd-main { gap: 10px; padding-top: 12px; }
.qd-item.tight2 .qd-wgrid { grid-template-columns: 250px minmax(0, 1fr); column-gap: 22px; }
.qd-item.tight2 .qd-figs { zoom: .8333; }
.qd-item.tight2 .qd-kv { min-height: 18px; padding: 1px 0; font-size: 12px; }
.qd-item.tight2 .qd-k { font-size: 11.5px; }
.qd-item.tight2 .qd-sec { font-size: 11px; padding-bottom: 3px; }
.qd-item.tight2 .qd-pricing { gap: 4px; }
.qd-item.tight2 .qd-pr { grid-template-columns: minmax(0, 1fr) 184px; column-gap: 18px; }
.qd-item.tight2 .qd-tr { grid-template-columns: minmax(0, 1fr) 82px 26px 84px; column-gap: 8px; min-height: 18px; padding: 1px 0; font-size: 12px; line-height: 1.25; }
.qd-item.tight2 .qd-th { font-size: 10.5px; min-height: 18px; }
.qd-item.tight2 .qd-sub { font-size: 10.5px; padding: 3px 0 1px; }
.qd-item.tight2 .qd-prs { padding-top: 18px; }
.qd-item.tight2 .qd-srow { min-height: 21px; font-size: 12px; }
.qd-item.tight2 .qd-net { padding: 8px 10px; margin-top: 6px; }
.qd-item.tight2 .qd-net .disp { font-size: 23px; }

/* the last step before the next page: smaller still (long items: a door with sidelites and many options) */
.qd-item.tight3 .qd-wgrid { grid-template-columns: 216px minmax(0, 1fr); column-gap: 18px; }
.qd-item.tight3 .qd-figs { zoom: .72; }
.qd-item.tight3 .qd-title { padding-bottom: 6px; }
.qd-item.tight3 .qd-kv { min-height: 16px; font-size: 11.5px; line-height: 1.2; }
.qd-item.tight3 .qd-pr { grid-template-columns: minmax(0, 1fr) 164px; column-gap: 14px; }
.qd-item.tight3 .qd-tr { grid-template-columns: minmax(0, 1fr) 74px 22px 78px; column-gap: 6px; min-height: 16px; font-size: 11.5px; line-height: 1.2; }
.qd-item.tight3 .qd-th { font-size: 9.5px; letter-spacing: .04em; }
.qd-item.tight3 .qd-net .disp { font-size: 21px; }
.qd-item.tight3 .qd-srow { min-height: 19px; font-size: 11.5px; }

/* ENERGY STAR card under a window's drawings (owner, Nov 17, 2026: "make it look good also please and add for energy star
   windows the energy star logo"): white on the grey drawing panel, the ENERGY STAR blue as a thin top line */
.qd-es { background: #fff; border: 1px solid var(--ln); border-top: 3px solid #00aeef; padding: 10px 12px 9px; display: flex; flex-direction: column; gap: 8px; }
.qd-es-h { display: flex; gap: 10px; align-items: center; }
.qd-es-logo { display: block; height: 52px; width: auto; flex: none; }
.qd-es.me .qd-es-h { flex-direction: column; align-items: flex-start; gap: 7px; }
.qd-es.me .qd-es-logo { height: 60px; }
.qd-es-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.qd-es-t b { font-size: 13px; line-height: 1.2; font-weight: 700; color: var(--navy); }
.qd-es-t span { font-size: 10.5px; line-height: 1.25; color: var(--mu); }
.qd-es-n { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ln2); }
.qd-es-n > div { display: flex; flex-direction: column; gap: 3px; padding-top: 7px; }
.qd-es-n > div + div { border-left: 1px solid var(--ln2); padding-left: 12px; }
.qd-es-n .disp { font-size: 28px; font-weight: 800; line-height: 1; color: var(--navy); }
.qd-es-n small { font-size: 10.5px; line-height: 1.2; color: var(--mu); }
.qd-es-nr { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; border-top: 1px solid var(--ln2); padding-top: 6px; font-size: 11.5px; }
.qd-es-nr span { color: var(--mu); }
.qd-es-nr b, .qd-es-u b { font-weight: 600; }
/* a combined window: one block per section type, the numbers in large like a single window (owner, Nov 17, 2026) */
.qd-es-u { display: flex; flex-direction: column; gap: 5px; border-top: 2px solid var(--ln); padding-top: 7px; }
.qd-es-ut { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 12px; }
.qd-es-u .qd-es-ut b { font-weight: 700; color: var(--navy); }
.qd-es-ut span { font-size: 10.5px; font-weight: 700; color: #0077a8; }
.qd-es-u .qd-es-n .disp { font-size: 24px; }

/* --- next steps */
.qd-stepsp .qd-main { padding-top: 30px; gap: 34px; }
.qd-steps, .qd-notices { display: flex; flex-direction: column; }
.qd-step { display: grid; grid-template-columns: 64px minmax(0, 1fr) 140px; column-gap: 20px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--ln2); }
.qd-step > .disp { font-size: 44px; font-weight: 800; line-height: 1; }
.qd-step > .disp.o { color: var(--or); }
.qd-st { font-size: 17px; font-weight: 700; }
.qd-sd { font-size: 14px; color: var(--ink2); margin-top: 2px; }
.qd-when { font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--mu); text-transform: uppercase; text-align: right; }
.qd-nlist { padding-top: 8px; }
.qd-note { display: grid; grid-template-columns: 18px minmax(0, 1fr); column-gap: 8px; font-size: 14px; line-height: 1.5; padding: 7px 0; }
.qd-note > span:first-child { width: 7px; height: 7px; background: var(--or); margin-top: 8px; }
.qd-note .pre { white-space: pre-line; }
/* a note continued from the page before: no new bullet (owner, Nov 17, 2026) */
.qd-note.qd-cont > span:first-child { visibility: hidden; }

/* --- investment */
.qd-invp .qd-main { padding-top: 26px; gap: 24px; }
.qd-inv { display: flex; flex-direction: column; }
.qd-itable { display: flex; flex-direction: column; }
.qd-ir { display: grid; grid-template-columns: 30px minmax(0, 1fr) 36px 108px 64px 108px; column-gap: 10px; align-items: center; min-height: 32px; padding: 3px 0; border-bottom: 1px solid var(--ln2); font-size: 13.5px; line-height: 1.3; }
.qd-ir > span:nth-child(n+3) { text-align: right; }
.qd-ir .qd-gn { font-size: 17px; }
.qd-ih { font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--mu); text-transform: uppercase; border-bottom: 1px solid var(--navy); min-height: 26px; }
.qd-itot { border-bottom: 2px solid var(--navy); font-weight: 700; }
.qd-totals { display: grid; grid-template-columns: minmax(0, 1fr) 320px; column-gap: 28px; align-items: start; }
.qd-tl { display: flex; flex-direction: column; }
.qd-trow { display: flex; justify-content: space-between; align-items: center; min-height: 34px; border-bottom: 1px solid var(--ln2); font-size: 14px; gap: 10px; }
.qd-trow b { font-weight: 700; }
.qd-no2 { font-size: 12px; color: var(--mu); }
.qd-promise { display: flex; gap: 10px; align-items: flex-start; padding-top: 14px; font-size: 13px; color: var(--ink2); }
.qd-tnote { padding-top: 8px; font-size: 11px; color: var(--ink2); }
.qd-tr2 { display: flex; flex-direction: column; gap: 10px; }
.qd-save { background: var(--or); padding: 12px 18px; display: flex; flex-direction: column; gap: 4px; }
.qd-save > span:first-child { font-size: 12px; font-weight: 700; letter-spacing: .1em; }
.qd-save .disp { font-size: 34px; font-weight: 800; line-height: 1; white-space: nowrap; }
.qd-final { background: var(--navy); color: #fff; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.qd-final .l { font-size: 12px; font-weight: 600; letter-spacing: .1em; color: var(--hd); }
.qd-final .disp { font-size: 48px; font-weight: 800; line-height: 1; white-space: nowrap; }
.qd-final .s { font-size: 12px; color: var(--hd); }
.qd-sched { display: flex; flex-direction: column; gap: 10px; }
.qd-bars { display: grid; }
.qd-bars > div { padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; }
.qd-bars span { font-size: 12px; font-weight: 700; }
.qd-bars b { font-size: 17px; font-weight: 700; }
.qd-bars .b0 { background: var(--or); }
.qd-bars .b1 { background: var(--navy); color: #fff; }
.qd-bars .b1 span { color: var(--hd); }
.qd-bars .b2 { background: #dfe4ea; }
.qd-accept { display: flex; flex-direction: column; gap: 12px; }
.qd-accept p { margin: 0; font-size: 13.5px; color: var(--ink2); }
.qd-accept p b { color: var(--navy); }
.qd-signs { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr); column-gap: 20px; padding-top: 14px; }
.qd-signs > div { display: flex; flex-direction: column; gap: 5px; }
.qd-signs > div > span:first-child { height: 28px; border-bottom: 1px solid var(--navy); }
.qd-signs > div > span:last-child { font-size: 12px; color: var(--mu); }

/* --- Warranties and Terms */
.qd-terms { font-size: 13px; }
.qd-t1-top { background: var(--navy); color: #fff; padding: 34px 56px 18px; position: relative; overflow: hidden; }
.qd-t1-deco { position: absolute; right: -40px; top: 120px; width: 260px; height: 420px; border: 14px solid rgba(255, 255, 255, .035); border-radius: 0; }
.qd-t1-deco::after { content: ''; position: absolute; left: 60px; top: -80px; width: 120px; height: 300px; border: 14px solid rgba(255, 255, 255, .03); }
.qd-t1-head { display: flex; justify-content: space-between; align-items: flex-start; position: relative; }
.qd-t1-logo { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.qd-t1-logo .disp { font-size: 20px; font-weight: 800; letter-spacing: .1em; }
.qd-t1-co { text-align: right; font-size: 11.5px; line-height: 1.6; color: var(--hd); }
.qd-t1-co b { color: #fff; }
.qd-pills { display: flex; gap: 8px; margin-top: 18px; position: relative; }
.qd-pills span { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .45); }
.qd-pills span.o { background: var(--or); border-color: var(--or); }
.qd-t1-title { font-size: 64px; font-weight: 800; line-height: .95; margin: 12px 0 0; letter-spacing: .01em; position: relative; }
.qd-t1-title span { color: var(--or); }
.qd-t1-intro { font-size: 13px; line-height: 1.55; color: #dfe4ea; margin: 14px 0 0; max-width: 560px; position: relative; }
.qd-ts { display: flex; align-items: baseline; gap: 10px; margin: 18px 0 10px; border-bottom: 2px solid var(--navy); padding-bottom: 4px; }
.qd-ts.dark { border-bottom-color: rgba(255, 255, 255, .25); position: relative; }
.qd-ts .n { font-size: 30px; font-weight: 800; color: var(--or); line-height: 1; }
.qd-ts h2 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: .02em; line-height: 1; }
.qd-wcards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; position: relative; }
.qd-wcard { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); padding: 12px 18px 14px; }
.qd-wcard .t { font-size: 22px; font-weight: 800; letter-spacing: .03em; padding-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, .15); }
.qd-yrs { display: grid; grid-template-columns: 1fr 1fr; margin-top: 8px; }
.qd-yrs > div + div { border-left: 1px solid rgba(255, 255, 255, .15); padding-left: 16px; }
.qd-yr .big { font-size: 58px; font-weight: 800; line-height: 1; }
.qd-yr .u { font-size: 22px; font-weight: 800; margin-left: 4px; }
/* years on the navy band in white (owner, Nov 16, 2026: the installation years were navy on navy, the app's .big colour) */
.qd-yr .big, .qd-yr .u { color: #fff; }
.qd-yrs > div:first-child .big, .qd-yrs > div:first-child .u { color: var(--or); }
.qd-yr b { display: block; font-size: 12.5px; margin-top: 2px; }
/* what the windows' warranties cover (owner, Dec 4, 2026) */
.qd-yr .qd-cover { display: block; font-size: 10.5px; line-height: 1.3; margin-top: 3px; color: rgba(255, 255, 255, .8); }
.qd-limited { font-size: 11.5px; color: var(--hd); margin: 12px 0 0; position: relative; }
.qd-t1-bar { height: 5px; background: var(--or); }
.qd-t1-body { padding: 4px 56px 0; }
.qd-tp { font-size: 13.5px; line-height: 1.55; color: var(--ink2); margin: 0 0 10px; }
.qd-tp b { color: var(--navy); }
.qd-qbox { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: #eef1f4; margin-top: 6px; }
.qd-qbox > div { padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 3px; }
.qd-qbox > div + div { border-left: 1px solid #d9dee5; }
.qd-qbox span { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; color: var(--mu); }
.qd-qbox b { font-size: 14px; }
.qd-qbox em { font-style: normal; font-size: 12px; color: var(--mu); }
.qd-th2 { padding: 22px 56px 14px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--ln); font-size: 11.5px; color: var(--mu); }
.qd-th2 > div { display: flex; align-items: center; gap: 12px; }
.qd-th2 .disp { font-size: 17px; font-weight: 800; letter-spacing: .03em; color: var(--navy); }
.qd-tmain { padding: 14px 56px 0; }
.qd-ts-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.qd-ts-row .qd-ts { flex: 1; }
.qd-ts-note { font-size: 11.5px; font-weight: 700; color: var(--navy); margin-bottom: 14px; }
.qd-isteps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.qd-isteps > div { border: 1px solid var(--ln); display: flex; gap: 14px; align-items: center; padding: 12px 14px; min-height: 56px; }
.qd-isteps .disp { font-size: 34px; font-weight: 800; color: var(--or); line-height: 1; min-width: 20px; }
.qd-isteps b { font-size: 13.5px; }
.qd-2col { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; align-items: start; }
.qd-2col.qd-text { display: block; column-count: 2; column-gap: 28px; }
.qd-2col.qd-text p { margin: 0 0 10px; font-size: 13.5px; line-height: 1.55; color: var(--ink2); break-inside: avoid; }
.qd-2col.qd-text p b { color: var(--navy); }
.qd-ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.qd-ul li { position: relative; padding-left: 16px; font-size: 13.5px; line-height: 1.5; color: var(--ink2); }
.qd-ul li::before { content: ''; position: absolute; left: 0; top: 7px; width: 7px; height: 7px; background: var(--or); }
.qd-ul li b { color: var(--navy); }
.qd-2colul { display: block; column-count: 2; column-gap: 28px; margin-top: 12px; }
.qd-2colul li { break-inside: avoid; margin-bottom: 6px; }
.qd-notice { background: #eef1f4; border-left: 4px solid var(--or); padding: 12px 16px; }
.qd-notice .disp { font-size: 17px; font-weight: 800; letter-spacing: .03em; }
.qd-notice p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--ink2); }
.qd-sched2 { display: flex; flex-direction: column; gap: 8px; }
.qd-sched-t { font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--mu); }
.qd-sched-l { font-size: 13px; font-weight: 700; margin-top: 4px; }
.qd-pbar { display: grid; }
.qd-pbar > div { padding: 8px 12px 10px; display: flex; flex-direction: column; gap: 1px; min-height: 64px; }
.qd-pbar .disp { font-size: 28px; font-weight: 800; line-height: 1; }
.qd-pbar small { font-size: 14px; }
.qd-pbar b { font-size: 12px; }
.qd-pbar .b0 { background: var(--or); }
.qd-pbar .b1 { background: var(--navy); color: #fff; }
.qd-pbar .b2 { background: #dfe4ea; }
.qd-schednote { background: #eef1f4; border-left: 4px solid var(--or); padding: 10px 16px; font-size: 13px; line-height: 1.5; color: var(--ink2); margin-top: 6px; }
.qd-schednote b { color: var(--navy); }
.qd-tf { position: absolute; left: 56px; right: 56px; bottom: 30px; padding-top: 12px; border-top: 1px solid var(--ln); display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; color: var(--mu); }
.qd-tf > div:first-child { display: flex; align-items: center; gap: 18px; }
.qd-wordmark { font-size: 17px; font-weight: 800; letter-spacing: .08em; color: var(--navy); }
.qd-wordmark span { color: var(--or); }
.qd-tpn { font-size: 18px; font-weight: 800; color: var(--navy); }
.qd-t4-title { font-size: 54px; font-weight: 800; line-height: 1; margin: 18px 0 10px; }
.qd-form { border: 1px solid var(--ln); margin-top: 18px; }
.qd-form-h { background: var(--navy); color: #fff; padding: 10px 16px; display: flex; align-items: center; gap: 10px; }
.qd-form-h span { width: 8px; height: 8px; background: var(--or); }
.qd-form-h b { font-size: 18px; font-weight: 800; letter-spacing: .03em; }
.qd-form-b { padding: 6px 16px 14px; display: flex; flex-direction: column; gap: 4px; }
.qd-frow { display: grid; grid-template-columns: 2fr 1fr; column-gap: 20px; }
.qd-field { display: flex; flex-direction: column; gap: 4px; padding-top: 26px; }
.qd-field.w3 { grid-column: span 2; }
.qd-field > span { min-height: 20px; border-bottom: 1px solid #8a94a3; font-size: 14px; padding: 0 2px 2px; }
.qd-field > b { font-size: 11.5px; }
.qd-t4-band { position: absolute; left: 0; right: 0; bottom: 0; height: 150px; background: var(--navy); color: #fff; border-top: 5px solid var(--or); padding: 22px 56px; display: flex; justify-content: space-between; align-items: flex-end; overflow: hidden; }
.qd-t4-deco { position: absolute; left: -30px; top: 20px; width: 160px; height: 200px; border: 12px solid rgba(255, 255, 255, .04); }
.qd-t4-band > div:not(.qd-t4-deco) { position: relative; display: flex; flex-direction: column; gap: 2px; }
.qd-t4-band span { font-size: 12px; color: var(--hd); }
.qd-t4-phone { font-size: 44px; font-weight: 800; color: var(--or); line-height: 1.05; }
.qd-t4-mail { font-size: 12.5px; }
.qd-t4-r { align-items: flex-end; text-align: right; }
.qd-t4-r .disp { font-size: 16px; font-weight: 800; letter-spacing: .1em; color: #fff; }
.qd-t4-r b { font-size: 13px; margin-top: 4px; }

/* --- screen and print */
.qd-toolbar { max-width: 816px; margin: 16px auto; display: flex; gap: 10px; justify-content: space-between; align-items: center; padding: 0 12px; flex-wrap: wrap; }
.qd-toolbar .msg { width: 100%; }
.qd-notes { max-width: 816px; margin: 0 auto 14px; padding: 0 12px; display: grid; gap: 8px; }
/* the bar (back, language, print) stays at the top while the pages scroll, except while zoomed in with two fingers */
@media screen {
  .qd-toolbar { position: sticky; top: 0; z-index: 5; margin: 0 auto 12px; padding: calc(10px + env(safe-area-inset-top)) 12px 10px;
    background: rgba(233, 237, 242, .94); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
  html.pinched .qd-toolbar { position: static; }
}
/* phones: a slimmer bar (the client's language stays marked by the blue button on the quote's language) */
@media screen and (max-width: 560px) {
  .qd-toolbar { gap: 6px; padding-top: calc(8px + env(safe-area-inset-top)); padding-bottom: 8px; }
  .qd-toolbar .btn, .qd-toolbar .seg button { min-height: 40px; padding: 0 12px; }
  .qd-toolbar .seg small { display: none; }
}
@media print { .qd-notes { display: none !important; } }
@media screen { .qd { zoom: var(--qz, 1); padding: 4px 0 24px; } }
@media print {
  .qd-toolbar { display: none !important; }
  .qd-page { margin: 0; box-shadow: none; break-after: page; page-break-after: always; }
  .qd-page:last-child { break-after: auto; page-break-after: auto; }
  /* iPad / iPhone (class set by print.js): Safari may keep the printer's margins (up to about 1/2 in) whatever @page
     says, and a full letter page would then spill onto a second sheet. There each page is drawn at 88%, centred:
     nothing is cut and every page stays whole. Computers print the exact letter size. */
  html.ios-print .qd-page { zoom: .88; margin: .15in auto 0; }
}
.qd-trow.qd-sub2 { font-size: 12px; color: #5a6472; padding-left: 12px; }
/* ENERGY STAR row: the badge is wider than the label column (Oct 20, 2026) */
.qd-kv.qd-kv-es { grid-template-columns: auto minmax(0, 1fr); }
.qd-nowrap { white-space: nowrap; }
/* credit by product type (owner, Oct 22, 2026): one more column when the quote has a credit */
.qd-inv-c .qd-ir { grid-template-columns: 26px minmax(0, 1fr) 32px 96px 88px 64px 100px; column-gap: 8px; }
.qd-ic { color: var(--ord); }
/* the installer's measurement sheet (owner, Nov 2, 2026): letter pages, no prices; orange and blue only */
.ms-page { padding: 40px 48px; font-family: 'QD Sans', 'Instrument Sans', Arial, sans-serif; color: #111a26; display: flex; flex-direction: column; gap: 12px; }
.ms-head { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 3px solid #fe5e00; padding-bottom: 10px; }
.ms-logo { display: flex; gap: 12px; align-items: center; }
.ms-title { font-size: 22px; font-weight: 700; color: #12508f; text-transform: uppercase; letter-spacing: .04em; }
.ms-sub { font-size: 12px; color: #5d6d80; }
.ms-ref { display: flex; flex-direction: column; align-items: flex-end; font-size: 12px; color: #5d6d80; }
.ms-ref b { font-size: 18px; color: #111a26; }
.ms-client { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; font-size: 13px; background: #f3f6fa; padding: 10px 14px; border-radius: 6px; }
.ms-client > div { display: grid; gap: 3px; }
.ms-k { font-size: 11px; font-weight: 700; color: #12508f; text-transform: uppercase; letter-spacing: .05em; }
.ms-fill { display: inline-block; width: 150px; border-bottom: 1px solid #8a98a8; height: 14px; vertical-align: bottom; }
.ms-note { margin: 0; font-size: 12px; color: #46566a; }
.ms-muted { color: #5d6d80; }
.ms-unit { display: grid; grid-template-columns: 46px 132px 1fr; border: 1px solid #c9d4e0; border-radius: 6px; overflow: hidden; break-inside: avoid; }
.ms-no { background: #12508f; color: #fff; font-size: 20px; font-weight: 700; display: flex; align-items: flex-start; justify-content: center; padding-top: 10px; }
.ms-body { padding: 8px 12px; display: grid; gap: 6px; font-size: 13px; }
.ms-what b { font-size: 15px; }
.ms-quoted { display: grid; grid-template-columns: 92px 1fr 1.6fr; gap: 10px; align-items: baseline; }
.ms-meas { display: grid; grid-template-columns: 92px repeat(3, 1fr); gap: 10px; align-items: end; }
.ms-box { display: grid; gap: 2px; font-size: 11px; color: #5d6d80; }
.ms-box i { display: block; height: 26px; border: 1.5px solid #12508f; border-radius: 4px; }
.ms-notes { display: grid; grid-template-columns: 92px 1fr; gap: 10px; font-size: 11px; color: #5d6d80; align-items: end; }
.ms-notes i { display: block; border-bottom: 1px solid #8a98a8; height: 18px; }
.ms-egress { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 700; color: #1f8b3b; border: 1.5px solid #1f8b3b; padding: 1px 6px 1px 2px; border-radius: 3px; vertical-align: middle; }
.ms-todo { color: #c95c10; font-weight: 600; }
.ms-nw { white-space: nowrap; }
.ms-draw { margin: 0; padding: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: #f5f6f8; border-right: 1px solid #dde3ea; }
.ms-draw svg { display: block; max-width: 118px; max-height: 118px; font-family: 'QD Sans', 'Instrument Sans', Arial, sans-serif; }
.ms-draw figcaption { font-size: 9px; color: #5d6d80; }
/* the opening side and the capping, confirmed by the installer (owner, Nov 2, 2026) */
.ms-confirm { display: grid; grid-template-columns: 92px 1fr; gap: 10px; align-items: center; font-size: 12px; }
.ms-confirm .ms-cap { margin-right: 4px; }
.ms-unit { flex: none; }
.ms-confirm > div { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.ms-cb { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.ms-cb i { display: inline-block; width: 13px; height: 13px; border: 1.5px solid #12508f; border-radius: 2px; }
/* a box ticked in advance (the window thickness, 3 1/4": owner, Nov 24, 2026) */
.ms-cb.on i { background: #12508f; color: #fff; font-style: normal; font-size: 10px; line-height: 13px; text-align: center; font-weight: 700; }
.ms-cb.on { font-weight: 700; }
/* the window thickness boxes can be tapped on screen (4 9/16" or 3 1/4", owner, Nov 24, 2026) */
@media screen { .ms-cb[data-thick] { cursor: pointer; border-radius: 4px; padding: 2px 4px; margin: -2px -4px; } .ms-cb[data-thick]:hover { background: #eef3f9; } }
.ms-cap { font-weight: 700; color: #c95c10; text-transform: none; letter-spacing: 0; }
.ms-fill.sm { width: 120px; }
.ms-fill.xs { width: 70px; }
.ms-size { display: inline-flex; align-items: center; gap: 6px; color: #5d6d80; }
.ms-size i { display: inline-block; width: 140px; height: 24px; border: 1.5px solid #12508f; border-radius: 4px; }

/* extra work added after the contract was signed (owner, Nov 9, 2026): its own page to sign */
.qd-xw { display: grid; gap: 14px; }
.qd-xw p { margin: 0; }
.qd-xt { display: grid; border-top: 2px solid var(--navy); }
.qd-xr { display: grid; grid-template-columns: minmax(0, 1fr) 96px 86px 104px; gap: 10px; padding: 7px 0; border-bottom: 1px solid #dfe5ee; align-items: baseline; }
.qd-xr > .num { text-align: right; }
.qd-xr.qd-xh { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #5b6b80; }
.qd-xr .b { font-weight: 700; }
.qd-xtot { justify-self: end; width: min(100%, 380px); }
.qd-xacc { font-size: 12px; }

/* the plain spec sheet (owner, Nov 17, 2026: "0 info about us"): the installer sheet's layout in black and grey only */
.sp .ms-head { border-bottom: 2px solid #222; }
.sp .ms-title { color: #111; }
.sp .ms-sub, .sp .ms-ref, .sp .ms-muted, .sp .ms-draw figcaption { color: #555; }
.sp .ms-unit { grid-template-columns: 40px 206px 1fr; border-color: #bbb; }
.sp .ms-no { background: #333; }
.sp .ms-draw { background: #f6f6f6; border-right-color: #ddd; }
.sp .ms-draw svg { max-width: 190px; max-height: 190px; }
.sp .ms-body { gap: 5px; }
.sp-kv { display: grid; grid-template-columns: 130px 1fr; gap: 8px; font-size: 12.5px; align-items: baseline; }
.sp-k { font-size: 10.5px; font-weight: 700; color: #444; text-transform: uppercase; letter-spacing: .05em; }
.sp-rows { display: grid; gap: 3px; padding-top: 5px; border-top: 1px solid #ddd; }
/* the drawings' opening marks and sizes in grey, not in the brand orange */
.sp svg [stroke="#fe5e00"], .sp svg [stroke="#c94a00"] { stroke: #444; }
.sp svg [fill="#fe5e00"], .sp svg [fill="#c94a00"] { fill: #444; }
/* full frame replacement: what is included (owner, Nov 17, 2026), two columns */
.qd-ffr .qd-nlist { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
/* the Rénoclimat grant (owner, Nov 17, 2026): what the client's windows cost after the grant, in large, beside the total;
   the ENERGY STAR blue, never in place of what the client pays Rive Clair */
.qd-reno { border: 2px solid #00aeef; background: #fff; padding: 9px 16px 12px; display: flex; flex-direction: column; gap: 3px; }
.qd-reno-note { margin: 8px 0 0; font-size: 10.5px; line-height: 1.35; color: var(--mu); }
.qd-reno-g { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12.5px; padding-bottom: 6px; margin-bottom: 3px; border-bottom: 1px solid var(--ln2); }
.qd-reno-g small, .qd-reno-r small { font-size: 11px; color: var(--mu); }
.qd-reno-g b { font-size: 16px; font-weight: 700; color: #0077a8; white-space: nowrap; }
.qd-reno .l { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: #0077a8; }
.qd-reno .disp { font-size: 40px; font-weight: 800; line-height: 1; white-space: nowrap; color: var(--navy); }
.qd-srow.qd-reno-r { min-height: 34px; line-height: 1.25; }
.qd-srow.qd-reno-r b { color: #0077a8; font-weight: 700; }
.qd-reno-i { border: 2px solid #00aeef; padding: 8px 12px; margin-top: 6px; display: flex; flex-direction: column; gap: 2px; }
.qd-reno-i > span:first-child { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; color: #0077a8; text-transform: uppercase; }
.qd-reno-i .disp { font-size: 24px; font-weight: 800; line-height: 1; color: var(--navy); }
.qd-es-reno { border-top: 1px solid var(--ln2); padding-top: 6px; font-size: 11.5px; font-weight: 700; color: #0077a8; }


/* --- premium finish (owner, Nov 18, 2026: "make our quote look polished and premium… keep the same style we had before but
   make it more premium"). Same layout, fonts and colours; finer lines, calmer boxes, more air, spaced small capitals. */
.qd { --ln2: #e8ebef; --lt: #f6f7f9; --lt2: #fafbfc; }
.qd .lbl, .qd-who .lbl { font-size: 10.5px; letter-spacing: .16em; }
.qd-h-t { letter-spacing: .04em; }
.qd-h-s { letter-spacing: .02em; }
.qd-f { font-size: 11px; letter-spacing: .02em; padding-top: 12px; border-top: 1px solid var(--ln2); bottom: 30px; }
.qd-init { border-color: #b6bec9; border-radius: 3px; }
.qd-pn { font-family: 'QD Display', sans-serif; font-size: 15px; font-weight: 800; letter-spacing: .02em; }
/* section titles: spaced small capitals over a hairline, a short orange mark */
.qd-sec { font-size: 10.5px; letter-spacing: .2em; padding-bottom: 7px; border-bottom: 1px solid var(--ln); position: relative; }
.qd-sec::after { content: ''; position: absolute; left: 0; bottom: -1px; width: 36px; height: 2px; background: var(--or); }
/* cover. The navy glows fade from one solid colour to another, never to transparent: Chrome stores a fade to transparent as
   a soft mask in the PDF and web PDF viewers (pdf.js, the CRM's preview) draw it pink (owner, Nov 19, 2026: "my quotes still
   show pink when i go to send them"; tests/pdfcolors.test.mjs) */
.qd-ch { background: var(--navy); }
.qd-ch-q { font-size: 11px; letter-spacing: .26em; }
.qd-ch-meta span { font-size: 10.5px; letter-spacing: .18em; }
.qd-ch-bar { height: 3px; }
.qd-who > div { border-top: 1px solid var(--navy); padding-top: 12px; }
.qd-kind { background: #fff; border: 1px solid var(--ln); border-top: 2px solid var(--or); padding: 14px 18px; }
.qd-gt { border-bottom: 1px solid var(--navy); padding-bottom: 8px; }
.qd-gt span { font-size: 12px; letter-spacing: .04em; color: var(--mu); }
/* tables: no dark header band; spaced small capitals over a navy hairline, light rows */
.qd-gh { background: transparent; color: var(--mu); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; border-bottom: 1px solid var(--navy); padding-top: 4px; padding-bottom: 7px; }
.qd-gr { border-bottom-color: var(--ln2); padding-top: 10px; padding-bottom: 10px; }
.qd-gr.alt { background: transparent; }
.qd-gr.last { border-bottom: 1px solid var(--navy); }
.qd-badges { border-color: var(--ln2); }
/* item pages */
.qd-title { border-bottom: 1px solid var(--navy); padding-bottom: 14px; }
.qd-big .lbl { font-size: 10px; }
.qd-figs { background: var(--lt); border: 1px solid var(--ln2); }
.qd-pfig { background: var(--lt); border: 1px solid var(--ln2); }
.qd-kv { border-bottom-color: var(--ln2); }
.qd-th { font-size: 10.5px; letter-spacing: .16em; }
.qd-sub { font-size: 10.5px; letter-spacing: .16em; color: var(--ord); }
.qd-net { position: relative; padding: 14px 16px; }
.qd-net::after { content: ''; position: absolute; left: 16px; right: 16px; bottom: 0; height: 2px; background: var(--or); }
.qd-net > span:first-child { font-size: 10.5px; letter-spacing: .18em; }
/* next steps */
.qd-step { border-bottom-color: var(--ln2); }
.qd-when { font-size: 10.5px; letter-spacing: .16em; }
.qd-note > span:first-child { width: 6px; height: 6px; border-radius: 50%; }
/* investment: one navy total card with an orange line; the saving in orange on white; the payments as three
   white cells marked by a coloured top line */
.qd-ih { font-size: 10.5px; letter-spacing: .16em; }
.qd-itot { border-bottom: 1px solid var(--navy); }
.qd-trow { border-bottom-color: var(--ln2); }
.qd-final { position: relative; padding: 20px 20px 22px; background: var(--navy); }
.qd-final::after { content: ''; position: absolute; left: 20px; right: 20px; bottom: 0; height: 3px; background: var(--or); }
.qd-final .l { font-size: 10.5px; letter-spacing: .2em; }
.qd-final .disp { font-size: 50px; margin: 4px 0 2px; }
.qd-reno { border-width: 1px; }
.qd-bars { gap: 8px; }
.qd-bars > div, .qd-bars .b0, .qd-bars .b1, .qd-bars .b2 { background: #fff; color: var(--navy); border: 1px solid var(--ln); border-top: 3px solid var(--navy); padding: 12px 16px 14px; }
.qd-bars .b0 { border-top-color: var(--or); }
.qd-bars .b2 { border-top-color: #9aa5b4; }
.qd-bars span, .qd-bars .b1 span { font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--mu); }
.qd-bars b { font-family: 'QD Display', sans-serif; font-size: 24px; font-weight: 800; letter-spacing: .01em; margin-top: 2px; }
.qd-signs > div > span:first-child { height: 40px; }
.qd-signs > div > span:last-child { font-size: 11.5px; letter-spacing: .02em; }
.qd-th { letter-spacing: .1em; }
.qd-item.tight2 .qd-th { letter-spacing: .06em; }
.qd-th { letter-spacing: .05em; white-space: nowrap; }
/* Warranties and Terms: the same finish (navy header band, finer section lines, payment cells) */
.qd-ts { border-bottom-width: 1px; }
.qd-pbar { gap: 8px; }
.qd-pbar > div, .qd-pbar .b0, .qd-pbar .b1, .qd-pbar .b2 { background: #fff; color: var(--navy); border: 1px solid var(--ln); border-top: 3px solid var(--navy); }
.qd-pbar .b0 { border-top-color: var(--or); }
.qd-pbar .b2 { border-top-color: #9aa5b4; }
.qd-pbar b { color: var(--mu); font-weight: 600; }
.qd-tf { border-top-color: var(--ln2); }

/* every inner page opens with the cover's navy as a slim letterhead band, the orange line under it (owner, Nov 18, 2026:
   "go further" on the same style) */
.qd-h { background: var(--navy); padding: 24px 56px 0; gap: 18px; }
.qd-h-t { color: #fff; }
.qd-h-s, .qd-h-r { color: #aab3c0; }
.qd-h-r b { color: #fff; }
.qd-h-bar { height: 3px; background: var(--or); margin: 0 -56px; }
.qd-main { padding-top: 22px; }
.qd-th2 { background: var(--navy); color: #aab3c0; padding: 20px 56px 18px; border-bottom: 3px solid var(--or); }
.qd-th2 .disp { color: #fff; }
/* the logo's outline, very faint and large, behind the cover's navy header */
.qd-ch { overflow: hidden; }
.qd-ch > * { position: relative; z-index: 1; }

/* the saving stands out (owner, Nov 18, 2026: "i want the client to see how much they save this is a great sales tactik"):
   a strong orange block on the investment page, white figures; on the cover, in orange beside the dates; on each item,
   the credit row in bold orange */
.qd-save { background: var(--or); color: #fff; padding: 16px 20px 18px; position: relative; overflow: hidden; }
/* no lighter circle on the orange: it showed as a pink / peach patch (owner, Nov 18, 2026: "why is there a pink hue on the new
   estimations we send to the clients remove that") */
/* the circle stays (owner, Nov 18, 2026: "dont remove those circles, just make sure on the pdf there is no pink"): a solid,
   slightly darker orange instead of see-through white, so the PDF never shows a pink / peach patch */
.qd-save::after { content: ''; position: absolute; right: -30px; top: -40px; width: 140px; height: 140px; border-radius: 50%; border: 18px solid #e85500; }
.qd-save > * { position: relative; z-index: 1; }
.qd-save > span:first-child { font-size: 11px; font-weight: 700; letter-spacing: .22em; color: #fff; }
.qd-save .disp { font-size: 44px; color: #fff; position: relative; }
.qd-ch-save span { color: var(--or); font-weight: 700; }
.qd-ch-save b { font-family: 'QD Display', sans-serif; font-size: 24px !important; font-weight: 800 !important; color: var(--or) !important; line-height: 1; letter-spacing: .01em; }
.qd-ch-meta { align-items: flex-end; }
.qd-srow.qd-disc { border-bottom: 1px solid var(--or); }
.qd-srow.qd-disc b { font-size: 14.5px; font-weight: 700; }
.qd-ch-bot { gap: 24px; }
.qd-ch-meta { gap: 22px; }
.qd-ch-meta b { white-space: nowrap; }
.qd-ch-save { padding-left: 22px; border-left: 1px solid rgba(255, 255, 255, .16); }
/* heights kept as before the premium finish, so every quote keeps its page count (print_render scenarios) */
.qd-gr { padding-top: 8px; padding-bottom: 8px; }
.qd-gh { padding-top: 8px; padding-bottom: 8px; }
.qd-sec { padding-bottom: 5px; }
.qd-title { padding-bottom: 12px; }
.qd-main { padding-top: 18px; }
.qd-who > div { padding-top: 10px; }
.qd-kind { padding: 12px 16px; }
.qd-net { padding: 12px 14px; }
.qd-final { padding: 16px 18px 18px; }
.qd-final .disp { font-size: 48px; margin: 0; }
.qd-save { padding: 12px 18px; }
.qd-save .disp { font-size: 38px; }
.qd-bars > div, .qd-bars .b0, .qd-bars .b1, .qd-bars .b2 { padding: 9px 14px 10px; }
.qd-bars b { font-size: 21px; }
.qd-signs > div > span:first-child { height: 28px; }

/* the installers' work order (owner, Nov 18, 2026: no prices; drawing, size and location of each item): web/workorder.js */
.wo-page { padding: 36px 48px 30px; display: flex; flex-direction: column; gap: 14px; }
.wo-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; border-bottom: 3px solid var(--or); }
.wo-logo { display: flex; align-items: center; gap: 12px; }
.wo-title { font-size: 26px; font-weight: 800; letter-spacing: .03em; line-height: 1; text-transform: uppercase; }
.wo-sub { font-size: 11.5px; color: var(--mu); margin-top: 3px; }
.wo-ref { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 11.5px; color: var(--mu); }
.wo-ref b { font-size: 26px; font-weight: 800; color: var(--navy); line-height: 1; }
.wo-info { display: grid; grid-template-columns: 1.1fr 1.7fr 1fr 1.2fr; gap: 10px 18px; background: var(--navy); color: #fff; padding: 12px 16px; }
.wo-info > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.wo-info span { font-size: 9.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #aab3c0; }
.wo-info b { font-size: 13.5px; font-weight: 600; overflow-wrap: anywhere; }
.wo-info .when b { color: #fff; }
.wo-info .when span { color: var(--or); }
.wo-count { margin: 0; font-size: 11.5px; color: var(--mu); }
.wo-grid { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 262px; gap: 12px; }
.wo-card { border: 1px solid var(--ln); border-top: 3px solid var(--navy); padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; break-inside: avoid; overflow: hidden; }
.wo-top { display: flex; align-items: flex-start; gap: 10px; }
.wo-no { font-size: 26px; font-weight: 800; color: var(--or); line-height: .95; }
.wo-what { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.wo-what b { font-size: 14px; font-weight: 700; }
.wo-what span { font-size: 11.5px; color: var(--ink2); line-height: 1.3; }
.wo-eg { display: inline-flex; align-items: center; gap: 4px; font-size: 9.5px; font-weight: 800; letter-spacing: .06em; color: #fff; background: var(--or); padding: 2px 6px; white-space: nowrap; }
.wo-draw { margin: 0; flex: 1; min-height: 0; background: var(--lt); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 4px; }
.wo-draw svg { display: block; max-width: 100%; max-height: 150px; font-family: 'QD Sans', 'Instrument Sans', Arial, sans-serif; }
.wo-draw figcaption { font-size: 9.5px; color: var(--mu); }
.wo-dims { display: flex; justify-content: space-between; align-items: flex-end; border-top: 1px solid var(--ln2); padding-top: 6px; }
.wo-dims > div { display: flex; flex-direction: column; gap: 1px; }
.wo-dims span { font-size: 9.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mu); }
.wo-dims b { font-size: 22px; font-weight: 800; line-height: 1; white-space: nowrap; }
.wo-q { align-items: flex-end; text-align: right; }

/* solid navy only (owner, Nov 19, 2026: "from page 1 to page 18 the top part has pink in it please fix it"): no glow and no
   faint logo in the navy bands; some PDF viewers drew those soft blends in pink */
.qd-ch::after { content: none; background: none; }

/* --- the item's price summary (owner, Nov 28, 2026, on RIV2863: "maybe make the prices go side to side with the subvention price but
   dont leave gaps this big this is not pretty. make this polished and premium"): the table on the whole width, then one band under it,
   side by side: the breakdown, the navy total, and the Rénoclimat grant with the price after it. No narrow column beside the table
   (its labels wrapped, and the space under the table stayed empty). */
.qd-item .qd-pr, .qd-item.tight2 .qd-pr, .qd-item.tight3 .qd-pr { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.qd-item .qd-prs, .qd-item.tight2 .qd-prs, .qd-item.tight3 .qd-prs { display: grid; grid-template-columns: minmax(0, 1fr) 214px; column-gap: 14px;
  align-items: stretch; padding: 12px 0 0; border-top: 1px solid var(--navy); }
.qd-item .qd-prs.has-reno, .qd-item.tight2 .qd-prs.has-reno, .qd-item.tight3 .qd-prs.has-reno { grid-template-columns: minmax(0, 1fr) 196px 244px; }
/* the breakdown: four figures in a 2 x 2 grid, the label over the amount (lower than four rows) */
.qd-sl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; row-gap: 8px; align-content: center; min-width: 0; }
.qd-sl .qd-srow { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1px; min-height: 0; padding: 0 0 0 10px;
  border: 0; border-left: 2px solid var(--ln); font-size: 11px; line-height: 1.25; }
.qd-sl .qd-srow > span:first-child { color: var(--mu); overflow-wrap: anywhere; }
.qd-sl .qd-srow b { font-size: 15px; font-weight: 700; color: var(--navy); white-space: nowrap; }
.qd-sl .qd-srow.qd-disc { border-left-color: var(--or); border-bottom: 0; }
.qd-sl .qd-srow.qd-disc b { font-size: 15px; color: var(--ord); }
.qd-prs .qd-net { margin: 0; padding: 12px 16px 14px; justify-content: center; gap: 6px; }
.qd-prs .qd-net .disp { font-size: 30px; white-space: nowrap; }
.qd-prs .qd-reno-i { margin: 0; padding: 10px 14px 12px; border: 2px solid #00aeef; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.qd-reno-i .qd-reno-r { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding-bottom: 6px; margin-bottom: 2px;
  border-bottom: 1px solid var(--ln2); font-size: 12px; color: var(--navy); }
.qd-reno-i .qd-reno-r > span { display: flex; flex-direction: column; line-height: 1.2; white-space: nowrap; }
.qd-reno-i .qd-reno-r small { font-size: 10.5px; color: var(--mu); }
.qd-reno-i .qd-reno-r b { color: #0077a8; font-weight: 700; white-space: nowrap; }
.qd-reno-i .qd-reno-l { font-size: 10px; font-weight: 700; letter-spacing: .1em; color: #0077a8; text-transform: uppercase; line-height: 1.25; }
.qd-prs .qd-reno-i .disp { font-size: 26px; font-weight: 800; line-height: 1; color: var(--navy); white-space: nowrap; }
/* the tighter item pages (qpaginate): the same band, a little smaller */
.qd-item.tight2 .qd-prs { padding-top: 8px; column-gap: 12px; }
.qd-item.tight2 .qd-sl, .qd-item.tight3 .qd-sl { row-gap: 6px; }
.qd-item.tight2 .qd-sl .qd-srow b, .qd-item.tight3 .qd-sl .qd-srow b { font-size: 14px; }
.qd-item.tight2 .qd-prs .qd-net { padding: 9px 14px 11px; }
.qd-item.tight2 .qd-prs .qd-net .disp, .qd-item.tight3 .qd-prs .qd-net .disp { font-size: 25px; }
.qd-item.tight2 .qd-prs .qd-reno-i, .qd-item.tight3 .qd-prs .qd-reno-i { padding: 8px 12px 9px; }
.qd-item.tight2 .qd-prs .qd-reno-i .disp, .qd-item.tight3 .qd-prs .qd-reno-i .disp { font-size: 22px; }
/* the ENERGY STAR card as a strip across the page (qpaginate's balanceEs, when the page is shorter that way): the logo and title on the
   left, the ratings side by side, the Rénoclimat line under the title */
.qd-es-u1 { display: flex; flex-direction: column; gap: 8px; }
.qd-es.strip { display: grid; grid-template-columns: 236px; grid-template-rows: auto 1fr; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
  column-gap: 20px; row-gap: 6px; padding: 10px 14px; }
.qd-es.strip > .qd-es-h { grid-column: 1; grid-row: 1; }
.qd-es.strip > .qd-es-reno { grid-column: 1; grid-row: 2; align-self: end; border-top: 0; padding-top: 0; }
.qd-es.strip > .qd-es-u, .qd-es.strip > .qd-es-u1 { grid-row: 1 / span 2; }
.qd-es.strip > .qd-es-u { border-top: 0; border-left: 1px solid var(--ln2); padding: 0 0 0 16px; }
.qd-es.strip > .qd-es-u1 { border-left: 1px solid var(--ln2); padding-left: 16px; }
.qd-es.strip.me .qd-es-h { flex-direction: row; align-items: center; gap: 10px; }
.qd-es.strip .qd-es-logo, .qd-es.strip.me .qd-es-logo { height: 46px; }
/* the strip's title column: the logo over the title (the ratings get the width); one line per label in the ratings */
.qd-es.strip { grid-template-columns: 172px; column-gap: 16px; }
.qd-es.strip .qd-es-h, .qd-es.strip.me .qd-es-h { flex-direction: column; align-items: flex-start; gap: 5px; }
.qd-es.strip .qd-es-logo, .qd-es.strip.me .qd-es-logo { height: 40px; }
.qd-es.strip .qd-es-t b { font-size: 11.5px; }
.qd-es.strip .qd-es-t span { font-size: 9.5px; }
.qd-es.strip .qd-es-reno { font-size: 10.5px; line-height: 1.25; }
.qd-es.strip .qd-es-n small, .qd-es.strip .qd-es-nr, .qd-es.strip .qd-es-nr span { white-space: nowrap; }
.qd-es.strip .qd-es-n small { font-size: 9.5px; }
.qd-es.strip .qd-es-nr { font-size: 10.5px; }
.qd-es.strip .qd-es-n > div + div { padding-left: 10px; }
/* the drawings' panel as high as the specs beside it, its drawings in the middle (no empty corner under a short panel) */
.qd-item .qd-wgrid { align-items: stretch; }
.qd-item .qd-figs { justify-content: center; }
