/* @ekm-tags: style, billing */
/*
 * Billing Communication rebuild, Slice F: the Account Issues tab (js/ekm-bc2-issues.js). Builds on css/ekm-bc2.css and
 * uses its tokens only (no raw colors), scoped under .bc2. Status is a left rule plus colored text (no pills); the next
 * visit turns red at 2 days or less; every action is a 44px target.
 */
.bc2 .bc2-stat--danger .bc-figure { color:var(--danger); }
.bc2 .bc2i-toolbar .bc-dd__btn { min-height:44px; }
.bc2 .bc2i-toolbar .bc-dd__opt { min-height:44px; }
.bc2 .bc2i-name { font-size:16px; font-weight:600; overflow-wrap:break-word; }
.bc2 .bc2i-visit { white-space:normal; }
.bc2 .bc2i-visit--soon { color:var(--danger); font-weight:600; }
.bc2 .bc2i-detail { font-size:13px; line-height:1.45; color:var(--text-2); margin-top:3px; white-space:pre-wrap; overflow-wrap:anywhere; }
/* a long issue text shows its first three lines; "View details" shows the whole original text (owner 2026-11-17) */
.bc2 .bc2i-detail.is-clamped { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; line-clamp:3; overflow:hidden; }
.bc2 .bc2i-more { border:0; background:none; padding:0; margin-top:2px; min-height:44px; display:inline-flex; align-items:center; font:600 13px/1.2 var(--font-ui);
  color:var(--accent); cursor:pointer; text-decoration:underline; text-underline-offset:3px; }
.bc2 .bc2i-more:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.bc2 .bc2i-issue { min-width:13rem; }
/* table view: each column keeps a readable width (the card view below takes over before they would be cramped) */
.bc2 .bc2i-sec .bc-table td:first-child { min-width:9rem; }
.bc2 .bc2i-sec .bc-table td.bc2i-visit { min-width:6.5rem; }
.bc2 .bc2i-sec .bc-table td:nth-child(5) { min-width:8.5rem; }
/* the actions stack inside their cell: never wider than the cell, never off screen */
.bc2 .bc2i-act { white-space:normal; width:1%; }
.bc2 .bc2i-actions { display:flex; flex-direction:column; align-items:stretch; gap:8px; min-width:7.5rem; }
.bc2 .bc2i-actions > .bc-btn { justify-content:center; }
.bc2 .bc2i-act .bc-btn { min-height:44px; }
.bc2 .bc2i-ask { display:flex; flex-direction:column; gap:6px; font-size:13px; color:var(--text-2); white-space:normal; }
.bc2 .bc2i-ask__btns { display:flex; gap:8px; flex-wrap:wrap; }
.bc2 .bc2i-ask__btns > .bc-btn { flex:1 1 auto; justify-content:center; }
.bc2 .bc2i-err { margin-top:6px; color:var(--danger); font-size:13px; font-weight:600; white-space:normal; overflow-wrap:anywhere; }
.bc2 .bc2i-foot { margin:0; }
/* the shell's Patient Balances footer ("This view is read-only") does not apply here: Resolve writes. Keyed on .bc2i-sec,
   which every state of the tab renders (loading, failed read, loaded), so it never shows here (Bugbot #1741) */
.bc2 .bc2-body:has(.bc2i-sec) > .bc2-foot { display:none; }
.bc2 .bc2i-banner .bc-btn { min-height:44px; }
/* In card view (the box is under 960px: css/ekm-bc2.css) the actions sit side by side, still inside the card. */
@container bctable (max-width: 959.98px) {
  .bc2 .bc2i-sec .bc-table td:first-child, .bc2 .bc2i-sec .bc-table td.bc2i-visit, .bc2 .bc2i-sec .bc-table td:nth-child(5) { min-width:0; }
  .bc2 .bc2i-issue { min-width:0; }
  .bc2 .bc2i-act { width:auto; }
  .bc2 .bc2i-actions { flex-direction:row; flex-wrap:wrap; min-width:0; }
  .bc2 .bc2i-actions { align-items:flex-end; }
  .bc2 .bc2i-actions > .bc-btn, .bc2 .bc2i-actions > .bc2i-ask { flex:1 1 9rem; }
}
/* two-by-two cards: the issue text and the actions keep the full width of the card */
@container bctable (min-width: 600px) and (max-width: 959.98px) {
  .bc2 .bc2i-sec .bc-table td.bc2i-issue, .bc2 .bc2i-sec .bc-table td.bc2i-act { grid-column:1 / -1; }
}
