*{box-sizing:border-box}html,body{margin:0;background:#eef2f6;color:#122237;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans TC",Arial,sans-serif}.toolbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:14px 22px;background:#10243d;color:#fff;box-shadow:0 3px 14px #0b1d3060}.toolbar span{color:#65d9bc;font-size:12px;font-weight:800;letter-spacing:.12em}.toolbar h1{margin:2px 0 0;font-size:22px}.toolbar p{margin:3px 0 0;color:#dbe7f3;font-size:13px}.toolbar-actions{display:flex;align-items:end;gap:9px}.toolbar-actions label{display:grid;gap:4px;color:#dbe7f3;font-size:12px}.toolbar select,.toolbar button,.toolbar a{height:38px;border:1px solid #ffffff40;border-radius:8px;background:#fff;color:#10243d;padding:0 12px;font-weight:800;text-decoration:none}.toolbar select{min-width:230px}.toolbar button.primary{background:#2ac39a;border-color:#2ac39a}.toolbar a{display:flex;align-items:center}#print-area{padding:18px}.sheet{width:210mm;height:297mm;margin:0 auto 18px;background:#fff;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;box-shadow:0 3px 18px #10243d24;overflow:hidden}.label-slot{position:relative;width:105mm;height:148.5mm;overflow:hidden;padding:3mm;border:1px dashed #ccd5df;background:#fff}.label-order{position:absolute;right:3mm;bottom:2mm;z-index:2;padding:3px 7px;background:#fff;border:1px solid #aeb9c5;border-radius:3px;color:#122237;font:800 14px/1.25 ui-monospace,"SFMono-Regular",Consolas,monospace}.label-content{width:100%;height:100%;overflow:hidden}.label-content img{max-width:100%;height:auto}.error{max-width:780px;margin:60px auto;padding:24px;border-radius:12px;background:#fff0f0;color:#a01919;font-weight:800}.single-mode .sheet{display:block}.single-mode .label-slot{width:105mm;height:148.5mm;border:none}.single-mode .label-slot:not(:first-child){display:none}
.moz-carrier-label{height:100%;border:2px solid #111;color:#111;background:#fff;font-family:"Noto Sans TC",Arial,sans-serif}.moz-carrier-label header{display:flex;justify-content:space-between;align-items:center;border-bottom:2px solid #111;padding:2.5mm 3mm}.moz-carrier-label header strong{font-size:18px}.moz-carrier-label header span{font-size:12px;font-weight:800}.moz-carrier-main{padding:2mm 3mm}.moz-carrier-code{text-align:center;border-bottom:1px solid #333;padding-bottom:2mm}.moz-carrier-code img{display:block;max-height:22mm;margin:0 auto}.moz-carrier-code b{font:700 16px/1.3 monospace}.moz-carrier-label dl{display:grid;grid-template-columns:17mm 1fr 15mm 1fr;margin:2mm 0 0;font-size:12px}.moz-carrier-label dt,.moz-carrier-label dd{margin:0;padding:1.2mm;border-bottom:1px solid #bbb}.moz-carrier-label dt{font-weight:800}.moz-carrier-label dd.wide{grid-column:span 3}.moz-carrier-label footer{padding:1.5mm 3mm;border-top:1px solid #333;font-size:10px}
@page{size:A4 portrait;margin:0}@media print{html,body{background:#fff}.toolbar{display:none!important}#print-area{padding:0}.sheet{margin:0;box-shadow:none;break-after:page}.sheet:last-child{break-after:auto}.label-slot{border:none}.label-order{display:block;border-color:#777;color:#000}}
@media screen and (max-width:900px){.toolbar{position:static;align-items:flex-start;flex-direction:column}.toolbar-actions{width:100%;align-items:stretch;flex-wrap:wrap}.toolbar select{min-width:180px;max-width:100%}.sheet{transform-origin:top left;transform:scale(.55);margin-bottom:-132mm}}
.toolbar-actions{flex-wrap:wrap}.print-sheet{margin:0 auto 18px;background:#fff;box-shadow:0 3px 18px #10243d24;overflow:hidden}.a4-sheet{width:210mm;height:297mm;display:grid;grid-template-rows:1fr 1fr}.a5-sheet{width:210mm;height:148mm}.label-sheet{width:100mm;height:150mm}.order-pair{min-width:0;min-height:0;display:grid;grid-template-columns:1fr 1fr}.a4-sheet .order-pair{border-bottom:.4mm dashed #aeb9c5}.a4-sheet .order-pair:last-child{border-bottom:0}.a5-sheet .order-pair{height:100%}.barcode-panel{position:relative;min-width:0;min-height:0;overflow:hidden;padding:3mm;border-right:.4mm dashed #aeb9c5;background:#fff}.barcode-content{width:100%;height:100%;overflow:hidden}.barcode-content img{display:block;max-width:100%;max-height:100%;width:auto;height:auto}.shipping-document{height:100%;overflow:hidden;padding:3mm;color:#111;background:#fff;font-family:"Noto Sans TC",Arial,sans-serif}.shipping-document header{display:flex;align-items:end;justify-content:space-between;gap:3mm;padding-bottom:1.5mm;border-bottom:.6mm solid #111}.shipping-document header strong{font-size:18px}.shipping-document header span{font:800 12px/1.2 ui-monospace,Consolas,monospace}.shipping-meta{display:grid;grid-template-columns:1fr 1fr;gap:1mm 2mm;margin:2mm 0;font-size:10px}.shipping-meta div{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.shipping-meta b{margin-right:1.5mm}.shipping-meta .wide{grid-column:1/-1}.shipping-document table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:9px}.shipping-document th,.shipping-document td{padding:1mm .8mm;border-bottom:.2mm solid #bbb;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:left}.shipping-document th:nth-child(1),.shipping-document td:nth-child(1){width:7%;text-align:center}.shipping-document th:nth-child(2),.shipping-document td:nth-child(2){width:23%}.shipping-document th:nth-child(3),.shipping-document td:nth-child(3){width:39%}.shipping-document th:nth-child(4),.shipping-document td:nth-child(4){width:22%}.shipping-document th:nth-child(5),.shipping-document td:nth-child(5){width:9%;text-align:right;font-weight:900}.label-sheet .barcode-panel,.label-sheet .shipping-document{width:100%;height:100%;border:0}.label-sheet .shipping-document{padding:4mm}.label-sheet .shipping-document header strong{font-size:24px}.label-sheet .shipping-document header span{font-size:14px}.label-sheet .shipping-meta{font-size:12px}.label-sheet .shipping-document table{font-size:11px}.label-sheet .shipping-document th,.label-sheet .shipping-document td{padding:1.3mm .8mm}.barcode-label-page .barcode-content img{width:100%;height:100%;object-fit:contain}.barcode-label-page .label-order{font-size:16px}.print-sheet .label-order{right:3mm;bottom:2mm}
.shipping-code{display:grid;justify-items:end;gap:.6mm}.shipping-code img{display:block;width:18mm!important;height:18mm!important;max-width:none!important;max-height:none!important;image-rendering:pixelated}.shipping-code span{font:800 9px/1 ui-monospace,Consolas,monospace!important}.shipping-document header{align-items:flex-start}.label-sheet .shipping-code img{width:24mm!important;height:24mm!important}.label-sheet .shipping-code span{font-size:11px!important}
.erp-shipping-label{display:flex;flex-direction:column;padding:3mm;font-family:"Noto Sans TC",Arial,sans-serif}.erp-label-head{display:flex;justify-content:space-between;gap:2mm;margin-bottom:1.2mm;font-size:9px;line-height:1.2}.erp-label-summary{position:relative;min-height:38mm;padding:2mm 27mm 2mm 2mm;border:.45mm solid #111}.erp-recipient{display:grid;gap:.8mm;font-size:10px;line-height:1.2}.erp-recipient>strong{font-size:14px}.erp-recipient span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.erp-recipient b{font-size:12px}.erp-label-summary .shipping-code{position:absolute;top:2mm;right:2mm;width:23mm;justify-items:center}.erp-label-summary .shipping-code img{width:19mm!important;height:19mm!important}.erp-label-summary .shipping-code span{max-width:24mm;font-size:7.5px!important;white-space:nowrap}.shipping-note{position:absolute;left:2mm;right:2mm;bottom:1.5mm;display:flex;gap:1mm;border-top:.25mm solid #777;padding-top:1mm;font-size:8px;line-height:1.15}.shipping-note span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.shipping-items{margin:2mm 0 0;padding:0;border:.45mm solid #111;list-style:none}.shipping-item{display:grid;grid-template-columns:4mm 1fr 9mm;min-height:12mm;border-bottom:.25mm solid #555}.shipping-item:last-child{border-bottom:0}.item-index{padding:.6mm .5mm;border-right:.25mm solid #777;font-size:7px}.item-copy{display:grid;align-content:center;min-width:0;padding:.7mm 1mm}.item-copy strong,.item-copy em{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.item-copy strong{font-size:10px;line-height:1.15}.item-copy strong span{font-weight:900}.item-copy em{font-size:9px;font-style:normal;line-height:1.15}.item-quantity{display:flex;align-items:center;justify-content:center;border-left:.25mm solid #777;font-size:14px}.shipping-empty{padding:4mm;text-align:center}.label-sheet .erp-shipping-label{padding:3mm}.label-sheet .erp-label-head{font-size:9px}.label-sheet .erp-label-summary{min-height:46mm;padding-right:29mm}.label-sheet .erp-recipient{font-size:11px}.label-sheet .erp-recipient>strong{font-size:16px}.label-sheet .erp-label-summary .shipping-code img{width:22mm!important;height:22mm!important}.label-sheet .shipping-note{font-size:8.5px}.label-sheet .shipping-item{min-height:14mm}.label-sheet .item-copy strong{font-size:12px}.label-sheet .item-copy em{font-size:11px}.label-sheet .item-quantity{font-size:17px}
@media print{html,body{margin:0!important;background:#fff!important}.toolbar{display:none!important}#print-area{padding:0!important}.print-sheet{margin:0!important;box-shadow:none!important;break-after:page;page-break-after:always}.print-sheet:last-child{break-after:auto;page-break-after:auto}.a4-sheet{width:210mm!important;height:297mm!important}.a5-sheet{width:210mm!important;height:148mm!important}.label-sheet{width:100mm!important;height:150mm!important}.barcode-panel{border-right:.3mm dashed #888}.shipping-document{-webkit-print-color-adjust:exact;print-color-adjust:exact}}
@media screen and (max-width:900px){.print-sheet{transform-origin:top left;transform:scale(.55)}.a4-sheet{margin-bottom:-132mm}.a5-sheet{margin-bottom:-61mm}.label-sheet{margin-bottom:-63mm}}

/* 出貨單標題與標語改由同步的墨筆客賣場設定提供。 */
.erp-label-summary{min-height:48mm}.shipping-note{min-height:15mm;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:1.5mm;font-size:10px}.shipping-note-text{display:grid;gap:.7mm;min-width:0;overflow:hidden;white-space:normal;line-height:1.25}.shipping-note-text>span{overflow:hidden;text-overflow:ellipsis}.shipping-note-url{display:block;white-space:nowrap;font-family:ui-monospace,Consolas,monospace;font-size:8.5px}.shipping-note-images{display:flex;align-items:center;gap:1mm}.shipping-note-images img{display:block;width:14mm!important;height:14mm!important;max-width:none!important;max-height:none!important;object-fit:contain}.label-sheet .erp-label-summary{min-height:56mm}.label-sheet .shipping-note{font-size:11px}.label-sheet .shipping-note-images img{width:16mm!important;height:16mm!important}.label-sheet .shipping-note-url{font-size:9px}
.erp-label-summary:has(.shipping-note-images.image-only){min-height:48mm}.shipping-note-images.image-only{width:100%}.shipping-note-images.image-only img{width:88mm!important;height:auto!important;max-width:100%!important;max-height:18mm!important;object-fit:contain}.label-sheet .erp-label-summary:has(.shipping-note-images.image-only){min-height:56mm}.label-sheet .shipping-note-images.image-only img{width:90mm!important;height:auto!important;max-width:100%!important;max-height:19mm!important}
.erp-label-summary{padding-right:42mm}.erp-label-summary .shipping-code{width:38mm}.erp-label-summary .shipping-code span{max-width:40mm;font-size:13px!important;font-weight:950;letter-spacing:0}.label-sheet .erp-label-summary{padding-right:45mm}.label-sheet .erp-label-summary .shipping-code{width:41mm}.label-sheet .erp-label-summary .shipping-code span{max-width:42mm;font-size:15px!important}
.erp-recipient .shipping-order-info,.erp-recipient .shipping-total{font-size:13px;font-weight:400;line-height:1.15}.erp-recipient .shipping-count{font-size:16px;font-weight:900;line-height:1.15}.label-sheet .erp-recipient .shipping-order-info,.label-sheet .erp-recipient .shipping-total{font-size:15px}.label-sheet .erp-recipient .shipping-count{font-size:18px}
.shipping-invoice{display:flex;flex-wrap:wrap;gap:.7mm 2.2mm;padding:.8mm 1mm;border:.3mm solid #111;border-radius:1mm;background:#f3f3f3;font-size:11px;line-height:1.15}.shipping-invoice b{flex-basis:100%;font-size:12px}.shipping-invoice span{overflow:visible;white-space:nowrap}.label-sheet .shipping-invoice{font-size:12px}.label-sheet .shipping-invoice b{font-size:13px}
.erp-label-summary:has(.shipping-invoice),.shipping-label-page .erp-label-summary:has(.shipping-invoice),.label-sheet .erp-label-summary:has(.shipping-invoice){min-height:68mm}
.erp-label-summary .shipping-code img{width:24mm!important;height:24mm!important}.label-sheet .erp-label-summary .shipping-code img{width:28mm!important;height:28mm!important}

/* 標籤機的出貨單沿用 A5 出貨單配置；只保留 100×150mm 紙張尺寸。 */
.shipping-label-page .erp-shipping-label{padding:3mm}.shipping-label-page .erp-label-head{font-size:9px}.shipping-label-page .erp-label-summary{min-height:48mm;padding-right:42mm}.shipping-label-page .erp-recipient{font-size:10px}.shipping-label-page .erp-recipient>strong{font-size:14px}.shipping-label-page .erp-label-summary .shipping-code{width:38mm}.shipping-label-page .erp-label-summary .shipping-code img{width:24mm!important;height:24mm!important}.shipping-label-page .erp-label-summary .shipping-code span{max-width:40mm;font-size:13px!important}.shipping-label-page .shipping-note{min-height:15mm;font-size:10px}.shipping-label-page .shipping-note-images img{width:14mm!important;height:14mm!important}.shipping-label-page .shipping-note-url{font-size:8.5px}.shipping-label-page .erp-label-summary:has(.shipping-note-images.image-only){min-height:48mm}.shipping-label-page .shipping-note-images.image-only img{width:88mm!important;height:auto!important;max-width:100%!important;max-height:18mm!important}.shipping-label-page .shipping-item{min-height:12mm}.shipping-label-page .item-copy strong{font-size:10px}.shipping-label-page .item-copy em{font-size:9px}.shipping-label-page .item-quantity{font-size:14px}.shipping-label-page .erp-recipient .shipping-order-info,.shipping-label-page .erp-recipient .shipping-total{font-size:13px}.shipping-label-page .erp-recipient .shipping-count{font-size:16px}
.shipping-item{grid-template-columns:4mm 1fr 10mm}.item-quantity{gap:.25mm;white-space:nowrap;word-break:keep-all}.item-quantity .quantity-mark{font-size:.45em;font-weight:700;line-height:1}.item-quantity>span:last-child{font-size:1.3em;font-weight:950;line-height:1}
.detail-page{display:flex;align-items:center;justify-content:space-between;gap:2mm;margin:1.3mm 0 0;text-align:left;font-size:16px;font-weight:900;line-height:1;white-space:nowrap}.detail-order{font-family:ui-monospace,Consolas,monospace;font-size:16px;font-weight:950}.detail-page+.shipping-items{margin-top:.8mm}.shipping-document .item-index{font-size:11px;font-weight:850}.shipping-document .item-copy strong{font-size:15px;line-height:1.05}.shipping-document .item-copy em{font-size:14px;line-height:1.05}.shipping-document .item-quantity{font-size:16px}.continuation-blank{background:#fff}
.item-name-row{display:flex;align-items:flex-end;justify-content:flex-start;gap:.8mm;min-width:0}.item-name-row em{min-width:0;flex:0 1 auto}.item-barcode{flex:0 1 auto;max-width:31mm;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:400 12px/1 ui-monospace,Consolas,monospace}.storage-location{font-weight:950}
.shipping-note{bottom:4mm}
.erp-label-summary,.erp-label-summary:has(.shipping-note-images.image-only),.shipping-label-page .erp-label-summary,.shipping-label-page .erp-label-summary:has(.shipping-note-images.image-only){min-height:46mm}
.label-sheet{padding:3mm}
.a5-sheet{padding:3mm}
.barcode-panel .label-order{right:7mm;bottom:.5mm}
.label-sort-position{position:absolute;left:3mm;bottom:2mm;z-index:4;padding:4px 9px;border:1px solid #7b8792;border-radius:4px;background:#fff;color:#000;font:950 16px/1.15 "Noto Sans TC",Arial,sans-serif}.barcode-multi-sheet .label-sort-position{left:3mm;bottom:2mm}.barcode-a4-4 .label-sort-position{font-size:14px;padding:3px 7px}
.a5-sheet .order-pair{position:relative;column-gap:6mm}
.a5-sheet .barcode-panel{border-right:0}
.a5-sheet .order-pair::after{content:"";position:absolute;top:0;bottom:0;left:50%;border-left:.3mm dashed #888;pointer-events:none}
.shipping-item{height:auto;min-height:10mm}
.shipping-item .item-copy{padding:.35mm 1mm}
.item-copy strong{display:-webkit-box;white-space:normal;text-overflow:clip;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2}
.item-name-row{align-items:flex-end;flex-wrap:wrap}
.item-name-row em{display:-webkit-box;white-space:normal;text-overflow:clip;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2}
.item-barcode{align-self:flex-end;max-width:100%;margin-top:0;white-space:nowrap}
.pagination-measure{position:absolute;top:0;left:-10000px;visibility:hidden;pointer-events:none}
.draft-split-preview .toolbar{display:none!important}
.draft-split-preview #print-area{padding:12px}
.draft-split-preview .print-sheet{transform:none!important;margin:0 auto 12px!important}
.draft-split-preview .shipping-draft-qr{display:grid;place-items:center;width:24mm;height:24mm;border:.35mm dashed #777;color:#555;text-align:center;font-size:10px;font-weight:800;line-height:1.35}
.shipping-label-page .shipping-item{height:auto;min-height:10mm}
.shipping-label-page .erp-label-summary{padding-right:35mm}
.shipping-label-page .erp-recipient>strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.shipping-label-page .erp-label-summary .shipping-code img{justify-self:end}
.a5-sheet .erp-label-summary .shipping-code img{justify-self:end}
.a5-sheet .erp-shipping-label{padding-bottom:2mm}

/* 蝦皮無包裝的原始圖稿為 40 × 20 mm；標籤機整張等比放大至實際 60 × 30 mm。 */
.nopack-label-sheet{width:60mm;height:30mm;display:block;padding:0}
.nopack-label-sheet .nopack-panel{width:40mm;height:20mm;padding:0;border:0;zoom:1.5}
.nopack-panel .barcode-content{width:40mm;height:20mm;overflow:visible}
.nopack-tag{position:relative;width:40mm;height:20mm;overflow:hidden;border:.5mm solid #000;background:#fff;color:#000;font-family:"Songti TC","Noto Serif CJK TC","PMingLiU",serif;-webkit-print-color-adjust:exact;print-color-adjust:exact}
.nopack-tag::after{content:"";position:absolute;right:0;top:0;width:2.7mm;height:100%;background:#000;clip-path:polygon(0 0,100% 0,100% 100%,0 100%,84% 50%)}
.nopack-sku{position:absolute;top:.8mm;left:1mm;right:3.6mm;overflow:hidden;white-space:nowrap;text-align:center;font:400 5.6pt/1 "Times New Roman",serif}
.nopack-qr{position:absolute;left:.8mm;top:4.5mm;width:10.6mm!important;height:10.6mm!important;max-width:none!important;max-height:none!important;image-rendering:pixelated}
.nopack-product{position:absolute;left:11.5mm;right:4.2mm;top:4.55mm;bottom:4mm;display:flex;flex-direction:column;justify-content:flex-start;gap:.45mm;overflow:hidden;font-size:7.1pt;line-height:1.05}
.nopack-product .nopack-name,.nopack-product .nopack-style{display:-webkit-box;min-height:0;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;white-space:normal;overflow-wrap:anywhere;font-weight:400}
.nopack-tracking{position:absolute;left:1.25mm;right:20mm;bottom:1.15mm;overflow:visible;white-space:nowrap;font:700 6.2pt/1 "Times New Roman",serif;transform:scaleX(.96);transform-origin:left bottom}
.nopack-mark{position:absolute;left:20.7mm;bottom:.8mm;width:2.55mm;height:4.1mm}
.nopack-region{position:absolute;left:24mm;bottom:.5mm;display:grid;place-items:center;width:5mm;height:5mm;border:.3mm solid #000;border-radius:50%;font:400 9pt/1 "Songti TC","Noto Serif CJK TC","PMingLiU",serif}
.nopack-region-north{background:#000;color:#fff;-webkit-print-color-adjust:exact;print-color-adjust:exact}
.nopack-panel .label-order,.nopack-panel .label-sort-position{display:none}
.barcode-a5-2 .nopack-panel,.barcode-a4-4 .nopack-panel{display:flex;align-items:flex-start;justify-content:flex-start}
@media print{.nopack-label-sheet{width:60mm!important;height:30mm!important;padding:0!important}.nopack-label-sheet .nopack-panel{width:40mm!important;height:20mm!important;padding:0!important;border:0!important;zoom:1.5!important}}

/* 標語可能同時含文字、網址與圖片，高度不是固定值。
   改為一般內容流，讓摘要區依實際標語高度擴張，不再向上覆蓋發票或訂單資訊。 */
.erp-label-summary{flex:0 0 auto}
.erp-label-summary .erp-recipient{min-height:27mm;padding-bottom:0}
.erp-label-summary .shipping-note{
  position:relative;
  left:auto;
  right:auto;
  bottom:auto;
  width:auto;
  margin:2mm -40mm 0 0;
}
.shipping-label-page .erp-label-summary .shipping-note{margin-right:-33mm}
.shipping-buyer-note,.shipping-dispatch-note{display:grid;grid-template-columns:auto minmax(0,1fr);gap:1mm;margin-top:.7mm;padding-top:.8mm;border-top:.25mm solid #999;font-size:10px;line-height:1.3}.shipping-buyer-note b,.shipping-dispatch-note b{white-space:nowrap}.erp-recipient .shipping-buyer-note span,.erp-recipient .shipping-dispatch-note span{white-space:pre-wrap;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}.label-sheet .shipping-buyer-note,.label-sheet .shipping-dispatch-note{font-size:11px}

/* 蝦皮店到家宅配（ERP PrintType 47）的原始標籤接近滿版；
   單獨縮放並在底部保留訂單末八碼的安全區，避免內容被裁切或覆蓋。 */
.barcode-panel.print-type-47 .barcode-content{
  transform:scale(.88);
  transform-origin:top center;
  overflow:visible;
}
.a5-sheet .barcode-panel.print-type-47 .barcode-content{transform:scale(.84)}
.barcode-panel.print-type-47 .label-order{
  right:5mm;
  bottom:.5mm;
}

/* 待開發票的純條碼列印排版。 */
.barcode-label{width:100mm;height:150mm;grid-template-columns:1fr}
.black-cat-shipment{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4mm;overflow:hidden;text-align:center;color:#000}.black-cat-shipment strong{font-size:30px;font-weight:950;letter-spacing:.2em}.black-cat-shipment span{color:#000;font-size:20px;font-weight:900;letter-spacing:.16em}.black-cat-shipment b{display:block;max-width:100%;font:950 42px/1.1 ui-monospace,"SFMono-Regular",Consolas,monospace;letter-spacing:.04em;white-space:nowrap}
.barcode-multi-sheet{display:grid;padding:0}.barcode-multi-sheet .barcode-panel{width:auto;height:auto;border:0;padding:2mm}.barcode-multi-sheet .barcode-content img{width:100%;height:100%;object-fit:contain}.barcode-a5-2{width:210mm;height:148mm;grid-template-columns:repeat(2,1fr)}.barcode-a5-2 .barcode-panel+.barcode-panel{border-left:.3mm dashed #888}.barcode-a4-4{width:210mm;height:297mm;grid-template-columns:repeat(2,1fr);grid-template-rows:repeat(2,1fr)}.barcode-a4-8{width:210mm;height:297mm;grid-template-columns:repeat(2,1fr);grid-template-rows:repeat(4,1fr)}.barcode-a4-4 .barcode-panel,.barcode-a4-8 .barcode-panel{border-right:.3mm dashed #888;border-bottom:.3mm dashed #888}.barcode-a4-4 .barcode-panel:nth-child(2n),.barcode-a4-8 .barcode-panel:nth-child(2n){border-right:0}.barcode-a4-4 .barcode-panel:nth-last-child(-n+2),.barcode-a4-8 .barcode-panel:nth-last-child(-n+2){border-bottom:0}.barcode-a4-8 .label-order{font-size:11px;padding:2px 5px}

/* 訂單編號由 JavaScript 依實際可用寬度縮字，末段不得以省略號隱藏。 */
.erp-recipient .shipping-order-info{
  white-space:nowrap!important;
  overflow:visible!important;
  text-overflow:clip!important;
}

/* MO店+ 的新竹物流／貨運原始條碼單需橫轉 90 度閱讀。 */
.barcode-panel.mo-plus-hct-rotate .barcode-content{
  position:absolute;
  top:50%;
  left:50%;
  width:136%;
  height:60%;
  overflow:visible;
  transform:translate(-50%,-50%) rotate(90deg);
  transform-origin:center;
}
.barcode-multi-sheet.nopack-label-sheet .nopack-panel{width:40mm;height:20mm;padding:0;border:0;zoom:1.5}
.barcode-multi-sheet.nopack-label-sheet .barcode-content{width:40mm;height:20mm;overflow:visible}
/* 通用物流單一律不顯示金額；每個欄位獨占一列，長電話不再被右欄裁切。 */
.moz-carrier-label dl{grid-template-columns:17mm minmax(0,1fr);font-size:11px;line-height:1.3}
.moz-carrier-label dt,.moz-carrier-label dd{min-width:0;overflow-wrap:anywhere;word-break:break-word;white-space:normal}
.moz-carrier-label dd.wide{grid-column:auto}
.moz-carrier-label .moz-carrier-phone{font-size:11px;letter-spacing:0;overflow-wrap:anywhere}
.moz-carrier-label header span,.moz-carrier-label footer{min-width:0;overflow-wrap:anywhere;white-space:normal}
/* 螢幕維持易讀的預覽寬度；列印媒體不套用這層縮放。 */
@media screen{body[data-layout="nopack-label"] .nopack-label-sheet{zoom:1.67;transform:none;margin-bottom:18px}}
@media screen and (max-width:440px){body[data-layout="nopack-label"] .nopack-label-sheet{zoom:1.3}}
