.debt-toolbar,.debt-detail-heading{display:flex;align-items:center;gap:12px;margin-bottom:20px}.debt-toolbar{justify-content:space-between}.debt-private{display:inline-flex;align-items:center;gap:7px;font-size:13px;color:#686873}.debt-private svg{width:17px;height:17px}.debt-entry{background:#fff;border:1px solid #e5e5ea;border-radius:16px;padding:20px;margin-bottom:22px}.debt-entry>strong{display:block;margin-bottom:14px}.debt-fields{display:grid;grid-template-columns:1fr 1fr 1fr auto;gap:14px;align-items:start}.debt-entry label{display:flex;flex-direction:column;gap:7px;font-size:13px;min-width:0}.debt-entry input,.debt-entry select,.debt-search input{width:100%;min-width:0;padding:9px 12px;border:1px solid #d2d2d7;border-radius:8px;background:white;color:#1d1d1f;font:inherit;font-size:14px}.debt-entry input:focus,.debt-entry select:focus,.debt-search input:focus{outline:2px solid #0071e3;outline-offset:2px}.debt-entry small{font-size:11px;color:#6e6e73}.debt-actions{display:flex;gap:8px;padding-top:25px}.debt-create{display:flex;gap:14px;align-items:end}.debt-create label{flex:1;max-width:600px}.debt-search{max-width:420px;margin-bottom:20px}.debt-entities{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.debt-entity{background:white;border:1px solid #e5e5ea;border-radius:18px;padding:24px;text-align:right;font:inherit;color:#1d1d1f;cursor:pointer;min-width:0}.debt-entity:hover{border-color:#0071e3}.debt-entity h2{font-size:21px;margin:0 0 24px;overflow-wrap:anywhere}.debt-card-pair{display:flex;justify-content:space-between;gap:14px;color:#6e6e73;font-size:12px}.debt-card-pair strong{display:block;color:#1d1d1f;margin-top:10px;font-size:16px}.debt-card-balance{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:22px;padding-top:18px;border-top:1px solid #eee;font-size:14px}.debt-card-balance strong{font-size:23px;color:#0071e3}.debt-open-label{display:flex;align-items:center;justify-content:space-between;color:#0071e3;margin-top:22px;font-size:13px}.debt-open-label svg{width:18px;height:18px}.debt-detail-heading h2{font-size:23px;margin:0;overflow-wrap:anywhere}.debt-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:22px}.debt-total{border:1px solid #e5e5ea;border-radius:16px;padding:22px;background:white;min-width:0}.debt-total>span{display:block;color:#6e6e73;font-size:14px}.debt-total>strong{display:block;font-size:28px;margin-top:16px;overflow-wrap:anywhere}.debt-total.paid>strong{color:#25814a}.debt-total.remaining{background:#f1f7ff;border-color:#d9e8fb}.debt-total.remaining>strong{color:#0071e3}.debt-total>small{display:block;margin-top:8px;color:#6e6e73;font-size:12px}.debt-tables{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;align-items:start}.debt-table-panel{border:1px solid #e5e5ea;border-radius:16px;overflow:hidden;background:white;min-width:0}.debt-table-panel h2{display:flex;justify-content:space-between;align-items:center;font-size:18px;margin:0;padding:20px}.debt-table-panel h2 small{font-size:12px;font-weight:400;color:#6e6e73}.debt-table{width:100%;border-collapse:collapse;font-size:13px;min-width:350px}.debt-table th,.debt-table td{border:1px solid #e5e5ea;padding:9px 10px;text-align:right;vertical-align:middle}.debt-table th{font-size:12px;font-weight:500;background:#f5f5f7;color:#6e6e73}.debt-table th:first-child{width:34px}.debt-table th:last-child{width:76px}.debt-table tfoot{background:#fafafa;font-weight:600}.debt-date{font-size:16px;font-weight:600;white-space:nowrap}.debt-controls{white-space:nowrap}.debt-icon{padding:5px;border:0;background:transparent;color:#0071e3;cursor:pointer;vertical-align:middle}.debt-icon svg{width:17px;height:17px}.debt-icon.delete{color:#ff3030}.debt-empty{padding:30px!important;text-align:center!important;color:#6e6e73;font-size:14px}.debt-error:empty{display:none}.debt-error{margin-bottom:18px}.debt-entry button:disabled,.debt-icon:disabled,.debt-entity:disabled{opacity:.5;cursor:wait}
@media(max-width:1150px){.debt-entities{grid-template-columns:repeat(2,minmax(0,1fr))}.debt-fields{grid-template-columns:repeat(3,minmax(0,1fr))}.debt-actions{grid-column:1/-1;padding-top:0;justify-content:flex-end}.debt-total>strong{font-size:24px}}
@media(max-width:760px){.debt-tables{grid-template-columns:1fr}.debt-entities{grid-template-columns:1fr}.debt-totals{gap:8px}.debt-total{padding:14px 10px}.debt-total>strong{font-size:20px}.debt-total>span{font-size:12px}.debt-create{align-items:stretch;flex-direction:column}.debt-fields{grid-template-columns:1fr 1fr}.debt-fields>label:first-child{grid-column:1/-1}.debt-private{font-size:11px}.debt-detail-heading h2{font-size:19px}}
@media(max-width:400px){.debt-totals{grid-template-columns:1fr}.debt-total{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap}.debt-total>strong{margin:0}.debt-total>small{flex-basis:100%}}

.debt-fields{grid-template-columns:1fr 1fr 1fr 2fr auto}.debt-entry textarea{width:100%;min-width:0;padding:9px 12px;border:1px solid #d2d2d7;border-radius:8px;font:inherit;resize:vertical;min-height:62px}.debt-entry textarea:focus{outline:2px solid #0071e3;outline-offset:2px}.debt-attachment-field{display:flex;flex-direction:column;gap:7px;font-size:13px;min-width:110px;max-width:180px}.debt-file-name{overflow-wrap:anywhere}.debt-actions{grid-column:1/-1;padding-top:0;justify-content:flex-end}.debt-table{min-width:500px}.debt-notes{white-space:pre-wrap;overflow-wrap:anywhere;min-width:120px;max-width:240px}.debt-file-preview img{display:block;max-width:100%;max-height:65vh;margin:16px auto;object-fit:contain}@media(max-width:1150px){.debt-fields{grid-template-columns:repeat(3,minmax(0,1fr))}.debt-notes-field{grid-column:span 2}}@media(max-width:760px){.debt-fields{grid-template-columns:1fr 1fr}.debt-notes-field{grid-column:1/-1}.debt-attachment-field{max-width:none}}
.debt-table{min-width:460px}.debt-table th,.debt-table td{padding:8px 6px}.debt-table th:last-child{width:66px}.debt-table th:first-child{width:28px}.debt-notes{min-width:92px}
