/* @ekm-tags: style, billing, patient */
/* Billing Communication — "My billing work today" (P2, js/ekm-billing-communication-queue-view.js). Scoped to .bcq-* inside the
   page's .bcv-area; the theme tokens (--c-*, --status-*) only, so light and dark both follow the portal theme.
   Buttons and tabs are 44px; nothing scrolls sideways on a phone. */
.bcq{min-width:0;container-type:inline-size;container-name:bcq}
.bcq-head{display:flex;flex-wrap:wrap;align-items:flex-end;gap:4px 16px;margin-bottom:12px}
.bcq-head>*:not(.bcq-board-toggle):not(.bcv-launch){flex:1 1 100%}
.bcq-eyebrow{margin:0;font-size:12px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--c-ink2,#3d3830)}
.bcq-title{margin:0;font-family:var(--font-display,inherit);font-weight:var(--font-weight-display,400);font-size:clamp(1.25rem,1.6vw,1.5rem);line-height:1.15;color:var(--hp-head,var(--c-ink,#222))}
.bcq-sub{margin:0;font-size:13px;color:var(--c-ink2,#3d3830)}
.bcq-board-toggle,.bcq-head>.bcv-launch{flex:none}
.bcq-btn,.bcq-board-toggle,.bcq-head .bcv-launch-btn{min-height:44px}
.bcq-tabs{display:flex;flex-wrap:wrap;gap:6px;border-bottom:1px solid var(--c-box-border,#ddd);margin-bottom:10px}
.bcq-tab{appearance:none;min-height:44px;padding:0 14px;border:0;border-bottom:3px solid transparent;background:transparent;font:inherit;font-size:14px;font-weight:600;color:var(--c-ink2,#3d3830);cursor:pointer}
.bcq-tab.is-on{color:var(--c-ink,#222);border-bottom-color:var(--c-ink,#222)}
.bcq-tab:focus-visible,.bcq-chip:focus-visible{outline:none;box-shadow:var(--focus-ring,0 0 0 2px var(--c-bg,#fff),0 0 0 4px var(--c-accent,#9c9a93))}
.bcq-badge{display:inline-block;min-width:22px;padding:1px 7px;margin-left:4px;border-radius:999px;font-size:12px;font-weight:700;background:var(--c-box,#fff);color:var(--c-ink,#222);border:1px solid var(--c-box-border,#ddd)}
.bcq-badge--alert{background:#b3261e;color:#fff;border-color:#b3261e}   /* the red count: solid, 6.5:1 in every theme */
.bcq-chips{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0 12px}
.bcq-chip{appearance:none;min-height:44px;padding:0 14px;border-radius:999px;border:1px solid var(--c-box-border,#ddd);background:var(--c-box,#fff);font:inherit;font-size:13px;color:var(--c-ink,#222);cursor:pointer}
.bcq-chip.is-on{background:var(--c-ink,#222);color:var(--c-bg,#fff);border-color:var(--c-ink,#222)}
.bcq-h3{margin:18px 0 8px;font-size:15px;font-weight:700;color:var(--c-ink,#222)}
.bcq-list,.bcq-holds{list-style:none;margin:0;padding:0;display:grid;gap:8px}
/* A row is laid out by the list's OWN width (container bcq), never by the window: narrow = one column (name, then the step and
   amount, then the actions); medium = name | step, actions on their own full-width line; wide = name | step | actions. Every
   column has a real minimum, so a long action set can never squeeze the name (it used to sit beside an `auto` actions column
   that grew to all the buttons on one line and collapsed the name to one letter per line). */
.bcq-row,.bcq-hold{display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:"who" "what" "acts";gap:8px 16px;align-items:start;padding:12px 14px;border:1px solid var(--c-box-border,#ddd);border-radius:12px;background:var(--c-box,#fff)}
.bcq-hold{grid-template-areas:none}
.bcq-who{grid-area:who}
.bcq-what{grid-area:what}
.bcq-acts{grid-area:acts}
@container bcq (min-width: 640px){
  .bcq-row{grid-template-columns:minmax(200px,1fr) minmax(240px,1.15fr);grid-template-areas:"who what" "acts acts"}
  .bcq-hold{grid-template-columns:minmax(160px,1fr) minmax(140px,1fr) minmax(200px,2fr)}
}
@container bcq (min-width: 1100px){
  .bcq-row{grid-template-columns:minmax(200px,1fr) minmax(260px,1.4fr) minmax(280px,1.6fr);grid-template-areas:"who what acts"}
  .bcq-row .bcq-acts{justify-content:flex-end}
}
.bcq-row--pending{background:color-mix(in srgb,var(--c-box,#fff) 92%,var(--c-ink,#000))}
.bcq-who,.bcq-what{display:flex;flex-direction:column;gap:2px;min-width:0}
.bcq-name{font-weight:650;color:var(--c-ink,#222);overflow-wrap:break-word;word-break:normal;hyphens:manual}   /* breaks only between words; a single over-long word is the only thing ever split */
.bcq-tid,.bcq-visit,.bcq-ctx,.bcq-hold-kind{font-size:13px;color:var(--c-ink2,#3d3830);overflow-wrap:break-word}
.bcq-step{font-weight:700;color:var(--c-ink,#222)}
.bcq-amt{font-variant-numeric:tabular-nums;white-space:nowrap}
.bcq-acts{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-start;min-width:0}
.bcq-form{grid-column:1/-1;display:grid;gap:6px;margin-top:6px;max-width:560px}
.bcq-l{font-size:13px;font-weight:600;color:var(--c-ink,#222)}
.bcq-in{width:100%;box-sizing:border-box;min-height:44px}
.bcq-help{margin:0;font-size:12.5px;color:var(--c-ink2,#3d3830)}
.bcq-actions{display:flex;flex-wrap:wrap;gap:6px}
.bcq-msg{margin:0 0 10px}
.bcq-ok{color:var(--c-ink,#222);font-weight:600}
/* Owner 2026-10-26: patient search, the name → Patient Spine, Do not schedule on a row. No new boxes or pills; 44px targets. */
.bcq-search{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:6px 0 4px;max-width:520px}
.bcq-search-l{font-size:13px;font-weight:600;color:var(--c-ink,#222)}
.bcq-search-in{flex:1 1 220px;min-width:0;min-height:44px;box-sizing:border-box}
.bcq-name-link{appearance:none;display:inline-flex;align-items:center;min-height:44px;margin:-10px 0;padding:0;border:0;background:none;font:inherit;font-weight:650;text-align:left;
  color:var(--c-ink,#222);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;cursor:pointer;max-width:100%}
.bcq-name-link:hover{text-decoration-thickness:2px}
.bcq-name-link:focus-visible{outline:none;box-shadow:var(--focus-ring,0 0 0 2px var(--c-bg,#fff),0 0 0 4px var(--c-accent,#9c9a93))}
.bcq-row .bcv-hold-form{grid-column:1/-1;display:grid;gap:6px;max-width:560px}
.bcq-row .bcv-hold-form[hidden]{display:none}
.bcq-row .bcv-hold-form textarea,.bcq-row .bcv-hold-form .eui-btn{min-height:44px}
.bcq-row .bcv-actbar-btn{min-height:44px}
