.price-label { box-sizing: border-box; width: 58mm; height: 40mm; padding: 2.5mm 2.5mm 1.5mm; background: white; color: #000; font-family: Arial, Helvetica, sans-serif; text-align: center; overflow: hidden; }
.label-content { height: 100%; display: flex; flex-direction: column; }
.label-brand { flex: 0 0 4mm; font-size: 12px; line-height: 4mm; white-space: nowrap; }
.label-name-area { height: 15.5mm; flex: 0 0 15.5mm; padding-top: .5mm; box-sizing: border-box; overflow: hidden; }
.label-name { font-size: 17px; line-height: 1.17; overflow-wrap: anywhere; white-space: pre-line; }
.label-price { margin-top: auto; flex: 0 0 7mm; font-size: 23px; font-weight: 700; line-height: 7mm; white-space: nowrap; }
.label-date { flex: 0 0 4mm; font-size: 12px; line-height: 4mm; white-space: nowrap; }
@page { size: 58mm 40mm; margin: 0; }
@media print {
  html, body { width: 58mm; margin: 0 !important; padding: 0 !important; background: white !important; }
  .print-controls { display: none !important; }
  .price-label { margin: 0 !important; border-radius: 0 !important; box-shadow: none !important; break-inside: avoid; break-after: page; page-break-after: always; print-color-adjust: exact; }
  .price-label:last-child { break-after: auto; page-break-after: auto; }
  #labels { margin: 0 !important; padding: 0 !important; display: block !important; }
}
