/* DYQ documents: customer quote (admin print view + customer status page) and supplier request for pricing. A4 print. */
@font-face { font-family: "Newsreader"; src: url(/fonts/newsreader.woff2) format("woff2"); font-weight: 300 600; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url(/fonts/hanken.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }
.qd-page { --ink: #14201c; --muted: #5d6964; --paper: #f5f3ee; --line: #e1dcd1; --line-2: #d2ccbf; --fir: #1f4d3f; --fir-ink: #163a2f; --mint: #a9d1bf; --mint-bg: #dfece5; --err: #a0302a; --err-bg: #f8e9e7;
  margin: 0; padding: 24px 16px 48px; background: var(--paper); color: var(--ink); font: 15px/1.5 "Hanken Grotesk", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
.qd { --ink: #14201c; --muted: #5d6964; --line: #e1dcd1; --line-2: #d2ccbf; --fir: #1f4d3f; --fir-ink: #163a2f; --mint: #a9d1bf;
  max-width: 820px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; color: var(--ink); font-family: "Hanken Grotesk", system-ui, sans-serif; }
.qd h1 { font: 450 26px/1.15 "Newsreader", Georgia, serif; letter-spacing: -.01em; margin: 0 0 8px; }
.qd-band { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 22px 26px; background: var(--fir-ink); color: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.qd-band img { border-radius: 9px; flex: none; }
.qd-band > div { display: grid; gap: 3px; margin-right: auto; }
.qd-band b { font: 500 22px/1 "Newsreader", Georgia, serif; }
.qd-band > div span { font: 600 12px/1 "Hanken Grotesk", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--mint); }
.qd-band dl { display: flex; gap: 22px; margin: 0; flex-wrap: wrap; }
.qd-band dl div { display: grid; gap: 2px; } .qd-band dt { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .62); } .qd-band dd { margin: 0; font-weight: 600; }
.qd-sec { padding: 22px 26px; border-bottom: 1px solid var(--line); }
.qd-sec p { margin: 0 0 10px; } .qd-sec p:last-child { margin-bottom: 0; }
.qd-to { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.qd-to div { display: grid; gap: 2px; } .qd-to b { font-size: 16.5px; } .qd-to span { color: var(--muted); }
.qd-to .qd-k, .qd-k { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.qd-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px 18px; margin: 16px 0 0; }
.qd-facts div { display: grid; gap: 2px; } .qd-facts dt { font-size: 12px; color: var(--muted); } .qd-facts dd { margin: 0; font-weight: 600; }
.qd-msg { margin-top: 16px !important; padding: 12px 14px; background: #f3f1ea; border-radius: 9px; white-space: pre-line; }
.qd-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.qd-table th, .qd-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.qd-table th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; background: #fbfaf7; }
.qd-table th:first-child, .qd-table td:first-child { padding-left: 26px; } .qd-table th:last-child, .qd-table td:last-child { padding-right: 26px; }
.qd-n { width: 44px; color: var(--muted); } .qd-q { width: 92px; white-space: nowrap; } .qd-p { width: 130px; text-align: right !important; white-space: nowrap; }
.qd-rfp .qd-p { width: 168px; }
.qd-h td { font: 500 16px/1.3 "Newsreader", Georgia, serif; background: #f7f5f0; padding-top: 12px; }
.qd-table tfoot td { font-weight: 700; border-bottom: 0; background: #fbfaf7; }
.qd-money { display: inline-flex; align-items: center; gap: 4px; } .qd-money > span { color: var(--muted); }
.qd-money input { width: 128px; font: inherit; text-align: right; padding: 8px 10px; min-height: 40px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; }
.qd-money input:focus, .qd textarea:focus, .qd input:focus { outline: none; border-color: #2b6553; box-shadow: 0 0 0 3px #dfece5; }
.qd-money input.bad { border-color: var(--err); background: #f8e9e7; }
.qd form { padding-bottom: 22px; }
.qd form > .qd-label, .qd form > textarea, .qd form > input, .qd form > .qd-send, .qd form > .qd-small { margin-left: 26px; margin-right: 26px; }
.qd-label { display: block; font-weight: 600; margin-top: 18px; margin-bottom: 6px; } .qd-label span { font-weight: 400; color: var(--muted); }
.qd form > textarea, .qd form > input { display: block; width: calc(100% - 52px); font: inherit; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 9px; box-sizing: border-box; }
.qd-small { font-size: 13px; color: var(--muted); margin-top: 14px; }
.qd-totals { display: flex; justify-content: flex-end; padding: 16px 26px 20px; border-bottom: 1px solid var(--line); }
.qd-totals dl { margin: 0; min-width: 300px; display: grid; }
.qd-totals dl div { display: flex; justify-content: space-between; gap: 18px; padding: 6px 0; font-variant-numeric: tabular-nums; } .qd-totals dt { color: var(--muted); } .qd-totals dd { margin: 0; font-weight: 600; }
.qd-totals .qd-grand { margin-top: 6px; padding: 12px 14px; background: var(--fir-ink); color: #fff; border-radius: 10px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.qd-totals .qd-grand dt { color: rgba(255, 255, 255, .75); } .qd-totals .qd-grand dd { font: 500 21px/1 "Newsreader", Georgia, serif; }
.qd-terms { border-bottom: 0; font-size: 14px; color: #2a3732; } .qd-pre { white-space: pre-line; }
.qd-foot { max-width: 820px; margin: 14px auto 0; text-align: center; font-size: 12.5px; color: var(--muted, #5d6964); }
.qd-tools { max-width: 820px; margin: 0 auto 14px; display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.qd-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border: 1px solid var(--fir, #1f4d3f); border-radius: 999px; background: var(--fir, #1f4d3f); color: #fff; font: 600 15px/1 "Hanken Grotesk", sans-serif; cursor: pointer; text-decoration: none; }
.qd-btn:hover { background: var(--fir-ink, #163a2f); } .qd-ghost { background: #fff; color: var(--ink, #14201c); border-color: var(--line-2, #d2ccbf); } .qd-ghost:hover { background: #f3f1ea; }
.qd-send { margin-top: 20px; }
.qd-ok, .qd-err { max-width: 820px; margin: 0 auto 14px; padding: 12px 16px; border-radius: 10px; font-weight: 600; }
.qd .qd-ok, .qd .qd-err { margin: 16px 26px; }
.qd-ok { background: #dfece5; color: #163a2f; } .qd-err { background: #f8e9e7; color: #a0302a; }
.qd-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* customer quote: client original price struck through, DYQ price and the saving per line and in total */
.qd-table td.qd-p { white-space: normal; }
.qd-p .qd-was { display: block; color: var(--muted); font-size: 13px; font-weight: 400; }
.qd-p .qd-now { display: block; font-weight: 600; white-space: nowrap; }
.qd-p .qd-save { display: inline-block; margin-top: 3px; padding: 1px 8px; border-radius: 999px; background: #dfece5; color: #163a2f; font-size: 12.5px; font-weight: 700; white-space: nowrap; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.qd-totals .qd-orig dd s { color: var(--muted); font-weight: 500; }
.qd-totals .qd-saving { margin-top: 8px; padding: 12px 14px; border-radius: 10px; background: #dfece5; border: 1px solid #a9d1bf; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.qd-totals .qd-saving dt { color: #163a2f; font-weight: 700; } .qd-totals .qd-saving dd { color: #163a2f; font: 600 21px/1 "Newsreader", Georgia, serif; }
@media (max-width: 600px) {
  .qd-page { padding: 12px 10px 32px; }
  .qd-band, .qd-sec { padding: 18px; }
  .qd-table th:first-child, .qd-table td:first-child { padding-left: 14px; } .qd-table th:last-child, .qd-table td:last-child { padding-right: 14px; }
  .qd-table th, .qd-table td { padding: 9px 8px; } .qd-n { width: 26px; } .qd-q { width: auto; }
  .qd-table:not(.qd-rfp) .qd-q { display: none; } .qd-table:not(.qd-rfp) .qd-p { width: 108px; }
  .qd-rfp thead .qd-q { display: none; }
  .qd-rfp tbody tr:not(.qd-h) { display: grid; grid-template-columns: 26px 1fr auto; gap: 4px 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
  .qd-rfp tbody tr:not(.qd-h) td { padding: 0; border: 0; width: auto; } .qd-rfp tbody td.qd-q { grid-column: 2; color: var(--muted); font-size: 13.5px; }
  .qd-rfp tbody td.qd-p { grid-column: 2 / 4; text-align: left !important; } .qd-rfp .qd-money input { width: 100%; } .qd-rfp .qd-money { display: flex; }
  .qd-rfp thead { display: none; }
  .qd-rfp, .qd-rfp tbody, .qd-rfp tfoot { display: block; width: 100%; } .qd-rfp tr.qd-h, .qd-rfp tr.qd-h td { display: block; }
  .qd-rfp tfoot tr { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; } .qd-rfp tfoot td { border: 0; padding: 0 !important; width: auto; } .qd-rfp tfoot td:first-child { display: none; }
  .qd-totals { padding: 14px 18px; } .qd-totals dl { min-width: 0; width: 100%; }
  .qd form > .qd-label, .qd form > textarea, .qd form > input, .qd form > .qd-send, .qd form > .qd-small { margin-left: 18px; margin-right: 18px; }
  .qd form > textarea, .qd form > input { width: calc(100% - 36px); }
}
@media print {
  @page { size: A4; margin: 14mm 12mm; }
  html, body, .qd-page { background: #fff !important; padding: 0 !important; }
  .noprint, .qd-tools, .app-head, .foot { display: none !important; }
  .status-card > :not(.qd-wrap) { display: none !important; } .app-main { padding: 0 !important; }
  .qd { border: 0; border-radius: 0; max-width: none; font-size: 12.5px; }
  .qd-band { border-radius: 8px; }
  .qd-table tr { break-inside: avoid; } .qd-totals, .qd-terms { break-inside: avoid; }
  .qd-money input { border: 0; border-bottom: 1px solid #999; border-radius: 0; min-height: 28px; }
  .qd form > textarea { border: 1px solid #999; min-height: 90px; }
  .qd-foot { margin-top: 10px; }
  a { color: inherit; text-decoration: none; }
}

/* was / our price / you save in three columns */
.qd-table th.qd-was, .qd-table th.qd-sv, .qd-table td.qd-was, .qd-table td.qd-sv { text-align: right; white-space: nowrap; width: 1%; }
.qd-table td.qd-was s { color: var(--muted); font-size: 13.5px; }
.qd-table td.qd-sv .qd-save { margin-top: 0; }
.qd-table .qd-p .qd-now { display: inline; }
@media (max-width: 560px) {
  .qd-table th.qd-was, .qd-table th.qd-sv { font-size: 10.5px; }
  .qd-table td.qd-was s { font-size: 12px; }
  .qd-table td.qd-sv .qd-save { font-size: 11px; padding: 1px 6px; }
  .qd-table th, .qd-table td { padding-left: 5px; padding-right: 5px; }
}
@media print { .qd-table td.qd-sv .qd-save { background: none; border: 1px solid #9cc7b3; } }
@media (max-width: 600px) { .qd-table:not(.qd-rfp) .qd-p { width: 1%; white-space: nowrap; } .qd-table:not(.qd-rfp) td:nth-child(2) { word-break: break-word; } }
/* "Save £x" badge in its own column: green pill with a down-arrow icon */
.qd-table td.qd-sv .qd-save { display: inline-flex; align-items: center; gap: 4px; margin: 0; padding: 3px 9px 3px 7px; border-radius: 999px; background: #dfece5; border: 1px solid #a9d1bf; color: #163a2f; font-size: 12.5px; font-weight: 700; white-space: nowrap; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.qd-table td.qd-sv .qd-save::before { content: ""; width: 12px; height: 12px; flex: none; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M6 13l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M6 13l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; }
@media (max-width: 560px) { .qd-table td.qd-sv .qd-save { font-size: 11.5px; padding: 2px 7px 2px 5px; } .qd-table td.qd-sv .qd-save::before { width: 10px; height: 10px; } }
@media print { .qd-table td.qd-sv .qd-save { background: #dfece5; } }
