/* Scoped exclusively to the declared interest-free loan organizer. */
.pbfam-page.pbloan-page .wrap{max-width:1100px}
.pbloan-root{display:grid;gap:1rem}
.pbloan-grid{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);align-items:start}
.pbloan-payments{border-top:1px solid var(--family-line);margin-top:1rem;padding-top:.2rem}
.pbloan-payment{border:1px solid var(--family-line);border-radius:9px;padding:.65rem .75rem;margin:0 0 .7rem;background:#faf8f3;min-width:0}
.pbloan-payment legend{font-size:.8rem;font-weight:750;color:#365753;padding:0 .24rem}
.pbloan-row-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:.5rem;align-items:end}
.pbloan-row-fields button{align-self:end}
.pbloan-payments h3{margin-top:.5rem}
.pbloan-results>section,.pbloan-schedule{scroll-margin-top:calc(var(--pb-header-height,175px) + 24px)}
.pbloan-results h2{scroll-margin-top:calc(var(--pb-header-height,175px) + 24px)}
.pbloan-note{margin-top:.45rem!important}
.pbloan-root .pbloan-stale,.pbloan-root .pbloan-warning{padding:.62rem .7rem;border-radius:8px;border:1px solid #d5ba8c;background:#fcf3e6;color:#70491c;font-size:.85rem;font-weight:650}
.pbloan-root .pbloan-warning{border-color:#d5b8a6;background:#fcf1ec;color:#79402a}
.pbloan-root [data-loan-status].pbloan-error{color:#993e27}
.pbloan-schedule details{margin:.7rem 0 .85rem;background:#faf8f4;border:1px solid var(--family-line);border-radius:10px;padding:.7rem .9rem}
.pbloan-schedule summary{cursor:pointer;font-weight:700;color:#284c44}
.pbloan-schedule table{margin:.7rem 0 0;width:100%;border-collapse:collapse;table-layout:fixed;color:var(--family-ink);font-variant-numeric:tabular-nums}
.pbloan-schedule th,.pbloan-schedule td{border-bottom:1px solid #ddd9d0;padding:.6rem .4rem;text-align:right;overflow-wrap:anywhere;vertical-align:middle;font-size:.9rem}
.pbloan-schedule th:first-child,.pbloan-schedule td:first-child{text-align:left}
.pbloan-schedule thead{background:#e9eeea}
.pbloan-schedule td small{display:block;font-weight:500;color:#4c6159;font-size:.74rem;margin-top:.11rem}
.pbloan-schedule tr[data-elapsed="true"] td:first-child{font-weight:650;color:#284c44}
.pbloan-results .pbfam-balance>div:not(.pbfam-key) dd{font-size:clamp(.96rem,1.6vw,1.24rem)}
@media(max-width:780px){.pbloan-grid{grid-template-columns:minmax(0,1fr)}.pbloan-results h2,.pbloan-results>section,.pbloan-schedule{scroll-margin-top:130px}}
@media(max-width:420px){
 .pbloan-root .pbfam-editor,.pbloan-root .pbfam-result{padding:.82rem}
 .pbloan-root .pbfam-fields{grid-template-columns:minmax(0,1fr)}
 .pbloan-row-fields{grid-template-columns:1fr 1fr;gap:.4rem}
 .pbloan-row-fields button{grid-column:1/-1;justify-self:end;min-height:35px}
 .pbloan-row-fields input{padding:.55rem .3rem;font-size:.84rem}
 .pbloan-payment{padding:.5rem .55rem}
 .pbloan-schedule details{padding:.6rem .45rem}
 .pbloan-schedule th,.pbloan-schedule td{font-size:.73rem;padding:.55rem .25rem}
 .pbloan-schedule td small{font-size:.65rem}
 .pbloan-root .pbfam-actions--main button{flex:1 1 115px}
 .pbloan-root .pbfam-actions--main button:first-child{flex-basis:100%}
}
@media(forced-colors:active){.pbloan-root :is(.pbloan-stale,.pbloan-warning),.pbloan-schedule thead{color:CanvasText;background:Canvas;border:1px solid CanvasText}}
