/* =========================
   LEYENDA (icono + tooltip)
   ========================= */

.tk-legend{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  margin: 6px 0 8px 0;
}

/* Botón icono (sin aspecto de botón) */
.tk-legend__btn{
  appearance:none;
  -webkit-appearance:none;
  border:0;
  padding:0;
  background:transparent;
  outline:none;
}

/* Icono */
.tk-legend__icon{
  width: 34px;
  height: 34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius: 999px;
  cursor: help;
  user-select:none;

  color: rgba(255,255,255,.92);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 10px 26px rgba(0,0,0,.28);

  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}

.tk-legend__icon:hover,
.tk-legend__icon:focus{
  transform: translateY(-1px);
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.18);
}

/* Tooltip wrapper (dbc.Tooltip) */
.tk-legend__tooltip .tooltip-inner{
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  max-width: 380px;
}

.tk-legend__tooltip .tooltip-arrow{
  display:none;
}

/* Tarjeta */
.tk-legend__card{
  background: rgba(18,18,20,.96);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  padding: 12px 12px;
  box-shadow: 0 18px 55px rgba(0,0,0,.60);
  backdrop-filter: blur(8px);
}

.tk-legend__title{
  font-weight: 800;
  letter-spacing: .2px;
  color: rgba(255,255,255,.95);
  margin: 0 0 8px 0;
  font-size: 13px;
}

/* Filas */
.tk-legend__row{
  display:flex;
  align-items:flex-start;
  gap: 10px;
  padding: 8px 4px;
}

.tk-legend__row + .tk-legend__row{
  border-top: 1px solid rgba(255,255,255,.06);
}

/* Texto */
.tk-legend__text{
  color: rgba(255,255,255,.90);
  font-size: 13px;
  line-height: 1.25;
}

/* Puntos de color */
.tk-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-top: 4px;
  flex: 0 0 10px;
  box-shadow: 0 0 0 3px rgba(255,255,255,.06);
}

.tk-dot--yellow{ background: #ffc107; }
.tk-dot--green { background: #28a745; }
.tk-dot--red   { background: #dc3545; }
