/* @ekm-tags: style, billing */
/*
 * Billing Command Center — Reconciliation (js/ekm-billing-recon.js). Owner-approved visual direction 2026-11-19: a financial command
 * center — deep midnight navy / graphite glass surfaces, restrained electric-blue illumination, thin metallic hairlines, quiet status
 * colors (no purple, no neon). Everything is scoped under .rx so nothing leaks into the portal shell (the Billing Command Center bar
 * above it is unchanged). All color lives in the tokens below.
 */
.bc-scope .rx {
  --rx-bg: #070b14;
  --rx-bg-2: #0b1120;
  --rx-panel: rgba(15, 22, 38, .78);
  --rx-panel-2: rgba(20, 29, 48, .72);
  --rx-raise: rgba(28, 39, 62, .66);
  --rx-line: rgba(148, 170, 205, .13);
  --rx-line-2: rgba(148, 170, 205, .24);
  --rx-metal: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .015));
  --rx-text: #e8eef8;
  --rx-text-2: #b3c0d4;
  --rx-muted: #7d8ca5;
  --rx-accent: #4c8dff;
  --rx-accent-2: #7fb0ff;
  --rx-accent-soft: rgba(76, 141, 255, .14);
  --rx-glow: 0 0 0 1px rgba(76, 141, 255, .45), 0 0 24px rgba(76, 141, 255, .22);
  --rx-ok: #4fc79a;
  --rx-ok-soft: rgba(79, 199, 154, .12);
  --rx-warn: #e3ac55;
  --rx-warn-soft: rgba(227, 172, 85, .12);
  --rx-bad: #ef7a7a;
  --rx-bad-soft: rgba(239, 122, 122, .12);
  --rx-info: #8fb4ff;
  --rx-info-soft: rgba(143, 180, 255, .12);
  --rx-r: 12px;
  --rx-r-sm: 8px;
  --rx-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 18px 40px rgba(0, 0, 0, .35);
  --rx-font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --rx-ease: cubic-bezier(.2, .7, .2, 1);

  position: relative;
  margin: 12px 0 24px;
  padding: 28px 30px 30px;
  border-radius: 18px;
  color: var(--rx-text);
  font: 400 14px/1.5 var(--rx-font);
  font-feature-settings: "tnum" 1, "cv11" 1;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(52, 104, 210, .20), transparent 60%),
    radial-gradient(900px 420px at -10% 110%, rgba(30, 64, 140, .18), transparent 60%),
    linear-gradient(180deg, var(--rx-bg-2), var(--rx-bg));
  border: 1px solid rgba(148, 170, 205, .12);
  box-shadow: 0 30px 80px rgba(2, 6, 16, .45);
  overflow: hidden;
}
.bc-scope .rx *, .bc-scope .rx *::before, .bc-scope .rx *::after { box-sizing: border-box; }
.bc-scope .rx svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.bc-scope .rx :focus-visible { outline: 2px solid var(--rx-accent-2); outline-offset: 2px; }

/* glass surfaces: one recipe, used everywhere */
.bc-scope .rx .rx-tile, .bc-scope .rx .rx-table, .bc-scope .rx .rx-pane, .bc-scope .rx .rx-srccard, .bc-scope .rx .rx-drop, .bc-scope .rx .rx-reqs,
.bc-scope .rx .rx-preview, .bc-scope .rx .rx-files, .bc-scope .rx .rx-kpis, .bc-scope .rx .rx-src {
  background: var(--rx-panel);
  border: 1px solid var(--rx-line);
  border-radius: var(--rx-r);
  box-shadow: var(--rx-shadow);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
}

/* header */
.bc-scope .rx-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.bc-scope .rx-crumb { font-size: 12.5px; color: var(--rx-muted); letter-spacing: .02em; }
.bc-scope .rx-crumb span { margin: 0 6px; opacity: .6; }
.bc-scope .rx-crumb b { color: var(--rx-text-2); font-weight: 600; }
.bc-scope .rx-head h1 { margin: 6px 0 4px; font: 600 30px/1.15 var(--rx-font); letter-spacing: -.02em; color: var(--rx-text); }
.bc-scope .rx-head p { margin: 0; color: var(--rx-text-2); font-size: 14.5px; }
.bc-scope .rx-head-r { display: flex; align-items: center; gap: 16px; }
.bc-scope .rx-last { color: var(--rx-muted); font-size: 13px; }

