.history-billing{max-width:1300px;margin:auto}.history-billing header{display:flex;align-items:center;justify-content:space-between;gap:12px}.history-billing h2{margin:0}.history-billing .history-panel{background:#fff;border:1px solid #e6edf1;border-radius:12px;padding:18px;margin:16px 0}.history-billing .history-fields{display:flex;align-items:end;flex-wrap:wrap;gap:12px}.history-billing label{display:grid;gap:6px}.history-billing input,.history-billing select{min-height:40px}.history-billing input[type=file]{max-width:100%}.history-billing .history-status{color:#087f91;min-height:24px}.history-billing .history-error{color:#b42318;white-space:pre-wrap}.history-billing .history-scroll{overflow:auto;max-height:54vh}.history-billing table{min-width:720px;width:100%;border-collapse:collapse}.history-billing td,.history-billing th{padding:10px 8px;border-bottom:1px solid #eef1f3;text-align:left}.history-billing th{background:#f6f9fb;position:sticky;top:0}.history-billing details{margin:10px 0}.history-billing .history-note{color:#667782;font-size:13px}.history-billing .history-page{display:flex;gap:12px;align-items:center;justify-content:flex-end;margin-top:12px}.history-billing pre{white-space:pre-wrap;overflow-wrap:anywhere}.history-billing .history-review{padding:12px;background:#eaf8fb;border-radius:8px;margin:12px 0}.history-billing .history-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}@media(max-width:700px){.history-billing header{align-items:start}.history-billing .history-panel{padding:12px}.history-billing .history-fields{display:grid;grid-template-columns:1fr}.history-billing .history-fields label,.history-billing .history-fields input{width:100%;min-width:0}.history-billing .history-scroll{max-height:65vh}.history-billing h2{font-size:19px}}

.history-billing [hidden],.billing-workspace .billing-filters[hidden],.billing-workspace [data-billing-history][hidden],.billing-workspace #module-results[hidden]{display:none!important}.history-patient-group{border-top:1px solid #e5edf2!important;margin-top:8px}.history-billing .history-fields{margin:12px 0}.history-billing td small{color:#667782}

.history-integration-counts{display:flex;gap:12px;flex-wrap:wrap;margin:12px 0}.history-integration-counts span{padding:10px 14px;background:#eef9fc;border-radius:8px}.history-integration{overflow-wrap:anywhere}.history-integration table{width:100%;border-collapse:collapse}.history-integration td,.history-integration th{padding:9px 8px;border-bottom:1px solid #e7edf0;text-align:left}.patient-source-mrn{display:block;color:#667782;font-size:12px;margin-top:3px}.patient-source-doctors{display:flex;flex-direction:column;gap:3px;font-size:12px;color:#526b79}.patient-profile-summary .patient-source-doctors{display:flex;flex-direction:row;flex-wrap:wrap;gap:12px}.history-doctor-choices{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0}.appointment-patient-doctors{padding:10px 12px;background:#f1fafc;border-radius:8px}.appointment-patient-doctors[hidden]{display:none!important}@media(max-width:700px){.history-billing>header{flex-wrap:wrap}.history-billing>header>.history-actions{width:100%}.history-integration-counts{display:grid;grid-template-columns:1fr}.patient-source-doctors{margin:4px 0}}
