/* Original tool styles. SPDX-License-Identifier: MIT */
.loan-fields { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr)); gap:1rem; margin:1rem 0; }
.loan-fields > div { min-width:0; }
.loan-fields input { width:100%; box-sizing:border-box; }
.loan-result { display:block; font-size:1.25rem; font-weight:700; overflow-wrap:anywhere; }
.loan-summary { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr)); gap:1rem; }
.loan-summary dd { margin:0; font-weight:700; }
.loan-table-wrap { overflow-x:auto; max-width:100%; margin:1rem 0; }
.loan-table { width:100%; border-collapse:collapse; font-variant-numeric:tabular-nums; }
.loan-table th, .loan-table td { padding:.5rem; border-bottom:1px solid var(--line); text-align:right; white-space:nowrap; }
.loan-table th:first-child, .loan-table td:first-child { text-align:left; }
.loan-table caption { text-align:left; }
.loan-table tfoot { font-weight:700; }
.loan-formula { overflow-wrap:anywhere; }
.loan-result[data-state="error"] { color:var(--color-text); }
[hidden] { display:none !important; }
