/* Impressão / PDF — carregado com media="print" em todas as páginas */
@page { size: A4; margin: 12mm; }
*{ -webkit-print-color-adjust: exact; print-color-adjust: exact; }
html, body { background: #fff !important; color: #000; }
body { display: block; min-height: 0; font-size: 11pt; }
.no-print, .topbar, .footer, .toasts, dialog, .alert, .pager, .toolbar, .edit-banner { display: none !important; }
.container { max-width: none; padding: 0; margin: 0; }
.card, .report-sheet, .table-wrap, .stat, .challenge-summary { box-shadow: none !important; }

/* Relatório do desafio: a folha ocupa a página inteira, sem moldura */
.report-sheet { border: 0; padding: 0; max-width: none; border-radius: 0; }
.report-grid { grid-template-columns: repeat(10, 1fr); gap: 4px; }
.rtile { min-height: 11mm; }
.report-table thead { display: table-header-group; }
.report-table tr { break-inside: avoid; }
.report-head, .report-totals, .report-foot { break-inside: avoid; }

/* Histórico e demais tabelas */
.table-wrap { border: 1px solid #bbb; overflow: visible; }
th { position: static; }
tr { break-inside: avoid; }
a { text-decoration: none; color: inherit; }

/* Tela do desafio (se alguém imprimir direto dela) */
.tile-scroll { max-height: none; overflow: visible; border: 0; padding: 0; }

.report-totals { grid-template-columns: repeat(4, 1fr); }
.report-foot { grid-template-columns: repeat(3, 1fr); }
