.debt-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:20px 0}.debt-kpis button{display:flex;flex-direction:column;align-items:flex-start;background:#f4f8fc;color:#173d5a;border:1px solid #d4e0eb;padding:16px;gap:8px;text-align:left}.debt-kpis strong{font-size:26px}.debt-kpis button[aria-pressed=true]{outline:2px solid #078293;outline-offset:2px}.debt-toolbar{display:flex;flex-wrap:wrap;gap:12px;align-items:end;margin:18px 0}.debt-toolbar label{flex:1;min-width:180px}.debt-toolbar input{width:100%}.debt-table{min-width:1100px}.debt-table th,.debt-table td{padding:14px 12px;vertical-align:top}.debt-table small,#client-debt-detail td small{display:block;font-size:12px;margin-top:5px;line-height:1.5}.debt-money{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.debt-actions{display:flex;flex-wrap:wrap;gap:8px}.debt-status{display:inline-block;padding:7px 10px;border-radius:8px;font-weight:600;font-size:12px;white-space:nowrap}.debt-status.equal{background:#dcfce7;color:#166534}.debt-status.different{background:#fee2e2;color:#991b1b}.debt-status.unlinked{background:#fff3cd;color:#854d0e}.debt-missing{color:#7b6426}.debt-warning{padding:12px;background:#fff8e6;border-radius:8px;color:#76520b}.debt-pagination{display:flex;gap:12px;justify-content:space-between;align-items:center;margin-top:16px}.debt-detail-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:16px;background:#f4f8fc;border-radius:10px;margin:16px 0}.debt-detail-summary strong,.debt-detail-summary small{display:block}.debt-detail-summary strong{font-size:20px;margin-top:6px}#client-debt-detail,#client-debt-picker{width:min(1180px,94vw);max-height:90vh;overflow:auto}#client-debt-picker{width:min(720px,94vw)}#client-debt-picker label{display:block;margin:16px 0}#client-debt-picker input[type=search],#client-debt-picker select{width:100%}#client-debt-picker select{height:auto;min-height:130px}#client-debt-picker .debt-confirm{display:flex;align-items:flex-start;gap:12px;line-height:1.5}#client-debt-picker .debt-confirm input{width:18px;min-width:18px;height:18px;margin:2px 0 0}.report-tabs{flex-wrap:wrap}@media(max-width:700px){.debt-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.debt-detail-summary{grid-template-columns:1fr}.debt-pagination{flex-wrap:wrap}.debt-toolbar button{flex:1}}
#reports .debt-table{min-width:1240px;table-layout:fixed}#reports .debt-table th{white-space:normal;overflow-wrap:anywhere;line-height:1.5}#reports .debt-table th:nth-child(1){width:220px}#reports .debt-table th:nth-child(2){width:220px}#reports .debt-table th:nth-child(3),#reports .debt-table th:nth-child(4),#reports .debt-table th:nth-child(5){width:135px}#reports .debt-table th:nth-child(6){width:165px}#reports .debt-table th:nth-child(7){width:190px}#client-debts-unmatched:empty{display:none}

#client-debt-progress{width:min(520px,calc(100vw - 40px));max-height:85vh;padding:28px;border:1px solid #c8dce8;border-radius:16px;color:#12354c}#client-debt-progress::backdrop{background:rgba(12,35,52,.5)}#client-debt-progress progress{display:block;width:100%;height:22px;accent-color:#078494}#client-debt-progress .debt-progress-heading{display:flex;justify-content:space-between;align-items:center;margin:20px 0 12px}#debt-progress-percent{font-size:32px}#debt-progress-time{font-variant-numeric:tabular-nums}#client-debt-progress small{display:block;color:#546b7b;line-height:1.5}#client-debt-progress.is-error #debt-progress-stage{color:#b1263d}
