#debts{max-width:1150px;margin:0 auto;align-self:stretch;height:100%;max-height:100%;scrollbar-gutter:stable;scrollbar-color:#406991 #dfe8f2}.debt-heading,.debt-detail-heading{display:flex;gap:16px;justify-content:space-between;align-items:center;margin-bottom:22px}.debt-heading h1,.debt-detail-heading h2{margin:3px 0 6px}.debt-heading p,.debt-detail-heading p{margin:0;color:var(--muted,#6d8199)}.debt-heading>div:last-child{display:flex;gap:10px}.debt-summary{display:grid;grid-template-columns:2fr 1fr 1fr;border:1px solid #d7e2ef;border-radius:18px;background:white;overflow:hidden;margin-bottom:22px}.debt-summary>div{padding:22px;display:flex;flex-direction:column;gap:8px}.debt-summary .debt-total{background:#153b64;color:white}.debt-summary small{font-size:12px}.debt-summary strong{font-size:26px;overflow-wrap:anywhere}.debt-filters{display:flex;gap:8px;margin:14px 0;flex-wrap:wrap}.debt-filters button.selected{background:#153b64;color:white;border-color:#153b64}.debt-filter-input{max-width:600px}#debt-status{font-size:12px;color:#647c98}.debt-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.debt-card{border:1px solid #d7e2ef;border-radius:18px;background:white;padding:20px;min-width:0}.debt-card-heading{display:flex;align-items:center;gap:12px}.debt-card-heading>div{min-width:0;flex:1}.debt-card h2{font-size:18px;margin:0 0 4px;overflow-wrap:anywhere}.debt-card small{color:#6d8199;font-size:12px}.debt-avatar{background:#edf3fa;border-radius:12px;padding:12px;display:flex}.debt-badge{padding:5px 8px;border-radius:20px;font-size:11px;white-space:nowrap;background:#fff0e2;color:#9e581e}.debt-badge.paid{background:#e8f6ee;color:#26714d}.debt-card-balance{display:flex;justify-content:space-between;gap:10px;padding:20px 0;align-items:center}.debt-card-balance span{font-size:12px;color:#647c98}.debt-card-balance strong{font-size:23px;color:#a34b31;overflow-wrap:anywhere}.debt-card-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.debt-card-actions .btn{font-size:12px;padding:10px 8px;min-height:46px}.debt-list .home-empty{grid-column:1/-1}.debt-note{font-size:12px;color:#6d8199;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;margin-top:18px}.debt-detail{display:none}#debts.is-detail .debt-list-view{display:none}#debts.is-detail .debt-detail{display:block}.debt-detail-heading>div{flex:1;min-width:0;overflow-wrap:anywhere}.debt-detail-balance{background:#fff3e6;border:1px solid #f0d3b0;color:#8b4c20;padding:24px;border-radius:18px;display:flex;flex-direction:column;gap:8px}.debt-detail-balance strong{font-size:34px;overflow-wrap:anywhere}.debt-detail-balance.paid{background:#eaf6f0;border-color:#cde4d7;color:#266647}.debt-detail-balance span{font-size:12px}.debt-detail-actions{display:flex;gap:10px;flex-wrap:wrap;margin:20px 0 28px}.debt-history-heading{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:12px}.debt-history-heading h3{font-size:17px;margin:0}.debt-history-heading small{color:#6d8199;font-size:11px}.debt-history article{background:white;border:1px solid #d7e2ef;border-radius:14px;padding:18px;margin-bottom:10px}.debt-history article>div{display:flex;justify-content:space-between;gap:12px;margin-bottom:8px}.debt-history small,.debt-history span{color:#6d8199;font-size:12px;display:block}.debt-history p{font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}.debt-history span{margin-top:12px}.debt-green{color:#257652}.debt-red{color:#a54b32}.debt-form-current{display:flex;justify-content:space-between;gap:10px;background:#edf3fa;border-radius:12px;padding:16px;margin-bottom:20px}.debt-after{font-weight:650;color:#266647;font-size:14px}.debt-confirm{text-align:center;padding:12px}.debt-confirm strong{display:block;font-size:30px;margin:12px 0}.debt-confirm p{color:#6d8199;font-size:13px}.debt-detail .icon-button{flex-shrink:0}.debt-history b{overflow-wrap:anywhere}.debt-detail-balance small{font-size:13px}
@media(max-width:640px){.debt-heading{align-items:flex-start;flex-direction:column}.debt-heading>div:last-child{width:100%}.debt-heading>div:last-child>.btn{flex:1}.debt-summary{grid-template-columns:1fr 1fr}.debt-summary .debt-total{grid-column:1/-1}.debt-summary>div{padding:18px}.debt-summary strong{font-size:25px}.debt-list{grid-template-columns:1fr}.debt-card{padding:16px}.debt-detail-heading{flex-wrap:wrap}.debt-detail-heading h2{font-size:22px}.debt-detail-heading>.btn{margin-left:auto}.debt-detail-actions{display:grid;grid-template-columns:1fr 1fr}.debt-detail-actions>.btn:first-child{grid-column:1/-1}.debt-detail-actions .btn{font-size:12px;padding:12px 8px}.debt-history-heading{align-items:flex-start;flex-direction:column}.debt-history article>div{font-size:14px}.debt-card-heading{flex-wrap:wrap}.debt-avatar{padding:9px}.debt-filters .btn{flex:1;padding:10px 6px;font-size:12px}.debt-form-current{font-size:13px}.debt-detail-balance strong{font-size:30px}}

.debt-source{display:table;font-size:11px;padding:4px 8px;border-radius:6px;background:#edf2f7;color:#526b83;margin-top:7px;overflow-wrap:anywhere}.debt-source.mapab{background:#e6f3ef;color:#176649}.debt-summary .debt-total small:last-child{line-height:1.8}.debt-filter-input select{min-height:46px;width:100%;border:1px solid #bed0e4;border-radius:10px;background:white;color:#153b64;padding:10px 12px;font:inherit}

.debt-list-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:24px 0 6px}
.debt-list-heading h2{font-family:inherit;font-size:18px;font-weight:700;line-height:1.4;margin:0}
.debt-list-heading #debt-status{margin:0;text-align:right;line-height:1.6}
.debt-scroll-hint{font-size:12px;color:#476a8e;line-height:1.6;margin:0 0 10px}
.debt-list-scroll{max-height:640px;max-height:min(65dvh,640px);overflow-y:auto;overflow-x:hidden;scrollbar-gutter:stable;scrollbar-width:auto;scrollbar-color:#406991 #dfe8f2;border:1px solid #d4e0ed;border-radius:16px;padding:12px;background:#eaf1f8;-webkit-overflow-scrolling:touch;touch-action:pan-y;scroll-padding-block:12px}
.debt-list-scroll::-webkit-scrollbar{width:11px}
.debt-list-scroll::-webkit-scrollbar-track{background:#dfe8f2;border-radius:12px}
.debt-list-scroll::-webkit-scrollbar-thumb{background:#406991;border:2px solid #dfe8f2;border-radius:12px;min-height:36px}
.debt-list-scroll:focus-visible{outline:3px solid #bd9653;outline-offset:3px}
.debt-list-scroll #debts-more{margin-top:14px;background:#153b64;color:#fff;border-color:#153b64;min-height:48px}
@media(max-width:640px){.debt-list-heading{align-items:flex-start;flex-direction:column;gap:4px}.debt-list-heading #debt-status{text-align:left}.debt-list-scroll{padding:8px;border-radius:14px}.debt-list-scroll .debt-card{padding:12px}.debt-list-scroll .debt-card-balance strong{font-size:21px}}
