/* Printable answer sheets (A4). On screen they are shown as white pages. */
.print-toolbar { position: sticky; top: 0; z-index: 5; display: flex; gap: 10px; align-items: center; padding: 10px 16px; background: var(--bg2); border-bottom: 1px solid var(--line); }
.sheets { display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 24px; }
.sheet {
  width: 210mm; min-height: 297mm; padding: 16mm 16mm 14mm;
  background: #fff; color: #111; font-family: var(--font);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  display: flex; flex-direction: column;
}
.sh-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10mm; border-bottom: 1.2mm solid #111; padding-bottom: 3mm; }
.sh-pack { font-size: 12pt; font-weight: 700; color: #555; }
.sh-round { font-size: 20pt; font-weight: 900; text-align: right; }
.sh-team { display: flex; align-items: flex-end; gap: 3mm; font-size: 18pt; font-weight: 800; margin: 9mm 0 6mm; }
.sh-team .line { flex: 1; border-bottom: 0.5mm solid #111; height: 9mm; }
.sh-note { font-size: 10.5pt; color: #444; margin-bottom: 4mm; }
.sh-table { width: 100%; border-collapse: collapse; }
.sh-table th { font-size: 10pt; text-transform: uppercase; color: #666; text-align: left; padding: 0 2mm 2mm; }
.sh-table td { border-bottom: 0.3mm solid #999; height: 15mm; font-size: 16pt; }
.dense .sh-table td { height: 10mm; font-size: 13pt; }
.denser .sh-table td { height: 7.4mm; font-size: 11pt; }
.denser .sh-team { margin: 5mm 0 3mm; }
td.c-mc span { display: inline-grid; place-items: center; width: 9mm; height: 9mm; margin-right: 5mm; border: 0.4mm solid #111; border-radius: 50%; font-size: 13pt; font-weight: 800; }
.denser td.c-mc span, .denser td.c-bet span { width: 6.4mm; height: 6.4mm; font-size: 10pt; }
.sh-grid { width: 100%; border-collapse: collapse; table-layout: fixed; }
.sh-grid th { font-size: 12pt; padding: 2mm; border: 0.4mm solid #111; background: #eee; }
.sh-grid td { border: 0.4mm solid #111; height: 24mm; }
.sh-grid th:first-child { width: 42mm; }
td.g-theme { font-size: 12pt; font-weight: 800; padding: 2mm; vertical-align: middle; }
.c-num { width: 12mm; font-weight: 900; text-align: center; }
th.c-num { text-align: center; }
.c-bet { width: 42mm; white-space: nowrap; }
td.c-bet span { display: inline-grid; place-items: center; width: 10mm; height: 10mm; margin-right: 2mm; border: 0.4mm solid #111; border-radius: 50%; font-size: 13pt; font-weight: 800; }
.sh-foot { display: flex; justify-content: space-between; margin-top: auto; padding-top: 6mm; font-size: 12pt; color: #444; }

@page { size: A4 portrait; margin: 0; }
@media print {
  html, body { background: #fff !important; }
  body.print-page .print-toolbar { display: none; }
  .sheets { display: block; padding: 0; }
  .sheet { box-shadow: none; width: 210mm; height: 297mm; min-height: 0; page-break-after: always; break-after: page; }
  .sheet:last-child { page-break-after: auto; break-after: auto; }
  .toasts { display: none; }
}