/* buttons */
.bc-scope .rx .rx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 8px 16px;
  font: 600 13.5px/1 var(--rx-font); letter-spacing: .01em; color: var(--rx-text);
  background: var(--rx-raise); border: 1px solid var(--rx-line-2); border-radius: var(--rx-r-sm); cursor: pointer;
  transition: background .18s var(--rx-ease), border-color .18s var(--rx-ease), box-shadow .18s var(--rx-ease), transform .18s var(--rx-ease);
}
.bc-scope .rx .rx-btn:hover:not(:disabled) { border-color: rgba(148, 170, 205, .4); background: rgba(38, 52, 80, .8); }
.bc-scope .rx .rx-btn:active:not(:disabled) { transform: translateY(1px); }
.bc-scope .rx .rx-btn:disabled { opacity: .45; cursor: not-allowed; }
.bc-scope .rx .rx-btn.is-primary {
  color: #f5f9ff; border-color: rgba(120, 170, 255, .55);
  background: linear-gradient(180deg, #3d7df0, #2a62cf);
  box-shadow: 0 0 0 1px rgba(76, 141, 255, .25), 0 6px 20px rgba(42, 98, 207, .35), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.bc-scope .rx .rx-btn.is-primary:hover:not(:disabled) { background: linear-gradient(180deg, #4a88f7, #2f6ad8); box-shadow: var(--rx-glow), inset 0 1px 0 rgba(255, 255, 255, .2); }
.bc-scope .rx .rx-btn.is-ghost { background: transparent; border-color: var(--rx-line); color: var(--rx-text-2); }
.bc-scope .rx .rx-btn.is-sm { min-height: 30px; padding: 5px 11px; font-size: 12.5px; }
.bc-scope .rx .rx-recheck svg { width: 16px; height: 16px; }

/* overview tiles */
.bc-scope .rx-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.bc-scope .rx .rx-tile {
  position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center;
  padding: 16px 18px; text-align: left; color: var(--rx-text); cursor: pointer; font: inherit;
  transition: border-color .2s var(--rx-ease), box-shadow .2s var(--rx-ease), transform .2s var(--rx-ease);
}
.bc-scope .rx .rx-tile::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--rx-metal); pointer-events: none; }
.bc-scope .rx .rx-tile:hover { border-color: var(--rx-line-2); transform: translateY(-1px); }
.bc-scope .rx .rx-tile.is-on { border-color: rgba(76, 141, 255, .6); box-shadow: var(--rx-glow); }
.bc-scope .rx .rx-tile .rx-ico { grid-row: 1 / 3; width: 26px; height: 26px; color: var(--rx-text-2); stroke-width: 1.4; }
.bc-scope .rx .rx-tile.is-alert .rx-ico { color: var(--rx-warn); }
.bc-scope .rx .rx-tile[data-tile="resolved"] .rx-ico { color: var(--rx-ok); }
.bc-scope .rx-tile-k { font-size: 12.5px; color: var(--rx-text-2); font-weight: 500; letter-spacing: .01em; }
.bc-scope .rx-tile-v { font: 600 26px/1.15 var(--rx-font); letter-spacing: -.02em; color: var(--rx-text); }

/* section tabs */
.bc-scope .rx-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--rx-line); margin-bottom: 18px; overflow-x: auto; }
.bc-scope .rx-tab { position: relative; background: none; border: 0; padding: 12px 14px 13px; font: 500 15px/1 var(--rx-font); color: var(--rx-muted); cursor: pointer; white-space: nowrap; transition: color .18s; }
.bc-scope .rx-tab:hover { color: var(--rx-text); }
.bc-scope .rx-tab.is-on { color: var(--rx-text); font-weight: 600; }
.bc-scope .rx-tab.is-on::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--rx-accent); box-shadow: 0 0 12px rgba(76, 141, 255, .7); }

/* toolbar */
.bc-scope .rx-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.bc-scope .rx-search { flex: 1 1 200px; display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 14px; background: var(--rx-panel); border: 1px solid var(--rx-line); border-radius: var(--rx-r-sm); color: var(--rx-muted); }
.bc-scope .rx-search:focus-within { border-color: rgba(76, 141, 255, .6); box-shadow: 0 0 0 3px rgba(76, 141, 255, .15); }
.bc-scope .rx-search input { flex: 1; min-width: 0; background: none !important; border: 0; outline: none; box-shadow: none; color: var(--rx-text) !important; -webkit-text-fill-color: var(--rx-text); caret-color: var(--rx-accent); font: 400 14px var(--rx-font); }   /* the portal's global input colours are dark-on-light */
.bc-scope .rx-search input::placeholder { color: var(--rx-muted); }
.bc-scope .rx-sel { flex: 0 1 auto; min-width: 0; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 6px 0 12px; background: var(--rx-panel); border: 1px solid var(--rx-line); border-radius: var(--rx-r-sm); }
.bc-scope .rx-sel span { font-size: 12.5px; color: var(--rx-muted); }
.bc-scope .rx-sel select { min-width: 0; max-width: 100%; background: transparent; border: 0; color: var(--rx-text); font: 600 13px var(--rx-font); padding: 6px 4px; cursor: pointer; outline: none; }
.bc-scope .rx-sel select option { background: #0e1626; color: var(--rx-text); }
.bc-scope .rx-seg { display: inline-flex; padding: 3px; gap: 3px; background: var(--rx-panel); border: 1px solid var(--rx-line); border-radius: 10px; }
.bc-scope .rx-segb { background: none; border: 0; border-radius: 7px; padding: 8px 14px; color: var(--rx-text-2); font: 500 13px var(--rx-font); cursor: pointer; transition: background .18s, color .18s; }
.bc-scope .rx-segb.is-on { background: var(--rx-accent-soft); color: var(--rx-text); box-shadow: inset 0 0 0 1px rgba(76, 141, 255, .45); }

/* split: table + investigation */
.bc-scope .rx-split { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(400px, .82fr); gap: 18px; align-items: start; }

/* tables */
.bc-scope .rx .rx-table { overflow-x: auto; padding: 0; }
.bc-scope .rx-table table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.bc-scope .rx-table thead th { padding: 12px 14px; text-align: left; font: 600 11.5px var(--rx-font); color: var(--rx-muted); text-transform: uppercase; letter-spacing: .07em; background: rgba(12, 18, 31, .92); border-bottom: 1px solid var(--rx-line); }
.bc-scope .rx-table td { padding: 12px 14px; border-bottom: 1px solid var(--rx-line); vertical-align: middle; color: var(--rx-text); }
.bc-scope .rx-table tbody tr:last-child td { border-bottom: 0; }
.bc-scope .rx-table td b { display: block; font-weight: 600; color: var(--rx-text); }
.bc-scope .rx-table td small { display: block; margin-top: 2px; font-size: 12px; color: var(--rx-muted); }
.bc-scope .rx-table .num, .bc-scope .rx-mini .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bc-scope .rx-table .is-neg { color: var(--rx-bad); }
.bc-scope .rx-tr { cursor: pointer; transition: background .15s var(--rx-ease); }
.bc-scope .rx-tr:hover { background: rgba(76, 141, 255, .05); }
.bc-scope .rx-tr.is-sel { background: linear-gradient(90deg, rgba(76, 141, 255, .16), rgba(76, 141, 255, .04)); box-shadow: inset 3px 0 0 var(--rx-accent); }
.bc-scope .rx-who b { white-space: nowrap; }
.bc-scope .rx-tr td:nth-child(4) small { margin-top: 5px; padding-left: 2px; }
.bc-scope .rx-nextline { color: var(--rx-accent-2) !important; }
.bc-scope .rx-issue small { max-width: 30ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bc-scope .rx-next { color: var(--rx-text-2); font-size: 13px; min-width: 120px; }
.bc-scope .rx-owner { color: var(--rx-text-2); font-size: 13px; white-space: nowrap; }
.bc-scope .rx-dim { color: var(--rx-muted); }
.bc-scope .rx-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--rx-line); color: var(--rx-muted); font-size: 12.5px; }
.bc-scope .rx-pager { display: inline-flex; gap: 6px; }
.bc-scope .rx-pg { min-width: 30px; height: 30px; border-radius: 7px; border: 1px solid var(--rx-line-2); background: transparent; color: var(--rx-text-2); font: 600 12.5px var(--rx-font); cursor: pointer; }
.bc-scope .rx-pg.is-on { border-color: rgba(76, 141, 255, .7); color: var(--rx-text); box-shadow: var(--rx-glow); }
.bc-scope .rx-pg:disabled { opacity: .35; cursor: default; }
.bc-scope .rx-rowact { text-align: right; white-space: nowrap; }
.bc-scope .rx-rowact .rx-btn + .rx-btn { margin-left: 6px; }

