/* ============================================================
   Website Care Report — Print / PDF Styles
   ============================================================ */

@media print {
  /* Hide everything except the report preview */
  body > * { display: none !important; }
  #app { display: none !important; }

  /* Show only the print target */
  #print-target,
  #print-target * {
    display: revert !important;
    visibility: visible !important;
  }

  #print-target {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: white;
  }

  /* Page setup */
  @page {
    size: A4;
    margin: 0;
  }

  /* Report page */
  .report-page {
    box-shadow: none !important;
    border-radius: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  /* Cover page */
  .report-cover {
    page-break-after: always;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  /* Avoid breaking inside sections */
  .report-section {
    page-break-inside: avoid;
  }

  .report-task-group {
    page-break-inside: avoid;
  }

  .report-rec-item {
    page-break-inside: avoid;
  }

  /* Screenshots: 2 per row, avoid breaking */
  .report-screenshots-grid {
    grid-template-columns: repeat(2, 1fr);
    page-break-inside: avoid;
  }

  .report-screenshot {
    page-break-inside: avoid;
  }

  /* Typography adjustments for print */
  body {
    font-size: 11pt;
    color: #000;
  }

  .report-cover-title {
    font-size: 28pt;
  }

  .report-cover-subtitle {
    font-size: 16pt;
  }

  .report-section-title {
    font-size: 8pt;
  }

  .report-stat-value {
    font-size: 22pt;
  }

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

  /* Hide print/action buttons */
  .print-hide,
  .report-preview-actions {
    display: none !important;
  }

  /* Footer on each page */
  .report-footer {
    position: running(footer);
  }

  /* Links: show URL */
  a[href]::after {
    content: none; /* suppress URL printing in report context */
  }
}
