/* 打印配货单：58mm 热敏纸，只输出 #print-root，其余页面内容全部隐藏 */
@page { size: 58mm auto; margin: 0; }

@media print {
  html, body { background: #fff !important; margin: 0 !important; padding: 0 !important; }
  body > *:not(#print-root) { display: none !important; }

  #print-root {
    display: block !important;
    width: 48mm;
    margin: 0 auto;
    padding: 3mm 0 8mm;
    color: #000;
    font: 12px/1.45 "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  #print-root * { box-sizing: border-box; }

  .rc-shop { text-align: center; font-size: 17px; font-weight: 700; letter-spacing: 1px; }
  .rc-sub { text-align: center; font-size: 12px; margin-top: 1px; letter-spacing: 3px; }
  .rc-hr { border-top: 1px dashed #000; margin: 2.2mm 0; }
  /* 收货方式：反色大标签，拣货时一眼分出是送还是自提 */
  .rc-tag { display: block; width: max-content; margin: 0 auto 1.5mm; padding: 0.6mm 3mm; background: #000; color: #fff; font-size: 14px; font-weight: 700; letter-spacing: 1px; }
  .rc-no-label { text-align: center; font-size: 11px; }
  .rc-no { text-align: center; font: 800 44px/1.1 "DIN Alternate", "Bahnschrift", Menlo, Consolas, monospace; letter-spacing: 2px; }
  .rc-row { font-size: 12px; word-break: break-all; }
  .rc-who { font-size: 14px; font-weight: 700; }
  .rc-addr { font-size: 13px; margin-top: 0.8mm; }
  .rc-item { display: grid; grid-template-columns: auto 1fr auto; gap: 0 6px; margin-bottom: 1.6mm; align-items: start; }
  .rc-box { display: block; width: 3mm; height: 3mm; border: 1.2px solid #000; margin-top: 1px; }
  .rc-name { font-weight: 700; font-size: 13px; word-break: break-all; }
  .rc-spec { display: block; font-weight: 400; font-size: 12px; }
  .rc-qty { white-space: nowrap; font: 800 16px/1.2 Menlo, Consolas, monospace; }
  .rc-line { display: flex; justify-content: space-between; font-size: 12px; }
  .rc-total { font-size: 15px; font-weight: 800; margin-top: 1mm; }
  .rc-remark { border: 1.5px solid #000; padding: 1.2mm 1.6mm; font-size: 13px; font-weight: 700; word-break: break-all; }
  .rc-small { font-size: 10px; word-break: break-all; }
  .rc-foot { text-align: center; font-size: 11px; margin-top: 3mm; }
}
