/* ============================================================
   Bottle labels — print at REAL SIZE.
   Front label 85mm wide x 110mm tall; back label 85mm wide
   x 150mm tall (fits a 200ml sauce bottle). Print at 100%
   scale — do NOT "fit to page".
   Screen shows them side by side; print puts each on its own
   area of an A4 sheet.
   ============================================================ */
* { box-sizing: border-box; }
body {
  margin: 0; font-family: Arial, Helvetica, sans-serif;
  color: #111; background: #f2f2f2; font-size: 13px; line-height: 1.4;
}
.toolbar {
  max-width: 960px; margin: 0 auto; padding: 18px 20px;
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
}
.toolbar h1 { font-size: 1.2rem; margin: 0; }
.toolbar a { color: #b51c4c; }
.btn {
  background: #b51c4c; color: #fff; border: none; cursor: pointer;
  font: inherit; font-weight: 700; padding: 10px 20px; border-radius: 999px;
}
.btn:hover { background: #8f163d; }
.note {
  max-width: 960px; margin: 0 auto 18px; padding: 12px 16px;
  background: #fff7e6; border-left: 4px solid #d9930d; font-size: .92rem;
}
.sheet {
  max-width: 960px; margin: 0 auto 32px; padding: 0 20px;
  display: flex; gap: 24px; flex-wrap: wrap;
}
.label {
  width: 85mm; height: 110mm; background: #fff; flex: none;
  border: 1px solid #999; position: relative; overflow: hidden;
  padding: 4mm 5mm 3mm;
  display: flex; flex-direction: column;
}
.label h2 { margin: 0; font-size: 15pt; line-height: 1.1; }
.label .sub { font-size: 9pt; color: #333; margin-top: 1mm; }
.label .emotion-vn { font-size: 8pt; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #b51c4c; margin-top: 1mm; }
.label .brand { font-size: 8pt; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #b51c4c; }
.label img.logo { height: 11mm; width: auto; margin-bottom: 2mm; }
.label .band { height: 4mm; margin: 3mm -5mm 0; }
.label .foot { margin-top: auto; font-size: 8pt; color: #333; border-top: 1px solid #ccc; padding-top: 2mm; }
.label .big { font-size: 11pt; font-weight: 700; }
.label .tag { font-size: 8.5pt; font-style: italic; color: #444; margin-top: 2mm; }
.label .net { font-size: 10pt; font-weight: 700; }

/* back label — taller: the nutrition panel needs the room */
.label.back { height: 150mm; font-size: 7pt; line-height: 1.25; }
.label.back h3 { font-size: 8pt; margin: 1mm 0 0.6mm; text-transform: uppercase; letter-spacing: .04em; }
.label.back p { margin: 0 0 1.2mm; }
.label.back table.nip { width: 100%; border-collapse: collapse; font-size: 7pt; margin: 1mm 0; }
.label.back table.nip th, .label.back table.nip td { border: 1px solid #999; padding: 0.7mm 1.2mm; text-align: left; }
/* compact placeholders inside the nutrition table — the dashed boxes
   would make every row too tall */
.label.back table.nip .fill { display: inline; padding: 0; border: none; background: transparent; }
.label.back table.nip th { background: #eee; }
.label.back table.nip td.num, .label.back table.nip th.num { text-align: right; }
.fill {
  background: #fff7e6; border: 1px dashed #d9930d; padding: 1mm 1.5mm;
  display: inline-block;
}
.barcode {
  border: 1px solid #111; height: 10mm; margin-top: 2mm;
  display: flex; align-items: center; justify-content: center;
  font-size: 7pt; letter-spacing: .1em; background: repeating-linear-gradient(90deg, #111 0 2px, #fff 2px 4px);
}
.barcode span { background: #fff; padding: 0 4px; font-weight: 700; }
.label .madein { font-size: 7.5pt; margin-top: 2mm; }

@media print {
  @page { size: A4; margin: 12mm; }
  body { background: #fff; }
  .toolbar, .note, .no-print { display: none !important; }
  .sheet { max-width: none; padding: 0; margin: 0; gap: 10mm; }
  .label { border: 1px solid #000; break-inside: avoid; page-break-inside: avoid; }
}
