@media print {
  /* Hide navigation, buttons, filters, footer when printing */
  header, footer, nav, .sticky, .fixed,
  button, .no-print,
  [aria-label="Previous"], [aria-label="Next"],
  .flex-wrap, .gap-2, .gap-3, .gap-4 {
    display: none !important;
  }

  /* Reset background and use light theme for printing */
  body {
    background: white !important;
    color: black !important;
    font-size: 12pt;
  }

  .bg-gray-800, .bg-gray-900, .bg-gray-700,
  .bg-slate-800, .bg-slate-900 {
    background: white !important;
    border-color: #ddd !important;
    box-shadow: none !important;
  }

  .text-white, .text-gray-300, .text-gray-400 {
    color: black !important;
  }

  .bg-blue-600, .bg-blue-700, .bg-purple-600 {
    background: #e5e7eb !important;
    color: black !important;
  }

  /* Show full-width content */
  .max-w-7xl, main {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Table should be full width */
  table {
    width: 100%;
    border-collapse: collapse;
  }

  th, td {
    border: 1px solid #ddd;
    padding: 6pt;
    font-size: 10pt;
  }

  th {
    background: #f3f4f6 !important;
    font-weight: bold;
  }

  /* Page break rules */
  .break-inside-avoid {
    break-inside: avoid;
  }

  h1 { font-size: 20pt; margin-bottom: 12pt; }
  h2 { font-size: 16pt; margin-bottom: 8pt; }
  h3 { font-size: 13pt; margin-bottom: 6pt; }

  /* Print header */
  @page {
    margin: 1cm;
    size: A4 landscape;
  }

  /* Show URL after links */
  a[href]:after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    color: #666;
  }

  /* Don't print link URLs for internal nav */
  header a[href]:after,
  nav a[href]:after {
    content: none;
  }
}
