/*
 * Print stylesheet — §S11.
 *
 * Sales managers print or PDF the reports screen for reviews, so ⌘P must give
 * a clean one-page summary rather than a screenshot of the app. The app marks
 * its own regions with data-* attributes (see MyReportsScreen) and the shell
 * chrome is identified structurally.
 */

@media print {
  /* Never waste ink on navigation. */
  [data-printhide='true'],
  nav,
  [role='banner'],
  [role='navigation'] {
    display: none !important;
  }

  html,
  body,
  #root {
    background: #fff !important;
    height: auto !important;
    overflow: visible !important;
  }

  /* The shell nests scroll containers; printing needs them all to flow. */
  #root * {
    overflow: visible !important;
    box-shadow: none !important;
  }

  [data-printroot='true'] {
    padding: 0 !important;
    max-width: none !important;
  }

  /* Cards keep a hairline border so blocks stay distinguishable in greyscale. */
  [data-printroot='true'] > div {
    border: 1px solid #e5e7eb !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  a[href]::after {
    content: '';
  }

  @page {
    margin: 12mm;
  }
}
