.sheet-document{margin:0;padding:30px;background:#eee;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:#222;font-size:13px;line-height:1.5}
.production-sheet{box-sizing:border-box;max-width:190mm;margin:0 auto;background:#fff;color:#222;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;font-size:13px;line-height:1.5;letter-spacing:0}
.production-sheet *{box-sizing:border-box;letter-spacing:0}
.sheet-document .production-sheet{padding:24px;max-width:210mm}
.sheet-title{text-align:center;border-bottom:2px solid #333;padding-bottom:16px;margin-bottom:20px}
.sheet-title h1{font-size:23px;line-height:1.4;margin:0;font-weight:700}
.sheet-title p{font-size:12px;color:#666;margin:6px 0 0;overflow-wrap:anywhere}
.sheet-identity{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 20px;padding-bottom:16px;border-bottom:1px solid #ddd;break-inside:avoid}
.sheet-identity .sheet-field dd{font-size:16px}
.sheet-overview{display:grid;grid-template-columns:180px minmax(0,1fr);gap:20px;align-items:start}
.sheet-photo{height:224px;display:flex;align-items:center;justify-content:center;border:1px solid #ddd;background:#fff;color:#888;font-size:12px}
.sheet-photo img{display:block;width:100%;height:100%;object-fit:contain}
.sheet-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 16px;margin:0}
.sheet-field{min-width:0}
.sheet-field dt{font-size:11px;color:#777;margin:0 0 3px}
.sheet-field dd{margin:0;font-size:13px;font-weight:600;overflow-wrap:anywhere;white-space:pre-wrap}
.sheet-wide{grid-column:1/-1;padding-top:8px;border-top:1px solid #ddd}
.sheet-section{margin:22px 0 0}
.sheet-section h2{font-size:13px;margin:0 0 9px;font-weight:700}
.sheet-size-wrap{overflow-x:auto}
.sheet-sizes{width:100%;min-width:0;border-collapse:collapse;table-layout:fixed}
.sheet-sizes th,.sheet-sizes td{position:static;padding:9px 2px;border:1px solid #ccc;text-align:center;vertical-align:middle;font-size:12px;overflow-wrap:anywhere;background:#fff;color:#222}
.sheet-sizes th,.sheet-sizes td{font-weight:700}
.sheet-sizes thead th{background:#f5f5f5;font-weight:700}
.sheet-sizes tr:last-child td{border-bottom:1px solid #ccc}
.sheet-total{font-weight:700}
.sheet-size-note{margin:7px 0 0;font-size:11px;color:#777}
.sheet-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-bottom:1px solid #ccc;padding:18px 0;margin-bottom:16px;gap:12px}
.sheet-totals>div{min-width:0}
.sheet-totals span{display:block;font-size:11px;color:#777;margin-bottom:4px}
.sheet-totals strong{font-size:22px;line-height:1.3;overflow-wrap:anywhere}
.sheet-totals small{font-size:12px;font-weight:400}
.sheet-note{display:grid;grid-template-columns:65px minmax(0,1fr);gap:10px;padding:9px 0;border-bottom:1px solid #eee;white-space:pre-wrap;overflow-wrap:anywhere}
.sheet-note b{font-size:12px;color:#555}
.sheet-label p{margin:0 0 8px;color:#222;font-weight:700}
.sheet-label img{display:block;max-width:180px;width:auto;height:145px;object-fit:contain;border:1px solid #ddd;background:#fff}
.sheet-footer{display:flex;justify-content:space-between;gap:12px;margin-top:24px;font-size:10px;color:#888;flex-wrap:wrap}
.batch-item{border:0;padding:0;margin:0 0 14px;break-inside:avoid;page-break-inside:avoid}
.batch-item-heading{display:flex;justify-content:space-between;gap:12px;padding:3px 0;border:0;margin-bottom:6px;font-size:12px;flex-wrap:wrap}
.batch-item-heading span{color:#666;font-size:11px;overflow-wrap:anywhere}
.batch-item-heading>strong{transform:translateX(-12px)}
.batch-item-main{display:grid;grid-template-columns:100px minmax(0,1fr) 130px;gap:12px;margin-bottom:6px;align-items:start}
.batch-style-image{height:124px;display:flex;justify-content:center;align-items:center;border:1px solid #ddd;font-size:11px;color:#888}
.batch-style-image img{width:100%;height:100%;object-fit:contain}
.batch-item-info{min-width:0;overflow-wrap:anywhere}
.batch-item-info h2{font-size:14px;margin:0 0 7px;color:#222}
.batch-item-info p{font-size:12px;line-height:1.6;margin:4px 0;color:#333;white-space:pre-wrap}
.batch-label-image{display:grid;grid-template-columns:44px minmax(0,1fr);align-items:center;gap:4px;min-width:0;font-size:10px;color:#666;text-align:left;overflow-wrap:anywhere}
.batch-label-image>span:first-child{grid-column:1/-1}
.batch-label-image img{width:44px;max-width:100%;height:92px;object-fit:contain}
.batch-label-image small{font-size:10px;line-height:1.35;font-weight:700;color:#222}
.cutting-label-row{display:grid;grid-template-columns:minmax(0,1fr) 48px;gap:8px;align-items:center;break-inside:avoid}
.cutting-label-row>div{min-width:0}
.cutting-label-thumb{text-align:center;font-size:9px;color:#666}
.cutting-label-thumb img{display:block;width:48px;height:76px;object-fit:contain}
.batch-sheet .sheet-title{border:0;padding-bottom:8px;margin-bottom:10px}
.batch-sheet .sheet-footer{border:0;margin-top:10px;padding-top:0}
.batch-factory{font-size:14px;margin:12px 0 6px}
.batch-sheet .sheet-sizes th,.batch-sheet .sheet-sizes td{padding:6px 2px}
.batch-notes{margin-top:8px;font-size:11px;overflow-wrap:anywhere;white-space:pre-wrap}
.batch-notes p{margin:3px 0;color:#444}
.batch-grand-total{break-inside:avoid;margin-top:20px}
.batch-grand-total h2{font-size:14px;margin:0 0 10px}
@media(max-width:580px){.batch-item-main{grid-template-columns:100px minmax(0,1fr)}.batch-item-info{grid-column:1/-1;grid-row:1}.batch-label-image{grid-column:2}.batch-item-heading{gap:4px}}
@media(max-width:580px){.sheet-document{padding:12px}.sheet-document .production-sheet{padding:16px}.sheet-overview{grid-template-columns:minmax(0,1fr);gap:14px}.sheet-photo{height:185px;width:150px;margin:auto}.sheet-fields{gap:10px 12px}.sheet-title h1{font-size:20px}.sheet-totals strong{font-size:19px}.sheet-sizes{min-width:480px}.sheet-sizes th,.sheet-sizes td{font-size:11px}}
@media print{
 @page{size:A4;margin:10mm}
 .sheet-document{padding:0;background:#fff}
 .sheet-document .production-sheet,.production-sheet{width:190mm;max-width:100%;padding:0;margin:0 auto}
 .sheet-overview{grid-template-columns:180px minmax(0,1fr);gap:20px}
 .sheet-photo{height:224px;width:auto;margin:0}
 .sheet-title h1{font-size:23px}
 .sheet-totals strong{font-size:22px}
 .sheet-sizes{min-width:0}
 .sheet-sizes th,.sheet-sizes td{font-size:12px;print-color-adjust:exact}
 .sheet-size-wrap{overflow:visible}
 .sheet-title,.sheet-overview,.sheet-section,.sheet-totals,.sheet-note,.sheet-footer{break-inside:avoid}
 #printDialog{position:static!important;max-height:none!important;overflow:visible!important;border:0!important;border-radius:0!important;margin:0!important;padding:0!important}
 #printDialog::backdrop{background:transparent!important}
 #printArea{padding:0!important}
 .batch-item-main{grid-template-columns:100px minmax(0,1fr) 130px}
 .batch-item-info{grid-column:auto;grid-row:auto}
 .batch-label-image{grid-column:auto}
}
