/* Approved v8 geometry. Natural flow is retained for oversized content. */
#quote-paper{width:210mm;padding:31.18pt 42pt 42pt;font-family:'Quote DejaVu','Quote Noto TC',sans-serif;color:#263f4d}
.quote-main{position:relative}
.quote-masthead{grid-template-columns:310pt minmax(0,1fr);gap:0;align-items:start;min-height:54.82pt;padding:0 0 9pt;border-bottom:1.25pt solid #222;box-sizing:border-box}
.quote-brand{gap:4.75pt;align-items:start}.quote-brand img{width:53.25pt;height:42pt;margin:3.12pt 0 0 -1pt;object-fit:contain}
.quote-company{padding-top:0}.quote-company strong{font-family:'Quote Noto TC',sans-serif;font-size:11.1pt;line-height:15pt;letter-spacing:0;color:#222}.quote-company p{font-family:'Quote Noto TC',sans-serif;font-size:7.3pt;line-height:10pt;margin:4.8pt 0 0;color:#667983}
.quote-heading h1{font-size:13.9pt;line-height:17pt;letter-spacing:0;margin:0 0 4pt;color:#222}.quote-heading>p{font-family:'Quote Noto TC',sans-serif;font-size:7.6pt;line-height:10pt;margin:0 0 3pt;color:#667983}.quote-dates{font-family:'Quote Noto TC',sans-serif;font-size:7.2pt;line-height:10pt;gap:5pt;white-space:nowrap;color:#667983}
.quote-parties{grid-template-columns:280pt minmax(0,1fr);gap:18pt;margin:14pt 0 7pt}.quote-parties h2,.quote-client .client-name{font-family:'Quote Noto TC',sans-serif;font-size:11.8pt;line-height:16pt;margin:0 0 4pt;color:#222}.quote-parties p{font-family:'Quote Noto TC',sans-serif;font-size:8.1pt;line-height:14pt;margin:0;color:#263f4d}.quote-client p:last-child{font-size:7.8pt}.quote-sales-body{gap:8pt;position:relative}.quote-sales-body>div:first-child{flex:0 1 100pt}.quote-sales-body p{white-space:nowrap}.quote-qr-placeholder{width:36pt;height:36pt;margin:3pt 0 0;border:0}
.quote-section-title{margin:0 0 5pt}.quote-section-title h2,.quote-notes h2{font-family:'Quote Noto TC',sans-serif;font-size:11.8pt;line-height:16pt;color:#263f4d}.quote-section-title>span{font-family:'Quote Noto TC',sans-serif;font-size:7.2pt;color:#667983}
.quote-items{border-bottom:.5pt solid #d8e0e3}.quote-items .col-index{width:34pt}.quote-items .col-description{width:230pt}.quote-items .col-quantity{width:46pt}.quote-items .col-price{width:90pt}.quote-items .col-amount{width:auto}
.quote-items.is-negotiated .col-index{width:34pt}.quote-items.is-negotiated .col-description{width:196pt}.quote-items.is-negotiated .col-price{width:67pt}.quote-items.is-negotiated .col-quantity{width:48pt}.quote-items.is-negotiated .col-amount{width:auto}
.quote-items.is-bundled .col-index{width:34pt}.quote-items.is-bundled .col-description{width:251pt}.quote-items.is-bundled .col-quantity{width:50pt}.quote-items.is-bundled .col-amount{width:auto}
.quote-items th{font-family:'Quote Noto TC',sans-serif;background:#263f4d;font-size:7.8pt;line-height:12pt;padding:5pt 10pt;border:0;height:22pt;box-sizing:border-box}.quote-items th:first-child{padding-left:8pt}.quote-items th:nth-child(2){padding-left:8pt}
.quote-items td{font-size:8.5pt;line-height:11pt;height:24pt;padding:1pt 10pt;border-bottom:.5pt solid #d8e0e3;box-sizing:border-box}.quote-items .item-index{text-align:left;font-size:7.7pt;color:#667983;padding-left:8pt}.quote-items td:nth-child(2){padding-left:8pt}.quote-items .quantity{text-align:right}.quote-items .item-name{font-family:'Quote Noto TC',sans-serif;font-size:8.8pt;line-height:11pt}.quote-items .item-locations{font-family:'Quote Noto TC',sans-serif;font-size:7.4pt;line-height:10pt;color:#667983}.quote-items tbody tr:nth-child(even){background:#f1f5f6}.quote-items.is-negotiated tbody tr,.quote-items.is-bundled tbody tr{background:#fff}.quote-items.is-negotiated td,.quote-items.is-bundled td{height:25pt;padding-top:.625pt;padding-bottom:.625pt}.quote-items.is-negotiated .item-locations,.quote-items.is-bundled .item-locations{line-height:12pt}.quote-items.is-negotiated td:nth-child(2){border-right:.5pt solid #d8e0e3}.quote-items.is-bundled .quantity{padding-right:25pt}.quote-quantity-unit{font-family:'Quote Noto TC',sans-serif;font-size:7pt;white-space:normal;margin-left:2pt}
.quote-items .group-total-cell{text-align:right;padding-right:14pt;border-left:.5pt solid #d8e0e3}.group-total-cell small{font-family:'Quote Noto TC',sans-serif;font-size:7.7pt;color:#667983;margin-bottom:13pt}.group-total-cell strong{font-size:15pt;line-height:20pt}
.quote-summary{grid-template-columns:276.276pt minmax(0,1fr);gap:20pt;margin:15pt 0 0}.quote-summary-left>p{font-family:'Quote Noto TC',sans-serif;font-size:7.3pt;line-height:10pt;color:#667983;margin:0 0 2pt}.quote-summary-left dl{width:148pt}.quote-summary-left dl>div{font-size:8.7pt;line-height:15pt;margin:0}.quote-summary-left dt{font-family:'Quote Noto TC',sans-serif;font-size:8.2pt}.quote-summary>.quote-grand{padding:0 12pt 0 14pt;border-bottom:.6pt solid #b5c4ca}.quote-grand>span{font-family:'Quote Noto TC',sans-serif;font-size:8.1pt;line-height:11pt;color:#667983;font-weight:700}.quote-grand>strong{font-size:19pt;line-height:25pt;letter-spacing:0;margin-top:7pt}
.quote-notes{margin-top:16pt}.quote-notes h2{margin:0 0 5pt}.quote-notes li{grid-template-columns:14pt minmax(0,1fr);gap:9pt;margin:0;font-size:8.3pt;line-height:13.5pt}.quote-notes li>span{font-size:7.5pt;color:#667983;padding-left:1pt}.quote-notes li>p{font-family:'Quote Noto TC',sans-serif;font-size:8.3pt;line-height:13.5pt;color:#42545e}
.quote-signoff{grid-template-columns:288.276pt minmax(0,1fr);gap:20pt;align-items:end;margin-top:20pt;min-height:91pt}.quote-demo-seal-svg{display:block;width:127.56pt;height:90.71pt;margin-left:6.22pt;overflow:visible;color:#2b638a;font-family:'Quote Noto TC',sans-serif}.quote-confirm{padding:0}.quote-confirm h2{font-family:'Quote Noto TC',sans-serif;font-size:7.7pt;line-height:11pt;color:#667983}.quote-confirm .signature-line{height:31pt;border-bottom:.5pt solid #82929b}.quote-confirm p{font-family:'Quote Noto TC',sans-serif;font-size:7pt;line-height:10pt;margin-top:5pt;color:#667983}.quote-footer{font-family:'Quote Noto TC',sans-serif;font-size:7.1pt;line-height:10pt;color:#667983;margin-top:21pt}
@page{size:A4;margin:31.18pt 42pt 42pt;@bottom-left{font-family:'Quote Noto TC';font-size:7.1pt;color:#667983}@bottom-right{font-family:'Quote Noto TC';font-size:7.1pt;color:#667983}}
@media print{#quote-paper{width:auto!important;padding:0!important}.quote-demo-seal-svg{print-color-adjust:exact;-webkit-print-color-adjust:exact}}
/* Approved fixed synthetic vector QR; clear the former CSS crossbar placeholder. */
svg.quote-qr-placeholder{background:none;width:35.37pt;height:35.37pt;border:0;overflow:visible}
.quote-footer{margin-top:17.5pt}

/* ReportLab reference uses unkerned Latin advances. Baseline offsets retain flow. */
.quote-heading h1,.quote-items .money,.quote-items .quantity,.quote-grand>strong,.quote-summary-left dd{font-kerning:none}
.quote-heading h1{position:relative;top:1.49pt}
.quote-items .item-name{position:relative;top:1.05pt}
.quote-items.is-negotiated .item-name,.quote-items.is-bundled .item-name{top:1.8pt}
.quote-items.is-negotiated .item-locations,.quote-items.is-bundled .item-locations{position:relative;top:2.15pt}
.quote-notes h2{position:relative;top:1.05pt}
.quote-confirm h2{position:relative;top:-1.3pt}
.quote-grand>strong{position:relative;top:.25pt}
.quote-items.is-bundled + .quote-summary .quote-grand>strong{top:.25pt}
@page{@bottom-left{vertical-align:top;line-height:10pt;margin-top:-8pt;padding-top:0}@bottom-right{vertical-align:top;line-height:10pt;margin-top:-8pt;padding-top:0}}

/* Remaining original-PDF baseline alignment; all row heights remain unchanged. */
.quote-notes li>span{position:relative;top:-1.5pt}.quote-notes li>p{position:relative;top:-2.2pt}
.group-total-cell small{position:relative;top:-1.3pt}.group-total-cell strong{position:relative;top:-3.75pt}
.quote-items.is-negotiated .original-price{position:relative}
.quote-items.is-negotiated .original-price[rowspan]:not([rowspan="1"]) .price-kind{position:absolute;right:10pt;bottom:2pt;line-height:8pt}

/* The fixed decorative seal must not paint into the preceding page. */
@media print{.quote-signoff{break-inside:avoid;page-break-inside:avoid;overflow:hidden}.quote-demo-seal-svg{overflow:hidden}}
