/* print.css — Print-safe stylesheet for PDF exports
   Use with: <link rel="stylesheet" href="print.css" media="print">
*/

@media print {

  :root {
    --shadow: none;
  }

  * {
    box-shadow: none !important;
    text-shadow: none !important;
  }

  html, body {
    background: #ffffff !important;
    color: #000000 !important;
  }

  /* Hide UI-only elements */
  header,
  nav,
  .no-print,
  .btn,
  button,
  input,
  select,
  textarea,
  .actions,
  .filters,
  .toolbar,
  .chart-controls {
    display: none !important;
  }

  /* Expand content to full printable width */
  .container,
  main,
  .card {
    max-width: none !important;
    width: 100% !important;
  }

  .card {
    border: 1px solid #dddddd !important;
    border-radius: 0 !important;
    padding: 12px !important;
    margin: 0 0 12px 0 !important;
    page-break-inside: avoid;
  }

  /* Typography */
  h1, h2, h3 {
    color: #000000 !important;
    margin: 0 0 8px 0 !important;
    page-break-after: avoid;
  }

  p, li, td, th {
    font-size: 11pt !important;
    line-height: 1.35 !important;
    color: #000000 !important;
  }

  /* Tables */
  table {
    width: 100% !important;
    border-collapse: collapse !important;
    page-break-inside: auto;
  }

  thead {
    display: table-header-group;
  }

  tr {
    page-break-inside: avoid;
    page-break-after: auto;
  }

  th, td {
    border: 1px solid #dddddd !important;
    padding: 6px 8px !important;
    vertical-align: top;
    background: #ffffff !important;
  }

  th {
    font-weight: 800 !important;
  }

  /* Links show destination in PDF */
  a, a:visited {
    color: #000000 !important;
    text-decoration: underline !important;
  }

  a[href^="http"]:after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    color: #333333;
    word-break: break-word;
  }

  /* Charts & images */
  canvas, svg, img {
    max-width: 100% !important;
    height: auto !important;
    page-break-inside: avoid;
  }

  /* Page margins */
  @page {
    size: auto;
    margin: 12mm;
  }
}
