/* ═══════════════════════════════════════════════════════════════════════
 * fc2-escritorio-enrich.css · v2
 * Append-only CSS para el patch del escritorio FC2.
 * Scope: .fc-host (mismo que el módulo principal).
 * ═══════════════════════════════════════════════════════════════════════ */

/* ─ Mini-tags clínicos inline en fc-info-row ─────────────────────────── */
.fc-host .fc2x-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.fc-host .fc2x-tags--clin {
  margin-top: 6px;
}
.fc-host .fc2x-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,0.045);
  border: 0.5px solid rgba(255,255,255,0.10);
  color: var(--tx-muted, #8B949E);
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.fc-host .fc2x-tag--brand {
  background: rgba(127,119,221,0.14);
  border-color: rgba(127,119,221,0.30);
  color: var(--c-brand-soft, #A78BFA);
}
.fc-host .fc2x-tag--mono {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--c-brand-soft, #A78BFA);
  background: rgba(127,119,221,0.10);
  border-color: rgba(127,119,221,0.22);
}
.fc-host .fc2x-tag--clin {
  background: rgba(127,119,221,0.10);
  border-color: rgba(127,119,221,0.22);
  color: var(--c-brand-soft, #A78BFA);
  font-family: ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.04em;
}
.fc-host .fc2x-tag--grn {
  background: rgba(63,185,80,0.14);
  border-color: rgba(63,185,80,0.32);
  color: var(--grn, #5DCAA5);
}
.fc-host .fc2x-tag--amb {
  background: rgba(239,159,39,0.14);
  border-color: rgba(239,159,39,0.32);
  color: var(--amber, #EF9F27);
}
.fc-host .fc2x-tag--red {
  background: rgba(226,75,74,0.14);
  border-color: rgba(226,75,74,0.32);
  color: var(--red, #F09595);
}

/* ─ Tint del fondo del fc-info-row según estado (sobre la card completa) ─ */
.fc-host .fc-info-row.fc2x-enriched[data-fc2x-state="waiting"] {
  background: linear-gradient(135deg,
    rgba(63,185,80,0.10) 0%,
    rgba(63,185,80,0.02) 100%);
  border-color: rgba(63,185,80,0.30);
  box-shadow: 0 0 0 1px rgba(63,185,80,0.10);
}
.fc-host .fc-info-row.fc2x-enriched[data-fc2x-state="session"] {
  background: linear-gradient(135deg,
    rgba(127,119,221,0.14) 0%,
    rgba(127,119,221,0.02) 100%);
  border-color: rgba(127,119,221,0.32);
  box-shadow: 0 0 0 1px rgba(127,119,221,0.10);
}

/* ─ Halo pulsante en el icon container del fc-info-row ────────────────── */
.fc-host .fc-info-row.fc2x-enriched[data-fc2x-state="waiting"] .fc-info-row__icon {
  position: relative;
  background: rgba(63,185,80,0.16) !important;
  border-color: rgba(63,185,80,0.32) !important;
}
.fc-host .fc-info-row.fc2x-enriched[data-fc2x-state="waiting"] .fc-info-row__icon::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 1.5px solid var(--grn, #3fb950);
  opacity: 0;
  animation: fc2x-halo-grn 2s ease-out infinite;
  pointer-events: none;
}
.fc-host .fc-info-row.fc2x-enriched[data-fc2x-state="session"] .fc-info-row__icon {
  position: relative;
  background: rgba(127,119,221,0.18) !important;
  border-color: rgba(127,119,221,0.32) !important;
}
.fc-host .fc-info-row.fc2x-enriched[data-fc2x-state="session"] .fc-info-row__icon::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 1.5px solid var(--c-brand-soft, #A78BFA);
  opacity: 0;
  animation: fc2x-halo-brand 1.8s ease-out infinite;
  pointer-events: none;
}

@keyframes fc2x-halo-grn {
  0%   { opacity: 0.6; transform: scale(0.95); }
  100% { opacity: 0;   transform: scale(1.18); }
}
@keyframes fc2x-halo-brand {
  0%   { opacity: 0.6; transform: scale(0.95); }
  100% { opacity: 0;   transform: scale(1.18); }
}

/* ─ Halo verde en avatar de fila cuando es el paciente en sala ────────── */
.fc-host .fc-patient-row__avatar[data-fc2x-en-sala] {
  position: relative;
  box-shadow: 0 0 0 2px rgba(63,185,80,0.55);
}
.fc-host .fc-patient-row__avatar[data-fc2x-en-sala]::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid var(--grn, #3fb950);
  opacity: 0;
  animation: fc2x-halo-grn 2.2s ease-out infinite;
  pointer-events: none;
}

/* ─ Badge "En sala · N min" reemplaza estado en la fila ───────────────── */
.fc-host .fc-patient-row__status.fc2x-status--en-sala {
  background: rgba(63,185,80,0.16) !important;
  color: var(--grn, #5DCAA5) !important;
  border: 0.5px solid rgba(63,185,80,0.36) !important;
  font-weight: 500;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.fc-host .fc-patient-row__status.fc2x-status--en-sala::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grn, #3fb950);
  box-shadow: 0 0 8px rgba(63,185,80,0.7);
  flex-shrink: 0;
}

/* ─ FIN fc2-escritorio-enrich v2 ───────────────────────────────────────── */
