/* ═══════════════════════════════════════════════════════
   SEGUIMIENTO — seg-cie10.css
   CIE-10: colores por tipo, chips por tipo, escala de intensidad
═══════════════════════════════════════════════════════ */

.seg-notas-editor {
  width: 100%;
  min-height: 90px;
  padding: 10px 12px;
  border: 0.5px solid #fca5a5;
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  color: #374151;
  background: #fff5f5;
  outline: none;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  cursor: text;
  resize: vertical;
  overflow-y: auto;
}
.seg-notas-editor:focus { border-color: #f87171; }
.seg-notas-editor:empty::before {
  content: attr(data-placeholder);
  color: #c4b5b5;
  pointer-events: none;
  font-style: italic;
  font-size: 12px;
}
/* Sugerencia inline — texto gris tenue */
.seg-notas-editor .seg-inline-sug,
.seg-pn-form-campo-editor .seg-inline-sug,
.seg-pn-fijo-editor .seg-inline-sug {
  color: #c4b5b5;
  font-style: normal;
  pointer-events: none;
  user-select: none;
}
/* Prefijo / y /d en gris muy suave */
.seg-notas-editor .seg-slash-prefix {
  color: #d1d5db;
}

/* ═══════════════════════════════════════════
   4 SECCIONES DE CHIPS BAJO NOTAS CLÍNICAS
═══════════════════════════════════════════ */
.seg-chips-secciones {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.seg-chip-seccion {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.seg-chip-seccion-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.seg-chip-seccion-label i { font-size: 10px; }
.seg-chip-seccion-label::after {
  content: '·';
  font-size: 13px;
  font-weight: 700;
  margin-left: 2px;
  opacity: .6;
}

/* Colores por tipo */
.seg-chip-label-sintoma    { color: #e57373; }
.seg-chip-label-diagnostico{ color: #64b5f6; }
.seg-chip-label-hipotesis  { color: #ba68c8; }
.seg-chip-label-trabajar   { color: #81c784; }

.seg-chip-seccion-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

/* Chips por tipo */
.seg-chip-sintoma {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600;
  background: #fff5f5; color: #e57373; border: 0.5px solid #fecaca;
  text-transform: none; letter-spacing: 0; cursor: default;
}
.seg-chip-diagnostico {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600;
  background: #eff6ff; color: #64b5f6; border: 0.5px solid #bfdbfe;
  text-transform: none; letter-spacing: 0; cursor: default;
}
.seg-chip-hipotesis {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600;
  background: #fdf4ff; color: #ba68c8; border: 0.5px solid #e9d5ff;
  text-transform: none; letter-spacing: 0; cursor: default;
}
.seg-chip-trabajar {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600;
  background: #f3f4f6; color: #9ca3af; border: 0.5px solid #e5e7eb;
  text-transform: none; letter-spacing: 0; cursor: pointer;
  transition: all .15s;
}
.seg-chip-trabajar.activo {
  background: #dcfce7; border-color: #86efac; color: #16a34a;
}
.seg-chip-remove-btn {
  background: none; border: none; cursor: pointer;
  font-size: 9px; padding: 0; line-height: 1;
  opacity: .6; transition: opacity .12s;
}
.seg-chip-remove-btn:hover { opacity: 1; }

/* ═══════════════════════════════════════════
   ETIQUETAS ACTIVAS EN PANEL IZQUIERDO
═══════════════════════════════════════════ */
.seg-lp-etiquetas {
  margin-top: 6px;
  background: #f9fafb;
  border: 0.5px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}
.seg-lp-etiquetas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  cursor: pointer;
  user-select: none;
}
.seg-lp-etiquetas-header:hover { background: #f0f1f3; }
.seg-lp-etiquetas-titulo {
  font-size: 9px;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.seg-lp-etiquetas-chev {
  font-size: 9px;
  color: #9ca3af;
  transition: transform .2s;
}
.seg-lp-etiquetas-chev.collapsed { transform: rotate(-90deg); }
.seg-lp-etiquetas-body {
  max-height: 120px;
  overflow-y: auto;
  padding: 0 10px 8px;
  transition: max-height .25s ease;
  scrollbar-width: thin;
  scrollbar-color: #e0e7ff transparent;
}
.seg-lp-etiquetas-body.collapsed {
  max-height: 0;
  padding: 0;
  overflow: hidden;
}
.seg-lp-etiquetas-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
/* Chip clickeable para filtrar */
.seg-lp-etiqueta-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 20px;
  font-size: 9px;
  font-weight: 600;
  background: #f5f3ff;
  border: 0.5px solid #ddd6fe;
  color: #7D84C1;
  cursor: pointer;
  transition: all .12s;
  text-transform: none;
  letter-spacing: 0;
}
.seg-lp-etiqueta-chip:hover {
  background: #ede9fe;
  border-color: #9961FF;
  color: #9961FF;
}
.seg-lp-etiqueta-chip.activa {
  background: #9961FF;
  border-color: #9961FF;
  color: #fff;
}

/* Botón limpiar filtros etiquetas */
.seg-lp-etiqueta-limpiar {
  background: #fef2f2 !important;
  border-color: #fecaca !important;
  color: #ef4444 !important;
}
.seg-lp-etiqueta-limpiar:hover {
  background: #fee2e2 !important;
  border-color: #ef4444 !important;
}

/* Botón trash en chips hipótesis */
.seg-chip-btn-trash i { color: #fca5a5 !important; }
.seg-chip-btn-trash:hover i { color: #ef4444 !important; }

/* ═══════════════════════════════
   MODAL INTENSIDAD
═══════════════════════════════ */
.seg-intensidad-modal-box {
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
}

.seg-intens-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all .15s;
}
.seg-intens-item:hover { background: #f7f8fc; border-color: #e5e7eb; }
.seg-intens-item.activo { background: #f0f5ff; border-color: #9961FF; }

.seg-intens-barra {
  width: 6px;
  min-height: 44px;
  border-radius: 4px;
  flex-shrink: 0;
  border: 1px solid rgba(0,0,0,.08);
}
.seg-intens-num {
  font-size: 18px;
  font-weight: 700;
  color: #6b7280;
  min-width: 22px;
  line-height: 1.2;
  font-family: inherit;
}
.seg-intens-info { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.seg-intens-label { font-size: 12px; font-weight: 600; color: #1e2d5a; }
.seg-intens-desc { font-size: 11px; color: #9ca3af; line-height: 1.4; }

/* Badge de intensidad en chip trabajar */
.seg-intens-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  margin-left: 4px;
  padding: 0 3px;
  cursor: pointer;
  transition: opacity .12s;
}
.seg-intens-badge:hover { opacity: .8; }