/* Edit EDI & resubmit dialog (Client/Pages/DetailView/EditClaimEdiDialog.razor). */
.ce-dialog { display: flex; flex-direction: column; gap: 10px; }
.ce-tools { margin-top: 2px; }
.ce-muted { color: var(--rz-text-secondary-color, #64748b); font-size: 12.5px; }
.ce-hint { margin-top: -2px; }
.ce-text {
    width: 100%; min-height: 320px; resize: vertical; padding: 10px 12px; border-radius: 8px;
    border: 1px solid var(--rz-base-300, #cbd5e1); background: var(--rz-base-background-color, #fff); color: var(--rz-text-color, #1e293b);
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; font-size: 12.5px; line-height: 1.5; white-space: pre; overflow: auto;
}
.ce-text:focus { outline: none; border-color: var(--rz-primary, #1d4ed8); box-shadow: 0 0 0 2px color-mix(in srgb, var(--rz-primary, #1d4ed8) 20%, transparent); }
.ce-result { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.ce-result ul { margin: 4px 0 0; padding-left: 18px; }
.ce-errors { padding: 8px 12px; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--rz-danger, #dc2626) 45%, transparent);
    background: color-mix(in srgb, var(--rz-danger, #dc2626) 8%, transparent); }
.ce-errors i { color: var(--rz-danger, #dc2626); }
.ce-warnings { padding: 8px 12px; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--rz-warning, #d97706) 45%, transparent);
    background: color-mix(in srgb, var(--rz-warning, #d97706) 10%, transparent); }
.ce-warnings i { color: var(--rz-warning, #d97706); }
.ce-ok { color: var(--rz-success, #16a34a); font-weight: 600; }
.ce-diff { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; border: 1px solid var(--rz-base-300, #e2e8f0);
    border-radius: 8px; padding: 6px 10px; max-height: 180px; overflow: auto; }
.ce-diff summary { font-family: inherit; cursor: pointer; font-weight: 600; margin-bottom: 4px; }
/* What the last Apply Fix did (applied / skipped steps). */
.ce-fix-result { font-size: 13px; border: 1px solid var(--rz-base-300, #e2e8f0); border-radius: 8px; padding: 6px 10px; margin: 6px 0; }
.ce-fix-result i { width: 14px; }
/* Claim EDI Fixes: the steps editor and Try on a claim. */
.cef-step { border: 1px solid var(--rz-base-300, #e2e8f0); border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; }
.cef-try { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; white-space: pre-wrap; word-break: break-all;
    border: 1px solid var(--rz-base-300, #e2e8f0); border-radius: 8px; padding: 6px 10px; max-height: 260px; overflow: auto; }
/* Apply fix and resubmit (many claims): one row per claim. */
.cef-bulk-row { border-bottom: 1px solid var(--rz-base-200, #eef2f7); padding: 6px 0; font-size: 13px; }
.cef-bulk-row .ce-muted { margin-left: 6px; }
.ce-del { color: var(--rz-danger, #b91c1c); white-space: pre-wrap; word-break: break-all; }
.ce-add { color: var(--rz-success, #15803d); white-space: pre-wrap; word-break: break-all; }
.ce-actions { margin-top: 4px; }

/* Claim EDI tree (Client/Components/Edi/EdiTreeView.razor): Edit EDI's Tree tab and the file viewer's. */
.ce-tabs .rz-tabview-panels { padding: 8px 0 0; }
.edt { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.edt-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.edt-kind { font-weight: 600; margin-right: 6px; }
.edt-count { margin-left: auto; color: var(--rz-text-secondary-color, #64748b); font-size: 12.5px; }
.edt-count.has-warn { color: var(--rz-warning-dark, #b45309); font-weight: 600; }
.edt-panes { display: grid; grid-template-columns: minmax(260px, 2fr) 3fr; gap: 10px; min-height: 340px; }
@media (max-width: 900px) { .edt-panes { grid-template-columns: 1fr; } }
.edt-tree, .edt-detail { border: 1px solid var(--rz-base-300, #e2e8f0); border-radius: 8px; overflow: auto; max-height: 58vh; }
.edt-tree { padding: 4px 0; }
.edt-detail { padding: 8px 10px; }
.edt-node { display: flex; align-items: baseline; gap: 6px; padding: 2px 8px; cursor: pointer; white-space: nowrap; }
.edt-node:hover { background: color-mix(in srgb, var(--rz-primary, #1d4ed8) 6%, transparent); }
.edt-node.selected { background: color-mix(in srgb, var(--rz-primary, #1d4ed8) 14%, transparent); }
.edt-loop .edt-title { font-weight: 600; }
.edt-seg .edt-title { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; }
.edt-seg.unexpected .edt-title { text-decoration: underline dotted var(--rz-warning, #d97706); }
.edt-summary { color: var(--rz-text-secondary-color, #64748b); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.edt-chevron { width: 12px; font-size: 10px; color: var(--rz-text-secondary-color, #64748b); }
.edt-warn { color: var(--rz-warning, #d97706); font-size: 11px; }
.edt-note { color: var(--rz-info, #0284c7); font-size: 11px; }
.edt-seg-head { margin-bottom: 4px; }
.edt-muted { color: var(--rz-text-secondary-color, #64748b); }
.edt-pick { padding: 24px 8px; text-align: center; }
.edt-raw { display: block; font-size: 12px; padding: 4px 6px; border-radius: 6px; background: var(--rz-base-100, #f1f5f9); word-break: break-all; margin-bottom: 8px; }
.edt-elements { width: 100%; border-collapse: collapse; }
.edt-elements th { text-align: left; font-weight: 600; font-size: 12px; color: var(--rz-text-secondary-color, #64748b); border-bottom: 1px solid var(--rz-base-300, #e2e8f0); padding: 4px; }
.edt-elements td { padding: 4px; vertical-align: top; border-bottom: 1px solid var(--rz-base-200, #f1f5f9); }
.edt-elements tr.edt-component td:first-child { padding-left: 16px; }
.edt-elements tr.edt-composite td { background: var(--rz-base-50, #f8fafc); }
.edt-elements tr.edt-has-issue td:first-child { box-shadow: inset 3px 0 0 var(--rz-warning, #d97706); }
.edt-req { color: var(--rz-danger, #dc2626); margin-left: 2px; }
.edt-help { color: var(--rz-text-secondary-color, #64748b); font-size: 11.5px; }
.edt-value { min-width: 150px; }
.edt-input { width: 100%; min-width: 120px; padding: 3px 6px; border: 1px solid var(--rz-base-300, #cbd5e1); border-radius: 6px;
    background: var(--rz-base-background-color, #fff); color: var(--rz-text-color, #1e293b); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12.5px; }
.edt-input:focus { outline: none; border-color: var(--rz-primary, #1d4ed8); }
.edt-ro { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12.5px; }
.edt-lock { margin-left: 6px; font-size: 10px; color: var(--rz-text-secondary-color, #64748b); }
.edt-meaning { color: var(--rz-text-secondary-color, #475569); }
.edt-issue { font-size: 12.5px; margin-top: 3px; }
.edt-issue.warn i { color: var(--rz-warning, #d97706); }
.edt-issue.note i { color: var(--rz-info, #0284c7); }
.edt-seg-actions { display: flex; gap: 6px; margin-top: 10px; }
.edt-problems, .edt-reported { padding: 8px 12px; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--rz-warning, #d97706) 45%, transparent);
    background: color-mix(in srgb, var(--rz-warning, #d97706) 7%, transparent); display: flex; flex-direction: column; gap: 3px; }
.edt-reported { margin-bottom: 8px; }

/* Review one by one (Client/Pages/DetailView/ClaimEdiReviewDialog.razor): claims down the left, the editor on the right. */
.cer-dialog { display: flex; flex-direction: column; gap: 10px; height: 100%; min-height: 0; }
.cer-top { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.cer-progress { align-self: center; font-weight: 600; white-space: nowrap; }
.cer-layout { display: grid; grid-template-columns: 240px 1fr; gap: 12px; flex: 1 1 auto; min-height: 0; }
@media (max-width: 900px) { .cer-layout { grid-template-columns: 1fr; } .cer-list { max-height: 30vh; } }
.cer-list { display: flex; flex-direction: column; gap: 4px; overflow: auto; border-right: 1px solid var(--rz-base-300, #e2e8f0); padding-right: 8px; }
.cer-item { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 6px 10px; border-radius: 8px;
    border: 1px solid transparent; background: transparent; color: var(--rz-text-color, #1e293b); cursor: pointer; font: inherit; font-size: 13px; }
.cer-item:hover { background: color-mix(in srgb, var(--rz-primary, #1d4ed8) 6%, transparent); }
.cer-item.selected { border-color: var(--rz-primary, #1d4ed8); background: color-mix(in srgb, var(--rz-primary, #1d4ed8) 10%, transparent); }
.cer-claim { font-weight: 600; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12.5px; }
.cer-state { font-size: 12px; color: var(--rz-text-secondary-color, #64748b); }
.cer-item.ok .cer-state { color: var(--rz-success, #15803d); }
.cer-item.warn .cer-state { color: var(--rz-warning-dark, #b45309); }
.cer-item.bad .cer-state { color: var(--rz-danger, #b91c1c); }
.cer-own-reason { font-size: 11px; color: var(--rz-info, #0284c7); }
.cer-editor { overflow: auto; min-height: 0; padding-right: 4px; }
.cer-editor-head { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; margin-bottom: 8px; padding: 6px 10px;
    border-radius: 8px; background: var(--rz-base-100, #f1f5f9); font-size: 13px; }
.cer-head-name { font-size: 15px; }
.cer-head-field { white-space: nowrap; }
.cer-patient { font-weight: 600; font-size: 13px; }
.cer-meta { font-size: 11.5px; color: var(--rz-text-secondary-color, #64748b); }
/* Review one by one fills the screen: the file gets the height. */
.cer-editor .ce-text { min-height: 48vh; }
.cer-editor .edt-tree, .cer-editor .edt-detail { max-height: 62vh; }
.cer-notes { margin-bottom: 8px; font-size: 13px; }
.cer-notes ul { margin: 4px 0 0; padding-left: 18px; }
