/* ============================================================
   ChurnShield — Print styles
   For audit reports, invoice summaries, and any page the user
   might print or save as PDF. Produces a clean black-on-white
   layout with hidden nav, footer, and interactive chrome.
   ============================================================ */

@media print {
  :root {
    --color-bg:        #ffffff;
    --color-surface-1: #ffffff;
    --color-surface-2: #ffffff;
    --color-surface-3: #f6f6f8;
    --color-border-subtle: #d0d0d8;
    --color-border:        #b0b0b8;
    --color-text:          #0a0a0f;
    --color-text-muted:    #40404a;
    --color-text-dim:      #70707a;
    --color-accent:        #008a61;
  }

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

  body::before { display: none !important; }

  .nav,
  .app-topbar,
  .footer,
  .nav-toggle,
  .nav-mobile,
  .skip-link,
  .btn,
  [role="button"],
  .no-print {
    display: none !important;
  }

  .app-shell,
  .container {
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  a {
    color: #008a61 !important;
    text-decoration: underline;
  }
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    color: #70707a;
  }
  a[href^="#"]::after,
  a[href^="javascript:"]::after { content: ""; }

  .card,
  .app-section,
  .kpi-card {
    border: 1px solid #d0d0d8 !important;
    background: #ffffff !important;
    break-inside: avoid;
    page-break-inside: avoid;
    box-shadow: none !important;
  }

  h1, h2, h3 {
    page-break-after: avoid;
    break-after: avoid;
    color: #0a0a0f !important;
  }

  table, figure, pre { page-break-inside: avoid; break-inside: avoid; }
}
