.production-sheet {
  width: 100%;
  max-width: 794px;
  margin: 0 auto;
  color: #151515;
  background: #fff;
  font-family: "SimSun", "Songti SC", "Noto Serif CJK SC", serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.production-sheet *, .production-sheet *::before, .production-sheet *::after { box-sizing: border-box; }
.production-table { width: 100%; border-collapse: collapse; table-layout: fixed; border: 1px solid #111; }
.production-table td { border: 1px solid #111; padding: 5px 4px; vertical-align: middle; text-align: center; overflow-wrap: anywhere; }
.production-table .col-material-name { width: 13%; }
.production-table .col-material-spec { width: 15%; }
.production-table .col-material-quantity { width: 8%; }
.production-table .col-material-weight { width: 8.8%; }
.production-table .col-signature { width: 8%; }
.production-table .col-accessory-name { width: 16.4%; }
.production-table .col-accessory-spec { width: 15.3%; }
.production-table .col-accessory-note { width: 15.5%; }

.sheet-title-row { height: 50px; }
.production-table .sheet-title { font-size: 26px; letter-spacing: 3px; line-height: 1.15; }
.sheet-weight-row { height: 25px; }
.production-table .sheet-weight-row td { padding: 3px 10px; }
.weight-summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-family: "Microsoft YaHei", sans-serif; font-size: 11px; line-height: 1.45; }
.weight-summary strong { font-weight: 600; }
.weight-status { text-align: right; }
.sheet-customer-row { height: 76px; }
.production-table .customer-value { font-size: 42px; letter-spacing: 2px; line-height: 1.2; padding: 8px; }
.production-table .customer-long { font-size: 29px; letter-spacing: 1px; }
.production-table .sheet-date { font-size: 12px; white-space: normal; }
.sheet-logistics-row { height: 39px; }
.sheet-product-row { height: 40px; }
.production-table .product-type { font-size: 19px; }
.production-table .frame-color { font-size: 22px; line-height: 1.4; padding: 10px 5px; }
.frame-color span { white-space: nowrap; }
.sheet-dimension-label-row { height: 34px; }
.sheet-dimension-value-row { height: 41px; }
.sheet-dimension-label-row td { font-size: 13px; }
.production-table .skeleton-description { font-size: 18px; line-height: 1.4; padding: 4px 8px; }
.sheet-material-heading { height: 37px; }
.sheet-material-heading td { font-size: 14px; }
.production-table .signature-heading { color: #a4a4a4; font-size: 12px; }
.material-row { height: 40px; }
.production-table .material-spec, .production-table .material-quantity { font-size: 13px; line-height: 1.5; }
.production-table .material-weight { font-family: "Microsoft YaHei", sans-serif; font-size: 11px; line-height: 1.4; }
.production-table .material-panel { font-size: 21px; font-weight: 700; }
.production-table .signature-cell { color: #c5c5c5; font-size: 13px; padding: 4px 2px; }
.production-table .accessory-name { font-size: 14px; }
.production-table .accessory-spec, .production-table .accessory-note { font-size: 13px; }
.production-table .drainage-label { font-size: 13px; }
.production-table .drainage-item { font-size: 13px; padding: 4px; }
.beam-accessory-row { height: 40px; }
.production-table .sheet-notes { vertical-align: top; padding: 9px 10px; }
.notes-label { text-align: center; margin-bottom: 10px; }
.notes-value { text-align: left; font-size: 13px; white-space: normal; line-height: 1.6; }
.production-table .beam-accessories-label { font-size: 16px; }
.sheet-footer { height: 40px; }
.sheet-footer td { font-size: 14px; }
.footer-value { display: inline; }
.sheet-only-print { display: none; }

.sheet-editable input, .sheet-editable textarea {
  display: block;
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  border-radius: 2px;
  padding: 5px 3px;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: inherit;
  text-align: center;
  box-shadow: none;
}
.sheet-editable input::placeholder, .sheet-editable textarea::placeholder { color: #a4aaa5; font-size: 12px; font-weight: 400; letter-spacing: 0; }
.sheet-editable input:focus, .sheet-editable textarea:focus { background: #eef8f1; box-shadow: inset 0 0 0 1px #8cbd9a; }
.sheet-editable textarea { resize: none; overflow: auto; }
.sheet-editable input[type="number"] { appearance: textfield; -moz-appearance: textfield; }
.sheet-editable input::-webkit-inner-spin-button, .sheet-editable input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.sheet-editable .editable-cell { padding: 2px; transition: background-color 120ms ease; }
.sheet-editable .editable-cell:hover { background: #f5f9f5; }
.sheet-customer-fields { display: flex; align-items: center; gap: 8px; }
.sheet-customer-fields input:first-child { flex: 1.3; width: 0; }
.sheet-customer-fields input:last-child { flex: 1; width: 0; }
.sheet-field-label { font-size: 13px; line-height: 1.4; }
.sheet-editable .frame-color .sheet-field-label { font-size: 18px; }
.sheet-editable .skeleton-description textarea { min-height: 82px; font-size: 17px; }
.sheet-editable .sheet-notes { padding: 9px 8px; }
.sheet-editable .notes-value textarea { min-height: 110px; text-align: left; line-height: 1.5; }
.sheet-material-button { display: block; width: 100%; min-height: 32px; margin: 0; border: 0; border-radius: 2px; padding: 3px; background: transparent; color: inherit; font: inherit; line-height: inherit; text-align: center; cursor: pointer; }
.sheet-material-button:hover { background: #eef8f1; }
.sheet-material-button:focus-visible { outline: 1px solid #8cbd9a; outline-offset: -1px; background: #eef8f1; }
.sheet-editable .sheet-material-input { min-height: 30px; padding: 5px 2px; font-size: 13px; line-height: 1.4; overflow: auto; }
.sheet-editable .sheet-material-input[rows="2"] { min-height: 48px; }
.sheet-editable .sheet-material-input::placeholder { font-size: 11px; }
.sheet-editable .material-weight { cursor: default; }
.sheet-editable .sheet-panel-color { padding: 3px; font-size: 18px; }
.sheet-panel-thickness { display: flex; justify-content: center; align-items: center; gap: 3px; font-size: 13px; font-weight: 400; }
.sheet-panel-thickness input { flex: 0 1 50px; width: 50px; }
.sheet-panel-thickness span { font-family: "Microsoft YaHei", sans-serif; font-size: 11px; }
.sheet-drainage-fields { display: flex; align-items: center; gap: 2px; }
.sheet-drainage-fields input:first-child { flex: 1.7; width: 0; }
.sheet-drainage-fields input:last-child { flex: 1; width: 0; }
.sheet-footer-fields { display: flex; align-items: center; justify-content: center; }
.sheet-footer-fields span { flex: 0 0 auto; }
.sheet-footer-fields input { flex: 1; width: 0; text-align: left; }

@page { size: A4 portrait; margin: 10mm; }

@media print {
  html, body { width: auto !important; min-width: 0 !important; margin: 0 !important; padding: 0 !important; background: #fff !important; }
  .print-hide { display: none !important; }
  body #app > .layout { display: none !important; }
  #print-sheet { display: block !important; width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; background: #fff !important; border: 0 !important; box-shadow: none !important; overflow: visible !important; }
  .production-sheet { width: 190mm; max-width: 100%; margin: 0; font-size: 10pt; line-height: 1.3; break-inside: avoid; page-break-inside: avoid; }
  .production-table { border-width: 0.25mm; }
  .production-table td { border-width: 0.25mm; padding: 1mm 0.8mm; }
  .production-table tr { break-inside: avoid; page-break-inside: avoid; }
  .sheet-title-row { height: 12mm; }
  .production-table .sheet-title { font-size: 18pt; letter-spacing: 2px; }
  .sheet-weight-row { height: 6mm; }
  .production-table .sheet-weight-row td { padding: 0.6mm 2mm; }
  .weight-summary { font-size: 8pt; }
  .sheet-customer-row { height: 18mm; }
  .production-table .customer-value { font-size: 28pt; padding: 1mm; }
  .production-table .customer-long { font-size: 20pt; }
  .production-table .sheet-date { font-size: 9pt; }
  .sheet-logistics-row { height: 9mm; }
  .sheet-product-row { height: 10mm; }
  .production-table .product-type { font-size: 13pt; }
  .production-table .frame-color { font-size: 15pt; padding: 2mm 1mm; }
  .sheet-dimension-label-row { height: 8mm; }
  .sheet-dimension-value-row { height: 11mm; }
  .sheet-dimension-label-row td { font-size: 9pt; }
  .production-table .skeleton-description { font-size: 12pt; padding: 0.8mm 1mm; }
  .sheet-material-heading { height: 9mm; }
  .sheet-material-heading td { font-size: 10pt; }
  .production-table .signature-heading { font-size: 8pt; }
  .material-row, .beam-accessory-row { height: 9mm; }
  .production-table .material-spec, .production-table .material-quantity { font-size: 9pt; }
  .production-table .material-weight { font-size: 8pt; }
  .production-table .material-panel { font-size: 14pt; }
  .production-table .signature-cell { font-size: 9pt; color: #c5c5c5; }
  .production-table .accessory-name { font-size: 10pt; }
  .production-table .accessory-spec, .production-table .accessory-note, .production-table .drainage-label, .production-table .drainage-item { font-size: 9pt; }
  .production-table .sheet-notes { padding: 2mm; }
  .notes-label { margin-bottom: 2mm; }
  .notes-value { font-size: 9pt; }
  .production-table .beam-accessories-label { font-size: 11pt; }
  .sheet-footer { height: 10mm; }
  .sheet-footer td { font-size: 10pt; }
}