/* status: quiet text with a hairline, never a loud pill */
.bc-scope .rx-state { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 999px; font: 600 12px/1 var(--rx-font); white-space: nowrap; border: 1px solid transparent; }
.bc-scope .rx-state::before, .bc-scope .rx-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.bc-scope .rx-state.is-ok { color: var(--rx-ok); background: var(--rx-ok-soft); border-color: rgba(79, 199, 154, .28); }
.bc-scope .rx-state.is-warn { color: var(--rx-warn); background: var(--rx-warn-soft); border-color: rgba(227, 172, 85, .28); }
.bc-scope .rx-state.is-info { color: var(--rx-info); background: var(--rx-info-soft); border-color: rgba(143, 180, 255, .28); }
.bc-scope .rx-state.is-muted { color: var(--rx-text-2); background: rgba(148, 170, 205, .08); border-color: var(--rx-line-2); }
.bc-scope .rx-state.is-bad { color: var(--rx-bad); background: var(--rx-bad-soft); border-color: rgba(239, 122, 122, .28); }

/* Payment Posting (owner columns: Patient | Amount | Payment Status | Appointment | Next Action; the rest is in the row detail) */
.bc-scope .rx-pp-bar { align-items: center; flex-wrap: wrap; }
.bc-scope .rx-segn { display: inline-block; min-width: 18px; margin-left: 4px; padding: 1px 6px; border-radius: 999px; background: rgba(148, 170, 205, .12); color: var(--rx-text); font: 600 11.5px/1.4 var(--rx-font); font-variant-numeric: tabular-nums; }
.bc-scope .rx-pp-note { flex: 1 1 260px; color: var(--rx-muted); font-size: 12.5px; }
.bc-scope .rx-pp td { vertical-align: top; }
.bc-scope .rx-pp-who b { white-space: normal; }
.bc-scope .rx-pp-amt { font-weight: 600; }
.bc-scope .rx-pp-appt { color: var(--rx-text-2); font-size: 13px; }
.bc-scope .rx-pp-appt.is-verified { color: var(--rx-ok); }
.bc-scope .rx-pp-appt.is-suggested { color: var(--rx-warn); }
.bc-scope .rx-pp-next { color: var(--rx-text); font-size: 13px; max-width: 46ch; }
.bc-scope .rx-pp-detrow td { background: rgba(10, 16, 28, .55); padding: 4px 14px 16px; }
.bc-scope .rx-pp-det h4 { margin: 14px 0 6px; font: 600 12px var(--rx-font); color: var(--rx-muted); text-transform: uppercase; letter-spacing: .07em; }
.bc-scope .rx-pp-kv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 18px; margin: 10px 0 0; }
.bc-scope .rx-pp-kv div { min-width: 0; }
.bc-scope .rx-pp-kv dt { color: var(--rx-muted); font-size: 12px; }
.bc-scope .rx-pp-kv dd { margin: 2px 0 0; color: var(--rx-text); font-size: 13.5px; overflow-wrap: anywhere; }
.bc-scope .rx-pp-alloc { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-width: 420px; }
.bc-scope .rx-pp-alloc li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 10px; border: 1px solid var(--rx-line); border-radius: var(--rx-r-sm); font-size: 13px; }
.bc-scope .rx-pp-alloc b { font-variant-numeric: tabular-nums; }
.bc-scope .rx-pp-sum { margin: 12px 0 0; color: var(--rx-text-2); font-size: 13px; }
.bc-scope .rx-pp-det .rx-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.bc-scope .rx-pp-det .rx-note { color: var(--rx-muted); font-size: 12.5px; flex: 1 1 260px; }
.bc-scope .rx-dot { display: inline-flex; align-items: center; gap: 7px; font: 600 12px/1 var(--rx-font); white-space: nowrap; }
.bc-scope .rx-dot.is-ok { color: var(--rx-ok); } .bc-scope .rx-dot.is-warn { color: var(--rx-warn); } .bc-scope .rx-dot.is-bad { color: var(--rx-bad); } .bc-scope .rx-dot.is-muted { color: var(--rx-muted); }
.bc-scope .rx-warn-t { color: var(--rx-warn) !important; }
.bc-scope .rx-kind { font-size: 12.5px; color: var(--rx-text-2); }
.bc-scope .rx-kind.is-insurer_eft { color: var(--rx-accent-2); }
.bc-scope .rx-tag { display: inline-block; margin-left: 8px; padding: 3px 9px; border-radius: 6px; font: 600 11.5px var(--rx-font); color: var(--rx-text-2); background: rgba(148, 170, 205, .1); border: 1px solid var(--rx-line); vertical-align: middle; }

