.document-stage{position:fixed;inset:0;z-index:100;background:#e9e9ec;overflow:auto;padding:20px;color:#252529}.document-toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap;max-width:900px;margin:0 auto}.document-toolbar label{font-size:12px}.document-help{max-width:900px;margin:12px auto;font:12px Arial;color:#666}.document-sheet{width:215.9mm;min-height:139.7mm;background:white;margin:20px auto;position:relative;box-sizing:border-box}.document-half{height:139.7mm;width:215.9mm;padding:8mm;box-sizing:border-box;font:10px Arial;display:flex;flex-direction:column;overflow:hidden}.document-half header{display:flex;align-items:center;gap:12px;border-bottom:2px solid #303034;padding-bottom:6px}.document-half header img{width:15mm;height:15mm;object-fit:contain}.document-half header>div:last-child{margin-left:auto;text-align:right}.document-half h2{font-size:15px;margin:0}.document-half h3{font-size:12px;margin:0}.document-half p{margin:4px 0;line-height:1.3}.document-party{display:flex;justify-content:space-between;gap:12px;margin:9px 0}.document-half table{width:100%;table-layout:fixed}.document-half th,.document-half td{font:10px Arial;padding:5px 3px;border-bottom:1px solid #ddd;overflow-wrap:anywhere}.document-half th:first-child{width:46%}.document-half th:nth-child(2){width:8%}.document-total{margin:10px 0;text-align:right;font-size:11px}.document-total strong{font-size:14px}.document-notes{max-height:12mm;overflow:hidden}.document-half footer{margin-top:auto;padding-top:5px;border-top:1px solid #ddd;font:9px Arial;color:#555}
.document-paper-label{font:12px Arial;color:#666}.document-sheet{height:139.7mm}
@media screen and (max-width:850px){.document-stage{padding:10px}.document-sheet{width:100%;height:auto;min-height:0}.document-half{width:100%;height:auto;min-height:330px;padding:5mm;aspect-ratio:215.9/139.7}.document-half header{gap:8px}.document-half header img{width:11mm;height:11mm}.document-half h2{font-size:12px}.document-half h3{font-size:10px}.document-half th,.document-half td{font-size:9px}.document-party{font-size:9px}}
@media print{body.printing-document>*{display:none!important}body.printing-document>#document-preview{display:block!important;position:static;background:white;padding:0;overflow:visible}.document-toolbar,.document-help{display:none!important}.document-sheet{margin:0;break-after:page;break-inside:avoid;width:215.9mm;height:139.7mm;min-height:0}.document-sheet:last-child{break-after:auto}.document-half{width:215.9mm;height:139.7mm;min-height:0;aspect-ratio:auto}}

.document-agreement{font:8px Arial;line-height:1.25;margin:6px 0}.document-signatures{display:flex;justify-content:space-between;gap:20px;font:8px Arial;margin-top:10px}.document-sign-place{font:8px Arial}.document-half footer{font-size:8px}.document-notes{max-height:none;overflow:visible}.document-half{overflow:visible}

.document-total,.document-half td:not(:first-child){font-family:Bahnschrift,Arial,sans-serif;font-weight:400;font-variant-numeric:tabular-nums lining-nums}
.document-signatures{align-items:flex-start;margin-top:14px}
.document-signatures .signature-block{width:max-content;min-width:36mm;max-width:46%;border-top:1px solid #303034;padding-top:4px;text-align:center;line-height:1.3;overflow-wrap:anywhere}
.document-half header .document-company{text-align:left;flex:1;min-width:0}
.document-half header .document-company p{margin:2px 0;font-size:9px;line-height:1.25}
.document-acceptance{font-size:8px;line-height:1.3;margin:6px 0}
.document-acceptance:empty{display:none}
.document-signatures.invoice-signatures{margin-top:auto;padding-top:8mm}
.invoice-signatures .signature-block{min-width:50mm}
.document-half:has(.invoice-signatures) footer{margin-top:8mm}
.document-quote-terms{font-size:8px;line-height:1.3;margin:8px 0}
.document-quote-terms:empty{display:none}

.document-signatures.quote-signatures{justify-content:flex-end}
