Balance = totalBilled - mhPaidAmount - copayment - adjustment Collected = mhPaidAmount + copayment (adjustment is a write-off) - Frontend breakdown now shows Collected, Adjustment (if >0), and Balance - Reports: totalCollected and totalOutstanding use the new formula - Both date-range and staff summary queries updated Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>