.nav-settings-label{font-size:10px;color:#8c969b;padding:18px 20px 8px}
#nav{min-height:0;overflow-y:auto;flex:1;padding-bottom:12px}.brand,.workspace-label,.sidebar-bottom{flex-shrink:0}.sidebar-bottom{margin-top:10px}
.quote-tax-caption{text-align:right;font-size:10px;color:#74848b;margin:8px 0}
.company-cell{display:flex;align-items:center;gap:12px;min-width:210px}.company-cell>img{width:56px;height:44px;object-fit:contain}.company-cell>svg{width:26px;height:26px;color:#587b7a;flex:none}.company-cell>div{min-width:0}.company-cell .text-button{white-space:normal;text-align:left}.company-address{max-width:240px;white-space:pre-wrap;overflow-wrap:anywhere}.company-editor{width:min(960px,calc(100% - 32px))}.company-document{width:min(980px,calc(100% - 32px))}.company-section-title{font-size:14px;margin:24px 0 16px;border-top:1px solid #e0e5e8;padding-top:20px}.company-section-title:first-child{margin-top:0;border:0;padding-top:0}.company-assets{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:24px}.company-asset-preview{height:120px;display:flex;align-items:center;justify-content:center;background:#f7f9f9;border:1px dashed #c8d3d6;margin:12px 0}.company-asset-preview img{width:100%;height:100%;object-fit:contain}.company-asset-preview svg{color:#9aaab0}.company-asset input[type=file]{font-size:12px;width:100%;padding:8px}.company-live-preview{border-top:1px solid #dde5e8;margin-top:24px;padding-top:16px}.company-live-preview summary{font-size:13px;font-weight:600;cursor:pointer;padding:10px 0}.company-preview-scroll{overflow-x:auto}.company-selection-meta{align-self:end;align-items:start;gap:7px}.company-selection-meta>span{font-size:11px;color:#7c8e96}.company-template-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.company-template-item{border:1px solid #e0e6e8;border-radius:6px;background:white;padding:18px;min-width:0}.company-template-brand{height:72px;display:flex;align-items:center;justify-content:flex-start;margin-bottom:18px}.company-template-brand img{max-width:100%;max-height:72px;object-fit:contain}.company-template-brand svg{width:32px;height:32px;color:#6b8c8c}.company-template-item h3{font-size:14px;margin:0 0 8px;overflow-wrap:anywhere}.company-template-item p{font-size:12px;color:#7a8b94;margin:0 0 16px}.company-template-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px;color:#7a8b94;margin-bottom:18px}.company-template-item .row-actions{justify-content:flex-end}
.company-quote{background:#fff;color:#202a31;max-width:100%;width:100%;padding:20px 4px;font-size:12px;line-height:1.6;letter-spacing:0}.company-quote *{box-sizing:border-box;letter-spacing:0}.quote-letterhead{display:flex;justify-content:space-between;align-items:center;gap:24px;border-bottom:2px solid var(--quote-accent);padding-bottom:18px;margin-bottom:15px}.quote-company-brand{display:flex;align-items:center;gap:14px;min-width:0}.quote-company-logo{max-width:190px;width:auto;max-height:90px;object-fit:contain}.quote-company-brand h2{font-size:20px;color:#222e35;margin:0;overflow-wrap:anywhere}.quote-company-brand p{font-size:11px;margin:4px 0 0;color:#64727b}.quote-document-title{flex:none}.quote-document-title h2{font-size:25px;margin:0;color:var(--quote-accent);font-weight:700}.quote-document-title>span{font-size:10px;color:#819099}.quote-issuer-lines{font-size:11px;color:#586871;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;margin:12px 0}.quote-issuer-lines>div{display:inline;margin-right:14px}.quote-issuer-lines>div:first-child{display:block}.quote-parties{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:24px;margin:18px 0 22px}.quote-parties h3{font-size:11px;color:var(--quote-accent);margin:0 0 8px}.quote-parties section>div:not(.quote-issuer-lines){display:grid;grid-template-columns:80px minmax(0,1fr);gap:10px;padding:3px 0}.quote-parties span{color:#71828b;font-size:11px}.quote-parties b{font-weight:500;overflow-wrap:anywhere;white-space:pre-wrap}.quote-document-table{overflow-x:auto}.company-quote table{width:100%;table-layout:fixed;border-collapse:collapse;min-width:0!important}.company-quote th{background:#edf3f3;color:#3e555d;font-weight:600;padding:10px 8px;border-bottom:1px solid #cddadb;text-align:left;font-size:10px;white-space:normal}.company-quote td{font-size:11px;padding:13px 8px;border-bottom:1px solid #e3eaed;vertical-align:top;white-space:normal;overflow-wrap:anywhere}.company-quote .quote-col-seq{width:6%;text-align:center}.company-quote .quote-col-product{width:auto}.company-quote .quote-col-unit{width:7%}.company-quote .quote-col-qty{width:10%;text-align:right}.company-quote .quote-col-price{width:17%;text-align:right}.company-quote .quote-col-discount{width:9%;text-align:right}.company-quote .quote-col-amount{width:18%;text-align:right}.company-quote .sub{font-size:10px;line-height:1.6;white-space:normal}.company-quote small{font-size:10px;color:#829099}.company-quote .item-description{max-width:none;font-size:10px}.quote-summary-area{display:flow-root}.company-quote .quote-totals{max-width:290px}.company-quote .quote-totals strong{color:var(--quote-accent)}.quote-signoff{display:flex;justify-content:space-between;align-items:center;gap:18px;min-height:100px}.quote-stamp{width:150px;flex:none}.quote-stamp img{max-width:150px;max-height:100px;object-fit:contain}.quote-signoff .signature-box{flex:1;gap:16px;justify-content:space-between;flex-wrap:wrap;font-size:11px}.quote-letter-footer{border-top:1px solid #dce4e7;padding-top:12px;margin-top:16px;text-align:center;font-size:10px;color:#74838a}.quote-blank-row td{padding:6px 8px;height:30px;color:#a0a9af}.company-document .modal-footer{flex-wrap:wrap}
.layout-chief .quote-company-brand{flex-direction:row-reverse;text-align:right}.layout-chief .quote-document-title h2{color:#26383d}.layout-summit .quote-letterhead{border-bottom:1px solid #dce5e8}.layout-summit .quote-company-brand{order:2;flex-direction:column;align-items:flex-end;text-align:right;gap:8px}.layout-summit .quote-company-brand h2{font-size:17px}.layout-summit .quote-parties{grid-template-columns:1fr 1fr}.layout-summit .quote-issuer-lines>div{display:block;margin:0}.layout-summit .quote-parties section:last-child{background:#f0f5f9;padding:14px}.layout-minimal .quote-company-brand{order:2;flex-direction:column;align-items:flex-end;text-align:right}.layout-minimal .quote-company-brand h2{font-size:15px}.layout-minimal .quote-letterhead{border:0;padding-bottom:10px}.layout-minimal .quote-document-title h2{font-size:27px;color:#293b3b}.layout-minimal .quote-issuer-lines>div{display:block}.layout-minimal th{background:#fff;border-bottom:2px solid #586f70;color:#6c7f7f}.layout-minimal td{padding-block:19px}.layout-minimal .quote-parties{border-bottom:1px solid #dce5e8;padding-bottom:20px}.layout-translation .quote-company-brand{flex:1;justify-content:center;text-align:center}.layout-translation .quote-company-logo{max-width:85px;max-height:85px}.layout-translation .quote-letterhead{flex-wrap:wrap}.layout-translation .quote-document-title{width:100%;text-align:center}.layout-translation .quote-issuer-lines{text-align:center}.layout-translation th,.layout-translation td{border:1px solid #889a91}.layout-estimate .quote-letterhead{flex-direction:column;gap:15px}.layout-estimate .quote-company-brand{order:-1;flex-direction:column;gap:8px}.layout-estimate .quote-company-logo{max-width:360px;max-height:85px}.layout-estimate th,.layout-estimate td{border:1px solid #8d9a9f}.layout-scientific .quote-letterhead{flex-direction:column;gap:16px;border:0;text-align:center}.layout-scientific .quote-company-brand{justify-content:center}.layout-scientific .quote-company-brand h2{font-size:23px}.layout-scientific .quote-company-brand p{color:#344754}.layout-scientific .quote-issuer-lines{text-align:center}.layout-scientific .quote-document-table{border-top:3px solid #344754}.layout-scientific th{background:#fff;border-bottom:1px solid #344754}.layout-grid .quote-letterhead{flex-direction:column;text-align:center;gap:10px}.layout-grid th,.layout-grid td{border:1px solid #394f67}.layout-grid th{background:#eef1f6}.layout-grid .quote-company-brand{flex-direction:row}.layout-grid .quote-parties{border:1px solid #5d7183;padding:12px}.layout-technical .quote-company-logo{max-width:75px;max-height:85px}.layout-technical .quote-company-brand h2{font-size:19px}.layout-technical .quote-letterhead{border-bottom:3px double #4b6376}.layout-technical th,.layout-technical td{border:1px solid #6c7d8a}.layout-technical th{background:white;color:#263d50}.layout-jifeng .quote-company-brand{flex:1;justify-content:center;flex-direction:column;text-align:center;gap:2px}.layout-jifeng .quote-letterhead{flex-direction:column;border-bottom:3px double #536f61;gap:12px}.layout-jifeng .quote-company-brand h2{font-size:24px}.layout-jifeng .quote-document-title{display:flex;align-items:center;gap:12px}.layout-jifeng th,.layout-jifeng td{border:1px solid #586b60}.layout-jifeng th{background:white}.legacy-quote .quote-letterhead{border-bottom:1px solid #dce5e8}.legacy-quote .quote-company-brand{flex-direction:row}
@media(max-width:1050px){.company-template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.company-quote .quote-company-brand h2{font-size:18px}.quote-company-logo{max-width:140px}}
@media(max-width:650px){.company-editor,.company-document{width:calc(100% - 16px)}.company-assets{grid-template-columns:minmax(0,1fr)}.company-template-grid{grid-template-columns:minmax(0,1fr)}.company-cell{min-width:0}.company-preview-scroll .company-quote{min-width:680px;padding:16px}.quote-document:has(.company-quote) .modal-body{padding:16px 12px}.quote-document .company-quote{min-width:680px}.quote-document .modal-body:has(.company-quote){overflow-x:auto}.company-document .modal-footer>button{flex:1}.company-template-item .row-actions{flex-wrap:wrap}}
@media print{.company-document,.quote-document:has(.company-quote){width:100%!important;max-width:none!important}.company-document .modal-body,.quote-document:has(.company-quote) .modal-body{padding:0!important;overflow:visible!important}.company-preview-scroll,.quote-document-table{overflow:visible!important}.company-quote{width:100%!important;min-width:0!important;padding:0!important;font-size:10px;print-color-adjust:exact;-webkit-print-color-adjust:exact}.company-quote .quote-letterhead{break-after:avoid}.company-quote table{min-width:0!important;table-layout:fixed!important}.company-quote th{font-size:9px!important;padding:7px 5px!important}.company-quote td{font-size:10px!important;padding:9px 5px!important}.company-quote td:first-child{width:auto!important}.company-quote .quote-col-product{width:auto!important}.company-quote .quote-col-seq{width:6%!important}.company-quote .quote-col-price{width:17%!important}.company-quote .quote-col-qty{width:10%!important}.company-quote .quote-col-amount{width:18%!important}.company-quote .quote-blank-row td{height:23px;padding:4px!important}.company-quote tr,.quote-signoff{break-inside:avoid}.quote-company-logo{max-height:70px}.company-quote .quote-company-brand h2{font-size:18px}.company-quote .quote-document-title h2{font-size:24px}.company-quote .quote-totals strong{font-size:19px}.quote-letter-footer{font-size:9px}}
/* Keep document layout independent from the application's table and dialog styles. */
:is(.company-document,.quote-document):has(.company-quote){width:min(1000px,calc(100% - 24px));height:92vh;max-height:92vh;overflow:hidden}
:is(.company-document,.quote-document):has(.company-quote) #modal-content,
:is(.company-document,.quote-document):has(.company-quote) #dialog-form{height:100%;min-height:0;display:flex;flex-direction:column}
:is(.company-document,.quote-document):has(.company-quote) .modal-header,
:is(.company-document,.quote-document):has(.company-quote) .modal-footer{flex:none}
:is(.company-document,.quote-document):has(.company-quote) .modal-body{min-height:0;overflow:auto;padding:24px;background:#edf0f2;flex:1}
.company-preview-scroll{overflow:visible}
.company-quote{width:100%;max-width:794px;min-width:0!important;margin:0 auto;padding:30px;background:white;color:#17232d;font-size:13px;line-height:1.55;border:1px solid #dce2e5}
.company-quote .quote-letterhead{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:20px;padding:0 0 18px;margin:0 0 12px;border-bottom:2px solid var(--quote-accent);text-align:left}
.company-quote .quote-company-brand{display:flex;flex:1;order:0;flex-direction:row;align-items:center;justify-content:flex-start;text-align:left;gap:14px;min-width:0}
.company-quote .quote-company-brand>div{min-width:0}
.company-quote .quote-company-brand h2{font-size:20px;line-height:1.4;margin:0;word-break:normal;overflow-wrap:anywhere;color:#17232d}
.company-quote .quote-company-brand p{font-size:11px;line-height:1.5;color:#4b5963;margin:4px 0 0}
.company-quote .quote-company-logo{flex:none;width:105px;height:64px;max-width:105px;max-height:64px;object-fit:contain;object-position:left center}
.company-quote .quote-document-title{order:2;width:auto;flex:none;display:block;text-align:right}
.company-quote .quote-document-title h2{font-size:24px;line-height:1.3;color:var(--quote-accent);margin:0}
.company-quote .quote-document-title>span{font-size:10px;color:#596b76}
.company-quote .quote-issuer-lines{text-align:left;font-size:11px;color:#364752;margin:10px 0 14px;display:flex;flex-wrap:wrap;gap:3px 16px;line-height:1.6}
.company-quote .quote-issuer-lines>div{display:block;margin:0;overflow-wrap:anywhere}
.company-quote .quote-issuer-lines>div:first-child{flex-basis:100%}
.company-quote .quote-parties{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:22px;margin:16px 0;padding:12px 0;border-top:1px solid #dbe2e6;border-bottom:1px solid #dbe2e6}
.company-quote .quote-parties section{min-width:0;background:transparent!important;padding:0!important}
.company-quote .quote-parties h3{font-size:11px;margin:0 0 7px;color:#344e5c}
.company-quote .quote-parties section>div:not(.quote-issuer-lines){grid-template-columns:66px minmax(0,1fr);gap:8px;padding:3px 0;font-size:12px}
.company-quote .quote-parties span{color:#526471;font-size:11px}
.company-quote .quote-parties b{font-weight:500;color:#17232d}
.company-quote .quote-parties .quote-customer-name b{font-size:16px;font-weight:600;line-height:1.5;overflow-wrap:anywhere}
.company-quote .quote-parties .quote-issuer-lines{margin:0;display:block}
.company-quote .quote-tax-caption{color:#4e606d;font-size:10px;margin:10px 0 7px}
.company-quote .quote-document-table{overflow:visible;border:0}
.company-quote table{table-layout:fixed;width:100%;min-width:0!important}
.company-quote th{font-size:11px;line-height:1.5;padding:9px 6px;color:#233e4d;background:#eff3f5;vertical-align:middle;overflow-wrap:anywhere}
.company-quote td{font-size:12px;line-height:1.6;padding:12px 6px;overflow-wrap:anywhere;color:#17232d}
.company-quote .quote-col-seq{width:6%}.company-quote .quote-col-unit{width:7%}.company-quote .quote-col-qty{width:9%}.company-quote .quote-col-price{width:18%}.company-quote .quote-col-amount{width:20%}.company-quote .quote-col-discount{width:8%}
.company-quote .quote-col-product{width:auto}
.company-quote .sub,.company-quote .item-description{color:#526471;font-size:10px;margin-top:3px}
.company-quote .quote-totals{width:260px;margin:14px 0 18px auto;font-size:12px}
.company-quote .quote-totals>div{padding:5px 0;color:#4e606d}.company-quote .quote-totals strong{font-size:20px}
.company-quote .quote-terms{padding:10px 0}.company-quote .quote-prose{color:#364752;font-size:11px}
.company-quote .quote-signoff{min-height:85px;align-items:center;gap:16px;margin-top:12px}
.company-quote .signature-box{display:flex;flex-direction:column;align-items:flex-start;gap:12px;min-width:0;border:0;padding:12px 0;margin:0;font-size:11px}
.company-quote .quote-stamp{width:120px;flex:none}.company-quote .quote-stamp img{width:120px;height:80px;max-width:120px;max-height:80px;object-fit:contain}
.company-quote.layout-minimal th{background:white;border-bottom:2px solid var(--quote-accent)}
.company-quote:is(.layout-grid,.layout-technical,.layout-estimate,.layout-jifeng) :is(th,td){border:1px solid #9babb4}
.company-quote.layout-scientific .quote-letterhead{border-bottom:3px double var(--quote-accent)}
@media(max-width:650px){
 :is(.company-document,.quote-document):has(.company-quote) .modal-body{padding:10px;overflow:auto}
 .company-quote{padding:16px;border:0;min-width:0!important}
 .company-quote .quote-letterhead{gap:10px;flex-wrap:wrap}.company-quote .quote-company-brand{flex-basis:100%}
 .company-quote .quote-company-brand h2{font-size:17px}.company-quote .quote-company-logo{width:70px;height:48px;max-width:70px}
 .company-quote .quote-document-title{width:100%;text-align:left}.company-quote .quote-document-title h2{font-size:21px}
 .company-quote .quote-parties{grid-template-columns:minmax(0,1fr);gap:14px}
 .company-quote .quote-document-table{overflow-x:auto}.company-quote table{min-width:580px!important}
 .company-quote .quote-totals{width:100%;max-width:none}.company-quote .quote-signoff{flex-wrap:wrap}
}
.company-quote:is(.layout-jifeng,.layout-technical,.layout-scientific) .quote-document-table{min-height:280px}
@media print{.company-quote:is(.layout-jifeng,.layout-technical,.layout-scientific) .quote-document-table{min-height:60mm}.company-quote .quote-parties{margin-block:8px;padding-block:6px}.company-quote .quote-letterhead{padding-bottom:10px}.company-quote .quote-issuer-lines{margin-block:6px;font-size:10px}}
/* Document treatments matched to the supplied company reference pages. */
.company-quote{display:flex;flex-direction:column;min-height:1050px;position:relative}
.company-quote .quote-page-bottom{margin-top:auto;padding-top:20px;break-inside:avoid}
.company-quote .quote-letterhead{flex:none}
.company-quote.layout-chief .quote-letterhead{align-items:flex-start;border-bottom:1px solid #8194ac;position:relative;min-height:205px}
.chief-reference-heading{padding-right:145px;flex:1}
.chief-reference-heading h1{font-size:22px;line-height:1.4;margin:0 0 10px;color:#172332}
.chief-reference-heading h2{font-size:18px;margin:0 0 3px;color:#33445d}
.company-quote.layout-chief .quote-issuer-lines{display:flex;flex-direction:column;gap:1px;font-size:12px;margin:0;color:#43556e}
.chief-agent{font-size:12px;color:#43556e;line-height:1.6;margin-top:2px}
.chief-reference-logo{position:absolute;right:0;top:4px;width:120px;height:120px;object-fit:contain}
.company-quote.layout-chief .quote-parties{border:0;margin:4px 0 15px;padding:0;gap:20px}
.company-quote.layout-chief .quote-parties section:last-child>div{grid-template-columns:1fr;text-align:right;display:block}
.company-quote.layout-chief .quote-parties section:last-child span{display:inline;margin-right:5px}
.company-quote.layout-chief th{background:#f0f3f7;border-block:1px solid #8194ac;color:#182431}
.company-quote.layout-chief td{border-color:#c9d2df}
.company-quote.layout-chief .quote-page-bottom{border:1px solid #c4cfdf;padding:12px;min-height:110px;position:relative}
.company-quote.layout-chief .quote-page-bottom .quote-signoff{min-height:70px;margin:0;justify-content:flex-end}
.company-quote.layout-chief .quote-page-bottom .signature-box{display:none}
.company-quote.layout-chief .quote-page-bottom .quote-stamp{margin-left:auto}
.company-quote.layout-chief .quote-page-bottom .quote-terms{border:0;padding:0;max-width:75%}
.company-quote.layout-summit .quote-letterhead{flex-direction:row-reverse;border-color:#c8d2df}
.company-quote.layout-summit .quote-company-brand{flex:1;flex-direction:column;align-items:flex-end;text-align:right}
.company-quote.layout-summit .quote-company-logo{width:210px;max-width:210px;object-position:right}
.company-quote.layout-summit .quote-parties section:last-child{background:#eff5ff!important;border:1px solid #bfd4ee;border-radius:4px;padding:12px!important}
.company-quote.layout-summit .quote-page-bottom,.company-quote.layout-minimal .quote-page-bottom{border:1px solid #c8d0d7;padding:12px;min-height:120px}
.company-quote.layout-minimal .quote-letterhead{flex-direction:row-reverse}
.company-quote.layout-minimal .quote-company-brand{justify-content:flex-end}
.company-quote.layout-minimal .quote-company-logo{width:180px;max-width:180px}
.company-quote.layout-minimal .quote-company-brand>div{display:none}
.company-quote.layout-estimate .quote-letterhead{flex-direction:column;border:0;gap:8px}
.company-quote.layout-estimate .quote-company-brand{width:100%;flex:none;justify-content:space-between}
.company-quote.layout-estimate .quote-company-logo{width:300px;max-width:65%;height:80px;max-height:80px}
.company-quote.layout-estimate .quote-company-brand h2{font-size:15px}
.company-quote.layout-estimate .quote-page-bottom{border-top:2px solid #8a98a9}
.company-quote.layout-grid .quote-document-table table{min-height:530px}
.company-quote.layout-grid .quote-blank-row td{height:23px;padding:3px 6px}
.company-quote.layout-grid .quote-letterhead{flex-direction:column;gap:12px;border:0}
.company-quote.layout-grid .quote-document-title{order:-1}
.company-quote.layout-grid .quote-company-brand{width:100%}
.company-quote:is(.layout-jifeng,.layout-technical,.layout-scientific) .quote-document-table{display:flex;flex:1;min-height:400px}
.company-quote:is(.layout-jifeng,.layout-technical,.layout-scientific) .quote-document-table table{flex:1;align-self:stretch}
.company-quote:is(.layout-jifeng,.layout-technical,.layout-scientific) .quote-fill-row{height:100%}
.company-quote:is(.layout-jifeng,.layout-technical,.layout-scientific) .quote-fill-row td{padding:0;border:1px solid #394754}
.company-quote:is(.layout-jifeng,.layout-technical,.layout-scientific) :is(th,td){border:1px solid #394754}
.company-quote:is(.layout-jifeng,.layout-technical,.layout-scientific) .quote-page-bottom{margin:0;padding-top:8px}
.company-quote:is(.layout-jifeng,.layout-technical,.layout-scientific) .quote-summary-area .quote-totals{margin-block:5px}
.company-quote.layout-jifeng .quote-company-brand{flex-direction:column;align-items:flex-start;gap:2px}
.company-quote.layout-jifeng .quote-page-bottom{border:1px solid #394754;padding:12px}
.company-quote.layout-scientific .quote-letterhead{flex-direction:column;text-align:center;gap:8px;border:0}
.company-quote.layout-scientific .quote-company-brand{justify-content:center;text-align:center}
.company-quote.layout-scientific .quote-issuer-lines{justify-content:center}
@media(max-width:650px){
.company-quote{min-height:1000px}.chief-reference-heading{padding-right:0;padding-top:70px}
.chief-reference-logo{left:0;right:auto;width:65px;height:65px}
.company-quote.layout-chief .quote-parties section:last-child>div{text-align:left}
.company-quote.layout-chief .quote-letterhead{min-height:0}
.company-quote:is(.layout-jifeng,.layout-technical,.layout-scientific) .quote-document-table{display:block;flex:none;overflow:auto}
.company-quote:is(.layout-jifeng,.layout-technical,.layout-scientific) .quote-fill-row td{height:270px}
.company-quote.layout-summit .quote-letterhead,.company-quote.layout-minimal .quote-letterhead{flex-direction:column;align-items:stretch}
}
@media print{
.company-quote{min-height:253mm!important}
.company-quote:is(.layout-jifeng,.layout-technical,.layout-scientific) .quote-document-table{display:flex;flex:1;min-height:100mm;overflow:visible}
.company-quote:is(.layout-jifeng,.layout-technical,.layout-scientific) .quote-fill-row td{height:auto}
.chief-reference-heading{padding-top:0;padding-right:140px}.chief-reference-logo{left:auto;right:0;width:110px;height:110px}
.company-quote.layout-chief .quote-parties section:last-child>div{text-align:right}
.company-quote .quote-page-bottom{break-inside:avoid}
}
@media print{
 :is(.company-document,.quote-document):has(.company-quote){height:auto!important;max-height:none!important;overflow:visible!important}
 :is(.company-document,.quote-document):has(.company-quote) :is(#modal-content,#dialog-form){display:block;height:auto}
 :is(.company-document,.quote-document):has(.company-quote) .modal-body{background:white;padding:0!important;overflow:visible!important}
 .company-quote{max-width:none;width:100%;border:0;padding:0!important;min-width:0!important}
 .company-quote .quote-letterhead{flex-wrap:nowrap}.company-quote .quote-company-brand{flex-basis:auto}.company-quote .quote-document-title{width:auto;text-align:right}
 .company-quote .quote-parties{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)}
 .company-quote .quote-document-table{overflow:visible}.company-quote table{min-width:0!important}
 .company-quote .quote-totals{width:260px;max-width:260px}.company-quote .quote-col-product{width:auto!important}
 .company-quote thead{display:table-header-group}.company-quote tr{break-inside:avoid}
 .quote-bundle-page{break-before:page;page-break-before:always}
}
.company-quote:is(.layout-jifeng,.layout-technical,.layout-scientific) .quote-document-table{min-height:280px}
@media print{.company-quote:is(.layout-jifeng,.layout-technical,.layout-scientific) .quote-document-table{min-height:60mm}.company-quote .quote-parties{margin-block:8px;padding-block:6px}.company-quote .quote-letterhead{padding-bottom:10px}.company-quote .quote-issuer-lines{margin-block:6px;font-size:10px}}
.company-quote.layout-chief .chief-reference-heading h1{font-size:30px;margin-bottom:10px}
.company-quote.layout-chief .quote-letterhead{min-height:160px}
.company-quote.layout-chief .quote-issuer-lines{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:3px 16px}
.company-quote.layout-chief .quote-issuer-lines>div:first-child{grid-column:1/-1}
.chief-agent{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:3px 16px;overflow-wrap:anywhere}
@media(max-width:650px){.company-quote.layout-chief .quote-issuer-lines,.chief-agent{grid-template-columns:minmax(0,1fr)}.company-quote.layout-chief .chief-reference-heading h1{font-size:28px}}
.company-quote.layout-chief .chief-reference-heading h2{font-size:24px;line-height:1.4}.chief-agent-mail{grid-column:1/-1}
.chief-contact-lines{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1px 16px;font-size:12px;line-height:1.6;color:#43556e;overflow-wrap:anywhere}
.company-quote.layout-chief .chief-agent{gap:1px 16px;margin-top:1px}
@media(max-width:650px){.chief-contact-lines{grid-template-columns:minmax(0,1fr)}}
.company-quote.layout-chief .quote-page-bottom{display:grid;grid-template-columns:minmax(0,1fr) 120px;column-gap:12px;align-items:start;padding:12px 10px;min-height:108px;break-inside:avoid}
.company-quote.layout-chief .quote-page-bottom .quote-terms{grid-column:1;max-width:none;margin:0 0 4px}
.company-quote.layout-chief .quote-page-bottom .quote-terms:last-of-type{margin-bottom:0}
.company-quote.layout-chief .quote-page-bottom .quote-signoff{position:static;grid-column:2;grid-row:1 / span 2;align-self:end;width:120px;min-height:0;margin:0}
.company-quote.layout-chief .quote-page-bottom .quote-letter-footer{grid-column:1 / -1}
.company-quote .quote-stamp.quote-stamp-straight{display:flex;align-items:flex-end;justify-content:center;gap:7px;width:120px;height:68px}
/* Keep the original seal pixels; crop and straighten each impression independently. */
.quote-stamp-straight .seal-crop{display:block;position:relative;overflow:hidden;flex:none;transform-origin:center}
.quote-stamp-straight .seal-large{width:68px;height:68px;transform:rotate(-1.4deg)}
.quote-stamp-straight .seal-small{width:38px;height:38px;transform:rotate(-3.2deg)}
.company-quote .quote-stamp-straight .seal-crop img{position:absolute;width:112px;height:75.74px;max-width:none;max-height:none;object-fit:fill}
.quote-stamp-straight .seal-large img{left:-6.3px;top:-4.48px}
.quote-stamp-straight .seal-small img{left:-74.9px;top:-34.3px}

/* Chief quotation spacing and readable item amounts, shared by preview and print. */
.company-quote.layout-chief .chief-reference-logo{transform:translate(-10px,12px)}
.company-quote.layout-chief .quote-parties .quote-customer-name>span{position:relative;top:4px}
.company-quote.layout-chief td.quote-col-product{font-size:14px}
.company-quote.layout-chief .quote-col-product .sub,
.company-quote.layout-chief .quote-col-product .item-description{font-size:12px}
.company-quote.layout-chief td.quote-col-price,
.company-quote.layout-chief td.quote-col-amount{font-size:14px}
.company-quote.layout-chief .quote-totals strong{font-size:24px}
@media print{
 .company-quote.layout-chief td.quote-col-product,
 .company-quote.layout-chief td.quote-col-price,
 .company-quote.layout-chief td.quote-col-amount{font-size:14px!important}
 .company-quote.layout-chief .quote-col-product .sub,
 .company-quote.layout-chief .quote-col-product .item-description{font-size:12px!important}
 .company-quote.layout-chief .quote-totals strong{font-size:24px}
}

.company-quote td.quote-col-unit,.company-quote .quote-col-qty small{font-size:13px;color:#17232d;font-weight:500}
@media print{.company-quote td.quote-col-unit,.company-quote .quote-col-qty small{font-size:13px!important;color:#17232d}}

.company-quote:is(.layout-summit,.layout-minimal) .quote-parties .quote-customer-name>span{position:relative;top:4px}

.company-quote.layout-summit .quote-stamp>img{transform:rotate(3deg);transform-origin:center}
/* Keep Summit and Ruixin notes beside the seal, with the seal at the lower right. */
.company-quote:is(.layout-summit,.layout-minimal) .quote-page-bottom{display:grid;grid-template-columns:minmax(0,1fr) 120px;column-gap:12px;align-items:start;padding:12px;min-height:104px;break-inside:avoid}
.company-quote:is(.layout-summit,.layout-minimal) .quote-page-bottom>.quote-terms{grid-column:1;border:0;padding:0;margin:0 0 6px}
.company-quote:is(.layout-summit,.layout-minimal) .quote-page-bottom>.quote-signoff{grid-column:2;grid-row:1 / span 2;align-self:end;justify-content:flex-end;align-items:flex-end;min-height:80px;width:120px;margin:0;gap:0;flex-wrap:nowrap}
.company-quote:is(.layout-summit,.layout-minimal) .quote-page-bottom .quote-stamp{margin-left:auto;line-height:0}
.company-quote:is(.layout-summit,.layout-minimal) .quote-page-bottom>.quote-letter-footer{grid-column:1 / -1}

.company-quote.layout-translation .quote-document-table tbody tr:last-child>td{border-bottom:1px solid #889a91!important}

/* Put seals alongside notes for the remaining quotation templates. */
.company-quote:not(.layout-chief,.layout-summit,.layout-minimal) .quote-page-bottom{display:grid;grid-template-columns:minmax(0,1fr) 120px;column-gap:12px;align-items:start;break-inside:avoid}
.company-quote:not(.layout-chief,.layout-summit,.layout-minimal) .quote-page-bottom>.quote-terms{grid-column:1;padding:0;border:0;margin:0 0 6px}
.company-quote:not(.layout-chief,.layout-summit,.layout-minimal) .quote-page-bottom>.quote-signoff{grid-column:2;grid-row:1 / span 2;align-self:end;justify-content:flex-end;align-items:flex-end;min-height:0;width:120px;margin:0;gap:0;flex-wrap:nowrap}
.company-quote:not(.layout-chief,.layout-summit,.layout-minimal) .quote-page-bottom .quote-stamp{margin-left:auto;line-height:0}
.company-quote:not(.layout-chief,.layout-summit,.layout-minimal) .quote-page-bottom>.quote-letter-footer{grid-column:1 / -1}
.company-quote.layout-estimate .quote-company-brand:has(.quote-company-logo){justify-content:center}

.company-quote .quote-product-name{display:block;max-width:100%}
.company-quote [data-fit-quote-line]{display:block;width:100%;max-width:100%;white-space:nowrap;overflow-wrap:normal;word-break:normal;line-height:1.6}
.company-quote .quote-product-meta{margin-top:3px}
.company-quote .quote-description-label{display:block;white-space:normal}
.company-quote .quote-description-content{display:block;white-space:pre-wrap;overflow-wrap:anywhere}

@media print{
 .quote-document .company-quote{min-height:245mm!important;margin-bottom:0!important;break-after:auto;page-break-after:auto}
 .quote-document .form-error{display:none!important}
 .quote-document .quote-bundle{margin:0;padding:0}
 .quote-document .quote-bundle-page{margin:0;padding:0;break-before:page;page-break-before:always}
 .quote-document .company-quote .quote-letter-footer{margin-bottom:0}
}