/* investigation panel */
.bc-scope .rx .rx-pane { position: sticky; top: 76px; display: flex; flex-direction: column; max-height: calc(100vh - 100px); padding: 0; overflow: hidden; }
.bc-scope .rx-pane-empty { min-height: 320px; justify-content: center; }
.bc-scope .rx-ph { padding: 20px 22px 16px; border-bottom: 1px solid var(--rx-line); background: linear-gradient(180deg, rgba(76, 141, 255, .07), transparent); }
.bc-scope .rx-back { margin-bottom: 12px; background: none; border: 0; color: var(--rx-accent-2); font: 600 13px var(--rx-font); cursor: pointer; padding: 0; }
.bc-scope .rx-ph-top { display: flex; align-items: center; gap: 14px; }
.bc-scope .rx-avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font: 600 15px var(--rx-font); color: #dbe7fb; background: radial-gradient(circle at 30% 25%, #2a3c60, #121b2e); border: 1px solid var(--rx-line-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
.bc-scope .rx-ph-who { flex: 1; min-width: 0; }
.bc-scope .rx-ph-who h2 { margin: 0; font: 600 21px/1.2 var(--rx-font); letter-spacing: -.01em; color: var(--rx-text); }
.bc-scope .rx-ph-who span { font-size: 12.5px; color: var(--rx-muted); }
.bc-scope .rx-ph-issue { margin: 14px 0 12px; font: 600 16.5px/1.35 var(--rx-font); color: var(--rx-text); }
.bc-scope .rx-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 18px; margin: 0; }
.bc-scope .rx-facts dt { font-size: 11.5px; color: var(--rx-muted); letter-spacing: .02em; }
.bc-scope .rx-facts dd { margin: 2px 0 0; font-weight: 600; color: var(--rx-text); font-size: 13.5px; }
.bc-scope .rx-facts .rx-amt { color: var(--rx-accent-2); }
.bc-scope .rx-ptabs { display: flex; gap: 2px; padding: 0 16px; border-bottom: 1px solid var(--rx-line); }
.bc-scope .rx-ptab { position: relative; background: none; border: 0; padding: 12px 10px; font: 500 13.5px var(--rx-font); color: var(--rx-muted); cursor: pointer; white-space: nowrap; }
.bc-scope .rx-ptab.is-on { color: var(--rx-text); font-weight: 600; }
.bc-scope .rx-ptab.is-on::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 2px; background: var(--rx-accent); box-shadow: 0 0 10px rgba(76, 141, 255, .7); }
.bc-scope .rx-pbody { flex: 1; overflow-y: auto; padding: 16px 22px 6px; }
.bc-scope .rx-block { padding: 14px 16px; margin-bottom: 12px; background: var(--rx-panel-2); border: 1px solid var(--rx-line); border-radius: 10px; }
.bc-scope .rx-block h3 { margin: 0 0 8px; font: 600 13px var(--rx-font); color: var(--rx-text-2); letter-spacing: .02em; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.bc-scope .rx-block p { margin: 0; color: var(--rx-text); line-height: 1.55; }
.bc-scope .rx-nextblock { border-color: rgba(76, 141, 255, .38); background: linear-gradient(180deg, rgba(76, 141, 255, .10), rgba(76, 141, 255, .03)); }
.bc-scope .rx-list, .bc-scope .rx-steps { margin: 0; padding-left: 20px; }
.bc-scope .rx-list li, .bc-scope .rx-steps li { margin: 5px 0; line-height: 1.5; }
.bc-scope .rx-steps li::marker { color: var(--rx-accent-2); font-weight: 700; }
.bc-scope .rx-note { color: var(--rx-muted); font-size: 12.5px; margin: 8px 0 0; line-height: 1.5; }
.bc-scope .rx-err { color: var(--rx-bad); font-weight: 600; }
.bc-scope .rx-ok { color: var(--rx-ok); font-weight: 600; }
.bc-scope .rx-h4 { margin: 14px 0 6px; font: 600 11.5px var(--rx-font); color: var(--rx-muted); text-transform: uppercase; letter-spacing: .07em; }

/* evidence sources */
.bc-scope .rx-srcs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.bc-scope .rx .rx-src { padding: 12px 12px 10px; background: rgba(10, 16, 28, .66); box-shadow: none; }
.bc-scope .rx-src-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.bc-scope .rx-src-h b { font-size: 13px; color: var(--rx-text); letter-spacing: .02em; }
.bc-scope .rx-src-est { font-size: 12px; color: var(--rx-muted) !important; margin: 0 0 6px !important; }
.bc-scope .rx-src-t { font-size: 12.5px; color: var(--rx-text-2) !important; margin: 0 0 6px !important; line-height: 1.45; }
.bc-scope .rx-src-t span { display: block; font-size: 11px; color: var(--rx-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }
.bc-scope .rx-src-at { font-size: 11.5px; color: var(--rx-muted) !important; margin: 6px 0 0 !important; }
.bc-scope .rx-agree { list-style: none; margin: 0; padding: 0; }
.bc-scope .rx-agree li { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--rx-line); }
.bc-scope .rx-agree li:last-child { border-bottom: 0; }
.bc-scope .rx-mini { width: 100%; border-collapse: collapse; font-size: 13px; }
.bc-scope .rx-mini th, .bc-scope .rx-mini td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--rx-line); vertical-align: top; }
.bc-scope .rx-mini thead th { color: var(--rx-muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.bc-scope .rx-mini tbody th { color: var(--rx-text-2); font-weight: 500; width: 170px; }
.bc-scope .rx-tech { margin: 4px 0 12px; color: var(--rx-text-2); }
.bc-scope .rx-tech summary { cursor: pointer; font-size: 12.5px; color: var(--rx-muted); }
.bc-scope .rx-hist { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 1px solid var(--rx-line-2); }
.bc-scope .rx-hist li { position: relative; padding: 0 0 14px 10px; font-size: 13px; }
.bc-scope .rx-hist li::before { content: ""; position: absolute; left: -19px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: #0c1424; border: 2px solid var(--rx-accent); }
.bc-scope .rx-hist-at { display: block; color: var(--rx-muted); font-size: 12px; }
.bc-scope .rx-hist p { margin: 3px 0 0; color: var(--rx-text-2); }

/* actions and forms */
.bc-scope .rx-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.bc-scope .rx-bar { margin: 0; padding: 14px 22px; border-top: 1px solid var(--rx-line); background: rgba(9, 14, 25, .85); }
.bc-scope #brx-actform:empty { display: none; }
.bc-scope #brx-actform { padding: 0 22px 16px; background: rgba(9, 14, 25, .85); }
.bc-scope .rx-form { display: grid; gap: 6px; margin-top: 10px; }
.bc-scope .rx-actbox h4 { margin: 4px 0 4px; font: 600 13px var(--rx-font); color: var(--rx-text); }
.bc-scope .rx-form label { font-size: 12.5px; color: var(--rx-text-2); }
.bc-scope .rx-form input, .bc-scope .rx-form select, .bc-scope .rx-form textarea, .bc-scope .rx-reqs input {
  width: 100%; min-height: 38px; padding: 8px 11px; font: 400 14px var(--rx-font); color: var(--rx-text);
  background: rgba(6, 10, 18, .7); border: 1px solid var(--rx-line-2); border-radius: var(--rx-r-sm); outline: none; color-scheme: dark;
}
.bc-scope .rx-form input:focus, .bc-scope .rx-form select:focus, .bc-scope .rx-form textarea:focus, .bc-scope .rx-reqs input:focus { border-color: rgba(76, 141, 255, .7); box-shadow: 0 0 0 3px rgba(76, 141, 255, .15); }

/* bank */
.bc-scope .rx .rx-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; margin-bottom: 14px; overflow: hidden; }
.bc-scope .rx-kpis > div { padding: 12px 16px; border-right: 1px solid var(--rx-line); }
.bc-scope .rx-kpis > div:last-child { border-right: 0; }
.bc-scope .rx-kpis span { display: block; font-size: 11.5px; color: var(--rx-muted); letter-spacing: .02em; }
.bc-scope .rx-kpis b { font: 600 19px/1.3 var(--rx-font); color: var(--rx-text); }

/* imports */
.bc-scope .rx-import { display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px; }
.bc-scope .rx .rx-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 260px; padding: 28px; text-align: center; border: 1px dashed rgba(127, 176, 255, .35); transition: border-color .2s, background .2s, box-shadow .2s; }
.bc-scope .rx .rx-drop.is-over { border-color: var(--rx-accent); background: rgba(76, 141, 255, .08); box-shadow: var(--rx-glow); }
.bc-scope .rx .rx-drop.is-compact { min-height: 160px; }
.bc-scope .rx-drop b { font-size: 15.5px; color: var(--rx-text); font-weight: 600; }
.bc-scope .rx-drop > span { color: var(--rx-muted); font-size: 12.5px; }
.bc-scope .rx-drop .rx-drop-ico { width: 34px; height: 34px; color: var(--rx-accent-2); stroke-width: 1.3; }
.bc-scope .rx-file { position: relative; overflow: hidden; }
.bc-scope .rx-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.bc-scope .rx .rx-reqs { padding: 18px 20px; }
.bc-scope .rx-reqs h3, .bc-scope .rx-preview h3, .bc-scope .rx-files h3 { margin: 0 0 12px; font: 600 14px var(--rx-font); color: var(--rx-text); }
.bc-scope .rx-reqs dl { margin: 0; display: grid; gap: 10px; }
.bc-scope .rx-reqs dt { font-size: 11.5px; color: var(--rx-muted); text-transform: uppercase; letter-spacing: .06em; }
.bc-scope .rx-reqs dd { margin: 2px 0 0; color: var(--rx-text-2); font-size: 13px; line-height: 1.5; }
.bc-scope .rx-reqs input { width: 180px; min-height: 32px; margin-right: 8px; }
.bc-scope .rx .rx-preview { margin-top: 16px; padding: 18px 20px; }
.bc-scope .rx-srv { color: var(--rx-text); margin: 12px 0 6px; }
.bc-scope .rx-confirm { display: flex; gap: 10px; align-items: center; margin-top: 10px; color: var(--rx-text-2); font-size: 13.5px; cursor: pointer; }
.bc-scope .rx-confirm input { width: 16px; height: 16px; accent-color: var(--rx-accent); }

/* sources */
.bc-scope .rx-srcgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-bottom: 18px; }
.bc-scope .rx .rx-srccard { padding: 16px 18px; }
.bc-scope .rx-srccard p { margin: 0 0 8px; color: var(--rx-text-2); font-size: 13px; line-height: 1.5; }
.bc-scope .rx .rx-files { padding: 18px 20px; }
.bc-scope .rx-files-h { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; margin-bottom: 12px; }
.bc-scope .rx-files-h h3 { margin: 0; }
.bc-scope .rx-files .rx-table { box-shadow: none; }

