.calculator-actions { flex-wrap:wrap; }
.calculator-export { flex:1 1 260px; min-width:0; text-align:left; }
.calculator-export-controls { display:flex; flex-wrap:wrap; align-items:center; gap:12px; }
.calculator-export small { display:block; margin-top:10px; font-size:11px; line-height:1.6; color:#635746; }
.calculator-direct-print { background:none; border:0; color:#76531f; text-decoration:underline; cursor:pointer; padding:10px 4px; }
.calculator-export button:disabled { opacity:.55; cursor:wait; }
.calculator-export p { font-size:12px; line-height:1.6; margin:12px 0 8px; }
.calculator-pdf-ready a { color:#76531f; font-size:13px; font-weight:700; text-underline-offset:3px; padding:8px 0; }
@media screen and (max-width:640px) {
  .calculator-export { flex-basis:auto; width:100%; }
  .calculator-export-controls { align-items:stretch; }
  .calculator-export-controls .hero-btn { width:auto; flex:1; }
}
/* Avoid fragmenting long repayment tables inside grid/scroll compositing layers. */
@media print {
  html, body, #root, .site-shell { height:auto!important; max-height:none!important; min-height:0!important; overflow:visible!important; contain:none!important; transform:none!important; }
  .site-shell { display:block!important; }
  .calculator-backdrop, .calculator-drawer, .calculator-results, .calculator-schedule, .calculator-schedule-scroll {
    display:block!important; position:static!important; height:auto!important; max-height:none!important;
    overflow:visible!important; contain:none!important; transform:none!important; filter:none!important;
    -webkit-backdrop-filter:none!important; backdrop-filter:none!important; -webkit-overflow-scrolling:auto;
    break-inside:auto; page-break-inside:auto;
  }
  .calculator-schedule { margin-top:20px; border:0; }
  .calculator-schedule table { display:table!important; width:100%!important; min-width:0!important; table-layout:fixed; }
  .calculator-schedule thead { display:table-header-group!important; }
  .calculator-schedule tbody { display:table-row-group!important; }
  .calculator-schedule tr { display:table-row!important; break-inside:avoid; page-break-inside:avoid; }
  .calculator-schedule th, .calculator-schedule td { display:table-cell!important; position:static!important; white-space:nowrap; padding:6px 5px; font-size:9px; }
  .calculator-schedule td:before { display:none!important; }
  .calculator-schedule th:first-child, .calculator-schedule td:first-child { width:9%; }
  .calculator-schedule-heading { break-after:avoid; }
  .calculator-export { display:none!important; }
}
