/* Option A "Industrial Datasheet" quotation template. A4 at 96 dpi: 794 x 1123 px. */
@font-face { font-family: 'Montserrat'; font-weight: 400; src: url('../fonts/montserrat-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-weight: 500; src: url('../fonts/montserrat-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-weight: 600; src: url('../fonts/montserrat-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-weight: 700; src: url('../fonts/montserrat-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Rajdhani'; font-weight: 500; src: url('../fonts/rajdhani-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Rajdhani'; font-weight: 600; src: url('../fonts/rajdhani-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Rajdhani'; font-weight: 700; src: url('../fonts/rajdhani-latin-700-normal.woff2') format('woff2'); }

:root {
  --q-yellow: #FFD20A;
  --q-black: #111111;
  --q-grey: #404040;
  --q-line: #d0d0d0;
  --q-panel: #F1F2F4;
  --q-zebra: #F6F6F6;
}

.q-pages { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.q-page {
  width: 794px; height: 1123px; box-sizing: border-box; position: relative; overflow: hidden;
  background: #fff; color: var(--q-black); font-family: Montserrat, Arial, sans-serif;
  display: flex; flex-direction: column; box-shadow: 0 2px 12px rgba(0, 0, 0, .12);
}
.q-page * { box-sizing: border-box; }
@media print {
  @page { size: 794px 1123px; margin: 0; }
  html, body { margin: 0; background: #fff; }
  .q-pages { gap: 0; }
  .q-page { box-shadow: none; break-after: page; }
  .q-page:last-child { break-after: auto; }
  .no-print { display: none !important; }
}
.q-display { font-family: Rajdhani, Arial, sans-serif; font-weight: 700; }

/* ---------- page chrome ---------- */
.q-head { background: var(--q-black); padding: 16px 48px; display: flex; justify-content: space-between; align-items: center; flex: none; }
.q-head img { height: 26px; width: auto; }
.q-head span { font-size: 11px; color: #d4d4d4; letter-spacing: 1px; text-transform: uppercase; }
.q-stripe { height: 6px; background: repeating-linear-gradient(-45deg, var(--q-yellow) 0 8px, var(--q-black) 8px 16px); flex: none; }
.q-body { flex: 1; min-height: 0; padding: 24px 48px 0; overflow: hidden; }
.q-area { height: 100%; overflow: hidden; display: flex; flex-direction: column; gap: 20px; }
.q-foot {
  margin: 0 48px 22px; border-top: 2px solid var(--q-black); padding-top: 8px; flex: none;
  display: flex; justify-content: space-between; align-items: flex-end; font-size: 10px; color: var(--q-grey); line-height: 1.5;
}
.q-foot > div { display: flex; flex-direction: column; }
.q-foot .q-pno { font-family: Rajdhani, Arial, sans-serif; font-weight: 700; font-size: 13px; color: var(--q-black); }

/* ---------- cover ---------- */
.q-cover-head { background: var(--q-black); padding: 36px 48px 30px; display: flex; flex-direction: column; gap: 30px; flex: none; }
.q-cover-head .q-row { display: flex; justify-content: space-between; align-items: center; }
.q-cover-head img { height: 46px; width: auto; }
.q-cover-head .q-word { font-family: Rajdhani, Arial, sans-serif; font-weight: 700; font-size: 44px; letter-spacing: 6px; color: var(--q-yellow); line-height: 1; }
.q-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; border-top: 1px solid #3a3a3a; padding-top: 18px; }
.q-meta div { display: flex; flex-direction: column; gap: 4px; }
.q-meta span:first-child { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: #a8a8a8; font-weight: 600; }
.q-meta span:last-child { font-size: 15px; color: #fff; font-weight: 600; }
.q-cover-stripe { height: 12px; background: repeating-linear-gradient(-45deg, var(--q-yellow) 0 12px, var(--q-black) 12px 24px); flex: none; }
.q-cover-body { padding: 30px 48px 0; display: flex; flex-direction: column; gap: 20px; flex: 1; min-height: 0; overflow: hidden; }
.q-title h1 { margin: 0; font-family: Rajdhani, Arial, sans-serif; font-weight: 700; font-size: 46px; line-height: 1; }
.q-title span { font-size: 14px; color: var(--q-grey); }
.q-title { display: flex; flex-direction: column; gap: 4px; }
.q-hero { background: var(--q-panel); height: 330px; display: flex; align-items: center; justify-content: center; overflow: hidden; flex: none; }
.q-hero img { max-height: 330px; max-width: 100%; width: auto; }
.q-hero.small { height: 250px; }
.q-hero.small img { max-height: 250px; }
.q-tiles { display: grid; grid-template-columns: repeat(var(--tiles, 4), minmax(0, 1fr)); gap: 10px; }
.q-tile { border: 1px solid var(--q-black); border-top: 5px solid var(--q-yellow); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.q-tile b { font-family: Rajdhani, Arial, sans-serif; font-weight: 700; font-size: 24px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-tile b.long { font-size: 19px; }
.q-tile b.xlong { font-size: 15px; }
.q-tile span { font-size: 11px; color: var(--q-grey); }
.q-letter { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; padding-top: 4px; }
.q-letter .q-intro { display: flex; flex-direction: column; gap: 10px; font-size: 12.5px; line-height: 1.55; }
.q-letter .q-intro p { margin: 0; }
.q-letter .q-hl { display: flex; flex-direction: column; gap: 8px; }
.q-hl > b { font-family: Rajdhani, Arial, sans-serif; font-weight: 700; font-size: 18px; text-transform: uppercase; letter-spacing: 1px; }

/* ---------- sections ---------- */
.q-sec { display: flex; flex-direction: column; gap: 10px; }
.q-sec-h { display: flex; align-items: baseline; gap: 12px; border-bottom: 2px solid var(--q-black); padding-bottom: 6px; }
.q-sec-h .q-no { font-family: Rajdhani, Arial, sans-serif; font-weight: 700; font-size: 22px; background: var(--q-yellow); padding: 0 6px; }
.q-sec-h .q-t { font-family: Rajdhani, Arial, sans-serif; font-weight: 700; font-size: 22px; text-transform: uppercase; letter-spacing: 1px; }
.q-sec-h.plain { border-bottom: none; padding-bottom: 0; }
.q-sec-h.plain .q-t { font-size: 17px; }
.q-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: start; }
.q-pair .q-sec-h .q-t { font-size: 20px; }
.q-pair .q-sec-h.plain .q-t { font-size: 17px; }
.q-sec-body { display: flex; flex-direction: column; gap: 8px; }

.q-li { display: flex; gap: 10px; align-items: baseline; font-size: 12px; line-height: 1.45; }
.q-li .q-mark { width: 8px; height: 8px; background: var(--q-yellow); border: 1px solid var(--q-black); flex: none; }
.q-li svg { flex: none; position: relative; top: 2px; }
.q-li .q-num { font-family: Rajdhani, Arial, sans-serif; font-weight: 700; min-width: 12px; }
.q-li .q-sub { display: block; color: #262626; margin-top: 2px; }
.q-p { margin: 0; font-size: 12.5px; line-height: 1.6; }

.q-kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; font-size: 12px; }
.q-kv .q-kv-r { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-bottom: 1px solid var(--q-line); }
.q-kv .q-kv-r span:first-child { color: var(--q-grey); }
.q-kv .q-kv-r span:last-child { font-weight: 600; text-align: right; }
.q-kv .q-kv-h { grid-column: 1 / -1; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; padding: 10px 0 2px; }

.q-table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.q-table th { background: var(--q-black); color: #fff; text-align: left; padding: 6px 8px; font-weight: 600; }
.q-table td { padding: 4px 8px; border-bottom: 1px solid var(--q-line); vertical-align: top; }
.q-table tbody tr:nth-child(even) td { background: var(--q-zebra); }
.q-table tr.q-th td { background: #e7e7e7; font-weight: 700; text-transform: uppercase; font-size: 11px; letter-spacing: .5px; }
.q-table .r { text-align: right; }
.q-note { margin: 0; font-size: 10.5px; color: var(--q-grey); line-height: 1.45; }

/* Groups flow down the columns like a newspaper, so a long group does not leave holes beside it. */
.q-groups { column-count: var(--cols, 3); column-gap: 18px; column-fill: balance; font-size: 10.5px; line-height: 1.4; }
.q-group { display: block; padding-bottom: 12px; }
.q-group > b { display: block; margin-bottom: 5px; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; break-after: avoid; break-inside: avoid; }
.q-group .q-gi { display: block; margin-bottom: 5px; padding-left: 10px; position: relative; break-inside: avoid; }
.q-group .q-gi::before { content: ''; position: absolute; left: 0; top: 6px; width: 4px; height: 4px; background: var(--q-black); }
.q-group .q-gi .q-sub { display: block; color: #262626; }

.q-invest { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); border: 2px solid var(--q-black); }
.q-invest .q-lines { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; font-size: 12px; }
.q-invest .q-lr { display: grid; grid-template-columns: minmax(0, 3fr) repeat(3, minmax(0, 1fr)); gap: 8px; align-items: baseline; }
.q-invest .q-lr.h { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: #595959; font-weight: 600; border-bottom: 1px solid var(--q-line); padding-bottom: 6px; }
.q-invest .q-lr span:not(:first-child) { text-align: right; }
.q-invest .q-lr .q-desc { display: block; font-weight: 400; font-size: 10.5px; color: var(--q-grey); }
.q-invest .q-lr.adj { color: var(--q-grey); }
.q-invest .q-lr.sub { border-top: 1px solid var(--q-line); padding-top: 6px; font-weight: 600; }
.q-invest .q-total { background: var(--q-black); color: #fff; padding: 16px 20px; display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.q-invest .q-total span:first-child { font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px; color: #c4c4c4; font-weight: 600; }
.q-invest .q-total b { font-family: Rajdhani, Arial, sans-serif; font-weight: 700; font-size: 40px; color: var(--q-yellow); line-height: 1; }
.q-invest .q-total span:last-child { font-size: 11.5px; color: #e5e5e5; }

.q-pay { display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); border: 2px solid var(--q-black); }
.q-pay > div { padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; }
.q-pay > div:nth-child(odd) { background: var(--q-yellow); }
.q-pay > div:nth-child(even) { background: var(--q-black); color: #fff; }
.q-pay > div:nth-child(even) b { color: var(--q-yellow); }
.q-pay b { font-family: Rajdhani, Arial, sans-serif; font-weight: 700; font-size: 30px; line-height: 1; }
.q-pay span { font-size: 12px; font-weight: 600; }
.q-timeline { display: flex; gap: 10px; align-items: baseline; font-size: 12px; }
.q-timeline b { font-family: Rajdhani, Arial, sans-serif; font-weight: 700; font-size: 16px; text-transform: uppercase; letter-spacing: 1px; }

.q-gallery { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: 14px; }
.q-gallery figure { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.q-gallery .q-imgbox { background: var(--q-panel); height: 220px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.q-gallery img { max-width: 100%; max-height: 220px; }
.q-gallery figcaption { font-size: 10.5px; color: var(--q-grey); }

.q-close { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px; background: var(--q-panel); padding: 18px 20px; font-size: 12px; line-height: 1.55; }
.q-close > div { display: flex; flex-direction: column; gap: 6px; }
.q-close .q-sign { gap: 1px; }
.q-close .q-sign span:first-child { color: var(--q-grey); }
.q-close .q-sign b { font-family: Rajdhani, Arial, sans-serif; font-weight: 700; font-size: 22px; }

/* editor highlight of the section being edited */
.q-focus { outline: 2px dashed #e0a800; outline-offset: 4px; }
.q-sec[data-cont] > .q-sec-h .q-t::after { content: ' (continued)'; font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--q-grey); }
