/* Debt list: shared desktop and mobile layout. */
#debtsView .debt-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;padding:20px;margin-bottom:20px;background:#fff;border:1px solid #e0e7ef;border-radius:18px}
#debtsView .debt-tabs{display:flex;gap:4px;background:#f0f4f8;border-radius:12px;padding:4px;margin:0;flex:1;max-width:520px}
#debtsView .debt-tabs button{flex:1;min-height:46px;border:0;background:transparent;border-radius:9px;padding:10px 14px;font-size:14px;white-space:nowrap}
#debtsView .debt-tabs button.active{background:#0c2b49;color:white;box-shadow:0 2px 5px #0c2b4915}
#debtsView .debt-tabs b{display:inline-flex;align-items:center;justify-content:center;min-width:22px;min-height:22px;padding:2px 6px;border-radius:6px;background:#8294a51a;font-size:11px}
#debtsView .debt-tabs button.active b{background:#ffffff20}
#debtsView .debt-filter{display:grid;gap:7px;width:260px;max-width:100%;margin:0;color:#61748a;font-size:12px;font-weight:600}
#debtHistoryFilter,#locationSelector{appearance:none;-webkit-appearance:none;display:block;width:100%;min-width:0;min-height:46px;border:1px solid #d5e0eb;border-radius:10px;background-color:#fff;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23596e84' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;padding:11px 38px 11px 14px;font:inherit;font-size:14px;color:#17334f;text-overflow:ellipsis}
#debtHistoryFilter:focus-visible,#locationSelector:focus-visible,#debtsView button:focus-visible{outline:3px solid #96c5ff;outline-offset:3px}
#debtsView .debt-overview-card{padding:22px 26px;margin-bottom:22px;border-radius:18px;gap:7px}
#debtsView .debt-overview-card span{font-size:13px}
#debtsView .debt-overview-card strong{font-size:32px;line-height:1.2;font-variant-numeric:tabular-nums}
#debtsView .debt-overview-card small{font-size:12px;color:#bacbdb}
#debtsView .debt-modern-list{gap:12px}
#debtsView .debt-modern-row{padding:20px;border-radius:16px;gap:20px;transition:border-color .15s,box-shadow .15s}
#debtsView .debt-modern-row:hover{border-color:#b5cce2;box-shadow:0 4px 16px #19334d08}
#debtsView .debt-person{grid-template-columns:40px minmax(0,1fr);gap:14px}
#debtsView .debt-direction{width:40px;height:40px;border-radius:12px;font-size:20px}
#debtsView .debt-person>div{gap:5px}
#debtsView .debt-person strong{font-size:15px}
#debtsView .debt-person small,#debtsView .debt-person em{font-size:13px;line-height:1.45}
#debtsView .debt-amount{gap:8px;justify-items:end}
#debtsView .debt-amount strong{font-size:16px;font-variant-numeric:tabular-nums}
#debtsView .debt-amount small{font-size:12px}
#debtsView .is-settled .debt-amount strong{font-size:12px;font-weight:600;color:#237853;background:#eaf6ef;border-radius:20px;padding:6px 11px}
#debtsView .debt-pay-sheet{padding:24px;border-radius:18px;gap:18px}
#debtsView .debt-pay-head strong{font-size:18px}
#debtsView .debt-pay-head small{font-size:13px;line-height:1.5;margin-top:6px}
#debtsView .debt-pay-head button{width:40px;height:40px;border-radius:10px;background:#f1f5f9;flex-shrink:0}
#debtsView .debt-pay-sheet>span,#debtsView .debt-pay-sheet label{font-size:14px}
#debtPaymentHistory{background:#f6f8fb;border:1px solid #e5ebf2;border-radius:12px;padding:16px;font-size:13px;line-height:1.6;overflow-wrap:anywhere}
#debtPaymentHistory p{margin:10px 0 0}
@media(min-width:1100px){.desktop-topbar .location-bar label{display:grid;gap:6px}.desktop-topbar #businessBtn{align-self:end;min-height:46px}.desktop-session #debtsView{max-width:1160px;margin-left:0}}
@media(max-width:600px){
 #debtsView .debt-toolbar{flex-direction:column;align-items:stretch;gap:16px;padding:14px;margin-bottom:16px}
 #debtsView .debt-tabs{max-width:none;width:100%}
 #debtsView .debt-tabs button{padding:9px 6px;font-size:13px}
 #debtsView .debt-filter{width:100%}
 #debtHistoryFilter,#locationSelector{font-size:16px}
 #debtsView .debt-overview-card{padding:20px;margin-bottom:16px}
 #debtsView .debt-modern-row{padding:14px;gap:12px}
 #debtsView .debt-person{grid-template-columns:minmax(0,1fr);gap:0}
 #debtsView .debt-direction{display:none}
 #debtsView .debt-person strong{font-size:14px}
 #debtsView .debt-person small,#debtsView .debt-person em{font-size:12px}
 #debtsView .debt-amount strong{font-size:14px}
 #debtsView .debt-amount small{font-size:11px}
 #debtsView .debt-pay-sheet{padding:16px}
}
