.wdm-team-report-print-sheet { display: none; }
.wdm-team-report-print-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block: 16px; }
.wdm-team-report-print-actions p { flex-basis: 100%; margin: 0; font-size: 14px; line-height: 1.5; color: var(--wdm-theme-muted, #c3ccd8); }
@page wdm-rdl-report { size: A4 portrait; margin: 8mm; }
@media print {
  body:has(.wdm-team-report-print-sheet) *:not(:has(.wdm-team-report-print-sheet)):not(.wdm-team-report-print-sheet):not(.wdm-team-report-print-sheet *) { display: none !important; }
  body:has(.wdm-team-report-print-sheet) :has(.wdm-team-report-print-sheet) { margin: 0 !important; padding: 0 !important; border: 0 !important; width: auto !important; max-width: none !important; }
  body:has(.wdm-team-report-print-sheet) { margin: 0 !important; padding: 0 !important; }
  body .wdm-team-report-print-sheet { page: wdm-rdl-report; display: block !important; color: #000 !important; background: #fff !important; width: 100%; font: 9pt/1.25 Arial, sans-serif; }
  body .wdm-team-report-print-sheet * { box-sizing: border-box; color: #000 !important; background: #fff !important; font-family: Arial, sans-serif; box-shadow: none !important; text-shadow: none !important; animation: none !important; }
  body:has(.wdm-team-report-print-sheet.is-current) .wdm-team-report-print-sheet:not(.is-current) { display: none !important; }
  body .wdm-team-report-print-sheet header { margin-bottom: 3mm; }
  body .wdm-team-report-print-sheet h2 { font-size: 15pt; line-height: 1.2; margin: 0 0 2mm; }
  body .wdm-team-report-print-sheet h3 { font-size: 10pt; margin: 0 0 1mm; }
  body .wdm-team-report-print-sheet p { margin: 1mm 0; font-size: 9pt; line-height: 1.25; }
  body .wdm-team-report-print-sheet .wdm-print-state { border: 1px solid #666; padding: 1mm; font-size: 8pt; }
  body .wdm-team-report-print-sheet .wdm-print-rosters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3mm; margin-bottom: 3mm; }
  body .wdm-team-report-print-sheet table { width: 100%; min-width: 0; table-layout: fixed; border-collapse: collapse; margin: 0; }
  body .wdm-team-report-print-sheet :is(th, td) { padding: 1mm; border: 1px solid #666; font-size: 8pt; line-height: 1.2; white-space: normal; overflow-wrap: anywhere; }
  body .wdm-team-report-print-sheet .wdm-print-rosters :is(th, td) { height: 8mm; text-align: center; }
  body .wdm-team-report-print-sheet .wdm-print-rosters td:nth-child(2) { text-align: left; }
  body .wdm-team-report-print-sheet .wdm-print-games :is(th, td) { height: 8mm; }
  body .wdm-team-report-print-sheet .wdm-print-games td small { font-size: 7pt; font-weight: bold; }
  body .wdm-team-report-print-sheet [data-print-forfeit]:not(:empty) { display: block; margin-top: 0.5mm; font-size: 7pt; }
  body .wdm-team-report-print-sheet .wdm-print-score { text-align: center; font-size: 11pt; }
  body .wdm-team-report-print-sheet tr { break-inside: avoid; }
  body .wdm-team-report-print-sheet .wdm-print-total { font-weight: bold; border: 1px solid #666; padding: 2mm; margin-top: 2mm; }
  body .wdm-team-report-print-sheet .wdm-print-legend { font-size: 8pt; }
  body .wdm-team-report-print-sheet .wdm-print-note { white-space: pre-wrap; overflow-wrap: anywhere; border: 1px solid #666; min-height: 12mm; padding: 2mm; margin-top: 2mm; }
  body .wdm-team-report-print-sheet footer { display: flex; gap: 4mm; justify-content: space-between; margin-top: 4mm; break-inside: avoid; }
}
