/* Print Styles for PDF Export */
@media print {
  @page {
    margin: 15mm;
    size: auto;
    background: var(--bg-color) !important;
  }

  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  html,
  body {
    height: auto;
    overflow: visible;
    /* Disable CRT animations */
    animation: none !important;
  }

  /* Hide interactive elements */
  .command-line,
  .sidebar,
  .vhs-tracking,
  #download-progress,
  .download-btn,
  .boot-screen {
    display: none !important;
  }

  .pdf-hide {
    display: none !important;
  }

  .layout {
    display: block;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .main-display {
    border: none !important;
    border-radius: 0 !important;
    overflow: visible;
    padding: 0;
    margin: 0;
    background: transparent !important;
  }

  .job-entry {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  h2 {
    break-after: avoid;
    page-break-after: avoid;
  }
}

@-moz-document url-prefix() {
  @media print {
    @page {
      background: white !important;
    }

    html,
    body {
      background: white !important;
      color: black !important;
    }
    body::after {
      display: none !important;
    }
    body::before {
      display: none !important;
    }

    * {
      color: black !important;
    }

    /* Preserve some colors for readability if needed */
    a {
      color: #0066cc !important;
    }
  }
}
