/* Print styles for financial calculators and reports */
@media print {
  /* Hide navigation and interactive elements */
  .no-print,
  nav,
  header,
  footer,
  button,
  .navigation-wrapper,
  .menu-button,
  .command-palette,
  .mobile-search-fab,
  .sidebar {
    display: none !important;
  }

  /* Adjust main content for print */
  #main-content,
  main {
    margin: 0 !important;
    padding: 20px !important;
    width: 100% !important;
  }

  /* Ensure content is visible */
  body {
    background: white !important;
    color: black !important;
    font-size: 12pt !important;
    line-height: 1.5 !important;
  }

  /* Style links for print */
  a {
    color: black !important;
    text-decoration: underline !important;
  }

  /* Remove backgrounds and shadows */
  * {
    box-shadow: none !important;
    text-shadow: none !important;
  }

  /* Page break control */
  .page-break-before {
    page-break-before: always;
  }

  .page-break-after {
    page-break-after: always;
  }

  .avoid-break {
    page-break-inside: avoid;
  }

  /* Calculator specific print styles */
  .calculator-container {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .calculator-results {
    border: 1px solid #ccc !important;
    padding: 15px !important;
    margin: 15px 0 !important;
  }

  /* Hide interactive calculator inputs */
  .calculator-inputs {
    display: none !important;
  }

  /* Show print-only elements */
  .print-only {
    display: block !important;
  }

  /* Format tables for print */
  table {
    width: 100% !important;
    border-collapse: collapse !important;
  }

  th, td {
    border: 1px solid #ccc !important;
    padding: 8px !important;
    text-align: left !important;
  }

  /* Ensure charts/graphs are visible */
  canvas,
  svg {
    max-width: 100% !important;
    height: auto !important;
  }
}