/* @ekm-tags: style, billing, ui-shell */
/*
 * Billing Command Center: Patient balances tab (.bcht) and Summary owner extras (.bcsx). Layout only: colours and type come from the
 * 2030 kit / design tokens already on the page. Patient names never truncate or overlap: rows wrap, the action drops under the name. */
.bcht, .bcsx { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.bcht-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.bcht-lead { margin: 0; flex: 1 1 260px; min-width: 0; }
.bcht-btn, .bcht-row-btn { font: inherit; cursor: pointer; border-radius: 10px; border: 1px solid var(--border, rgba(127,127,127,.35)); background: transparent; color: inherit; padding: 8px 14px; min-height: 36px; }
.bcht-btn:hover, .bcht-row-btn:hover { background: rgba(127,127,127,.12); }
.bcht-btn:disabled, .bcht-row-btn:disabled { opacity: .55; cursor: default; }
.bcht-note { margin: 0; font-size: 13px; opacity: .85; overflow-wrap: anywhere; }
.bcht-note.is-err, .bcsx-err { color: var(--ekm-ds-chip-danger-ink); opacity: 1; }
.bcht-sec, .bcsx-sec { min-width: 0; }
.bcht-h3, .bcsx-h3 { margin: 0 0 8px; font-size: 15px; }
/* the shared reconciliation rows: name first (wraps), then amount and reason, then our action on its own line */
.bcht .bcr-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; min-width: 0; }
.bcht .bcr-who { flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; }
.bcht .bcr-row-btn, .bcht .bcht-row-btn { flex: 0 0 auto; padding: 4px 10px; min-height: 32px; font-size: 13px; }
.bcsx .bcsx-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-width: 0; }
.bcsx .k-row__main { flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; }
.bcsx-link { font: inherit; background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; text-align: left; }
.bcsx-sc-line { font: inherit; background: none; border: 0; padding: 4px 0; text-align: left; color: inherit; cursor: pointer; overflow-wrap: anywhere; }
.bcsx-sc-line:disabled { cursor: default; }
.bcsx-run { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.bcsx-p { margin: 0 0 6px; }
.bcsx-quiet, .bcsx-wait { opacity: .75; font-size: 13px; }
.eos-extras:empty { display: none; }
.eos-extras { margin-top: 20px; }
@media (max-width: 480px) {
  .bcht-btn, .bcht .bcht-row-btn, .bcsx .bcsx-btn { min-height: 44px; }
  .bcht-btn { width: 100%; }
}

/* Billing Communication history (owner 2026-11-20): Resolved / All Cases moved here from Billing Communication. Rows use the BCC case row. */
.bcht-hist > summary { cursor: pointer; list-style: revert; }
.bcht-hist > summary .bcht-h3 { display: inline; }
.bcht-hist-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0; }
.bcht-pill { border-radius: 8px; min-height: 36px; padding: 4px 14px; }
.bcht-pill[aria-pressed="true"] { background: rgba(127,127,127,.18); font-weight: 600; }
.bcht-hist-search { display: flex; flex: 1 1 260px; gap: 6px; min-width: 0; }
.bcht-input { font: inherit; flex: 1 1 auto; min-width: 0; min-height: 36px; padding: 4px 10px; border-radius: 10px; border: 1px solid var(--border, rgba(127,127,127,.35)); background: transparent; color: inherit; }
.bcht-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bcht-kv { margin: 0; display: grid; gap: 4px; }
.bcht-kv > div { display: flex; gap: 8px; flex-wrap: wrap; }
.bcht-kv dt { font-weight: 600; min-width: 9em; }
.bcht-kv dd { margin: 0; overflow-wrap: anywhere; }
.bcht-hlog { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.bcht-hlog p { margin: 2px 0 0; }
.bcht-meta { font-size: 12.5px; opacity: .8; }
