/* Print: black text on white, no navigation or controls. The calculator's own print layout
   ("Imprimir cálculo") is in parts/calc.css; other parts add their own @media print rules.
   !important is needed here to beat component colours and display rules. */

@media print {
  *, *::before, *::after {
    background: transparent !important;
    color: #000000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  html, body {
    background: #FFFFFF !important;
    font-size: 12pt;
    line-height: 1.4;
  }

  .site-header,
  .site-footer,
  .mobile-drawer,
  .drawer-backdrop,
  .btn,
  .btn-mobile-menu,
  .calc-slider-wrapper,
  .skip-link {
    display: none !important;
  }

  main, .container, .legal-content {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
  }

  .calc-card {
    width: 100% !important;
    max-width: 100% !important;
    border: 1pt solid #000000 !important;
    padding: 15pt !important;
    margin: 0 0 20pt !important;
    page-break-inside: avoid;
  }

  .calc-breakdown {
    border: 1pt solid #CCCCCC !important;
    padding: 10pt !important;
  }

  table {
    border-collapse: collapse !important;
    width: 100% !important;
  }

  th, td {
    border: 1pt solid #CCCCCC !important;
    padding: 6pt !important;
    font-size: 10pt !important;
  }

  a[href]::after {
    content: "" !important;
  }
}
