.warehouse-barcode-sheet { padding: 24px; }
.warehouse-barcode-sheet h1 { margin: 16px 0 8px; }
.warehouse-barcode-sticker { box-sizing: border-box; width: 58mm; height: 40mm; padding: 3mm; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2mm; color: black; background: white; outline: 1px solid #ddd; }
.warehouse-barcode-sticker > svg { width: 100% !important; height: auto; }
.warehouse-barcode-sticker > span { font: 10pt monospace; }
.warehouse-barcode-sheet footer { margin-top: 20px; }
.warehouse-barcode-sheet footer button { margin-top: 12px; }
@page avito-barcode { size: 58mm 40mm; margin: 0; }
#warehouse-current-barcode:has(.warehouse-inline-sticker) + #avito-original-panel:has(#avito-label-pending-title) {
  display: none;
}

@media print {
  body.warehouse-barcode-sheet { page: avito-barcode; margin: 0; padding: 0; min-height: 0; background: white; }
  .warehouse-barcode-sheet header, .warehouse-barcode-sheet footer, .warehouse-barcode-sheet [role="status"] { display: none; }
  .warehouse-barcode-sticker { outline: none; break-inside: avoid; }
}
@media print {
  html:has(.warehouse-inline-sticker), body:has(.warehouse-inline-sticker) { page: avito-barcode; margin: 0 !important; padding: 0 !important; min-height: 0 !important; height: 0 !important; }
  body:has(.warehouse-inline-sticker) *:not(:has(.warehouse-inline-sticker), .warehouse-inline-sticker, .warehouse-inline-sticker *) { display: none !important; }
  body :has(.warehouse-inline-sticker) { display: contents !important; }
  .warehouse-inline-sticker { position: absolute; top: 0; left: 0; }
}
