/* =========================================================
   print.css — Print-specific overrides
   ========================================================= */

@media print {
  /* Hide non-report elements */
  #app-header,
  #wizard-progress,
  #wizard-nav,
  #resume-banner,
  .report-controls,
  #theme-toggle,
  #org-indicator {
    display: none !important;
  }

  /* Force white background */
  html, body {
    background: #fff !important;
    color: #000 !important;
  }

  #app-body {
    padding: 0 !important;
    max-width: 100% !important;
  }

  /* Avoid breaking domain cards across pages */
  .domain-result-card,
  .card {
    page-break-inside: avoid;
    break-inside: avoid;
    box-shadow: none !important;
    border: 1px solid #ddd !important;
  }

  /* Gaps table should stay together when possible */
  .gaps-table {
    page-break-inside: auto;
  }
  .gaps-table tr {
    page-break-inside: avoid;
    break-inside: avoid;
  }

  /* Ensure score bars print */
  .score-bar-fill {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* Score circle */
  .score-circle {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* Report section headers start on new page */
  .report-section-break {
    page-break-before: always;
    break-before: always;
  }

  /* Add print header */
  .report-print-header {
    display: block !important;
    text-align: center;
    margin-bottom: 24px;
    border-bottom: 2px solid #000;
    padding-bottom: 12px;
  }

  a { color: inherit; text-decoration: none; }

  /* Ensure badges/status indicators print with color */
  .badge,
  .status-badge,
  .badge-success,
  .badge-warning,
  .badge-danger {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    border: 1px solid currentColor !important;
  }
}
