/* case-calls.css - Consults and the 15-minute Screening call (consults-1128, wiki/consults.md).
   The patient's cards reuse the follow-up card (patient-support.css: sp-fu-card, sp-field,
   sp-fu-actions); the staff block reuses the case page's cards. Only the agenda list is new. */

.cc-place:empty { display: none; }
.ps-stage-body .cc-place .sp-fu-card { margin: 0; }
.cc-place { display: flex; flex-direction: column; gap: 14px; }

.cc-box {
  min-height: 72px;
  resize: vertical;
}

.cc-agenda { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.cc-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cc-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  padding: 8px 12px;
  border: 1px solid var(--color-line, #e5e7eb);
  border-radius: 8px;
  background: var(--color-card, #fff);
  color: var(--color-text, inherit);
  font-size: var(--fs-14, 14px);
}
.cc-line__text { flex: 1 1 220px; overflow-wrap: anywhere; }
.cc-line__by { color: var(--color-muted, #6b7280); font-size: var(--fs-13, 13px); }
.cc-add { display: flex; gap: 8px; align-items: stretch; }
.cc-add__input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid var(--color-line, #e5e7eb);
  border-radius: 8px;
  background: var(--color-card, #fff);
  color: var(--color-text, inherit);
  font: inherit;
  font-size: var(--fs-14, 14px);
}
.cc-picker { display: flex; flex-direction: column; gap: 10px; }

/* The staff block (case page Session tab, the calendar's call window, the admin case page). */
.cc-staff { display: flex; flex-direction: column; gap: 10px; }
.cc-staff__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.cc-staff__name { margin: 0; font-weight: 600; font-size: var(--fs-15, 15px); color: var(--color-text, inherit); }
.cc-staff__state { color: var(--color-muted, #6b7280); font-size: var(--fs-13, 13px); }
.cc-staff__line { margin: 0; color: var(--color-muted, #6b7280); font-size: var(--fs-14, 14px); }
.cc-staff__error { margin: 0; color: var(--color-danger, #b91c1c); font-size: var(--fs-13, 13px); }
.cc-staff__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cc-staff-list { display: flex; flex-direction: column; gap: 16px; }
.cc-staff-list > .cc-staff + .cc-staff { padding-top: 16px; border-top: 1px solid var(--color-line, #e5e7eb); }

/* The calendar's month cell: a booked Consult or Screening call wears the Recommendation
   follow-up's indigo dot (clinician-calendar.css), so person-bound calls read as one family. */
.cal-day-cell__slot-line.cal-day-cell__slot-line--consult_call,
.cal-day-cell__slot-line.cal-day-cell__slot-line--screening_call {
  --cal-purpose-color: #4f46e5;
}
.cal-detail-call:empty { display: none; }
.cal-detail-call { padding: 12px 0 4px; border-top: 1px solid var(--color-line, #e5e7eb); margin-top: 8px; }

/* An agenda line's Remove sits on the line (the shared text button keeps its 44px target but
   not its centring margin). */
.cc-line { align-items: center; padding-top: 2px; padding-bottom: 2px; min-height: 44px; }
.cc-line .sp-text-btn,
.cc-line .clin-case-link { margin: 0; flex: 0 0 auto; }

/* Who wrote a line and its Remove stay together on one baseline, at the line's end. */
.cc-line__end { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; }

/* The patient's call banner: a call marked completed says so where Join was (K2). */
.ps-followup-done {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  color: var(--ps-accent-text, var(--color-muted, #6b7280));
  font-weight: 600;
}

/* Editing an agenda line's words in place (patient card, K2): the field and its two buttons
   take the line's whole width, one button height. */
.cc-line--editing { flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.cc-line--editing .cc-add { flex: 1 1 100%; flex-wrap: wrap; }
.cc-line--editing .cc-add__input { flex: 1 1 220px; }

/* A refusal sits under the field it belongs to: the Add box, or an edited / removed line (the
   line wraps, so the words take its whole width under the field). */
.cc-line .cc-field-error { flex: 1 1 100%; margin: 0; }

/* The Screening call switch (shared/screening-call-switches.js; one call since 3 Dec 2026). The
   switch is the tab's own .rv6-su-tgl, repeated here for pages without the report's CSS (admin). */
.scc { margin: 0 0 var(--space-3, 12px); }
.scc-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0;
  border-bottom: 1px solid var(--color-line, #e5e7eb); font: 500 var(--fs-14, 14px)/1.3 Inter, system-ui, sans-serif; }
.scc-row:last-child { border-bottom: 0; }
.scc-row__w { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.scc-row__line { font-weight: 400; color: var(--color-muted, #5b6472); font-size: var(--fs-13, 13px); }
.scc .rv6-su-tgl { width: 34px; height: 20px; border: 0; border-radius: 999px; background: var(--color-line, #d1d5db);
  position: relative; cursor: pointer; padding: 0; flex: none; }
.scc .rv6-su-tgl::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--color-card, #fff); transition: transform .15s; }
.scc .rv6-su-tgl.on { background: var(--color-selected, #1f5f46); }
.scc .rv6-su-tgl.on::after { transform: translateX(14px); }
.scc .rv6-su-tgl:disabled { opacity: .55; cursor: default; }
