.ebs-label-action { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 3px; vertical-align: top; }
.ebs-label-printed { color: #087c50; font-size: 12px; font-weight: 700; }
.ebs-label-updated { color: #a34000; font-size: 12px; font-weight: 700; }
.ebs-label-preview, .ebs-label-confirm { padding: 0; border: 1px solid #b8c2c9; border-radius: 6px; background: #fff; color: #172124; max-width: calc(100vw - 24px); }
.ebs-label-preview { width: 460px; max-height: calc(100dvh - 24px); }
.ebs-label-preview::backdrop, .ebs-label-confirm::backdrop { background: #0008; }
.ebs-label-preview > header { padding: 12px; border-bottom: 1px solid #c8cdd1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.ebs-label-preview h3 { font-size: 15px; margin: 0; }
.ebs-label-preview-scroll { max-height: calc(100dvh - 130px); overflow: auto; background: #e7ebed; }
.ebs-label-preview-pages { width: max-content; min-width: 100%; padding: 12px; display: grid; gap: 12px; justify-items: center; }
.ebs-label-preview-pages > .ebs-order-label { box-shadow: 0 1px 5px #0003; width: 100mm; height: 135mm; padding: 2.5mm 5mm 6mm; }
.ebs-label-confirm { padding: 20px; width: 390px; }
.ebs-label-confirm h3 { margin: 0 0 10px; font-size: 18px; }
#ebsOrderLabelPrintArea { display: none; }
body.ebs-order-label-print-mode #ebsOrderLabelPrintArea { display: block; position: absolute; left: -10000px; top: 0; }
.ebs-order-label { box-sizing: border-box; width: 90mm; height: 126.5mm; display: block; margin: 0; padding: 0; background: #fff; color: #000; font: 7pt/1.2 Arial, sans-serif; letter-spacing: 0; }
.ebs-order-label * { box-sizing: border-box; min-width: 0; min-height: 0; color: #000; letter-spacing: 0; }
.ebs-label-content { display: inline-block; position: relative; width: 100%; height: 100%; vertical-align: top; }
.ebs-label-top { position: absolute; top: 0; left: 0; right: 0; height: 41mm; display: grid; grid-template-columns: minmax(0, 1fr) 32mm; gap: 3mm; }
.ebs-label-left { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 1mm; }
.ebs-label-identifiers { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 2mm; align-content: start; padding-top: var(--ebs-qr-inset, 0mm); }
.ebs-label-identifiers > div { display: flex; flex-direction: column; gap: .5mm; }
.ebs-label-identifiers span, .ebs-label-codes span, .ebs-label-recipient > span { display: block; font-size: 4.9pt; line-height: 1.2; font-weight: 700; }
.ebs-order-label [data-ebs-label-fit] { display: block; overflow-wrap: anywhere; }
.ebs-label-order b { font-size: 9.1pt; line-height: 1.1; height: 6mm; white-space: nowrap; }
.ebs-label-carrier span { font-size: 7pt; }
.ebs-label-carrier b { font-size: 12pt; height: 8mm; }
.ebs-label-codes { display: grid; grid-template-rows: 30mm 9mm; gap: .5mm; align-content: start; text-align: center; }
.ebs-label-code { display: block; height: 30mm; width: 30mm; justify-self: center; image-rendering: pixelated; }
.ebs-label-codes b { font-size: 7.7pt; height: 7mm; line-height: 1.15; }
.ebs-label-order-code { border-top: .25mm solid #000; padding-top: .25mm; }
.ebs-label-recipient { display: grid; grid-template-rows: 2.1mm auto auto minmax(0, 1fr); gap: .35mm; align-content: start; }
.ebs-label-recipient > strong { font-size: 9.1pt; line-height: 1.15; max-height: 8mm; }
.ebs-label-address { font-size: 7pt; line-height: 1.2; margin: 0; white-space: pre-line; }
.ebs-label-address p { margin: 0; font: inherit; }
.ebs-label-address small { display: block; font-size: .9em; }
.ebs-label-location { font-size: 6.3pt; line-height: 1.2; max-height: 4mm; }
.ebs-label-products { position: absolute; top: 43mm; bottom: 8mm; left: 0; right: 0; border-top: .5mm solid #000; display: grid; grid-template-rows: minmax(0, 1fr); }
.ebs-label-product-list { font-size: 7pt; }
.ebs-label-product-list table { width: 100%; min-width: 0; table-layout: fixed; border-collapse: collapse; font: inherit; }
.ebs-label-quantity-col { width: 14mm; }
.ebs-label-product-list th { padding: 1.5mm 0; background: #fff; border: 0; border-bottom: .25mm solid #000; font-size: 7.7pt; line-height: 1.2; font-weight: 700; text-align: left; white-space: nowrap; }
.ebs-label-product-list td { padding: 1mm 0; border: 0; border-bottom: .2mm solid #999; vertical-align: top; font: inherit; line-height: 1.15; white-space: normal; overflow-wrap: anywhere; }
.ebs-label-product-list td:first-child { padding-right: 2mm; }
.ebs-label-product-list th:last-child, .ebs-label-product-list td:last-child { text-align: right; font-weight: 700; }
.ebs-label-product-list strong { display: block; font-size: 1em; }
.ebs-label-product-list small { display: block; margin-top: .5mm; font-size: .8em; line-height: 1.15; }
.ebs-label-note { margin-top: 1mm; font-size: .9em; overflow-wrap: anywhere; white-space: pre-line; }
.ebs-label-footer { position: absolute; bottom: 0; left: 0; right: 0; height: 6mm; display: flex; align-items: center; justify-content: space-between; gap: 2mm; border-top: .5mm solid #000; padding-top: 1mm; font-size: 5.6pt; }
.ebs-label-footer > strong { display: flex; align-items: center; gap: 2mm; white-space: nowrap; }
.ebs-label-footer > strong b { font-size: 9.8pt; line-height: 1; }
@media print {
  @page ebs-order-label { size: 100mm 135mm; margin: 2.5mm 5mm 5mm; }
  body.ebs-order-label-print-mode > *:not(#ebsOrderLabelPrintArea) { display: none !important; }
  body.ebs-order-label-print-mode { margin: 0 !important; padding: 0 !important; background: #fff; }
  body.ebs-order-label-print-mode #ebsOrderLabelPrintArea { display: block !important; position: static; margin: 0; padding: 0; }
  #ebsOrderLabelPrintArea > .ebs-order-label { page: ebs-order-label; break-after: page; break-inside: avoid; }
  #ebsOrderLabelPrintArea > .ebs-order-label:last-child { break-after: auto; }
}
