/* Impressão e PDF ("Salvar como PDF" do navegador) em A4, sem gem. */
.print-only { display: none; }

@media print {
  @page { size: A4; margin: 14mm 12mm; }

  body { background: #fff; color: #000; font-size: 11pt; }
  .nav, .topbar, .tabs, .flash, .no-print, .page-header__back, .button, form { display: none !important; }
  .print-only { display: inline; }
  .app-shell { display: block !important; }
  .app-shell__main { margin: 0 !important; padding: 0 !important; max-width: none !important; }
  .table-scroll { overflow: visible; }
  .card, .stat { border: 1px solid #999; box-shadow: none; break-inside: avoid; }
  .closing-section, .record-list tr { break-inside: avoid; }
  a { color: inherit; text-decoration: none; }

  /* Tabelas voltam a ser tabelas no papel, mesmo vindo do celular. */
  .record-list { display: table !important; width: 100%; border-collapse: collapse; font-size: 9pt; }
  .record-list thead { display: table-header-group !important; position: static; width: auto; height: auto; clip: auto; overflow: visible; }
  .record-list tbody { display: table-row-group !important; }
  .record-list tr { display: table-row !important; }
  .record-list th, .record-list td { display: table-cell !important; padding: 2mm 1.5mm; border-bottom: 1px solid #ccc; text-align: left; }
  .record-list td::before { content: none !important; }
  .stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3mm; }
}
