.financing-wrap{max-width:1240px;margin:auto;padding:24px;color:#17343f;font:16px/1.5 system-ui,sans-serif;background:#f4f7f6;min-height:100vh}.financing-wrap h1{font-size:clamp(26px,4vw,38px);margin:12px 0}.financing-card{background:#fff;border:1px solid #d9e3e1;border-radius:16px;padding:20px;margin:16px 0}.financing-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:14px;margin:16px 0}.financing-kpis div{border-radius:12px;background:#edf6f2;padding:14px}.financing-kpis small{display:block;color:#526d78}.financing-kpis strong{display:block;font-size:21px;color:#145c53}.financing-note{border-left:4px solid #c58116;background:#fff7e6;padding:12px 16px}.financing-table-wrap{overflow:auto}.financing-table{border-collapse:collapse;width:100%;font-size:14px}.financing-table th,.financing-table td{padding:10px 12px;border-bottom:1px solid #dce5e3;text-align:left;white-space:nowrap}.financing-table th{background:#eff5f3}.financing-table td.num,.financing-table th.num{text-align:right;font-variant-numeric:tabular-nums}.financing-wrap a,.financing-card a{color:#116c62}.financing-card summary{cursor:pointer;font-weight:650;padding:8px 0}.financing-source{overflow-wrap:anywhere;font-size:13px;color:#58707b}.financing-tools textarea{box-sizing:border-box;width:100%;min-height:160px;font-family:monospace}.financing-tools button{background:#1d776c;color:#fff;border:0;border-radius:9px;padding:12px 16px;margin:8px 8px 8px 0;cursor:pointer}.financing-tools label{display:block;padding:5px}.financing-error{color:#a12935}.financing-property-panel{margin-top:20px}.financing-pill{display:inline-block;background:#e9f4ef;color:#1b6d60;padding:4px 10px;border-radius:20px;font-size:13px}.financing-muted{color:#5c7280}.financing-card .financing-schedule{max-height:440px;overflow:auto}.financing-card .financing-schedule thead{position:sticky;top:0}.financing-card ul{padding-left:22px}@media(max-width:650px){.financing-wrap{padding:12px}.financing-card{padding:14px}.financing-kpis{grid-template-columns:1fr 1fr}.financing-table{font-size:13px}.financing-wrap h1{font-size:28px}}

/* Constrain the existing modal grid so a scrollable table cannot widen it. */
#property-modal .modal-content{grid-template-columns:minmax(0,1fr)}
#property-modal .modal-content>*{min-width:0}
#property-financing-panel,.financing-card,.financing-table-wrap{min-width:0;max-width:100%;box-sizing:border-box}
@media(max-width:650px){#property-financing-panel .financing-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}#property-financing-panel .financing-kpis strong{font-size:19px}}
