/* Exhibits' and spare parts' labels on A4 sheets. Always black on white, as they're printed. */
.label-sheets { margin: 16px 0 80px; overflow-x: auto; }
.label-sheet {
  display: grid; grid-template-columns: repeat(var(--across), var(--width)); grid-auto-rows: var(--height); align-content: start; justify-content: center;
  width: 210mm; height: 296mm; margin: 0 auto 16px; padding: 8mm; background: #fff; color: #000; box-shadow: 0 1px 4px rgb(0 0 0 / 0.25);
  break-after: page; overflow: hidden;
}
.label-sheet:last-child { break-after: auto; }
.code-label {
  display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden;
  /* Cutting lines, shared by the labels on either side. */
  margin: 0 -0.2mm -0.2mm 0; border: 0.2mm dashed #999; padding: 1.5mm; text-align: center;
}
.label-brand { display: flex; align-items: center; justify-content: center; font-weight: 600; white-space: nowrap; max-width: 100%; overflow: hidden; }
.label-brand img { max-width: 100%; max-height: 100%; object-fit: contain; }
.label-code svg { display: block; }
.label-name { max-width: 100%; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; overflow-wrap: anywhere; font-weight: 600; }
.label-small { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #333; }

.label-sheet-small .label-brand { height: 4.6mm; font-size: 2.6mm; }
.label-sheet-small .label-code svg { width: 24mm; height: 24mm; }
.label-sheet-small .label-name { -webkit-line-clamp: 1; font-size: 2.7mm; line-height: 3.8mm; }
.label-sheet-small .label-small { font-size: 2mm; line-height: 2.6mm; }

.label-sheet-medium .label-brand { height: 9mm; font-size: 4mm; }
.label-sheet-medium .label-code svg { width: 34mm; height: 34mm; }
.label-sheet-medium .label-name { -webkit-line-clamp: 2; font-size: 3.6mm; line-height: 4.6mm; }
.label-sheet-medium .label-small { font-size: 2.7mm; line-height: 3.8mm; }

.label-sheet-large .label-brand { height: 18mm; font-size: 6mm; }
.label-sheet-large .label-code svg { width: 78mm; height: 78mm; }
.label-sheet-large .label-name { -webkit-line-clamp: 2; font-size: 6mm; line-height: 8mm; }
.label-sheet-large .label-small { font-size: 3.6mm; line-height: 5.4mm; }

@media print {
  .label-sheets { margin: 0; overflow: visible; }
  .label-sheet { margin: 0; box-shadow: none; }
}

/* A camp's badges and pick-up cards: a band in the group's colour, with a
   border so it still reads in black and white, the QR and the name. */
.label-sheet-card .code-label, .label-sheet-sticker .code-label { padding: 2mm; justify-content: flex-start; align-items: stretch; text-align: start; }
.camp-band { print-color-adjust: exact; -webkit-print-color-adjust: exact; border: 0.3mm solid #000; border-radius: 1mm; font-weight: 700; padding: 0.6mm 2mm; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.camp-band-blue { background: #bfdbfe; color: #1e3a8a; }
.camp-band-green { background: #bbf7d0; color: #14532d; }
.camp-band-amber { background: #fde68a; color: #78350f; }
.camp-band-red { background: #fecaca; color: #7f1d1d; }
.camp-band-purple { background: #e9d5ff; color: #581c87; }
.camp-band-teal { background: #99f6e4; color: #134e4a; }
.camp-band-pink { background: #fbcfe8; color: #831843; }
.camp-band-gray { background: #e5e7eb; color: #111827; }
.camp-band-card { background: #fff; color: #000; }
.camp-body { display: flex; align-items: center; gap: 2.5mm; flex: 1; min-height: 0; }
.camp-text { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 0.8mm; }
.camp-name { font-weight: 700; overflow: hidden; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }

.label-sheet-card .camp-band { font-size: 3.6mm; line-height: 5mm; margin-bottom: 1.5mm; }
.label-sheet-card .label-code svg { width: 34mm; height: 34mm; }
.label-sheet-card .camp-name { font-size: 6mm; line-height: 7mm; }
.label-sheet-card .label-small { font-size: 2.8mm; line-height: 3.8mm; white-space: normal; }

.label-sheet-sticker .camp-band { font-size: 2.6mm; line-height: 3.6mm; margin-bottom: 1mm; padding: 0.3mm 1.2mm; }
.label-sheet-sticker .camp-body { flex-direction: column; gap: 0.6mm; }
.label-sheet-sticker .label-code svg { width: 22mm; height: 22mm; }
.label-sheet-sticker .camp-text { align-items: center; text-align: center; width: 100%; }
.label-sheet-sticker .camp-name { font-size: 3.2mm; line-height: 3.8mm; -webkit-line-clamp: 1; }
.label-sheet-sticker .label-small { font-size: 2mm; line-height: 2.6mm; }
