@media print {
  /* Tax estimate print scale: increase the current print typography by ~60%
     without scaling the whole page width. This keeps F4 portrait readable. */
  html body .tax-estimate-section {
    font-size: 19px !important;
    line-height: 1.5 !important;
  }

  html body .tax-estimate-section h4 {
    font-size: 20px !important;
    line-height: 1.3 !important;
  }

  html body .tax-estimate-section .text-xs,
  html body .tax-estimate-section .text-\[9px\],
  html body .tax-estimate-section .text-\[10px\],
  html body .tax-estimate-section .text-\[11px\] {
    font-size: 16.8px !important;
    line-height: 1.45 !important;
  }

  html body .tax-estimate-section .text-sm {
    font-size: 18.4px !important;
    line-height: 1.45 !important;
  }

  html body .tax-estimate-section .text-lg {
    font-size: 26px !important;
    line-height: 1.25 !important;
  }

  html body .dashboard-print-root .tax-estimate-section .text-xl,
  html body .tax-estimate-section .text-xl {
    font-size: 26px !important;
    line-height: 1.25 !important;
  }

  html body .tax-estimate-section .tax-estimate-header {
    gap: 14px !important;
    padding: 15px 16px !important;
  }

  html body .tax-estimate-section .tax-estimate-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px !important;
    padding: 14px 16px 16px !important;
  }

  html body .tax-estimate-section .tax-estimate-card {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 16px !important;
    border-radius: 8px !important;
  }

  html body .tax-estimate-section .tax-estimate-card > div + div {
    margin-top: 14px !important;
  }

  html body .tax-estimate-section .tax-estimate-card .mt-5 {
    margin-top: 16px !important;
  }

  html body .tax-estimate-section .tax-estimate-card .mt-2 {
    margin-top: 8px !important;
  }

  html body .tax-estimate-section .tax-estimate-card .pt-3 {
    padding-top: 12px !important;
  }

  html body .tax-estimate-section > div:last-child {
    padding: 12px 16px !important;
    font-size: 15.5px !important;
    line-height: 1.5 !important;
  }

  /* Preserve the earlier pagination rule: small estimate sets stay together. */
  html body .tax-estimate-section.tax-estimate-keep-together {
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  html body .tax-estimate-section .tax-estimate-header {
    break-after: avoid !important;
    page-break-after: avoid !important;
  }

  html body .tax-estimate-section .tax-estimate-first-card {
    break-before: avoid !important;
    page-break-before: avoid !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }
}
