/* @ekm-tags: style, billing */
/*
 * Billing Communication rebuild, Slice C (approvals, holds, call outcomes, payment plans). Tokens and core components come
 * from css/ekm-bc2.css (BC_Visual_Design_System.md, Revision 1: cool slate, no white surfaces, no pills, AA contrast).
 * Tokens only below: no raw colors. Every action here is a 44px target (design system 4: primary actions and rows 44px).
 */
.bc2 .bc2a-btn { min-height:44px; }
.bc2 .bc2a-actions { display:inline-flex; flex-wrap:wrap; gap:8px; align-items:center; }
.bc2 .bc2a-quiet { border-color:transparent; background:transparent; color:inherit; margin-left:auto; }
.bc2 .bc2a-plain { font-weight:600; }
.bc2 .bc2a-list .bc-name { min-height:44px; display:inline-flex; align-items:center; }

/* Pending Approval: the row keeps the Slice A list layout; a form opens under it */
.bc2 .bc2a-list .bc2a-item { border-bottom:1px solid var(--line); }
.bc2 .bc2a-list .bc2a-item:nth-child(even) { background:var(--row-alt); }
.bc2 .bc2a-list .bc2a-item:last-child { border-bottom:0; }
.bc2 .bc2a-list .bc2-list__row { border-bottom:0; flex-wrap:wrap; }
.bc2 .bc2a-list .bc2a-form { margin:0 18px 14px; }

/* forms (inline; no native checkboxes or radios: choices are square toggle buttons) */
.bc2 .bc2a-form { background:var(--surface-2); border:1px solid var(--line-strong); border-radius:var(--r-card); padding:14px 16px;
  display:flex; flex-direction:column; gap:10px; }
.bc2 .bc2a-form__title { font-size:14px; font-weight:600; color:var(--text); }
.bc2 .bc2a-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(180px, 1fr)); gap:10px; }
.bc2 .bc2a-field { display:flex; flex-direction:column; gap:4px; min-width:0; }
.bc2 .bc2a-field__label { font-size:13px; font-weight:600; color:var(--text); }
.bc2 .bc2a-field .bc-input { min-height:44px; width:100%; box-sizing:border-box; }
.bc2 .bc2a-textarea { min-height:64px; padding:10px 12px; resize:vertical; font:14px/1.4 var(--font-ui); }
.bc2 .bc2a-field input[type="date"] { color-scheme:light; }
html[data-dark] .bc2 .bc2a-field input[type="date"] { color-scheme:dark; }
.bc2 .bc2a-choice { display:flex; flex-wrap:wrap; gap:8px; }
.bc2 .bc2a-opt[aria-pressed="true"] { border-color:var(--accent); background:var(--accent-tint); color:var(--text); box-shadow:inset 0 0 0 1px var(--accent); }

/* side panel additions */
.bc2 .bc2a-box { background:var(--surface-2); border-left:2px solid var(--accent); border-radius:var(--r-control); padding:10px 12px;
  display:flex; flex-direction:column; gap:6px; }
.bc2 .bc2a-outcomes { display:flex; flex-direction:column; gap:8px; margin-top:4px; }
.bc2 .bc2a-outgrid { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:8px; }
.bc2 .bc2a-outgrid .bc-btn { justify-content:flex-start; text-align:left; white-space:normal; line-height:1.25; padding:6px 12px; }

/* Payment Plans: action column and the form row */
.bc2 .bc2a-cell-act { text-align:right; white-space:nowrap; }
.bc2 .bc-table tbody tr.bc2a-formrow, .bc2 .bc-table tbody tr.bc2a-formrow:hover { background:var(--surface); }
.bc2 .bc-table tbody tr.bc2a-formrow td { padding-top:0; }

@media (max-width: 640px) {
  .bc2 .bc2a-outgrid { grid-template-columns:minmax(0, 1fr); }
}