/* empty / loading */
.bc-scope .rx-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 42px 24px; text-align: center; }
.bc-scope .rx-empty b { color: var(--rx-text); font-size: 14.5px; font-weight: 600; }
.bc-scope .rx-empty span { color: var(--rx-muted); font-size: 13px; max-width: 46ch; }
.bc-scope .rx-empty.is-err b { color: var(--rx-bad); }
.bc-scope .rx-skel { height: 64px; margin: 10px 0; border-radius: 10px; background: linear-gradient(90deg, rgba(148, 170, 205, .06), rgba(148, 170, 205, .12), rgba(148, 170, 205, .06)); background-size: 200% 100%; animation: rxsk 1.4s linear infinite; }
.bc-scope .rx-skel.short { width: 60%; }
@keyframes rxsk { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* keep controls clear of the sticky Command Center bar when the browser scrolls them into view */
.bc-scope .rx button, .bc-scope .rx input, .bc-scope .rx select, .bc-scope .rx textarea, .bc-scope .rx tr { scroll-margin-top: 140px; }

/* responsive: desktop-first; below 1180 the investigation becomes a focused single-case view */
/* The case list shares the row with the investigation panel; inside the portal shell (nav rail) it can be ~580px wide.
   Below 700px the Age column folds into the Amount cell instead of forcing sideways scroll. */
.bc-scope .rx .brx-list { container-type: inline-size; }
.bc-scope .rx-agein { display: none; }
@container (max-width: 700px) {
  .bc-scope .brx-list .rx-agecol { display: none; }
  .bc-scope .brx-list .rx-agein { display: block; }
  .bc-scope .brx-list thead th, .bc-scope .brx-list td { padding-left: 10px; padding-right: 10px; }
  .bc-scope .brx-list .rx-issue small { max-width: 21ch; }
  .bc-scope .brx-list .rx-who b { white-space: normal; }
}
@media (max-width: 1360px) {
  .bc-scope .rx-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bc-scope .rx-srcs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
  .bc-scope .rx-split { grid-template-columns: 1fr; }
  .bc-scope .rx-split .rx-pane-empty { display: none; }
  .bc-scope .rx-split.is-focus .rx-table { display: none; }
  .bc-scope .rx.is-focus .rx-tiles, .bc-scope .rx.is-focus .rx-toolbar, .bc-scope .rx.is-focus .rx-head p { display: none; }
  .bc-scope .rx-split:not(.is-focus) .rx-pane { display: none; }
  .bc-scope .rx .rx-pane { position: static; max-height: none; }
  .bc-scope .rx-import { grid-template-columns: 1fr; }
  .bc-scope .rx .rx-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bc-scope .rx-kpis > div:nth-child(3n) { border-right: 0; }
}
@media (max-width: 720px) {
  .bc-scope .rx { padding: 18px 14px 22px; border-radius: 14px; margin: 8px 0 16px; }
  .bc-scope .rx-head h1 { font-size: 24px; }
  .bc-scope .rx-head-r { width: 100%; justify-content: space-between; }
  .bc-scope .rx-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
  .bc-scope .rx .rx-tile { display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 2px; padding: 10px 11px; }
  .bc-scope .rx .rx-tile .rx-ico { display: none; }
  .bc-scope .rx-tile-k { font-size: 11px; line-height: 1.25; }
  .bc-scope .rx-tile-v { font-size: 20px; }
  .bc-scope .rx-head { margin-bottom: 16px; }
  .bc-scope .rx-head p { font-size: 13px; }
  .bc-scope .rx-toolbar { gap: 8px; }
  .bc-scope .rx-sel { flex: 1 1 calc(50% - 8px); min-width: 0; padding-left: 10px; }
  .bc-scope .rx-sel span { display: none; }
  .bc-scope .rx-sel select { flex: 1; min-width: 0; width: 100%; }
  /* the case table becomes stacked rows: who + amount, issue, status + age */
  .bc-scope .rx-table thead { display: none; }
  .bc-scope .rx-table table, .bc-scope .rx-table tbody { display: block; }
  .bc-scope .rx-table tr { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 12px 14px; border-bottom: 1px solid var(--rx-line); }
  .bc-scope .rx-table td { padding: 0; border: 0; }
  .bc-scope .rx-tr .rx-who { grid-column: 1; } .bc-scope .rx-tr td.num:nth-child(3) { grid-column: 2; grid-row: 1; }
  .bc-scope .rx-tr .rx-issue { grid-column: 1 / -1; }
  .bc-scope .rx-tr .rx-next { display: none; }
  .bc-scope .rx-tr td.num:nth-child(5) { grid-column: 2; }
  .bc-scope .rx-who b { white-space: normal; }
  .bc-scope .rx-issue small { white-space: normal; max-width: none; }
  .bc-scope .rx-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bc-scope .rx-ph-top { flex-wrap: wrap; }
  .bc-scope .rx-ph-top .rx-state { margin-left: 58px; }
  .bc-scope .rx-ph-who h2 { font-size: 19px; }
  .bc-scope .rx-srcs { grid-template-columns: 1fr; }
  /* Payment Posting on a phone: patient + amount, status, appointment, next action; the detail stacks */
  .bc-scope .rx-pp-bar .rx-seg { display: flex; flex-wrap: wrap; width: 100%; }
  .bc-scope .rx-pp-bar .rx-segb { flex: 1 1 auto; min-height: 44px; padding: 8px 10px; }
  .bc-scope .rx-pp .rx-pp-tr .rx-pp-who { grid-column: 1; grid-row: 1; }
  .bc-scope .rx-pp .rx-pp-tr .rx-pp-amt { grid-column: 2; grid-row: 1; }
  .bc-scope .rx-pp .rx-pp-tr .rx-pp-st { grid-column: 1 / -1; grid-row: 2; }
  .bc-scope .rx-pp .rx-pp-tr .rx-pp-appt { grid-column: 1 / -1; grid-row: 3; }
  .bc-scope .rx-pp .rx-pp-tr .rx-pp-next { grid-column: 1 / -1; grid-row: 4; max-width: none; }
  .bc-scope .rx-pp .rx-pp-detrow { display: block; }
  .bc-scope .rx-pp .rx-pp-detrow td { display: block; padding: 4px 14px 16px; }
  .bc-scope .rx-pp-kv { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bc-scope .rx-ptabs { overflow-x: auto; padding: 0 8px; }
  .bc-scope .rx-pbody { padding: 14px 14px 6px; }
  .bc-scope .rx-ph { padding: 16px 14px 14px; }
  .bc-scope .rx-bar { padding: 12px 14px; }
  .bc-scope #brx-actform { padding: 0 14px 14px; }
  .bc-scope .rx-mini tbody th { width: auto; }
  .bc-scope .rx-events { display: block; overflow-x: auto; }
  .bc-scope .rx .rx-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bc-scope .rx-kpis > div { border-right: 0; border-bottom: 1px solid var(--rx-line); }
  .bc-scope .brx-bank td:nth-child(6), .bc-scope .brx-bank td:nth-child(3) { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .bc-scope .rx *, .bc-scope .rx *::before { transition: none !important; animation: none !important; }
}

/* freshness: a stale or missing feed is said in words, not only by colour */
.bc-scope .rx .rx-src-stale { margin: 6px 0 0; font-size: 12px; line-height: 1.4; color: var(--rx-bad); }
.bc-scope .rx .rx-srccard.is-alert { border-color: rgba(255, 120, 100, .35); }
.bc-scope .rx.brx-root, .bc-scope .rx .rx-back { scroll-margin-top: 140px; }   /* below the sticky Billing Command Center bar */
/* the evidence cards follow the PANEL's width, not the window's: four columns only when each card has room to read */
.bc-scope .rx .rx-pane { container-type: inline-size; }
@container (max-width: 820px) { .bc-scope .rx-pane .rx-srcs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (max-width: 380px) { .bc-scope .rx-pane .rx-srcs { grid-template-columns: 1fr; } }
/* the portal's global table and text colours are dark-on-light: the money table keeps this screen's light text */
.bc-scope .rx .rx-mini td, .bc-scope .rx .rx-mini td * { color: var(--rx-text) !important; opacity: 1 !important; }
.bc-scope .rx .rx-mini td .rx-dim { color: var(--rx-muted) !important; }
@container (max-width: 520px) {
  .bc-scope .rx-pane .rx-mini tbody th { width: auto; }
  .bc-scope .rx-pane .rx-mini tbody tr { display: grid; grid-template-columns: 1fr 1fr; }
  .bc-scope .rx-pane .rx-mini tbody th { grid-column: 1 / -1; border-bottom: 0; padding-bottom: 0; }
}
/* case header: the status chip moves under the name instead of squeezing it */
.bc-scope .rx-ph-top { flex-wrap: wrap; }
.bc-scope .rx-ph-who { min-width: 0; flex: 1 1 180px; }

/* -- Bank activity: "Insurance deposits not posted in Tebra yet" (owner-approved mock 2026-11-25; 20271130094217) --------------------
 * One calm surface: hairlines, not boxes; serif title and amounts; small spaced labels; status as small dots; colours from the
 * theme only (the --rx-* names follow the Billing Command Center palette, which follows the employee's theme). */
.bc-scope .rx .dep { --dep-tint: color-mix(in srgb, var(--rx-text) 4%, transparent); --dep-cols: 104px minmax(0, 1fr) 128px 168px 124px; padding: 6px 0 8px; color: var(--rx-text); }
.bc-scope .rx .dep-k { margin: 0; font: 500 11px/1.4 var(--rx-font); letter-spacing: .16em; text-transform: uppercase; color: var(--rx-muted); }
.bc-scope .rx .dep-h { margin: 8px 0 0; font: 400 36px/1.08 var(--bcc-serif, 'Instrument Serif', Georgia, serif); letter-spacing: -.005em; color: var(--rx-text); }
.bc-scope .rx .dep-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; margin-top: 10px; font-size: 14.5px; color: var(--rx-text-2); }
.bc-scope .rx .dep-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 9px; vertical-align: 1px; flex: none; }
.bc-scope .rx .dep-dot.is-due { background: var(--rx-bad); }
.bc-scope .rx .dep-dot.is-ok { background: var(--rx-ok); }
.bc-scope .rx .dep-dot.is-maybe { background: transparent; box-shadow: inset 0 0 0 1.5px var(--rx-muted); }
.bc-scope .rx .dep-link { font: 500 14px/1.3 var(--rx-font); color: var(--rx-text); background: none; border: 0; border-radius: 6px; padding: 10px 2px; min-height: 40px; cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--rx-line-2); text-underline-offset: 6px; display: inline-flex; align-items: center; text-align: left; }
.bc-scope .rx .dep-link:hover { text-decoration-color: var(--rx-text); }
.bc-scope .rx .dep-link.is-quiet { color: var(--rx-muted); font-weight: 400; font-size: 13px; }
.bc-scope .rx .dep-list { margin-top: 22px; border-top: 1px solid var(--rx-line); }
.bc-scope .rx .dep-list.is-quiet { margin-top: 6px; }
.bc-scope .rx .dep-colh { display: grid; grid-template-columns: var(--dep-cols); gap: 0 20px; padding: 14px 6px 10px; border-bottom: 1px solid var(--rx-line); }
.bc-scope .rx .dep-colh span { font: 500 11px/1.3 var(--rx-font); letter-spacing: .16em; text-transform: uppercase; color: var(--rx-muted); }
.bc-scope .rx .dep-ar { text-align: right; }
.bc-scope .rx .dep-row { display: grid; grid-template-columns: var(--dep-cols); gap: 4px 20px; align-items: center; padding: 14px 6px; border-top: 1px solid var(--rx-line); transition: background .15s ease; }
.bc-scope .rx .dep-colh + .dep-row, .bc-scope .rx .dep-list > .dep-row:first-child { border-top: 0; }
.bc-scope .rx .dep-row:hover { background: var(--dep-tint); }
.bc-scope .rx .dep-row.is-open { background: none; }
.bc-scope .rx .dep-row.is-done { grid-template-columns: 104px minmax(0, 1fr) 128px 168px 220px; }
.bc-scope .rx .dep-d { font-size: 14px; color: var(--rx-text-2); }
.bc-scope .rx .dep-d small, .bc-scope .rx .dep-p small { display: block; font-size: 12.5px; font-weight: 400; color: var(--rx-muted); margin-top: 2px; }
.bc-scope .rx .dep-p { min-width: 0; font-size: 15px; font-weight: 600; color: var(--rx-text); overflow-wrap: anywhere; }
.bc-scope .rx .dep-row.is-done .dep-p { font-weight: 400; }
.bc-scope .rx .dep-a { font: 400 23px/1.1 var(--bcc-serif, 'Instrument Serif', Georgia, serif); text-align: right; color: var(--rx-text); font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.bc-scope .rx .dep-t { font-size: 13.5px; color: var(--rx-muted); }
.bc-scope .rx .dep-st { font-size: 13px; color: var(--rx-text-2); display: inline-flex; align-items: baseline; }
.bc-scope .rx .dep-go { justify-self: end; font: 600 14px/1.2 var(--rx-font); color: var(--rx-text); background: none; border: 0; border-radius: 6px; padding: 10px 2px; min-height: 40px; cursor: pointer;
  white-space: nowrap; text-decoration: underline; text-decoration-color: var(--rx-line-2); text-underline-offset: 6px; }
.bc-scope .rx .dep-go:hover { text-decoration-color: var(--rx-text); }
/* the copy sheet, inline under its row, in Tebra's Insurance Payment field order */
.bc-scope .rx .dep-sheet { grid-column: 1 / -1; margin: 16px 0 2px; padding: 0 0 6px 124px; }
.bc-scope .rx .dep-sheet > .dep-k { padding-bottom: 8px; }
.bc-scope .rx .dep-cr { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 4px 18px; align-items: center; padding: 8px 0; border-top: 1px solid var(--rx-line); }
.bc-scope .rx .dep-l { font: 500 11px/1.4 var(--rx-font); letter-spacing: .14em; text-transform: uppercase; color: var(--rx-muted); }
.bc-scope .rx .dep-v { min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; }
.bc-scope .rx .dep-plain { display: block; font-size: 14px; color: var(--rx-text-2); line-height: 1.5; }
.bc-scope .rx .dep-chip { display: inline-flex; align-items: baseline; gap: 10px; max-width: 100%; font: 600 14.5px/1.3 var(--rx-font); color: var(--rx-text); background: none; border: 0; border-radius: 6px;
  padding: 8px 8px 8px 0; min-height: 36px; cursor: pointer; text-align: left; }
.bc-scope .rx .dep-chip:hover { background: var(--dep-tint); }
.bc-scope .rx .dep-chip-t { overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.bc-scope .rx .dep-chip-c { font-size: 12px; font-weight: 500; color: var(--rx-muted); text-decoration: underline; text-decoration-color: var(--rx-line-2); text-underline-offset: 3px; white-space: nowrap; }
.bc-scope .rx .dep-chip.is-done .dep-chip-c { color: var(--rx-ok); text-decoration: none; }
.bc-scope .rx .dep-hint { display: block; flex-basis: 100%; font-size: 12.5px; color: var(--rx-muted); line-height: 1.45; margin-top: 2px; }
.bc-scope .rx .dep-fits { list-style: none; margin: 0; padding: 0; font-size: 14px; color: var(--rx-text-2); line-height: 1.6; }
.bc-scope .rx .dep-fits b { color: var(--rx-text); font-weight: 500; }
.bc-scope .rx .dep-steps { margin: 0; padding: 12px 0 0 20px; border-top: 1px solid var(--rx-line); font-size: 13.5px; color: var(--rx-text-2); line-height: 1.7; }
.bc-scope .rx .dep-foot { margin: 8px 0 0; font-size: 13px; color: var(--rx-muted); }
.bc-scope .rx .dep-sub { display: flex; align-items: center; margin: 38px 0 0; font: 400 24px/1.2 var(--bcc-serif, 'Instrument Serif', Georgia, serif); color: var(--rx-text); }
.bc-scope .rx .dep-note { margin: 6px 0 0; font-size: 13.5px; color: var(--rx-muted); line-height: 1.5; }
.bc-scope .rx .dep-empty { margin: 18px 0 0; font-size: 14.5px; color: var(--rx-text-2); line-height: 1.5; }
.bc-scope .rx .dep-more { display: flex; flex-wrap: wrap; gap: 0 28px; margin-top: 34px; padding-top: 14px; border-top: 1px solid var(--rx-line); }
.bc-scope .rx .dep-car { margin-left: 6px; font-size: 11px; color: var(--rx-muted); }
.bc-scope .rx .dep-other { list-style: none; margin: 6px 0 0; padding: 0; max-width: 520px; }
.bc-scope .rx .dep-other li { display: grid; grid-template-columns: minmax(0, 1fr) 60px 120px; gap: 12px; padding: 10px 6px; border-top: 1px solid var(--rx-line); font-size: 14px; color: var(--rx-text-2); }
.bc-scope .rx .dep-other li:first-child { border-top: 0; }
.bc-scope .rx .dep-tail { margin: 26px 0 0; }
.bc-scope .rx .dep-backline { margin: 0 0 12px; }
@media (max-width: 1100px) {
  .bc-scope .rx .dep { --dep-cols: 92px minmax(0, 1fr) 112px 150px 112px; }
  .bc-scope .rx .dep-row.is-done { grid-template-columns: 92px minmax(0, 1fr) 112px 150px 190px; }
  .bc-scope .rx .dep-sheet { padding-left: 0; }
}
@media (max-width: 760px) {
  .bc-scope .rx .dep-h { font-size: 30px; }
  .bc-scope .rx .dep-colh { display: none; }
  .bc-scope .rx .dep-row, .bc-scope .rx .dep-row.is-done { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 14px; padding: 14px 2px; }
  .bc-scope .rx .dep-d { grid-column: 1; grid-row: 1; }
  .bc-scope .rx .dep-p { grid-column: 1; grid-row: 2; }
  .bc-scope .rx .dep-a { grid-column: 2; grid-row: 1 / span 2; align-self: start; }
  .bc-scope .rx .dep-t { grid-column: 1 / -1; grid-row: 3; }
  .bc-scope .rx .dep-go, .bc-scope .rx .dep-st { grid-column: 1 / -1; grid-row: 4; justify-self: start; }
  .bc-scope .rx .dep-sheet { grid-row: 5; padding-left: 0; }
  .bc-scope .rx .dep-cr { grid-template-columns: minmax(0, 1fr); }
  .bc-scope .rx .dep-d small { display: inline; margin-left: 6px; }
}
@media (prefers-reduced-motion: reduce) { .bc-scope .rx .dep-row { transition: none; } }
