/* @ekm-tags: style, billing */
/*
 * Billing Communication rebuild, Slice E: the Outstanding Claims tab (js/ekm-bc2-claims.js). Tokens and components come
 * from css/ekm-bc2.css (scoped under .bc2); this file adds only the aging tiles and the five claim-stage markers
 * (BC_Visual_Design_System.md 6.11: five 12px circles, 8px gap; done = success, issue = danger). Upcoming uses --faint instead of
 * the system's --control-border: --control-border is under the 3:1 non-text contrast WCAG asks of a meaningful shape.
 * Tokens only: no raw colors, no pills, no browser-default controls.
 */
.bc2 .bc2-stat--danger .bc-figure { color:var(--danger); }

/* aging tiles: each is a filter button (44px+ target) */
.bc2 .bc2c-tiles { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:12px; }
.bc2 .bc2c-tile { min-height:44px; display:flex; flex-direction:column; align-items:flex-start; gap:4px; padding:14px 16px; text-align:left; cursor:pointer;
  background:var(--surface); border:1px solid var(--line-strong); border-radius:var(--r-card); color:var(--text); font:inherit;
  transition:background .15s ease-out,border-color .15s ease-out; }
.bc2 .bc2c-tile:hover { background:var(--surface-2); }
.bc2 .bc2c-tile.is-on { border-color:var(--accent); background:var(--accent-tint); }
.bc2 .bc2c-tile .bc-figure { font-size:26px; }
.bc2 .bc2c-tile__sub { font-size:12px; color:var(--muted); }
.bc2 .bc2c-bar { display:block; width:100%; height:4px; background:var(--surface-3); margin-top:4px; }
.bc2 .bc2c-bar > span { display:block; height:100%; background:var(--accent); }

.bc2 .bc2c-tools { margin-left:auto; }
.bc2 .bc2c-name { font-weight:600; }
/* "Showing 1 patient" + Show all, when a Weekly Schedule card opened the tab on one patient */
.bc2 .bc2c-focus { display:flex; align-items:center; gap:12px; font-size:14px; color:var(--text); }

/* claim-stage markers */
.bc2 .bc2c-markers { list-style:none; margin:0 0 6px; padding:0; display:flex; gap:8px; }
.bc2 .bc2c-mark { width:12px; height:12px; border-radius:50%; flex:none; border:2px solid var(--faint); background:transparent; }
.bc2 .bc2c-mark--done { background:var(--success); border-color:var(--success); }
.bc2 .bc2c-mark--issue { background:var(--danger); border-color:var(--danger); }
.bc2 .bc2c-line { font-size:12px; font-weight:600; }
.bc2 .bc2c-line--success { color:var(--success); }
.bc2 .bc2c-line--danger { color:var(--danger); }
.bc2 .bc2c-line--neutral { color:var(--muted); font-weight:400; }
.bc2 .bc2c-next { white-space:normal; }

/* link-style button to the patient's account in Patient Balances (44px target) */
.bc2 .bc2c-link { min-height:44px; border:0; background:none; padding:0; cursor:pointer; font:600 13px var(--font-ui); color:var(--accent);
  text-decoration:underline; text-underline-offset:3px; text-align:left; }

@media (max-width: 1100px) {
  .bc2 .bc2c-tiles { grid-template-columns:repeat(2, minmax(0, 1fr)); }
}

/* EKM's claim issues (claims follow-up v1): one card per open issue above the claims list. Tokens only. */
.bc2 .bc2ci-card { display:flex; flex-direction:column; gap:8px; padding:14px 16px; margin-top:12px; background:var(--surface);
  border:1px solid var(--line-strong); border-left:4px solid var(--warning); border-radius:var(--r-card); }
.bc2 .bc2ci-card.is-high { border-left-color:var(--danger); }
.bc2 .bc2ci-head { display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 12px; }
.bc2 .bc2ci-chips { display:flex; flex-wrap:wrap; gap:6px; }
.bc2 .bc2ci-subject { color:var(--text); font-weight:600; }
.bc2 .bc2ci-found { color:var(--text); margin-top:4px; line-height:1.45; }
.bc2 .bc2ci-next { color:var(--text); margin-top:4px; }
.bc2 .bc2ci-why { color:var(--text-2); line-height:1.45; }
.bc2 .bc2ci-card--finding { border-left-style:dashed; }
.bc2 .bc2ci-group { display:flex; flex-direction:column; gap:10px; margin-top:12px; }
.bc2 .bc2ci-grouphead { display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; }
.bc2 .bc2c-replaced { margin:4px 0 8px; }
.bc2 .bc2ci-note summary { min-height:44px; display:flex; align-items:center; cursor:pointer; color:var(--accent); }
.bc2 .bc2ci-note__body { white-space:pre-wrap; color:var(--text-2); line-height:1.5; padding:8px 0; }
.bc2 .bc2ci-form { display:flex; flex-direction:column; gap:10px; }
.bc2 .bc2ci-field { display:flex; flex-direction:column; gap:4px; }
.bc2 .bc2ci-text { min-height:88px; padding:8px 10px; font:inherit; resize:vertical; }
.bc2 .bc2ci-select { padding:0 10px; font:inherit; max-width:320px; }
.bc2 .bc2ci-actions { display:flex; flex-wrap:wrap; gap:8px; }
