/* Clover Reporting — print / "Download PDF" styles.
   Triggered by the Download PDF button (window.print()). Strips interactive
   chrome so the saved PDF is a clean report: brand + advertiser + period header,
   the data bands, and the footer line. Cards avoid breaking across pages. */

@media print {
  @page { margin: 14mm; }

  html, body {
    background: #fff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* Hide interactive / decorative chrome */
  .hdr-no-print,
  .signout-btn,
  .twk-panel,
  .cdd-loading,
  .brand-rail,
  .hdr-select__caret,
  .menu, .menu--search { display: none !important; }

  /* Header becomes a static report banner */
  .app-header {
    position: static !important;
    box-shadow: none !important;
    background: #041e3f !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .hdr-select { pointer-events: none; }

  /* Footer line stays (advertiser · period · user) but loses the button */
  .app-footer { box-shadow: none !important; border-top: 1px solid #e6e9ee; }

  /* Keep cards/bands intact across page breaks */
  .band, .attr-card, .hat-card,
  [class*="kpi"], [class*="card"], [class*="metric"] {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .band { box-shadow: none !important; }

  /* Don't append raw URLs after links */
  a[href]:after { content: "" !important; }
}
