/* Print media rules and the print-first container-label page scope.
   Loaded by every page (base.html links it after components.css) so the shared
   print rules — hiding navigation and interactive controls, flattening cards —
   keep applying app-wide, and by the standalone container-label page, which
   bypasses base.html but still needs them plus its own label styles. The
   label's screen styles and print overrides live together here because the
   label surface exists to be printed. */

/* ---------- Container label (standalone print surface) ---------- */
.container-label {
  max-width: 5in;
  margin: 3rem auto;
  text-align: center;
}

.container-label__qr {
  display: block;
  width: min(100%, 4in);
  height: auto;
  margin: 1.5rem auto;
}

.container-label__number {
  font-size: 2rem;
  letter-spacing: 0.04em;
}

/* ---------- Shared print rules ---------- */
@media print {
  .app-nav,
  form,
  button,
  .button {
    display: none !important;
  }

  .card {
    box-shadow: none;
    border: 1px solid #ddd;
    break-inside: avoid;
  }

  /* Container label: hide the on-screen actions and force a white page so the
     QR code prints cleanly. */
  .label-actions {
    display: none;
  }

  body {
    background: white;
  }
}
