:root{--orange:#ff6600;--orange-dark:#e65c00;--ink:#20242a;--muted:#7b8490;--line:#e2e6eb;--green:#76cd00;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);font-size:14px;font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:#f4f5f7}button,input,textarea{font:inherit}button{cursor:pointer}a,button,input,textarea{-webkit-tap-highlight-color:transparent}[hidden]{display:none!important}button:disabled{cursor:wait;opacity:.55}button:focus-visible,summary:focus-visible,.table-wrap:focus-visible{outline:3px solid color-mix(in srgb,var(--orange) 50%,white);outline-offset:3px}input,textarea{width:100%;min-width:0;border:1px solid #dce1e7;border-radius:5px;background:#fafbfc;color:var(--ink);padding:9px 11px;font-size:13px;transition:border-color .15s}input:focus,textarea:focus{outline:0;border-color:var(--orange);box-shadow:0 0 0 2px color-mix(in srgb,var(--orange) 7%,transparent)}input::placeholder,textarea::placeholder{color:#a3a9b2}input[type=date]{min-height:38px}textarea{line-height:1.7;resize:vertical}svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}main{max-width:1200px;padding:38px 32px 28px;margin:0 auto}.title-line{display:flex;align-items:center;justify-content:space-between;gap:12px}h1{font-size:30px;letter-spacing:-.4px;line-height:1.4;margin:0;font-weight:750}.network i{display:inline-block;width:6px;height:6px;background:var(--green);border-radius:50%}.privacy-statement{display:flex;align-items:center;gap:7px;color:var(--green);font-size:13px;margin:12px 0 6px}.privacy-statement strong{font-weight:600}.subtitle{font-size:12px;color:var(--muted);line-height:1.8;margin:0}.editor-top{display:flex;align-items:center;justify-content:space-between;margin-top:24px}.tabs{display:flex;gap:4px}.tabs button{border:1px solid transparent;border-bottom:none;padding:11px 28px;font-size:14px;font-weight:500;color:#7d8590;background:transparent;border-radius:7px 7px 0 0}.tabs .selected{border-color:var(--line);background:white;color:var(--orange);position:relative;z-index:1}.tabs .selected:after{content:'';position:absolute;bottom:-1px;left:0;right:0;height:2px;background:white}.tabs button:hover{color:var(--orange)}.editor-tools{display:flex;gap:18px;padding-bottom:5px}.text-button{background:none;border:none;color:#8d949e;font-size:12px;padding:5px 0}.text-button:hover{color:var(--orange)}.form-panel{background:#fff;border:1px solid var(--line);border-radius:0 8px 8px 8px;padding:24px 25px 16px}section+section{margin-top:23px}h2{font-size:17px;font-weight:650;margin:0 0 13px;line-height:1.4}#document-info>h2,#parties>h2,.notes-area h2{display:flex;align-items:center;gap:12px}#document-info>h2:after,#parties>h2:after,.notes-area h2:after{content:'';height:1px;background:#edf0f3;flex:1}.fields{display:grid;gap:18px}.fields.four{grid-template-columns:1.25fr 1fr 1fr 1.2fr}.fields label,.quote-validity label{font-size:12px;color:#576272;line-height:1.5}.fields input{display:block;margin-top:6px;height:38px}em{color:var(--orange);font-style:normal;font-size:12px}.quote-validity{display:flex;gap:12px;align-items:end;margin-top:16px}.quote-validity label{width:230px}.quote-validity input{margin-top:6px}.quote-validity>span{font-size:11px;color:#9ba1aa;padding-bottom:10px}.section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.section-head h2{margin:0}.section-head>span{font-size:11px;color:#939ba6}.table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:6px;scrollbar-width:thin;scrollbar-color:#c9cfd6 transparent}.product-table{width:100%;min-width:780px;border-collapse:collapse;table-layout:fixed}.product-table th{background:#f0f2f5;font-size:12px;font-weight:500;color:#667282;padding:11px 8px;text-align:left;border-bottom:1px solid var(--line)}.product-table th:nth-child(1){width:16%}.product-table th:nth-child(2){width:29%}.product-table th:nth-child(3){width:10%}.product-table th:nth-child(4){width:8%}.product-table th:nth-child(5){width:13%}.product-table th:nth-child(6){width:17%}.product-table th:nth-child(7){width:7%}.product-table td{padding:8px 7px;border-bottom:1px solid #edf0f3}.product-table tr:last-child td{border-bottom:none}.product-table input{padding:8px;font-size:12px;height:35px;border-radius:4px}.product-table input[type=number]{appearance:textfield;-moz-appearance:textfield}.product-table input::-webkit-inner-spin-button{display:none}.product-table .amount-col,.product-table .line-amount{text-align:right;padding-right:13px}.product-table .line-amount{font-size:13px;color:#424c59;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.product-table .operation-col{text-align:center}.row-actions{display:flex;justify-content:center}.icon-button{border:0;background:none;padding:6px;color:#f04c39;border-radius:4px;width:31px;height:31px}.icon-button:hover{background:#fff1ed}.icon-button svg{width:16px;height:16px}.table-bottom{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-top:11px}.add-button{border:1px solid var(--orange);border-radius:5px;background:var(--orange);color:white;padding:7px 14px;font-size:13px}.add-button:hover{background:var(--orange-dark)}.table-bottom>span{color:#a0a6af;font-size:11px}.bottom-section{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:28px;border-top:1px solid #edf0f3;padding-top:17px;margin-top:18px}.notes-area textarea{height:83px;min-height:65px;font-size:12px}.export-area{align-self:end;min-width:410px}.summary{display:flex;gap:20px;align-items:baseline;justify-content:flex-end;margin-bottom:18px}.summary>span{font-size:14px;font-weight:600;white-space:nowrap}.grand-total{font-size:26px;color:var(--orange);font-weight:650;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;max-width:340px}.action-buttons{display:flex;gap:8px;justify-content:flex-end}.button{border-radius:5px;min-height:39px;padding:9px 15px;font-size:13px;font-weight:500;display:inline-flex;justify-content:center;align-items:center;gap:7px;white-space:nowrap}.secondary{border:1px solid #d5d8dc;background:white;color:var(--orange)}.secondary:hover{background:#fff6ee}.primary{border:1px solid var(--orange);background:var(--orange);color:white}.primary:hover{background:var(--orange-dark);border-color:var(--orange-dark)}#supplier-section{margin-top:23px;border-top:1px solid #edf0f3;padding-top:14px}#supplier-section summary{font-size:13px;cursor:pointer;color:#596371;line-height:1.7}#supplier-section summary span{font-size:11px;color:#9da4ae;margin-left:10px}#supplier-section .fields{margin-top:15px;margin-bottom:7px}.bottom-note{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:14px;color:#939ba6;font-size:11px}.network{color:var(--green);display:flex;gap:6px;align-items:center;font-size:11px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.notice{background:#fff0e4;padding:15px}dialog{border:1px solid #e2e5e9;border-radius:9px;padding:0;color:var(--ink)}dialog::backdrop{background:#19222d80}#preview-dialog{width:min(1120px,95vw);height:min(94vh,1300px);max-height:94vh;background:#e9ecf0;overflow:auto}.preview-toolbar{position:sticky;top:0;z-index:1;display:flex;justify-content:space-between;gap:16px;align-items:center;background:#fff;padding:17px 25px;border-bottom:1px solid var(--line)}.preview-toolbar h2{font-size:16px;margin:0}.preview-toolbar p{font-size:11px;color:var(--muted);margin:7px 0 0}.preview-actions{display:flex;gap:8px}#preview-pages{padding:25px;display:flex;flex-direction:column;align-items:center;gap:20px}#preview-pages img{display:block;width:min(100%,794px);height:auto;box-shadow:0 3px 15px #202c3c16;background:#fff}.confirm-body{padding:28px;max-width:430px}.confirm-body h2{font-size:18px}.confirm-body p{font-size:13px;line-height:1.9;color:var(--muted);margin:15px 0 23px}.confirm-body>div{display:flex;justify-content:flex-end;gap:9px}#toast{position:fixed;left:50%;bottom:25px;transform:translateX(-50%);z-index:10;background:#27313e;color:white;border-radius:6px;padding:12px 20px;box-shadow:0 5px 20px #0002;max-width:90vw;font-size:12px;line-height:1.7}
@media(max-width:1000px){main{padding:28px 22px}.fields.four{grid-template-columns:1fr 1fr}.bottom-section{grid-template-columns:1fr}.export-area{min-width:0}.notes-area textarea{height:72px}.summary{margin-bottom:13px}.action-buttons{flex-wrap:wrap}}
@media(max-width:520px){main{padding:22px 12px}h1{font-size:23px}.privacy-statement{font-size:10px;gap:5px;line-height:1.8}.privacy-statement svg{width:15px;height:15px}.subtitle{font-size:10px}.form-panel{padding:20px 14px 15px}.fields{gap:14px 12px}.fields label{font-size:11px}.fields input{font-size:11px;padding:8px;height:36px}h2{font-size:15px}.tabs button{font-size:13px;padding:10px 21px}.editor-tools{gap:12px}.text-button{font-size:11px}.table-bottom>span{font-size:9px}.add-button{font-size:12px}.summary{gap:12px}.summary>span{font-size:12px}.grand-total{font-size:25px;max-width:250px}.action-buttons{gap:6px;flex-wrap:nowrap}.action-buttons .button{padding:9px 8px;font-size:11px;flex:1}.action-buttons .button svg{width:14px;height:14px}#supplier-section summary span{display:block;margin-left:15px;font-size:10px}.bottom-note{font-size:9px;align-items:start}.network{font-size:9px}.bottom-note>span:last-child{max-width:120px;text-align:right;line-height:1.7}.quote-validity label{width:80%}.preview-toolbar{padding:14px;flex-wrap:wrap;gap:12px}.preview-toolbar p{display:none}.preview-actions{width:100%}.preview-actions .button{flex:1;font-size:11px;padding:9px}#preview-pages{padding:10px;gap:10px}#preview-dialog{width:97vw;max-width:97vw;height:95vh;max-height:95vh}.confirm-body{padding:24px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
.download-result{font-size:12px;line-height:1.8;margin-top:16px;padding:12px 15px;background:#fff;border:1px solid var(--line);border-radius:5px;color:#65707e}.download-result a{color:var(--orange);margin-left:8px;overflow-wrap:anywhere}
.product-table{min-width:840px}.product-table th:nth-child(1){width:5%}.product-table th:nth-child(2){width:15%}.product-table th:nth-child(3){width:27%}.product-table th:nth-child(4){width:9%}.product-table th:nth-child(5){width:7%}.product-table th:nth-child(6){width:12%}.product-table th:nth-child(7){width:18%}.product-table th:nth-child(8){width:7%}.product-table .sequence-col{text-align:center;color:#697586;font-size:12px}
select{width:100%;min-width:0;border:1px solid #dce1e7;border-radius:5px;background:#fafbfc;color:var(--ink);padding:9px 10px;font:inherit;font-size:12px;height:38px;display:block;margin-top:6px}select:focus{outline:0;border-color:var(--orange);box-shadow:0 0 0 2px color-mix(in srgb,var(--orange) 7%,transparent)}.fields.five{grid-template-columns:1.15fr 1fr 1.1fr 1.3fr .85fr}.fields.three{grid-template-columns:1fr 1fr 1fr}.product-table{min-width:980px}.product-table th:nth-child(1){width:5%}.product-table th:nth-child(2){width:14%}.product-table th:nth-child(3){width:23%}.product-table th:nth-child(4){width:15%}.product-table th:nth-child(5){width:8%}.product-table th:nth-child(6){width:7%}.product-table th:nth-child(7){width:10%}.product-table th:nth-child(8){width:13%}.product-table th:nth-child(9){width:5%}.total-uppercase{font-size:11px;color:#717c89;margin:-8px 0 14px;text-align:right;width:100%;max-width:none;line-height:1.6}.optional-section{margin-top:23px;border-top:1px solid #edf0f3;padding-top:14px}.optional-section summary{font-size:13px;cursor:pointer;color:#596371;line-height:1.7}.optional-section summary span{font-size:11px;color:#9da4ae;margin-left:10px}.optional-section h3{font-size:13px;margin:22px 0 12px;font-weight:600;display:flex;align-items:center;gap:16px}.check-label{font-size:11px;color:var(--muted);font-weight:400;display:inline-flex;align-items:center;gap:6px}.check-label input{width:14px;height:14px;margin:0;accent-color:var(--orange);box-shadow:none}.terms-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.terms-heading button{font-size:11px;color:var(--orange);margin-top:12px}.optional-section textarea{font-size:12px}.summary{margin-bottom:16px}
@media(max-width:1000px){.fields.five{grid-template-columns:1fr 1fr}.fields.three{grid-template-columns:1fr 1fr}.total-uppercase{max-width:none}}
@media(max-width:520px){.optional-section summary span{display:block;margin-left:15px;font-size:10px}.optional-section h3{flex-wrap:wrap;gap:8px}.terms-heading{align-items:center}.terms-heading button{max-width:132px;font-size:10px;line-height:1.6}.total-uppercase{font-size:10px}select{font-size:11px;padding:8px}.fields.three{grid-template-columns:1fr 1fr}}
.paper-setup{display:grid;grid-template-columns:minmax(230px,1fr) 120px auto;gap:12px 18px;background:#fff;border:1px solid var(--line);border-radius:7px;padding:16px 18px;margin-top:22px;align-items:end}.paper-setup>label{font-size:12px;color:#576272}.paper-setup select{background:#fff}.paper-setup .button{margin-bottom:0}.paper-setup p{grid-column:1/-1;font-size:11px;color:#7b8490;margin:0;line-height:1.7}.editor-top{margin-top:18px}#print-root{display:none}.preview-toolbar p{max-width:520px}.preview-actions .button{padding-left:12px;padding-right:12px}
@media(max-width:520px){.paper-setup{grid-template-columns:minmax(0,1fr) 85px;padding:14px;gap:12px}.paper-setup .button{grid-column:1/-1;justify-self:end;font-size:11px}.paper-setup p{font-size:10px}.preview-actions{flex-wrap:wrap}.preview-actions .button{font-size:10px;padding:8px;min-height:35px}}

.method-choices{display:grid;grid-template-columns:1.2fr 1fr .8fr;gap:16px}.method-choices fieldset{display:flex;flex-wrap:wrap;align-items:center;gap:12px 18px;min-width:0;margin:0;padding:12px 14px;border:1px solid var(--line);border-radius:5px}.method-choices legend{font-size:12px;color:#576272;padding:0 5px}.method-choices label{display:inline-flex;align-items:center;gap:6px;font-size:12px;cursor:pointer;white-space:nowrap}.method-choices input[type=checkbox]{width:15px;height:15px;margin:0;padding:0;accent-color:var(--orange);flex:none}
@media(max-width:1000px){.method-choices{grid-template-columns:1fr;gap:12px}}
#contract-info textarea{margin-top:14px;font-size:12px}.contract-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:20px 0}.contract-fields>label{font-size:12px;color:#576272}.contract-fields textarea{display:block;margin-top:6px;font-size:12px}.contract-fields>label:nth-child(6),.contract-fields>label:nth-child(7){grid-column:1/-1}
@media(max-width:520px){.tabs button{padding:10px 14px}.editor-tools{gap:8px}.contract-fields{grid-template-columns:1fr}.contract-fields>label{grid-column:1/-1}h1{font-size:21px}}

.product-table{min-width:840px}.product-table th:nth-child(1){width:5%}.product-table th:nth-child(2){width:41%}.product-table th:nth-child(3){width:14%}.product-table th:nth-child(4){width:8%}.product-table th:nth-child(5){width:7%}.product-table th:nth-child(6){width:10%}.product-table th:nth-child(7){width:10%}.product-table th:nth-child(8){width:5%}

.product-table input[data-field=quantity],.product-table input[data-field=unit]{text-align:center}.product-table th:nth-child(4),.product-table th:nth-child(5){text-align:center}

.product-table th:nth-child(4){width:7%}.product-table th:nth-child(5){width:8%}

#demo{color:var(--orange);border:1px solid #d5d8dc;background:color-mix(in srgb,var(--orange) 6%,white);border-radius:5px;padding:7px 12px;font-size:13px;font-weight:600}#demo:hover{background:color-mix(in srgb,var(--orange) 13%,white);border-color:var(--orange)}
@media(max-width:600px){.editor-top{flex-wrap:wrap;gap:8px}.editor-tools{justify-content:flex-end;flex:1}#demo{font-size:12px}}

.form-panel{border-radius:8px;margin-top:24px}.shared-product-hint{font-size:12px;color:#707b88;line-height:1.7;margin:0 0 12px}.product-tools{display:flex;align-items:center;gap:16px}.product-tools>span{font-size:11px;color:#939ba6}.product-tools .editor-tools{padding:0}.product-tools .text-button{white-space:nowrap}#document-kind .editor-top{margin-top:0}#document-kind .tabs button{border-bottom:1px solid var(--line);border-radius:5px}#document-kind .tabs .selected{border-color:var(--orange);background:color-mix(in srgb,var(--orange) 6%,white)}#document-kind .tabs .selected:after{display:none}
@media(max-width:600px){.product-tools{gap:10px}.product-tools>span{display:none}.section-head{gap:12px}.product-tools .editor-tools{flex:none}.shared-product-hint{font-size:11px}}

.action-buttons{flex-wrap:wrap}.preview-actions{flex-wrap:wrap}
@media(max-width:650px){.action-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.action-buttons .button{width:100%;font-size:12px}.preview-toolbar{flex-wrap:wrap}.preview-actions{width:100%}.preview-actions .button{flex:1;font-size:11px}}

h1{font-size:26px;overflow-wrap:anywhere}.title-line{align-items:flex-start}
@media(max-width:600px){h1{font-size:21px}}

#document-kind .editor-top{display:block}.doc-type-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;width:100%}.doc-type-options button{position:relative;min-width:0;padding:15px 14px 13px;border:1px solid #dfe3e8;border-radius:7px;background:#fff;text-align:center;color:#4b535e;transition:border-color .15s,background .15s}.doc-type-title{display:flex;align-items:center;justify-content:center;gap:9px}.doc-type-title svg{width:23px;height:23px;color:#828b98}.doc-type-title strong{font-size:15px;font-weight:600;white-space:nowrap}.doc-type-description{display:block;font-size:11px;color:#959ca6;margin-top:7px}.doc-type-options button:hover{border-color:#ffab73;background:#fffaf6}.doc-type-options .selected{border-color:var(--orange);background:color-mix(in srgb,var(--orange) 7%,white);box-shadow:inset 0 0 0 1px var(--orange);color:var(--orange)}.doc-type-options .selected svg{color:var(--orange)}.doc-type-options .selected .doc-type-description{color:#c36d34}.doc-type-selected{display:none;position:absolute;right:9px;top:7px;color:var(--orange);font-size:13px}.doc-type-options .selected .doc-type-selected{display:block}
@media(max-width:520px){.doc-type-options{gap:8px}.doc-type-options button{padding:14px 8px 12px}.doc-type-title{gap:5px}.doc-type-title strong{font-size:13px}.doc-type-title svg{display:none}.doc-type-description{font-size:10px}.doc-type-selected{right:6px;top:4px;font-size:11px}}

.preview-footer{display:flex;justify-content:flex-end;align-items:center;gap:14px;padding:18px 25px;background:#fff;border-top:1px solid var(--line)}.preview-footer span{font-size:12px;color:var(--muted)}
.preview-paper-control{flex-basis:100%;justify-content:flex-end;display:flex;align-items:center;max-width:100%;gap:8px;font-size:13px;font-weight:600;color:var(--ink)}.preview-paper-control select{width:330px;max-width:100%;margin:0;border-color:#d5d8dc;font-size:13px;min-height:39px;background:#fff}.preview-actions{align-items:center}
.preview-actions{justify-content:flex-end}.preview-toolbar>div:first-child{min-width:280px}
.paper-setup:not(.is-fixed){border-color:#e3e5e8;background:#fafafa;padding-top:18px;padding-bottom:18px}.paper-setup:not(.is-fixed)>label{color:var(--ink);font-size:14px;font-weight:650}.paper-setup:not(.is-fixed) select{border-color:#d5d8dc;font-size:14px;min-height:44px;color:var(--ink)}.paper-setup:not(.is-fixed) p{font-size:12px;color:#576272}
@media(max-width:520px){.preview-paper-control{width:100%;font-size:12px}.preview-paper-control select{width:auto;flex:1;min-width:0}.paper-setup:not(.is-fixed)>label,.paper-setup:not(.is-fixed) select{font-size:13px}}

.paper-setup{grid-template-columns:minmax(230px,1fr) 120px}.paper-setup.is-fixed{grid-template-columns:1fr;border-color:#e3e5e8;background:#fafafa}.fixed-paper{display:grid;gap:9px}.fixed-paper-heading{font-size:12px;font-weight:600;color:var(--ink)}.fixed-paper-spec{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.fixed-paper-spec strong{padding:5px 10px;border-radius:4px;background:#eceef0;color:var(--ink);font-size:13px}.fixed-paper-spec b{font-size:16px;color:var(--ink);font-weight:600}.fixed-paper>span:last-child{font-size:12px;color:#576272}@media(max-width:520px){.paper-setup{grid-template-columns:minmax(0,1fr) 85px}.paper-setup.is-fixed{grid-template-columns:1fr}.fixed-paper-spec b{font-size:15px}}

.preview-fixed-spec{display:flex;align-items:center;justify-content:space-between;gap:10px;width:330px;max-width:100%;min-height:39px;padding:9px 11px;border:1px solid #d5d8dc;border-radius:5px;background:#fff;font-size:13px;font-weight:400}.preview-fixed-spec strong{color:var(--orange-dark);font-weight:650}.preview-fixed-spec small{color:var(--muted);font-size:12px}@media(max-width:520px){.preview-fixed-spec{width:auto;flex:1;min-width:0;font-size:12px;gap:7px}.preview-fixed-spec small{font-size:11px}}

#preview-pages>svg{display:block;width:min(100%,794px);height:auto;box-shadow:0 3px 15px #202c3c16;background:#fff;fill:none;stroke:none;stroke-width:0;user-select:text;-webkit-user-select:text}#preview-pages>svg text{user-select:text;-webkit-user-select:text;cursor:text}

.mobile-remove-text{display:none}
@media(max-width:650px){
 #products .table-wrap{overflow:visible;border:0;border-radius:0}
 #products .product-table,#products .product-table tbody{display:block;width:100%;min-width:0}
 #products .product-table thead{display:none}
 #products .product-table tr{display:block;position:relative;padding:14px;margin-bottom:14px;border:1px solid #ddd;border-radius:8px;background:#fff}
 #products .product-table td{display:block;width:100%;padding:0;margin:0 0 12px;border:0;text-align:left}
 #products .product-table td[data-label]::before{display:block;content:attr(data-label);margin-bottom:6px;font-size:12px;font-weight:500;color:#444}
 #products .product-table .sequence-col{padding-bottom:10px;border-bottom:1px solid #eee;font-size:14px;font-weight:600;color:#222;text-align:left}
 #products .sequence-col::before{content:'产品 ';color:var(--orange)}
 #products .product-table input{display:block;width:100%;min-width:0;height:44px;font-size:16px;padding:10px;box-sizing:border-box}
 #products .product-table .line-amount{padding:10px;background:#fafafa;border-radius:4px;color:var(--orange);font-size:18px;text-align:right}
 #products .product-table .line-amount::before{text-align:left}
 #products .product-table td:last-child{margin-bottom:0}
 #products .row-actions{justify-content:flex-end}
 #products .row-actions .icon-button{display:flex;align-items:center;justify-content:center;gap:6px;width:auto;height:38px;padding:8px 12px;border:1px solid #ddd;border-radius:4px}
 .mobile-remove-text{display:inline;font-size:12px}
}

@media(max-width:650px){#products .product-table input[data-field=unit],#products .product-table input[data-field=quantity]{text-align:left}}

@media(max-width:650px){#products .product-table .line-amount{text-align:left}}

.preview-actions{flex-wrap:wrap}.preview-print-group{display:inline-flex;align-items:center;gap:8px}.preview-print-group>span{font-size:11px;color:var(--muted);white-space:nowrap}@media(max-width:650px){.preview-print-group{width:100%;justify-content:flex-end}.preview-print-group .button{flex:none}}

#preview-print{background:#76cd00;border-color:#76cd00;color:#fff}#preview-print:hover{background:#4f8f00;border-color:#4f8f00;color:#fff}#preview-print:focus-visible{outline-color:#76cd00}

.doc-type-options button{display:grid;grid-template-columns:26px max-content;column-gap:8px;row-gap:3px;justify-content:center;align-items:center;text-align:left}
.doc-type-title{display:contents}.doc-type-title svg{grid-column:1;grid-row:1/3;justify-self:center;stroke-width:1.55}.doc-type-title strong{grid-column:2;grid-row:1}.doc-type-description{grid-column:2;grid-row:2;text-align:left}
@media(max-width:520px){.doc-type-options button{grid-template-columns:max-content;column-gap:0}.doc-type-title strong,.doc-type-description{grid-column:1}}

.row-actions{gap:4px}.row-actions .copy-item{color:#697586}.row-actions .copy-item:hover{color:var(--orange);background:color-mix(in srgb,var(--orange) 7%,white)}.product-table th:nth-child(2){width:38%}.product-table th:nth-child(8){width:8%}
@media(max-width:650px){#products .row-actions{gap:10px;flex-wrap:wrap}}

.paper-setup:not(.is-fixed),.paper-setup.is-fixed{border-color:var(--orange)}

@media(min-width:651px){
 #products .product-table tbody tr:nth-child(even){background:#f6f7f8}
 #products .product-table td{padding-top:12px;padding-bottom:12px;border-bottom:1px solid #dfe3e7}
 #products .product-table .sequence-col{font-weight:600;color:#333}
}
@media(max-width:650px){
 #products .product-table tr{margin-bottom:24px;border-color:#d6dbe0}
 #products .product-table .sequence-col{width:calc(100% + 28px);margin:-14px -14px 16px;padding:11px 14px;background:#f4f5f7;border-bottom:1px solid #dfe3e7;border-radius:7px 7px 0 0}
 #products .product-table td{margin-bottom:16px}
 #products .product-table .sequence-col::before{color:#333}
}

@media(min-width:651px){#products .product-table tbody tr:nth-child(even){background:#edf0f3}#products .product-table td{border-bottom:2px solid #d4d9df}}
#products .product-table tr.new-copy{background:color-mix(in srgb,var(--orange) 9%,white);outline:2px solid var(--orange);outline-offset:-2px}
#products .product-table tr.new-copy .sequence-col{color:var(--orange-dark)}
.copy-indicator{display:block;margin-top:4px;font-size:10px;font-weight:500;white-space:nowrap;color:var(--orange-dark)}
@media(max-width:650px){#products .product-table tr.new-copy .sequence-col{background:color-mix(in srgb,var(--orange) 9%,white)}.copy-indicator{display:inline-block;margin:0 0 0 10px}}

.product-table th,.product-table td{vertical-align:middle}.product-table th{height:44px;line-height:1.5;box-sizing:border-box}.row-actions{align-items:center}

.purchase-note-field{grid-template-columns:1fr;margin-top:12px;margin-bottom:0}

.product-spec-cell input{width:100%}.product-spec-cell .spec-preset{margin-top:6px;max-width:210px;font-size:11px;height:30px;padding:4px 8px;background:#fff;color:#5c6673}
@media(max-width:650px){#products .product-spec-cell .spec-preset{max-width:none;width:100%;height:40px;font-size:14px}}

.unit-entry{position:relative;width:100%}.unit-entry input{padding-right:25px}.unit-preset{position:absolute;right:0;top:0;width:25px;height:35px;margin:0;border:0;background:transparent;color:transparent;padding:0;cursor:pointer}.unit-preset option{color:#222;background:#fff}
.product-presets-row label{display:flex;align-items:center;gap:12px;font-size:12px;color:#697586}.product-presets-row .spec-preset{width:260px;max-width:100%;margin:0;height:34px;background:#fff}
@media(min-width:651px){
 #products .product-table,#products .product-table thead,#products .product-table tbody{display:block}
 #products .product-table tr{display:grid;grid-template-columns:5% 38% 14% 7% 8% 10% 10% 8%;align-items:center}
 #products .product-table th,#products .product-table td{width:auto;min-width:0;border-bottom:0}
 #products .product-table tbody tr{border-bottom:2px solid #d4d9df}
 #products .product-table .product-presets-row{grid-column:1/-1;padding:8px 12px 12px 5%;border-top:1px dashed #dfe3e7}
}
@media(max-width:650px){#products .unit-preset{height:44px;width:30px}#products .product-presets-row{border-top:1px dashed #dfe3e7;padding-top:12px}.product-presets-row label{display:block}.product-presets-row .spec-preset{width:100%;margin-top:8px;height:40px;font-size:14px}}

.unit-preset{appearance:none;background-image:linear-gradient(45deg,transparent 50%,#667282 50%),linear-gradient(135deg,#667282 50%,transparent 50%);background-position:calc(50% - 3px) 50%,calc(50% + 3px) 50%;background-size:6px 6px;background-repeat:no-repeat}

@media(min-width:651px){#products .product-table{min-width:1100px}#products .product-table tr{grid-template-columns:4% 10% 14% 22% 10% 6% 7% 9% 10% 8%}#products .product-table th:nth-child(4),#products .product-table th:nth-child(5){text-align:left}#products .product-table th:nth-child(5),#products .product-table th:nth-child(6){text-align:center}}

.manual-entry{border-color:var(--orange)!important;background:color-mix(in srgb,var(--orange) 6%,white)!important;box-shadow:0 0 0 2px var(--orange)20}
.spec-toggle{position:absolute;right:0;top:0;width:26px;height:35px;border:0;background:transparent;color:#667282;font-size:16px;cursor:pointer}
.spec-composer{position:absolute;top:calc(100% + 6px);right:0;width:300px;max-width:calc(100vw - 65px);background:#fff;border:1px solid #d5d8dc;box-shadow:0 6px 20px #0002;border-radius:7px;padding:14px;z-index:20;text-align:left}
.spec-composer>label{display:block;font-size:12px;color:#444;margin:10px 0}.spec-composer input,.spec-composer select{width:100%;margin-top:6px;height:38px;font-size:13px}.spec-composer .unit-preset{width:25px;height:38px;margin-top:0}.spec-composer .unit-entry{margin-top:6px}.spec-composer .unit-entry input{margin-top:0}.spec-manual{border:0;background:color-mix(in srgb,var(--orange) 7%,white);color:var(--orange-dark);padding:8px 10px;border-radius:4px;width:100%;text-align:left}.spec-composer .button{width:100%;margin-top:4px}
@media(min-width:651px){#products .product-table{min-width:0;width:100%}#products .product-table tr{grid-template-columns:4% 9% 12% 24% 8% 7% 7% 10% 11% 8%}#products .product-table td,#products .product-table th{padding-left:4px;padding-right:4px}#products .product-table input{padding-left:6px;font-size:11px}.unit-entry input{padding-right:24px!important}.product-table th:nth-child(5){text-align:left}.product-table th:nth-child(6),.product-table th:nth-child(7){text-align:center}}
@media(max-width:650px){#products .spec-toggle{height:44px;width:30px}#products .spec-composer input{font-size:16px;height:44px}.spec-composer .unit-preset{height:44px}}

#products input[data-field=remark]{text-align:center}

#products .table-wrap{overflow:visible}

select,.unit-preset,.spec-toggle{appearance:none;background-image:linear-gradient(45deg,transparent 50%,#667282 50%),linear-gradient(135deg,#667282 50%,transparent 50%);background-position:calc(100% - 15px) 50%,calc(100% - 9px) 50%;background-size:6px 6px;background-repeat:no-repeat}
select{padding-right:30px}.unit-preset,.spec-toggle{background-position:calc(50% - 3px) 50%,calc(50% + 3px) 50%}
.spec-toggle:hover{background-color:#fff0e5;border-radius:0 4px 4px 0}.spec-toggle:active{background-color:#ffe0c7}
.spec-manual{border:1px solid color-mix(in srgb,var(--orange) 50%,white);font-weight:600;cursor:pointer;transition:background-color .15s,border-color .15s,color .15s,box-shadow .15s}
.spec-manual:hover{background:var(--orange);border-color:var(--orange);color:#fff;box-shadow:0 2px 6px var(--orange)30}.spec-manual:active{background:#df5900;border-color:#df5900;box-shadow:inset 0 2px 4px #0002}.spec-manual:focus-visible{outline:2px solid var(--orange);outline-offset:2px}
input.manual-entry{caret-color:var(--orange);cursor:text}input.manual-entry:focus{border-color:var(--orange);box-shadow:0 0 0 3px var(--orange)25}

#copy-settings{grid-column:1/-1;border-top:1px solid #e4e6e9;padding-top:14px;margin-top:2px}#copy-settings h3{display:flex;align-items:center;gap:15px;font-size:13px;margin:0 0 12px;flex-wrap:wrap}#copy-settings .fields{margin-bottom:0}#copy-settings .check-label{font-size:11px}

#copy-count,#print-template,#preview-paper-template{appearance:none;background-color:#fff;background-image:linear-gradient(45deg,transparent 50%,#667282 50%),linear-gradient(135deg,#667282 50%,transparent 50%);background-position:calc(100% - 15px) 50%,calc(100% - 9px) 50%;background-size:6px 6px;background-repeat:no-repeat;padding-right:30px}
.spec-entry{display:grid;grid-template-columns:minmax(0,1fr) 27px;gap:5px}.spec-entry>input{padding-right:6px!important}.spec-entry>.spec-toggle{position:static;width:27px;border:1px solid #dce1e7;border-radius:4px;background-color:#fff;height:35px}
.spec-composer{width:330px;max-height:70vh;overflow:auto}.spec-composer .unit-entry{display:block}.choice-heading{margin:12px 0 8px;font-size:12px;color:#444}.choice-radios{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.spec-composer .choice-radios label{display:flex;align-items:center;gap:7px;padding:8px;border:1px solid #e2e5e8;border-radius:4px;font-size:12px;color:#444;cursor:pointer;min-width:0}.spec-composer .choice-radios label:hover{background:color-mix(in srgb,var(--orange) 7%,white);border-color:color-mix(in srgb,var(--orange) 50%,white)}.spec-composer .choice-radios label:has(input:checked){background:#fff1e5;border-color:var(--orange);color:#d95500}.spec-composer .choice-radios input[type=radio]{appearance:auto;flex:none;width:14px;height:14px;padding:0;margin:0;accent-color:var(--orange);box-shadow:none}
@media(max-width:650px){#products .spec-entry>.spec-toggle{height:44px;width:27px}.spec-composer{max-width:calc(100vw - 65px)}}

#products .spec-composer .choice-radios input[type=radio]{flex:none;width:14px;height:14px;padding:0;margin:0;box-shadow:none}

.spec-entry{gap:0;grid-template-columns:minmax(0,1fr) 25px;border:1px solid #dce1e7;border-radius:4px;background:#fafbfc;box-sizing:border-box;height:35px}.spec-entry>input{border:0!important;border-radius:4px 0 0 4px;height:33px!important;background:transparent;width:100%;box-shadow:none!important}.spec-entry>.spec-toggle{width:25px;height:33px;border:0;border-left:1px solid #e1e5e9;border-radius:0 4px 4px 0;background-color:transparent}.spec-entry:focus-within{border-color:var(--orange);box-shadow:0 0 0 2px var(--orange)15}.spec-entry:has(>input.manual-entry){background:color-mix(in srgb,var(--orange) 6%,white);border-color:var(--orange)}
.spec-composer{width:280px}.name-composer{width:280px}.unit-composer{width:132px}.spec-composer .thickness-options{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:650px){#products .spec-entry{height:44px}#products .spec-entry>input{height:42px!important}#products .spec-entry>.spec-toggle{height:42px;width:25px}.spec-composer{max-width:calc(100vw - 65px)}}

#order-form>#supplier-section{margin-top:0;border-top:0;padding-top:0;padding-bottom:16px;border-bottom:1px solid #edf0f3;margin-bottom:22px}

.optional-contact-hint{font-size:11px;color:#7b8490;line-height:1.6;margin:-5px 0 20px}#supplier-section .fields{margin-bottom:0}#order-form .form-panel>#supplier-section{margin-top:0;padding-top:0;border-top:0;margin-bottom:22px;padding-bottom:18px;border-bottom:1px solid #edf0f3}

@media(min-width:651px){#products .product-table tr{grid-template-columns:4% 18% 15% 16% 12% 7% 7% 6% 7% 8%}#products .product-table .line-amount{padding-right:6px}}

.info-heading{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}.info-heading small{font-size:11px;font-weight:400;color:#8a929d;line-height:1.5}

#parties .fields{margin-bottom:0}.optional-contact-hint{margin:12px 0 20px;line-height:1.7}

.party-info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px;margin-bottom:26px}.party-info-grid #supplier-section,.party-info-grid #parties{margin:0;padding:0;border:0;min-width:0}.party-info-grid .fields{grid-template-columns:1fr;gap:14px;margin:0}.party-info-grid .info-heading{min-height:46px;align-content:flex-start;margin-bottom:14px;gap:5px 10px}.party-info-grid .info-heading small{flex-basis:100%}
@media(max-width:760px){.party-info-grid{grid-template-columns:1fr;gap:24px}.party-info-grid .info-heading{min-height:0}}

#quote-contact-section .contact-fields,#sales-contact-section .contact-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:16px 0 20px}#sales-contact-section{margin-top:18px}

.spec-composer .choice-radios .manual-choice,.spec-composer .manual-choice-input{grid-column:1/-1}.spec-composer .manual-choice-input{min-width:0;margin:0 0 4px}.spec-composer .manual-choice-input input{margin-top:0;width:100%;padding:8px!important;border-color:color-mix(in srgb,var(--orange) 50%,white);background:#fff8f1;caret-color:var(--orange)}

.quote-validity{flex-wrap:wrap}.quote-validity>span{line-height:1.6}

#sales-issuer-section .issuer-fields{grid-template-columns:minmax(0,1fr);max-width:540px}.issuer-label{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}.issuer-label small{font-size:11px;font-weight:400;color:var(--muted);line-height:1.6}

.preview-split{position:relative;display:inline-flex;min-width:0}.preview-split>#generate{border-radius:5px 0 0 5px}.preview-type-toggle{display:flex;align-items:center;justify-content:center;width:30px;min-height:39px;padding:0;border:1px solid var(--orange);border-left-color:#ffffff55;border-radius:0 5px 5px 0;background:var(--orange);color:#fff;font-size:16px;flex:none}.preview-type-toggle:hover{background:var(--orange-dark)}.preview-type-menu{position:absolute;right:0;bottom:calc(100% + 6px);width:158px;padding:5px;background:#fff;border:1px solid #e2e6eb;border-radius:6px;box-shadow:0 5px 18px #0002;z-index:25}.preview-type-menu button{display:block;width:100%;padding:10px;text-align:left;border:0;border-radius:4px;background:#fff;color:var(--ink);font-size:13px}.preview-title-switch{display:flex;align-items:center;gap:8px}.preview-title-switch .preview-type-toggle{border-radius:4px;min-height:28px}.preview-title-switch .preview-type-menu{bottom:auto;top:calc(100% + 6px);left:0;right:auto}
@media(max-width:520px){.action-buttons>.preview-split{flex:1}.action-buttons .preview-split>#generate{padding:9px 7px;font-size:11px}.preview-type-toggle{width:25px}}

.expanded-section-heading{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;font-size:13px;color:#596371;line-height:1.7}.expanded-section-heading span{font-size:11px;font-weight:400;color:#9da4ae}.expanded-section-heading>b{font-weight:600}

.preview-title-switch .preview-split>#preview-title-button{border-radius:5px 0 0 5px}.preview-title-switch .preview-type-toggle{border-radius:0 5px 5px 0;min-height:39px}.preview-title-switch #preview-title{color:#fff;font-size:13px;font-weight:500}

/* Compact preview toolbar; short sales sheets fit the available screen height. */
.preview-toolbar{padding:8px 16px;gap:10px;align-items:center}.preview-toolbar>div:first-child{min-width:155px}.preview-toolbar p{font-size:10px;margin:4px 0 0;line-height:1.3}.preview-actions{gap:5px;flex:1}.preview-toolbar .button,.preview-title-switch .preview-type-toggle{min-height:31px;padding:5px 10px;font-size:12px}.preview-title-switch .preview-type-toggle{width:26px;padding:0}.preview-title-switch #preview-title{font-size:12px}.preview-paper-control{font-size:11px;gap:6px}.preview-paper-control select{height:30px;min-height:30px;width:310px;font-size:11px;padding:4px 30px 4px 8px}.preview-fixed-spec{min-height:30px;padding:4px 8px;width:310px;font-size:11px}.preview-fixed-spec small{font-size:10px}#preview-pages{padding:12px 16px;gap:12px}
.compact-sales-preview #preview-pages>svg{width:auto;max-width:100%;height:auto;max-height:calc(min(94vh,1300px) - 126px)}
@media(max-width:650px){.preview-toolbar{padding:7px 10px;gap:6px}.preview-toolbar>div:first-child{min-width:0;width:100%}.preview-toolbar p{display:none}.preview-actions{gap:5px}.preview-print-group{width:auto}.preview-toolbar .button{flex:none;min-height:31px;font-size:11px;padding:5px 8px}.preview-paper-control{justify-content:flex-start}.preview-paper-control select,.preview-fixed-spec{flex:1;width:auto}.preview-actions{justify-content:flex-start}#preview-pages{padding:8px}.compact-sales-preview #preview-pages>svg{max-height:calc(94vh - 155px)}}

.preview-toolbar>div:first-child{min-width:0;flex:1}.preview-toolbar .preview-actions{flex:0 1 auto;align-self:flex-start;padding-top:1px}.preview-toolbar>div:first-child>.preview-paper-control{justify-content:flex-start;margin-top:5px;flex-basis:auto;gap:7px}.preview-toolbar>div:first-child>.preview-paper-control select{width:310px;max-width:100%;min-width:0}.preview-toolbar>div:first-child>.preview-paper-control .preview-fixed-spec{width:280px}.preview-toolbar .preview-actions .preview-print-group{width:auto}
@media(max-width:650px){.preview-toolbar>div:first-child{width:100%;flex-basis:100%}.preview-toolbar .preview-actions{flex:1;width:100%;padding:0}.preview-toolbar>div:first-child>.preview-paper-control select{flex:1;width:auto}.compact-sales-preview #preview-pages>svg{max-height:calc(94vh - 165px)}}

.preview-toolbar{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:8px}.preview-toolbar>div:first-child{flex:none;min-width:0}.preview-paper-center{min-width:0;text-align:center;justify-self:center}.preview-paper-center #preview-description{display:block;margin:0 0 4px;font-size:10px;line-height:1.4}.preview-paper-center .preview-paper-control{justify-content:center;flex-basis:auto;margin:0;font-size:11px}.preview-paper-center .preview-paper-control select{width:280px;min-width:0;height:30px;min-height:30px}.preview-paper-center .preview-fixed-spec{width:280px}.preview-toolbar .preview-actions{display:grid;grid-template-columns:repeat(3,auto);justify-content:end;gap:5px;align-self:center;width:auto;flex:none}.preview-toolbar .preview-actions .preview-print-group{width:auto;justify-content:flex-end}.preview-toolbar .preview-actions .button{padding:5px 8px;font-size:11px}.compact-sales-preview #preview-pages>svg{max-height:calc(min(94vh,1300px) - 110px)}
@media(max-width:900px){.preview-toolbar{grid-template-columns:auto minmax(0,1fr)}.preview-paper-center{justify-self:end}.preview-toolbar .preview-actions{grid-column:1/-1;display:flex;flex-wrap:wrap;justify-content:center;width:100%}.preview-toolbar>div:first-child{width:auto}.compact-sales-preview #preview-pages>svg{max-height:calc(94vh - 155px)}}
@media(max-width:520px){.preview-toolbar{grid-template-columns:1fr}.preview-toolbar>div:first-child{justify-self:center}.preview-paper-center{justify-self:center;width:100%}.preview-paper-center .preview-paper-control select,.preview-paper-center .preview-fixed-spec{width:auto;flex:1;max-width:280px}.preview-toolbar .preview-actions{grid-column:1;gap:4px}.compact-sales-preview #preview-pages>svg{max-height:calc(94vh - 195px)}}

@media(min-width:901px){.preview-toolbar{grid-template-columns:minmax(0,1fr) minmax(0,360px) minmax(0,1fr)}}

/* Paper selector sits beside the preview type, with its description below. */
.preview-toolbar{grid-template-columns:auto auto minmax(0,1fr);gap:12px}.preview-paper-center{justify-self:start;text-align:left}.preview-paper-center .preview-paper-control{justify-content:flex-start}.preview-paper-center #preview-description{margin:4px 0 0;line-height:1.4}.preview-toolbar .preview-actions{justify-self:end}
@media(max-width:900px){.preview-toolbar{grid-template-columns:auto minmax(0,1fr);gap:8px}.preview-paper-center{justify-self:start}.preview-toolbar .preview-actions{grid-column:1/-1;justify-self:stretch}.preview-paper-center .preview-paper-control select,.preview-paper-center .preview-fixed-spec{width:250px;max-width:100%}}
@media(max-width:520px){.preview-toolbar{grid-template-columns:auto minmax(0,1fr);gap:7px}.preview-toolbar>div:first-child{justify-self:start}.preview-paper-center{width:100%;min-width:0}.preview-paper-center .preview-paper-control{flex-wrap:wrap;gap:3px}.preview-paper-center .preview-paper-control select,.preview-paper-center .preview-fixed-spec{flex-basis:100%;width:100%;font-size:10px}.preview-paper-center #preview-description{font-size:9px}.preview-toolbar .preview-actions{grid-column:1/-1}.compact-sales-preview #preview-pages>svg{max-height:calc(94vh - 195px)}}

.preview-toolbar .preview-actions{display:flex;flex-wrap:nowrap;gap:5px;justify-content:flex-end;align-items:center;min-width:0}.preview-toolbar .preview-actions>.button,.preview-toolbar .preview-actions .preview-print-group{flex:none}.preview-toolbar .preview-actions .button{padding:5px 7px;min-height:31px;font-size:11px}.preview-paper-center .preview-paper-control select,.preview-paper-center .preview-fixed-spec{width:240px}
@media(max-width:1100px){.preview-toolbar{grid-template-columns:auto minmax(0,1fr)}.preview-toolbar .preview-actions{grid-column:1/-1;width:100%;justify-content:flex-end}.preview-paper-center{justify-self:start}}
@media(max-width:520px){.preview-toolbar .preview-actions{gap:3px;justify-content:center}.preview-toolbar .preview-actions .button{padding:5px 4px;font-size:10px;min-height:31px}.preview-paper-center .preview-paper-control select,.preview-paper-center .preview-fixed-spec{width:100%}}

#preview-dialog{overflow:hidden}.preview-scroll{height:calc(100% - 8px);margin:4px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;border-radius:5px;scrollbar-width:thin;scrollbar-color:#a4aab2 transparent}.preview-scroll::-webkit-scrollbar{width:8px;height:8px}.preview-scroll::-webkit-scrollbar-thumb{background:#a4aab2;border:2px solid #e9ecf0;border-radius:8px}.preview-scroll::-webkit-scrollbar-track{background:transparent}.preview-scroll::-webkit-scrollbar-corner{background:transparent}

#preview-pages>svg{aspect-ratio:auto;overflow:visible}#preview-pages>svg text{stroke:none;font-synthesis:none;text-rendering:optimizeLegibility}

/* Keep the compact toolbar without resizing the document to the viewport height. */
#preview-pages>svg,.compact-sales-preview #preview-pages>svg{width:min(100%,794px);max-width:100%;height:auto;max-height:none;aspect-ratio:auto;flex-shrink:0}

/* Narrow preview: stack centered controls, allow action buttons to wrap naturally. */
@media(max-width:1100px){
 .preview-toolbar{grid-template-columns:minmax(0,1fr);justify-items:center;gap:8px;padding:9px 12px}
 .preview-toolbar>div:first-child{grid-column:1;justify-self:center;width:auto;min-width:0}
 .preview-title-switch{justify-content:center}
 .preview-paper-center{grid-column:1;justify-self:center;width:100%;text-align:center}
 .preview-paper-center .preview-paper-control{justify-content:center;flex-wrap:wrap;gap:6px}
 .preview-paper-center .preview-paper-control select,.preview-paper-center .preview-fixed-spec{width:240px;max-width:100%;flex:0 1 240px}
 .preview-toolbar .preview-actions{grid-column:1;justify-self:center;width:100%;justify-content:center;flex-wrap:wrap;gap:6px}
 .preview-toolbar .preview-actions .preview-print-group{justify-content:center}
}
@media(max-width:520px){
 .preview-toolbar{padding:8px;gap:7px}
 .preview-paper-center .preview-paper-control select,.preview-paper-center .preview-fixed-spec{flex-basis:240px;font-size:11px}
 .preview-toolbar .preview-actions .button{font-size:11px;padding:6px 8px;min-height:33px}
}

/* Give the full paper/template label enough room in preview. */
.preview-paper-center #preview-paper-template{width:360px;max-width:100%;flex:0 1 360px;font-size:12px;padding-right:30px}
@media(min-width:1101px){.preview-paper-center #preview-paper-label{flex-wrap:nowrap}}
@media(max-width:1100px){.preview-paper-center #preview-paper-label{width:100%;flex-direction:column;gap:5px}.preview-paper-center #preview-paper-template{width:min(100%,420px);flex:none;font-size:12px}.preview-paper-center{max-width:100%}}
@media(max-width:520px){.preview-paper-center #preview-paper-template{width:100%;font-size:11px;padding-left:7px;padding-right:25px}}

.preview-paper-center .paper-suggestion{color:#8a4209;font-weight:600}
#preview-paper-hint{margin:4px 0 0;font-size:11px}

@media(max-width:520px){
 .preview-paper-center #preview-paper-label{align-items:stretch;text-align:left;gap:5px}
 .preview-paper-center #preview-paper-template{width:100%;max-width:none;min-height:38px;font-size:12px}
}
.contract-transport-field{font-size:12px;color:#576272}
.contract-transport-options{display:flex;flex-wrap:wrap;gap:6px 12px;margin-top:6px}
.contract-transport-options label{display:inline-flex;align-items:center;gap:4px}
.contract-transport-options input[type=radio]{width:auto;height:auto;margin:0}

.vehicle-plate-controls{display:grid;grid-template-columns:58px 58px minmax(0,1fr);gap:5px;align-items:center;margin-top:6px}
.vehicle-plate-controls #vehicle-suffix{margin:0;min-width:0;height:38px}
.vehicle-plate-controls .vehicle-picker{display:flex;align-items:center;justify-content:space-between;gap:8px;height:38px;min-width:58px;padding:4px 8px;border:1px solid var(--line);border-radius:5px;background:#fafbfc;color:var(--ink);font-size:12px}
.vehicle-picker[aria-expanded=true]{border-color:var(--orange)}
#vehicle-plate-field{min-width:0}

.vehicle-plate-status{margin-top:7px;font-size:12px;color:#576272}
#vehicle-plate-display{margin-inline-start:5px;color:var(--orange);font-size:16px;font-weight:700;overflow-wrap:anywhere}
.vehicle-keypad{margin-top:7px;padding:6px;border:1px solid var(--line);border-radius:5px;background:#fafbfc;font-size:12px;color:#576272}
.vehicle-code-keys{display:grid;grid-template-columns:repeat(auto-fit,minmax(28px,1fr));gap:4px}
#vehicle-keys{display:grid;gap:4px}
#vehicle-keys>div{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:4px}
.vehicle-keypad button{min-height:29px;padding:3px;border:1px solid var(--line);border-radius:4px;background:#fff;color:var(--ink)}
.vehicle-keypad button:hover,.vehicle-keypad button[aria-pressed=true]{border-color:var(--orange)}
#vehicle-keys :is(.vehicle-key-delete,.vehicle-key-confirm){grid-column:span 2}
#vehicle-keys .vehicle-key-confirm{border-color:var(--orange);color:var(--orange)}
#contract-invoice-slot #invoice-type{display:flex;flex-wrap:wrap;gap:8px 14px;margin:10px 0;padding:8px 12px;border:1px solid var(--line);border-radius:5px}
#contract-invoice-slot #invoice-type label{font-size:12px}
:is(.method-choices,#contract-invoice-slot,.contract-transport-options) label{display:inline-flex;align-items:center;gap:7px;cursor:pointer}
:is(.method-choices,#contract-invoice-slot,.contract-transport-options) label input:is([type=checkbox],[type=radio]){
 appearance:none;display:grid;place-items:center;width:15px;height:15px;flex:none;margin:0;padding:0;
 border:1px solid #bfc6cd;border-radius:4px;background:#fff;box-shadow:inset 0 1px 2px #0002;cursor:pointer
}
:is(.method-choices,#contract-invoice-slot,.contract-transport-options) label input:checked{border-color:var(--orange);background:var(--orange);box-shadow:none}
:is(.method-choices,#contract-invoice-slot,.contract-transport-options) label input:checked::after{
 content:'';width:4px;height:8px;border:solid #fff;border-width:0 2px 2px 0;transform:translateY(-1px) rotate(45deg)
}
:is(.method-choices,#contract-invoice-slot,.contract-transport-options) label input:focus-visible{outline:2px solid var(--orange);outline-offset:2px}
#document-kind-start{height:0;scroll-margin-top:var(--steel-sticky-top,0px)}
#document-info>#document-section-title{padding:9px 12px;border-inline-start:3px solid var(--orange);border-radius:4px;background:color-mix(in srgb,var(--orange) 6%,white)}
#document-info>#document-section-title::after{content:none}
#document-kind{position:sticky;top:var(--steel-sticky-top,0px);z-index:20;background:#fff;padding:8px 0 10px}
#document-kind .editor-top{margin-top:0}

@media(max-width:520px){#document-kind{padding:5px 0 7px}#document-kind h2{margin-bottom:6px}#document-kind .doc-type-options button{padding-block:6px}}

.product-name-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;align-items:start}
.product-name-columns .choice-radios{grid-template-columns:minmax(0,1fr)}
.spec-composer input[type=search]::-webkit-search-cancel-button,input[data-field=name]::-webkit-search-cancel-button,#sc-name::-webkit-search-cancel-button{appearance:none}

.spec-composer.suite-picker-panel{padding:9px;max-width:calc(100vw - 16px)}
.spec-composer .thickness-options{grid-template-columns:repeat(auto-fill,minmax(44px,1fr))}
.spec-composer .thickness-options button{padding-inline:6px;white-space:nowrap;overflow-wrap:normal;font-variant-numeric:tabular-nums}
.spec-composer:not(.unit-composer) .suite-picker-grid button{border:1px solid var(--line);background:#fff;color:var(--ink)}
.spec-composer:not(.unit-composer) .suite-picker-grid button:hover,
.spec-composer:not(.unit-composer) .suite-picker-grid button[aria-pressed=true]{border-color:var(--orange)}
.spec-composer:not(.unit-composer) .suite-picker-grid:has(button:hover) button[aria-pressed=true]:not(:hover){border-color:var(--line)}
.product-name-columns .suite-picker-grid{grid-template-columns:minmax(0,1fr)}
.unit-composer .suite-picker-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.unit-composer .suite-picker-grid button{text-align:left}
.preview-type-menu.suite-picker-grid{grid-template-columns:minmax(0,1fr);width:max-content;min-width:140px;max-width:calc(100vw - 16px)}
.preview-type-menu.suite-picker-grid button{text-align:left;white-space:nowrap;padding:6px 10px}
.preview-paper-center .suite-select{width:min(100%,360px);margin:0}
.preview-paper-center .suite-picker-panel{width:max(100%,280px)}

.spec-entry>.spec-toggle{display:grid;place-items:center;background-image:none}
.preview-type-toggle{--suite-chevron:currentColor}
.preview-paper-center .suite-select-trigger{font-weight:400}
.preview-paper-center .suite-picker-panel{width:max-content;min-width:100%;max-width:calc(100vw - 16px)}
.preview-paper-center .suite-picker-panel button{white-space:nowrap}

#vehicle-keys .vehicle-key-confirm:hover{background:color-mix(in srgb,var(--orange) 12%,white);border-color:var(--orange-dark);color:var(--orange-dark)}
#paper-setup{grid-template-columns:minmax(0,1fr);align-items:start}
.paper-setup-title{font-size:14px;margin:0}
.paper-template-grid{display:grid;grid-template-columns:minmax(155px,1fr) minmax(0,1.25fr);gap:10px}
.paper-template-card{display:grid;align-content:start;gap:7px;min-width:0;padding:10px;border:1px solid var(--line);border-radius:6px;background:#fff;color:#536071;font-size:12px}
.paper-template-card strong{color:var(--ink);font-size:13px}
#sales-paper-controls{display:grid;grid-template-columns:minmax(0,1fr) 65px;gap:7px;align-items:end}
#sales-paper-controls .suite-select{margin-top:4px}
#sales-paper-controls label:first-child .suite-select{margin-top:0}
#open-sales-paper{min-height:34px}
@media(max-width:650px){
 .paper-template-grid{grid-template-columns:minmax(0,1fr)}
}
#products .table-bottom .product-bottom-add{display:flex;flex-wrap:wrap;gap:8px;margin-inline-end:auto}
#copy-count+.suite-select>.suite-picker-panel{width:100%;min-width:76px}
.preview-paper-caption{white-space:nowrap;flex:none}
#print-template+.suite-select>.suite-picker-panel{width:100%;max-width:100%}
.paper-title-line{display:flex;align-items:baseline;gap:4px 12px;flex-wrap:wrap}
.paper-title-line>span:first-child{white-space:nowrap}
#template-hint{min-width:0;color:#657383;font-size:11px;font-weight:400;line-height:1.45}
#paper-warning-icon{width:15px;height:15px;color:var(--orange)}
.dimension-options button{text-align:left;padding-inline-start:9px}
#products .product-table tfoot{display:block;width:100%}
#products .product-table tfoot .product-total-row{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:4px 14px;margin:0;padding:8px 12px;background:#fafbfc;border:0;border-top:1px solid var(--line)}
#products .product-total-row>td{display:flex;align-items:baseline;gap:4px 9px;width:auto;height:auto;margin:0;padding:3px 0;border:0;background:transparent;color:#536071;font-size:12px}
#products .product-total-row .product-total-figure{margin-inline-start:auto;flex-wrap:wrap;justify-content:flex-end}
#product-detail-total{font-weight:650;color:var(--orange);font-variant-numeric:tabular-nums;white-space:nowrap}
#products .product-total-row .product-paper-warning{flex:1 1 260px;align-items:center;flex-wrap:wrap;min-width:0;color:var(--orange-dark)}
.product-paper-message{display:inline-flex;align-items:center;gap:5px;min-width:0}
#go-to-paper{min-height:30px;padding:4px 9px;font-size:12px}
@media(max-width:650px){
 #products .product-total-row .product-paper-warning{flex-basis:100%}
}

.spec-composer.opens-above{top:auto;bottom:calc(100% + 6px)}
.spec-composer.suite-picker-panel{z-index:32;overscroll-behavior:contain}
.specification-composer{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);width:520px;gap:12px}
.spec-option-group{min-width:0}
.spec-option-group>label{display:block;margin:0 0 8px;font-size:12px;color:#444}
.spec-option-group>label>.unit-entry{display:block}
@media(max-width:650px){.specification-composer{grid-template-columns:minmax(0,1fr);width:320px}}
#a4-paper-card,#a4-paper-card[aria-current=true]{background:#eceff2;border-color:#cfd6de;color:#536071}
#a4-paper-card strong{color:#536071}
.paper-template-grid{gap:16px}

#preview-dialog[open] .preview-paper-center:has(#preview-paper-hint:not([hidden])) #preview-paper-template+.suite-select .suite-select-trigger{
 border-color:var(--orange);
 animation:sales-paper-attention 1.6s ease-in-out infinite;
}
@keyframes sales-paper-attention{
 0%,100%{border-color:var(--orange);box-shadow:0 0 0 2px color-mix(in srgb,var(--orange) 18%,transparent)}
 50%{border-color:var(--line);box-shadow:0 0 0 0 transparent}
}
@media(prefers-reduced-motion:reduce){
 #preview-dialog[open] .preview-paper-center:has(#preview-paper-hint:not([hidden])) #preview-paper-template+.suite-select .suite-select-trigger{animation:none}
}

.suite-paper-options{container-type:inline-size}
.preview-paper-center .suite-picker-panel.suite-paper-options{width:min(396px,calc(100vw - 16px))}
.suite-paper-options .suite-paper-option{
 display:grid;grid-template-columns:minmax(0,104px) 117px minmax(0,1fr);align-items:center;align-content:center;gap:3px 6px;
 text-align:left;white-space:normal;
}
.suite-paper-option>span:nth-child(2){white-space:nowrap;font-variant-numeric:tabular-nums}
.suite-paper-option>span:last-child{font-size:.9em;opacity:.8;white-space:normal}
.preview-paper-center .suite-paper-options:has(.paper-option-recommendation){width:min(482px,calc(100vw - 16px))}
@container(min-width:415px){
 .suite-paper-options .suite-paper-option>span:last-child{white-space:nowrap}
}
@container(max-width:454px){
 .suite-paper-options:has(.paper-option-recommendation) .suite-paper-option{grid-template-columns:minmax(0,1fr) 117px}
 .suite-paper-options:has(.paper-option-recommendation) .suite-paper-option>span:last-child{grid-column:1/-1}
}
@container(max-width:350px){
 .suite-paper-options .suite-paper-option{grid-template-columns:minmax(0,1fr) 117px}
 .suite-paper-option>span:last-child{grid-column:1/-1}
}

.paper-option-recommendation{display:inline-block;margin-inline-start:5px;padding:1px 4px;border-radius:3px;background:#fff0e4;color:#914006;font-size:10px;font-weight:650;white-space:nowrap}
:is(#products .section-head h2,#supplier-section .info-heading,#parties .info-heading,#document-kind>h2,#notes-heading)::before{
 content:'';display:inline-block;width:8px;height:8px;flex:none;align-self:center;margin-inline-end:8px;border-radius:2px;background:var(--orange);vertical-align:2px
}
:is(#supplier-section .info-heading,#parties .info-heading,#notes-heading){column-gap:8px}
.form-panel :is(#supplier-section .info-heading,#parties .info-heading,#notes-heading)::before{margin-inline-end:0}

.preview-paper-controls{display:flex;align-items:center;gap:7px;min-width:0}
.preview-paper-controls>#preview-paper-label{min-width:0;flex:1 1 auto}
.preview-paper-center #preview-copy-label{display:flex;align-items:center;gap:5px;flex:none;width:auto;white-space:nowrap}
#preview-copy-count+.suite-select{width:65px;margin:0}
#preview-copy-count+.suite-select .suite-picker-panel{width:100%;max-width:100%}
@media(max-width:650px){
 .preview-paper-controls{flex-direction:column;align-items:flex-start;gap:5px}
}

#confirm-title:focus,#exit-heading:focus{outline:none}
.bottom-note .online-brand-logo{width:13px;height:13px;fill:var(--orange);stroke:none;vertical-align:-2px;margin-inline-end:5px}

#preview-toolbar:focus{outline:none}@media(max-width:650px){#preview-dialog{position:fixed;inset:12px 8px auto;margin:0;width:calc(100vw - 16px);height:calc(100dvh - 24px);max-width:none;max-height:calc(100dvh - 24px)}}

:is(.method-choices,#contract-invoice-slot,.contract-transport-options) label input:is([type=checkbox],[type=radio]){-webkit-appearance:none;box-sizing:border-box;vertical-align:middle;line-height:1}@media(max-width:650px){:is(.method-choices,#contract-invoice-slot,.contract-transport-options) label{min-height:30px}:is(.method-choices,#contract-invoice-slot,.contract-transport-options) label input:is([type=checkbox],[type=radio]){width:16px;height:16px}}

.doc-type-switch-hint{font-size:12px;color:#858585;margin:6px 0 10px;line-height:1.5}
#document-kind .doc-type-options{display:flex;gap:0;padding:4px 4px 0;background:#f3f4f6;border-bottom:1px solid #dce1e7;border-radius:6px 6px 0 0}
#document-kind .doc-type-options button{display:flex;flex:1;align-items:center;justify-content:center;gap:7px;padding:11px 12px;border:0;border-bottom:3px solid transparent;border-radius:4px 4px 0 0;background:transparent;box-shadow:none;text-align:center;color:#717780}
#document-kind .doc-type-options .doc-type-title{display:flex;align-items:center;gap:7px}
#document-kind .doc-type-options .doc-type-description{display:none}
#document-kind .doc-type-options button.selected{background:white;border-bottom-color:var(--orange);color:var(--orange)}
#document-kind .doc-type-options button:not(.selected):hover{background:#fffaf6;color:var(--orange)}
#document-kind .doc-type-options .doc-type-title svg{width:18px;height:18px}
#document-kind .doc-type-options .doc-type-title strong{font-size:14px}
#document-settings-panel{min-width:0;border-inline-start:1px solid #e8ebef;border-inline-end:1px solid #e8ebef;padding:0 12px 12px}
@media(max-width:520px){#document-kind .doc-type-options button{padding:10px 4px}#document-kind .doc-type-options .doc-type-title strong{font-size:12px}#document-settings-panel{padding-inline:8px}.doc-type-switch-hint{font-size:11px}}

/* v2.0.58: compact document tabs and optional product columns. */
#document-kind .doc-type-options{display:flex;gap:4px;padding:4px;background:#f3f4f6;border:1px solid #e4e7eb;border-radius:9px}
#document-kind .doc-type-options button{border:0;border-radius:6px;padding:11px 14px;background:transparent;color:#737780;box-shadow:none;transition:background .15s,color .15s}
#document-kind .doc-type-options button:hover{background:#e9ebee;color:#353a40}
#document-kind .doc-type-options button.selected{background:var(--orange);color:#fff;border:0;box-shadow:none}
#document-kind .doc-type-options button.selected:hover{background:var(--orange-dark);color:#fff}
#document-kind .doc-type-options button svg{display:none}
#document-settings-panel{border:0;padding:0}
.product-column-switches{display:flex;align-items:center;flex-wrap:wrap;gap:10px 22px;margin:10px 0 14px;color:#737780;font-size:13px}
.product-column-switches label{display:inline-flex;align-items:center;gap:7px;margin:0;font-weight:400;cursor:pointer}
.product-column-switches input[type=checkbox]{appearance:none;-webkit-appearance:none;position:relative;width:30px;height:18px;min-width:30px;padding:0;margin:0;border:1px solid #cdd2d9;border-radius:12px;background:#e1e4e8;cursor:pointer}
.product-column-switches input[type=checkbox]::before{content:'';position:absolute;top:2px;left:2px;width:12px;height:12px;border-radius:50%;background:#fff;box-shadow:0 1px 2px #0002;transition:transform .15s}
.product-column-switches input[type=checkbox]:checked{background:var(--orange);border-color:var(--orange)}
.product-column-switches input[type=checkbox]:checked::before{transform:translateX(12px)}
.product-column-switches input[type=checkbox]::after{display:none}
.product-table [hidden]{display:none!important}

/* Use the same visible tracks for the sticky header and every editable row. */
@media(min-width:651px){
 #products .product-table thead tr,#products .product-table tbody tr:not(.product-fee-row){grid-template-columns:var(--product-column-tracks)}
 #products .product-table th{width:auto!important;min-width:0;white-space:nowrap;word-break:normal;overflow-wrap:normal;align-self:center}
 #products .product-table thead tr{min-height:42px;height:auto;align-items:center}
 #products .product-table td{min-width:0}
}
@media(min-width:651px) and (max-width:1000px){
 #products .product-table th{font-size:10px;padding-left:2px;padding-right:2px}
}

/* v2.0.62: restore the three independent document cards. */
#document-kind .doc-type-switch-hint{display:none}
#document-kind .doc-type-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:0;border:0;border-radius:0;background:transparent}
#document-kind .doc-type-options button{display:grid;grid-template-columns:26px max-content;grid-template-rows:auto auto;column-gap:10px;row-gap:5px;justify-content:center;align-items:center;min-width:0;min-height:76px;margin:0;padding:14px 12px;border:1px solid #dfe3e8;border-radius:7px;background:#fff;text-align:left;color:#4b535e;box-shadow:none;line-height:1.4;transition:border-color .15s,background-color .15s,color .15s}
#document-kind .doc-type-options .doc-type-title{display:contents}
#document-kind .doc-type-options .doc-type-title svg{display:block;grid-column:1;grid-row:1/3;align-self:center;justify-self:center;width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round;color:#828b98}
#document-kind .doc-type-options .doc-type-title strong{grid-column:2;grid-row:1;font-size:15px;font-weight:600;letter-spacing:0;white-space:nowrap}
#document-kind .doc-type-options .doc-type-description{display:block;grid-column:2;grid-row:2;margin:0;font-size:11px;line-height:1.4;text-align:left;color:#959ca6;white-space:nowrap}
#document-kind .doc-type-options button:not(.selected):hover{border-color:#ffab73;background:#fffaf6;color:#4b535e}
#document-kind .doc-type-options button.selected,#document-kind .doc-type-options button.selected:hover{border:1px solid var(--orange);border-radius:7px;background:color-mix(in srgb,var(--orange) 7%,white);box-shadow:inset 0 0 0 1px var(--orange);color:var(--orange)}
#document-kind .doc-type-options button.selected svg{color:var(--orange)}
#document-kind .doc-type-options button.selected .doc-type-description{color:#c36d34}
#document-kind .doc-type-options button::after{content:none}
#document-kind .doc-type-options button:focus{outline:none}
#document-kind .doc-type-options button:focus-visible{outline:2px solid var(--orange);outline-offset:3px}
@media(max-width:650px){
 #document-kind .doc-type-options{gap:7px}
 #document-kind .doc-type-options button{grid-template-columns:20px max-content;column-gap:5px;row-gap:4px;min-height:68px;padding:11px 4px}
 #document-kind .doc-type-options .doc-type-title svg{width:20px;height:20px}
 #document-kind .doc-type-options .doc-type-title strong{font-size:12px}
 #document-kind .doc-type-options .doc-type-description{font-size:9px}
}

/* Clear task hierarchy on tablet and phone preview toolbars. */
.preview-more-wrap,.preview-more-menu{display:contents}
.preview-more-menu[hidden],#preview-more[hidden]{display:none!important}
@media(max-width:1200px){
 #preview-toolbar{display:grid;grid-template-columns:minmax(0,1fr);justify-items:stretch;padding:12px 14px;gap:10px;background:#fff}
 #preview-toolbar>div:first-child{grid-column:1;justify-self:stretch;width:100%;padding-right:65px}
 #preview-toolbar .preview-title-switch{justify-content:flex-start}
 #preview-toolbar .preview-title-switch .button,#preview-toolbar .preview-type-toggle{min-height:36px}
 #preview-toolbar .preview-paper-center{grid-column:1;justify-self:stretch;text-align:left;width:100%;padding:9px 10px;background:#f6f7f8;border-radius:6px}
 #preview-toolbar #preview-fixed-paper{display:flex;align-items:center;flex-wrap:nowrap;justify-content:space-between;gap:10px;font-size:11px;color:#7c828b}
 #preview-toolbar .preview-fixed-spec{flex:0 1 310px;width:auto;min-height:26px;border:0;padding:0;background:transparent;gap:12px;font-size:11px}
 #preview-toolbar .preview-fixed-spec strong{font-weight:500;color:#5f6670}
 #preview-toolbar .preview-fixed-spec small{font-size:10px;color:#9a9fa6}
 #preview-toolbar .preview-paper-controls{flex-direction:row;align-items:center;gap:10px}
 #preview-toolbar #preview-paper-label{display:flex;flex-direction:row;align-items:center;gap:8px;flex:1;white-space:nowrap}
 #preview-toolbar #preview-paper-label>.suite-select{flex:1;min-width:0;width:auto}
 #preview-toolbar .preview-paper-control .suite-select-trigger{min-height:34px;font-size:11px}
 #preview-toolbar .preview-actions{display:grid;grid-column:1;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:8px;width:100%;justify-self:stretch;align-items:stretch}
 #preview-toolbar .preview-actions #preview-pdf{grid-column:1;grid-row:1;min-height:38px;color:var(--orange);background:#fff;border-color:#ffbd91;font-size:12px}
 #preview-toolbar .preview-print-group{grid-column:2;grid-row:1;display:flex;width:auto;justify-content:stretch}
 #preview-toolbar .preview-print-group #preview-print{width:100%;min-height:38px;padding:7px 12px;background:var(--orange);border-color:var(--orange);color:#fff;font-size:12px}
 #preview-toolbar .preview-print-group #preview-print:hover{background:var(--orange-dark);border-color:var(--orange-dark)}
 #preview-toolbar .preview-actions #edit{position:absolute;top:12px;right:14px;min-height:36px;padding:6px 10px;border:0;box-shadow:none;background:transparent;color:#737b86;font-size:12px}
 #preview-toolbar .preview-actions #edit:hover{background:#f2f3f5;color:#343a42}
 #preview-toolbar .preview-more-wrap{display:block;position:relative;grid-column:3;grid-row:1}
 #preview-toolbar #preview-more{display:flex;align-items:center;gap:4px;height:100%;min-height:38px;padding:7px 10px;background:#f5f6f7;border:1px solid #e2e5e9;color:#6d7580;font-size:12px}
 #preview-toolbar #preview-more svg{width:15px;height:15px;fill:currentColor;stroke:none}
 #preview-toolbar .preview-more-menu:not([hidden]){position:absolute;display:grid;top:calc(100% + 7px);right:0;z-index:50;width:160px;padding:5px;gap:2px;background:#fff;border:1px solid #e1e5ea;border-radius:7px;box-shadow:0 6px 22px #17233626}
 #preview-toolbar .preview-more-menu .button{display:block;width:100%;min-height:38px;padding:8px 10px;border:0;border-radius:4px;background:#fff;color:#59616b;font-size:12px;text-align:left;white-space:nowrap}
 #preview-toolbar .preview-more-menu .button:hover{background:#fff1e6;color:var(--orange)}
}
@media(max-width:480px){
 #preview-toolbar{padding:10px;gap:8px}
 #preview-toolbar .preview-actions #edit{top:10px;right:10px}
 #preview-toolbar #preview-fixed-paper>span{display:none}
 #preview-toolbar .preview-fixed-spec{flex:1;font-size:11px}
 #preview-toolbar .preview-paper-center{padding:8px}
 #preview-toolbar .preview-paper-controls{gap:6px}
 #preview-toolbar #preview-paper-label{font-size:10px;gap:5px}
 #preview-toolbar #preview-copy-label{font-size:10px;gap:3px}
 #preview-toolbar #preview-copy-count+.suite-select{width:54px}
 #preview-toolbar .preview-paper-control .suite-select-trigger{font-size:10px;padding-left:7px;padding-right:22px}
}
