/* RFQ-01 V1.0. Screen preview and A4 use the same document content. */
.bd-document-dialog{width:min(940px,calc(100vw - 32px));padding:22px;background:#e8e5df;overflow:auto}
.bd-document-dialog>.bd-dialog-header{margin-bottom:18px;color:#49433a}
.bd-document-dialog>.bd-dialog-header h2{font:500 17px/1.5 "PingFang SC","Microsoft YaHei",sans-serif}
.bd-document-content{overflow-x:auto;background:#fff}
.gm-rfq-sheet{--rfq-ink:#292925;--rfq-muted:#77736b;--rfq-gold:#aa8250;--rfq-line:#d9d5cc;box-sizing:border-box;width:100%;min-width:680px;padding:34px 38px;background:#fff;color:var(--rfq-ink);font:13px/1.65 "PingFang SC","Microsoft YaHei",sans-serif;text-align:left}
.gm-rfq-sheet *{box-sizing:border-box}.gm-rfq-sheet h2,.gm-rfq-sheet h3,.gm-rfq-sheet p,.gm-rfq-sheet dl,.gm-rfq-sheet dd{margin:0}
.gm-rfq-header{display:flex;justify-content:space-between;align-items:center;gap:24px;padding-bottom:20px;border-bottom:2px solid var(--rfq-gold)}
.gm-rfq-brand{display:flex;align-items:center;gap:12px}.gm-rfq-brand img{width:54px;height:54px;object-fit:contain}.gm-rfq-brand strong{display:block;font:24px/1.3 Georgia,"Songti SC",serif}.gm-rfq-brand span{display:block;font-size:10px;color:var(--rfq-muted);margin-top:5px}
.gm-rfq-title{text-align:right}.gm-rfq-title h2{font:500 27px/1.4 "Songti SC","STSong",serif;letter-spacing:.12em}.gm-rfq-title p{font-size:11px;color:var(--rfq-muted);margin-top:4px}
.gm-rfq-register{display:grid;grid-template-columns:minmax(0,1.6fr) 1fr 1fr;gap:14px;padding:14px 0;border-bottom:1px solid var(--rfq-line);font-size:11px}.gm-rfq-register span{display:block;color:var(--rfq-muted);margin-bottom:3px}.gm-rfq-register strong{font-weight:500;overflow-wrap:anywhere}
.gm-rfq-example{margin-top:12px!important;padding:7px 10px;background:#f7f3ea;color:#805c28;font-size:11px}
.gm-rfq-section-title{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin:24px 0 10px}.gm-rfq-section-title h3{font-size:14px;font-weight:600;line-height:1.7}.gm-rfq-section-title>span{font-size:10px;color:var(--rfq-muted)}
.gm-rfq-info{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid var(--rfq-line);border-left:1px solid var(--rfq-line)}.gm-rfq-info>div{display:grid;grid-template-columns:100px minmax(0,1fr);border-right:1px solid var(--rfq-line);border-bottom:1px solid var(--rfq-line);min-height:40px}.gm-rfq-info dt{padding:10px 11px;background:#f6f4ef;color:#655e53;font-size:11px}.gm-rfq-info dd{padding:9px 11px;overflow-wrap:anywhere;white-space:pre-wrap}
.gm-rfq-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:12px;line-height:1.7;border-top:1.5px solid var(--rfq-gold)}.gm-rfq-table th{background:#f6f4ef;font-weight:500;font-size:11px;color:#5e5548;text-align:left;padding:10px 8px;border-bottom:1px solid var(--rfq-line)}.gm-rfq-table td{padding:12px 8px;border-bottom:1px solid var(--rfq-line);vertical-align:top;overflow-wrap:anywhere}.gm-rfq-table th:first-child,.gm-rfq-index{text-align:center!important}.gm-rfq-product{font-weight:600}.gm-rfq-quantity,.gm-rfq-unit{text-align:right;font-variant-numeric:tabular-nums}.gm-rfq-spec span{color:var(--rfq-muted)}.gm-rfq-spec strong{font-weight:400}.gm-rfq-spec+.gm-rfq-spec{margin-top:2px}.gm-rfq-spec-note{margin-top:5px!important}.gm-rfq-line-note{white-space:pre-wrap}.gm-rfq-total{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;padding:11px 8px;border-bottom:1px solid var(--rfq-line);font-size:11px}.gm-rfq-total strong{font-weight:500}
.gm-rfq-requirements{break-inside:avoid}.gm-rfq-requirements>p{border:1px solid var(--rfq-line);padding:12px;min-height:58px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}.gm-rfq-missing{color:#aaa49a}.gm-rfq-confirmation{display:flex;justify-content:space-between;gap:20px;margin-top:22px;font-size:11px;break-inside:avoid}
.gm-rfq-footer{margin-top:22px;padding-top:12px;border-top:1px solid var(--rfq-gold);break-inside:avoid}.gm-rfq-purpose{color:var(--rfq-muted);font-size:10px;line-height:1.7}.gm-rfq-contacts{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:9px;color:#655e53;margin-top:8px}.gm-rfq-blank-row{height:60px}
.gm-rfq-supplement-title{display:block;font-weight:500;margin-bottom:8px}.gm-rfq-supplement{white-space:pre-wrap;overflow-wrap:anywhere}.gm-rfq-supplement+.gm-rfq-supplement{margin-top:12px}.gm-rfq-supplement b{font-weight:500;color:var(--rfq-muted)}
.bd-document-actions{align-items:center}.gm-rfq-print-hint{font-size:11px;color:var(--bd-muted);margin-top:12px!important}
#gm-inquiry-print-root{display:none}
@media(max-width:760px){.bd-document-dialog{padding:16px 12px}.gm-rfq-sheet{padding:28px}.bd-document-dialog>.bd-dialog-header h2{font-size:16px}}
@page gm-rfq{size:A4 portrait;margin:14mm 13mm 17mm;@bottom-left{content:"Gonghe Ming · 客户询价单";font:8pt "PingFang SC",sans-serif;color:#77736b}@bottom-right{content:counter(page) " / " counter(pages);font:8pt Arial,sans-serif;color:#77736b}}
@media print{
  html,body{height:auto!important;min-height:0!important;background:#fff!important;margin:0!important;padding:0!important}
  body.gm-print-inquiry>*{display:none!important}
  body.gm-print-inquiry>#gm-inquiry-print-root{display:block!important;position:static!important;margin:0!important;padding:0!important;width:100%!important}
  body.gm-print-inquiry dialog,body.gm-print-inquiry dialog::backdrop{display:none!important}
  .gm-rfq-sheet{page:gm-rfq;width:100%;min-width:0;padding:0;font-size:10pt;line-height:1.6;print-color-adjust:exact;-webkit-print-color-adjust:exact}
  .gm-rfq-header{padding-bottom:5mm;break-inside:avoid}.gm-rfq-brand img{width:13mm;height:13mm}.gm-rfq-brand strong{font-size:19pt}.gm-rfq-brand span{font-size:8pt}.gm-rfq-title h2{font-size:22pt}.gm-rfq-title p{font-size:9pt}
  .gm-rfq-register{padding:3.5mm 0;font-size:8.5pt;break-inside:avoid}.gm-rfq-section-title{margin:6mm 0 2.5mm;break-after:avoid}.gm-rfq-section-title h3{font-size:11pt}.gm-rfq-section-title>span{font-size:8pt}
  .gm-rfq-info{break-inside:avoid}.gm-rfq-info>div{grid-template-columns:26mm minmax(0,1fr);min-height:10mm}.gm-rfq-info dt{font-size:8.5pt;padding:2.5mm}.gm-rfq-info dd{font-size:9pt;padding:2.5mm}
  .gm-rfq-table{font-size:9.5pt;line-height:1.6}.gm-rfq-table thead{display:table-header-group}.gm-rfq-table th{font-size:8.5pt;padding:2.5mm 2mm}.gm-rfq-table td{padding:3mm 2mm}.gm-rfq-table tr{break-inside:avoid}.gm-rfq-table tr.gm-rfq-long-row{break-inside:auto}.gm-rfq-spec{break-inside:avoid}.gm-rfq-total{font-size:8.5pt;break-inside:avoid;padding:3mm 2mm}
  .gm-rfq-table tr.gm-rfq-supplement-row{break-inside:auto}.gm-rfq-supplement-title{break-after:avoid}
  .gm-rfq-requirements>p{font-size:9pt;min-height:15mm;padding:3mm}.gm-rfq-confirmation{font-size:8.5pt;margin-top:5.5mm}.gm-rfq-footer{margin-top:5.5mm;padding-top:3mm}.gm-rfq-purpose{font-size:8pt}.gm-rfq-contacts{font-size:7.5pt}.gm-rfq-blank-row{height:15mm}
}
/* 2026-10-18: three-digit line numbers stay on one line; supplement chunks are page-sized and keep their heading. */
.gm-rfq-index{white-space:nowrap;font-variant-numeric:tabular-nums}
@media print{.gm-rfq-table tr.gm-rfq-supplement-chunk{break-inside:avoid}}
/* Quotation: same sheet as the inquiry, plus price columns and the amount total. */
.gm-rfq-price{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.gm-rfq-quote .gm-rfq-table th:nth-child(6),.gm-rfq-quote .gm-rfq-table th:nth-child(7){text-align:right}
.gm-rfq-quote .gm-rfq-amount{flex-basis:100%;text-align:right;font-size:13px;font-weight:600;color:var(--rfq-ink,#2b2924)}
@media print{.gm-rfq-quote .gm-rfq-amount{font-size:10.5pt}}

/* Quote sheet: compact rows, about seven products per A4 page. Specs run on one wrapped line, numbers never
   break inside, and notes stop after two lines. */
.gm-rfq-quote .gm-rfq-table{line-height:1.5}
.gm-rfq-quote .gm-rfq-table td{padding:8px 6px}
.gm-rfq-quote .gm-rfq-table th{white-space:nowrap}
.gm-rfq-quote .gm-rfq-quantity,.gm-rfq-quote .gm-rfq-unit,.gm-rfq-quote .gm-rfq-price{white-space:nowrap;overflow-wrap:normal}
.gm-rfq-quote .gm-rfq-specs{color:#5e5548;font-size:11px}
.gm-rfq-spec-inline strong{font-weight:500;color:#2b2924}
.gm-rfq-note-clamp{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:11px;color:#5e5548}
@media print{
  .gm-rfq-quote .gm-rfq-table{font-size:9pt;line-height:1.45}
  .gm-rfq-quote .gm-rfq-table th{padding:2mm 1.6mm}
  .gm-rfq-quote .gm-rfq-table td{padding:1.8mm 1.6mm}
  .gm-rfq-quote .gm-rfq-specs,.gm-rfq-quote .gm-rfq-note-clamp{font-size:8pt}
}
.gm-rfq-quote .gm-rfq-table .gm-rfq-line-note,.gm-rfq-quote .gm-rfq-table th:last-child{padding-left:10px}
/* An odd last item (报价条款 has five) spans both columns, so the grid has no missing cell. */
.gm-rfq-info>div:last-child:nth-child(odd){grid-column:1 / -1}

/* Bilingual labels: English sits under the Chinese in a smaller grey line, or after it in titles. */
.gm-rfq-sheet .gm-en{display:block;margin-top:1px;color:#8f877b;font-size:.82em;font-weight:400;letter-spacing:.01em;line-height:1.3}
.gm-rfq-sheet .gm-en-inline{display:inline;margin:0 0 0 .6em}
.gm-rfq-title h2 .gm-en{font:400 10px/1.4 Georgia,serif;letter-spacing:.24em;color:var(--rfq-muted)}
.gm-rfq-table th{vertical-align:bottom}
.gm-rfq-table th .gm-en{font-size:.85em}
.gm-rfq-purpose .gm-en{margin-top:2px}
/* No line ends with one stranded character: short labels stay on one line, longer text balances its lines. */
.gm-rfq-sheet :is(p,td,dd,dt,th,h3,span,strong,div){text-wrap:pretty}
.gm-rfq-sheet :is(th,dt,.gm-rfq-register span,.gm-rfq-quantity,.gm-rfq-unit,.gm-rfq-price,.gm-rfq-index){white-space:nowrap}
.gm-rfq-sheet :is(th,dt) .gm-en{white-space:normal}
.gm-rfq-product{text-wrap:balance}
@media print{
  .gm-rfq-title h2 .gm-en{font-size:7.5pt}
  .gm-rfq-sheet .gm-en{font-size:.8em}
}
/* room for the English label without wrapping */
.gm-rfq-info>div{grid-template-columns:122px minmax(0,1fr)}
.gm-rfq-info dt .gm-en{white-space:nowrap}
@media print{.gm-rfq-info>div{grid-template-columns:31mm minmax(0,1fr)}}
.gm-rfq-spec-inline.gm-keep{white-space:nowrap}
.gm-rfq-sheet th .gm-en{white-space:nowrap}
.gm-rfq-spec-inline.gm-keep *{white-space:nowrap}
