if (typeof self === 'undefined') { var self = globalThis; }
@media print {
  /* Hide navigation and background elements */
  nav,
  footer,
  .print-hide {
    display: none !important;
  }

  /* Reset background colors for print */
  body,
  .min-h-screen {
    background: white !important;
    color: black !important;
  }

  /* Adjust text colors for print */
  h1, h2, h3, h4, h5, h6,
  .text-white,
  .text-white\/80,
  .text-white\/60,
  .text-white\/40 {
    color: black !important;
  }

  /* Style panels for print — legacy hex selectors */
  .bg-\[\#1a1b23\],
  [class*="border-\[\#2a2b35\]"] {
    background: white !important;
    border-color: #ddd !important;
    border-width: 1px !important;
  }

  /* Style panels for print — Tailwind custom classes */
  .bg-midnight-lighter,
  [class*="bg-midnight-lighter"] {
    background: white !important;
  }

  .border-midnight-border,
  [class*="border-midnight-border"] {
    border-color: #ddd !important;
    border-width: 1px !important;
  }

  /* Adjust purple accents for print — legacy hex selectors */
  .text-\[\#8b5cf6\],
  .bg-\[\#8b5cf6\]\/10,
  .border-\[\#8b5cf6\]\/20 {
    color: #6b46c1 !important;
    background-color: #f3f0ff !important;
    border-color: #6b46c1 !important;
  }

  /* Adjust purple accents for print — Tailwind classes */
  .text-purple,
  [class*="text-purple"] {
    color: #6b46c1 !important;
  }

  .bg-purple\/10,
  [class*="bg-purple\/10"] {
    background-color: #f3f0ff !important;
  }

  .border-purple\/20,
  .border-purple\/30,
  [class*="border-purple"] {
    border-color: #6b46c1 !important;
  }

  /* Gradient banners for print */
  [class*="from-purple"],
  [class*="to-purple"] {
    background: #f3f0ff !important;
  }

  /* Remove animations and transitions */
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  /* Page breaks */
  .page-break-before {
    page-break-before: always;
  }

  .page-break-after {
    page-break-after: always;
  }

  /* Ensure sections don't break across pages */
  section,
  .rounded-xl {
    page-break-inside: avoid;
  }

  /* Hide interactive elements */
  button:not(.print-show) {
    display: none !important;
  }

  /* Ensure links are visible in print */
  a[href] {
    color: #6b46c1 !important;
    -webkit-text-decoration: underline !important;
    text-decoration: underline !important;
  }
}

/* Format for print - moved outside media query */
@page {
  margin: 1in;
  size: letter;
}

