/* BIKEFILL · Print-Layout
   Eine A4-Seite pro Datensatz, zweimal pro Auftrag (Original + Kopie).
   Wird nur beim Drucken aktiviert (über media="print" im <link>). */

@page {
  size: A4;
  margin: 10mm 12mm;
}

html, body {
  background: white !important;
  font-size: 10pt;
}

/* Alles außer dem Print-Root verstecken */
body > *:not(#print-root) { display: none !important; }

.print-root { display: block !important; }

.print-page {
  page-break-after: always;
  break-after: page;
  page-break-inside: avoid;
  break-inside: avoid;
  overflow: hidden;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  color: #000;
  /* A4 Höhe minus margins ≈ 277mm — wir halten den Inhalt darunter */
  max-height: 275mm;
  display: flex;
  flex-direction: column;
}
.print-page:last-child {
  page-break-after: auto;
}

/* Header */
.pp-header {
  text-align: center;
  border-bottom: 2.5px solid #000;
  padding-bottom: 4mm;
  margin-top: 40mm;     /* Kopfzeile ca. 4 cm nach unten versetzt */
  margin-bottom: 4mm;
}
.pp-id {
  font-size: 18pt;
  font-weight: 900;
  font-family: 'Courier New', monospace;
  letter-spacing: 1.5px;
  margin-bottom: 1mm;
}
.pp-header .pp-barcode {
  margin: 0 auto 2mm;
}

/* Großes, gut sichtbares Druckdatum (FIFO-Steuerung in der Montage) */
.pp-printdate {
  text-align: center;
  font-size: 15pt;
  font-weight: 700;
  border: 2.5px solid #000;
  border-radius: 2mm;
  padding: 2mm;
  margin-bottom: 4mm;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.pp-printdate strong { font-size: 22pt; font-weight: 900; }

/* Montiert/Unmontiert-Kennung auf dem Begleitschein */
.pp-mont {
  display: inline-block; font-size: 9pt; font-weight: 900;
  border: 1.5px solid #000; padding: 0.5mm 2mm; margin-left: 2mm;
  vertical-align: middle; letter-spacing: 0.5px;
}
.pp-mont.montiert { background: #000; color: #fff; }

/* Artikel-Block */
.pp-article {
  text-align: center;
  margin-bottom: 4mm;
}
.pp-article-name {
  font-size: 14pt;
  font-weight: bold;
  line-height: 1.15;
}
.pp-article-modell {
  font-size: 10pt;
  color: #555;
  font-style: italic;
  margin-top: 0.5mm;
}
.pp-article-meta {
  font-size: 9pt;
  color: #333;
  margin-top: 1mm;
}

/* Barcode-Sektionen — kompakt */
.pp-section {
  border: 1.5px solid #000;
  padding: 2.5mm 5mm 3mm;
  margin-bottom: 3mm;
  text-align: center;
  page-break-inside: avoid;
}
.pp-section-label {
  font-size: 8pt;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #555;
  margin-bottom: 1mm;
}
.pp-section-value {
  font-size: 13pt;
  font-weight: bold;
  font-family: 'Courier New', monospace;
  margin-bottom: 1.5mm;
}
.pp-barcode { display: block; margin: 0 auto; max-width: 100%; height: auto; }

/* Scannbare Sektionen ab Artikelnummer im Wechsel nach links / rechts versetzt */
.pp-section.pp-left  { text-align: left; }
.pp-section.pp-right { text-align: right; }
.pp-section.pp-left  .pp-barcode { margin-left: 0;    margin-right: auto; }
.pp-section.pp-right .pp-barcode { margin-left: auto; margin-right: 0;    }

/* Hinweis-Kästen */
.pp-warnings {
  display: flex;
  gap: 3mm;
  margin: 3mm 0;
}
.pp-warning {
  flex: 1;
  border: 2.5px solid #000;
  padding: 3mm;
  text-align: center;
  font-size: 11pt;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Großer Footer mit Verwendungs-Hinweis */
.pp-big-footer {
  margin-top: auto;
  padding: 3mm 4mm;
  background: #000;
  color: #fff;
  text-align: center;
  font-size: 13pt;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

/* Footer der Seite (klein) */
.pp-footer {
  margin-top: 2mm;
  padding-top: 1.5mm;
  border-top: 1px dashed #888;
  font-size: 7.5pt;
  color: #666;
  display: flex;
  justify-content: space-between;
}
