/* =========================================================
   OwnWave Print Styles
   - Used for browser "Print to PDF" exports.
   - Safe: only affects print media.
   ========================================================= */

/* Screen defaults */
.ow-print-only { display: none; }

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

  /* Light theme overrides for print */
  :root {
    --ow-bg: #ffffff;
    --ow-surface: #ffffff;
    --ow-card: #ffffff;
    --ow-text: #000000;
    --ow-muted: #444444;
    --ow-border: rgba(0,0,0,.18);
    --ow-accent: #000000;
    --ow-accent2: #000000;
    --ow-warn: #000000;
  }

  html, body {
    height: auto !important;
  }

  body {
    margin: 0;
    background: #ffffff !important;
    color: #000000 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* Global stuff we never want in PDFs */
  .ow-header,
  .ow-footer,
  .ow-offcanvas,
  .offcanvas,
  .ow-toasts,
  .ow-cookie-consent,
  .ow-no-print,
  .nav-tabs,
  .ow-btn {
    display: none !important;
  }

  .ow-print-only {
    display: block !important;
  }

  /* Layout: use full printable width */
  .ow-section {
    padding: 0 !important;
  }

  .ow-container {
    max-width: none !important;
    padding: 0 !important;
  }

  /* Cards: remove shadows and make borders visible */
  .ow-card {
    background: #ffffff !important;
    box-shadow: none !important;
    border: 1px solid var(--ow-border) !important;
  }

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

  /* Avoid splitting important blocks */
  .ow-card,
  .ow-grid,
  .ow-table-wrap,
  svg,
  table {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  tr, td, th {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  /* Print header (reports) */
  .ow-print-title {
    font-size: 18pt;
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 4mm 0;
  }

  .ow-print-meta {
    font-size: 10pt;
    color: #333333;
    margin: 0 0 4mm 0;
  }

  .ow-print-filters {
    font-size: 10pt;
    color: #000000;
    margin: 0;
    padding: 0;
  }

  .ow-print-filters ul {
    margin: 0;
    padding-left: 18px;
  }

  .ow-print-divider {
    border-top: 1px solid rgba(0,0,0,.25);
    margin: 4mm 0 6mm 0;
  }
}
