/* ROI, NPV and IRR calculator. Loaded after calc.css. */
.ro-years { display: grid; grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr)); gap: 0.75rem 1rem; margin-top: 1.25rem; }
.ro-year { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.875rem; color: var(--muted); }
.ro-year input { font: inherit; font-size: 1.125rem; color: var(--ink); background: #fff; border: 1px solid var(--rule); border-radius: 8px; padding: 0.55rem 0.7rem; width: 100%; font-variant-numeric: tabular-nums; }
.ro-bar { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin-top: 1rem; }
.ro-bar span { color: var(--muted); font-size: 0.875rem; }
.gp-btn:disabled { opacity: 0.4; cursor: default; }
.ro-paste { margin-top: 1.25rem; }
.ro-paste label { font-size: 0.875rem; color: var(--muted); }
.cf-sheet .ro-paste textarea { height: 4.5rem; margin-top: 0.3rem; white-space: pre-wrap; }
.ro-paste p { margin: 0.4rem 0 0; font-size: 0.875rem; min-height: 1.3em; }
.ro-note { margin: 1.25rem 0 0; padding: 0.9rem 1.1rem; background: var(--bg); border: 1px solid var(--rule); border-radius: 10px; max-width: 75ch; font-size: 0.9375rem; }
.stat-v.neg { color: var(--neg); }
.cf-sheet h3.ro-h { font-size: 1rem; font-weight: 500; margin: 1.75rem 0 0; }
.cf-sheet .ro-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 699px) {
  .cf-sheet .ro-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .ro-stats .stat-v { font-size: 1.375rem; }
  #rp-table td, #rp-table th { padding-inline: 0.4rem; }
}
