/* Print Styles */
@media print {
  /* Hide site header navigation */
  #site-header {
    display: none !important;
  }

  /* Hide site footer */
  #site-footer {
    display: none !important;
  }

  /* Hide Watch Game Video button */
  #game-video-button {
    display: none !important;
  }

  /* Hide shot chart filters */
  #shot-chart-filters,
  #opponent-shot-chart-filters {
    display: none !important;
  }

  /* Hide season stat leaders section */
  #season-stat-leaders {
    display: none !important;
  }

  /* Optimize page breaks */
  h1, h2, h3 {
    page-break-after: avoid;
  }

  table {
    page-break-inside: avoid;
  }

  /* Ensure tables print properly */
  table {
    width: 100%;
  }

  /* Remove unnecessary spacing for print */
  body {
    margin: 0;
    padding: 10px;
  }

  /* Fix React stats page table overflow issues */

  /* Force all overflow to be visible - most important rule */
  #stats-root *,
  #stats-root div,
  #stats-root table,
  .mantine-ScrollArea-root,
  .mantine-Table-root {
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    max-width: none !important;
  }

  /* Remove min-width constraints on tables */
  #stats-root table {
    min-width: auto !important;
    width: 100% !important;
    table-layout: auto !important;
  }

  /* Remove sticky positioning from all elements */
  #stats-root th,
  #stats-root td {
    position: static !important;
    left: auto !important;
    background: transparent !important;
  }

  /* Scale down font sizes for better fit */
  #stats-root table {
    font-size: 7pt !important;
  }

  #stats-root th,
  #stats-root td {
    padding: 1px 3px !important;
    white-space: nowrap !important;
    font-size: 7pt !important;
  }

  /* Compact badge and text sizes */
  #stats-root .mantine-Badge-root {
    font-size: 6pt !important;
    padding: 1px 3px !important;
  }

  #stats-root .mantine-Text-root {
    font-size: 7pt !important;
  }

  #stats-root .mantine-Title-root {
    font-size: 10pt !important;
    margin-bottom: 4px !important;
  }

  /* Remove shadows and borders that waste ink */
  #stats-root .mantine-Paper-root,
  #stats-root .mantine-Card-root {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
  }

  /* Compact spacing for print */
  #stats-root .mantine-Stack-root {
    gap: 4px !important;
  }

  #stats-root .mantine-Paper-root,
  #stats-root .mantine-Card-root {
    padding: 6px !important;
    margin-bottom: 6px !important;
    page-break-inside: avoid;
  }

  /* Hide tooltips and popovers */
  .mantine-Tooltip-root,
  .mantine-Popover-root {
    display: none !important;
  }

  /* Landscape orientation for wide tables */
  @page {
    size: landscape;
    margin: 0.5cm;
  }

  /* Shrink container for print */
  #stats-root .mantine-Container-root {
    max-width: 100% !important;
    padding: 0 !important;
  }

  /* Remove group gaps */
  #stats-root .mantine-Group-root {
    gap: 2px !important;
  }
}
