.order-document-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-bottom:6px}
#screen-window .order-document-fields .field>label{font-size:9px}
#screen-window .order-document-fields .field input{height:24px;font-size:11px;border-radius:1px;padding:3px 5px}
#screen-window #client-pane-values .client-values-models{border-top:1px solid #cfdaea;margin-top:18px;padding-top:16px}
.thermal-preview-panel{min-width:0;overflow:hidden}
.label-preview-area:has(.thermal-preview){padding:20px;min-height:0;background:#e4e9ee;display:flex;justify-content:center;align-items:flex-start}
.thermal-preview{width:80mm;height:120mm;flex:none;position:relative;box-shadow:0 2px 10px #263b4c2e}
.thermal-preview>.thermal-label{transform:scale(.8);transform-origin:top left}
.thermal-label,.thermal-label *{box-sizing:border-box;color:#000;font-family:Arial,sans-serif}
.thermal-label{width:100mm;height:150mm;padding:4mm;background:#fff;display:flex;flex-direction:column;gap:2mm;overflow:hidden;text-align:left;line-height:1.15;flex:none;font-size:10pt}
.thermal-company{padding-bottom:1.5mm;border-bottom:.4mm solid #000;flex:none}
.thermal-company>span{display:block;font-size:7pt;font-weight:700;margin-bottom:1mm}
.thermal-company>strong{display:block;font-weight:800;line-height:1.05;overflow-wrap:anywhere}
.thermal-os{display:flex;justify-content:space-between;align-items:center;gap:2mm;min-height:6mm}
.thermal-os>span{font-size:9pt;font-weight:700;white-space:nowrap}
.thermal-os>strong{overflow-wrap:anywhere;text-align:right;line-height:1}
.thermal-document-grid{display:grid;grid-template-columns:1fr 1fr;border:.3mm solid #000;flex:none}
.thermal-document-grid>div{padding:1mm 1.5mm;min-width:0}
.thermal-document-grid>div:nth-child(2){border-left:.3mm solid #000}
.thermal-document-grid>.thermal-cut-number{grid-column:1/-1;border:0;padding:2mm;text-align:center}
.thermal-document-grid:has(.thermal-cut-number){border:.6mm solid #000}
.thermal-cut-number>span{font-size:10pt;font-weight:700;margin-bottom:1mm}
.thermal-document-grid .thermal-cut-number>b{font-weight:800;line-height:1.05}
.thermal-document-grid span,.thermal-client>span,.thermal-quantity span{display:block;font-size:7pt;font-weight:700;margin-bottom:.5mm}
.thermal-document-grid b{display:block;overflow-wrap:anywhere;line-height:1.1;font-size:10pt}
.thermal-client{border-bottom:.3mm solid #000;padding:0 0 1.5mm;flex:none}
.thermal-client>strong{display:block;line-height:1.1;overflow-wrap:anywhere}
.thermal-label .thermal-barcode{display:block;width:100%;height:9mm;max-height:9mm;flex:none}
.thermal-matrix{flex:1;min-height:12mm;overflow:hidden;border:.3mm solid #000;padding:1.5mm}
.thermal-matrix>header{font-weight:700;font-size:9pt;border-bottom:.25mm solid #000;padding-bottom:1mm;margin-bottom:1mm}
.thermal-matrix ul{list-style:none;padding:0;margin:0;font-size:calc(11pt * var(--thermal-matrix-scale,1));font-weight:700;line-height:1.2}
.thermal-matrix li{padding:calc(.4mm * var(--thermal-matrix-scale,1)) 0;overflow-wrap:anywhere}
.thermal-layer-colors{margin:.8mm 0 0;font-size:calc(9pt * var(--thermal-matrix-scale,1));line-height:1.2;overflow-wrap:anywhere}
.thermal-quantity{display:grid;grid-template-columns:25mm 1fr;border:.5mm solid #000;min-height:15mm;flex:none}
.thermal-quantity>div{padding:1.5mm;text-align:center;min-width:0}
.thermal-quantity>.thermal-size{border-right:.3mm solid #000}
.thermal-quantity strong{display:block;font-size:24pt;line-height:1}
.thermal-quantity .thermal-complement{font-size:19pt;height:100%;display:grid;place-items:center}
.thermal-quantity .thermal-size strong{font-size:22pt;overflow-wrap:anywhere}
.thermal-quantity .thermal-bundle{display:block;margin-top:1mm;font-size:16pt;line-height:1;font-weight:700}
.thermal-details{display:flex;justify-content:space-between;gap:1mm;flex:none;font-size:7pt}
.thermal-foot{flex:none;border-top:.3mm solid #000;padding-top:1.5mm;text-align:center;font-size:7pt;font-weight:700;letter-spacing:.25pt}
.thermal-label-empty{align-items:center;justify-content:center;text-align:center;color:#66788a}
.thermal-label-empty>strong{font-size:25pt}
.thermal-label-empty>p{max-width:70mm;line-height:1.6;font-size:12pt}
.thermal-preview-navigation{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px;border-top:1px solid #d0dce7}
.thermal-preview-navigation>span{font-size:11px;text-align:center;overflow-wrap:anywhere}
.thermal-count{padding:11px;background:#eef5ff;border:1px solid #c5d8ee;border-radius:3px;color:#184d8c;font-size:12px;font-weight:600}
@media(max-width:900px){.label-layout{grid-template-columns:1fr}.thermal-preview-panel{width:100%}}
@media(max-width:550px){.order-document-fields{gap:4px}.thermal-preview-navigation{gap:4px;padding:8px}.thermal-preview-navigation>span{font-size:10px}}
@media print{.thermal-label{margin:0;box-shadow:none;border-radius:0;transform:none;-webkit-print-color-adjust:exact;print-color-adjust:exact;break-after:page;break-inside:avoid}.thermal-label:last-child{break-after:auto}}

@media screen{#print-root.thermal-fitting{position:fixed;top:0;left:-110mm;display:block;width:100mm;height:150mm;overflow:hidden;visibility:hidden}}

@page costuraThermal{size:100mm 150mm;margin:0}
@media print{#print-root[data-paper="thermal"]{page:costuraThermal;width:100mm;margin:0;padding:0}body:has(#print-root[data-paper="thermal"]){margin:0;padding:0}#print-root[data-paper="thermal"]>.thermal-label{page:costuraThermal;break-after:page;break-inside:avoid}#print-root[data-paper="thermal"]>.thermal-label:last-child{break-after:auto}}
