@media print {
  /* Hide navigation, footer, buttons and other screen-only elements */
  nav, footer, .no-print, [data-print="hide"] { display: none !important; }

  /* Reset backgrounds and colours for ink-friendly output */
  body { background: white; color: black; font-size: 12pt; }

  /* Plan summary table: full width, bordered cells */
  .plan-table { width: 100%; border-collapse: collapse; }
  .plan-table th, .plan-table td { border: 1px solid #333; padding: 6pt; }

  /* Income summary: prominent box */
  .income-summary { border: 2px solid black; padding: 12pt; margin: 12pt 0; }

  /* Page breaks: keep each field section together */
  .field-section { page-break-inside: avoid; }

  /* Print-only header — hidden on screen, shown when printing */
  .print-header { display: block !important; }

  /* Print-only footer with disclaimer */
  .print-footer {
    display: block !important;
    position: fixed;
    bottom: 0;
    font-size: 9pt;
    color: #666;
  }
}
