/* ═══════════════════════════════════════════════════════
   SEGUIMIENTO — seg-historial.css
   Tarjetas del historial de sesiones y chips en historial
═══════════════════════════════════════════════════════ */

/* Historial */
.seg-side-section-title {
  font-size: 9px;
  font-weight: 700;
  color: #7D84C1;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.seg-hist-card {
  background: #fff;
  border: 0.5px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  transition: all .12s;
}

.seg-hist-card:hover { border-color: #C9D9FF; background: #fafbff; }
.seg-hist-card.active { border-color: #9961FF; background: #f5f0ff; }
.seg-hist-card.seg-hist-loading {
  border-color: #C9D9FF;
  background: #f5f0ff;
  opacity: .7;
  cursor: wait;
  position: relative;
}
.seg-hist-card.seg-hist-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: linear-gradient(90deg, transparent 0%, rgba(153,97,255,.08) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: seg-hist-shimmer .9s infinite;
}
@keyframes seg-hist-shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

.seg-hist-date    { font-size: 10px; font-weight: 700; color: #374151; display: flex; align-items: center; gap: 6px; }
.seg-hist-hora    { font-size: 10px; font-weight: 400; color: #9961FF; }
.seg-hist-preview {
  font-size: 10px;
  color: #9ca3af;
  margin: 2px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.seg-hist-tags {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
  margin-top: 3px;
}

.seg-hist-tag {
  font-size: 9px;
  padding: 1px 6px;
  background: #EFF6FF;
  color: #7D84C1;
  border-radius: 10px;
  border: 0.5px solid #C9D9FF;
}

/* ── Chips secciones en historial ── */
.seg-hist-chips-wrap {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 5px;
  cursor: pointer;
}

.seg-hist-chips-sec {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.seg-hist-chips-label {
  font-size: 8px;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.seg-hist-chips-row {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
  max-height: 52px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #e0e7ff transparent;
  padding-bottom: 1px;
}
.seg-hist-chips-row::-webkit-scrollbar { width: 3px; }
.seg-hist-chips-row::-webkit-scrollbar-thumb { background: #e0e7ff; border-radius: 99px; }

.seg-hist-chip {
  flex-shrink: 0;
  font-size: 9px;
  padding: 2px 7px;
  border-radius: 20px;
  white-space: nowrap;
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.seg-hist-chip-trabajar {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #dcfce7;
  color: #15803d;
  border: 0.5px solid #86efac;
  max-width: 150px;
}

.seg-hist-intens-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  font-size: 8px;
  font-weight: 600;
}

.seg-hist-badge {
  display: inline-block;
  font-size: 9px;
  padding: 1px 6px;
  border-radius: 10px;
  font-weight: 600;
  margin-top: 3px;
}

.seg-hist-badge.nueva    { background: #E1DEFF; color: #7c3aed; }
.seg-hist-badge.enviado  { background: #d1fae5; color: #065f46; }
.seg-hist-badge.pendiente { background: #fef3c7; color: #92400e; }