/* =========================================================
   TIMELINE TICKETS - MINI CARDS + HOVERCARD (FULL CSS)
   ========================================================= */

/* ---------- Anti-corte ---------- */
.tl-timeline-root,
.tl-timeline-abs,
#timeline-tickets-container{
  position: relative;
  overflow: visible !important;
}

#timeline-tickets-container .panel-subsection,
#timeline-tickets-container .panel-subbody{
  overflow: visible !important;
}

/* ---------- Mini card base ---------- */
.tl-ticket{
  position: relative;
  border-radius: 14px;
  overflow: visible;

  background: rgba(10, 12, 16, 0.92);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow:
    0 14px 34px rgba(0,0,0,0.55),
    0 0 0 1px rgba(255,255,255,0.04) inset;
  backdrop-filter: blur(10px);

  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;

  padding: 10px 10px;
  gap: 8px;

  box-sizing: border-box;
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
  z-index: 1;
}

.tl-ticket:hover{
  z-index: 9999;
  transform: translateY(-1px);
  border-color: rgba(34,197,94,0.35);
  box-shadow:
    0 18px 42px rgba(0,0,0,0.62),
    0 0 0 1px rgba(34,197,94,0.14) inset,
    0 0 22px rgba(34,197,94,0.12);
}

/* Fuera de mes */
.tl-ticket--outmonth{
  background:
    radial-gradient(900px 140px at 30% 0%, rgba(255,59,59,0.08), transparent 60%),
    rgba(10, 12, 16, 0.92);
}

/* ---------- Título: 1 línea, NUNCA baja ---------- */
.tl-title{
  font-weight: 900;
  font-size: 12px;
  color: rgba(255,255,255,0.92);
  line-height: 1.15;
}

.tl-title--1l{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Chips: SIEMPRE en columna ---------- */
.tl-chips{
  display: flex;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 6px !important;
  min-width: 0;
}

.tl-chip{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 10px;
  font-weight: 900;
  line-height: 1;

  color: rgba(255,255,255,0.82);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 999px;
  padding: 6px 10px;

  white-space: nowrap;
  box-sizing: border-box;
}

/* Money (verde) */
.tl-chip--money{
  color: rgba(0,231,101,0.95);
  background:
    radial-gradient(600px 90px at 30% 0%, rgba(34,197,94,0.12), transparent 60%),
    rgba(255,255,255,0.04);
  border: 1px solid rgba(34,197,94,0.18);
}

/* Fuera de mes (fecha/hora en ámbar) */
.tl-chip--out{
  color: rgba(240,173,78,0.92);
  border-color: rgba(240,173,78,0.18);
}

/* Fuera de mes (money rojo) */
.tl-chip--outmoney{
  color: rgba(255,107,107,0.95);
  background:
    radial-gradient(600px 90px at 30% 0%, rgba(255,59,59,0.10), transparent 60%),
    rgba(255,255,255,0.04);
  border: 1px solid rgba(255,59,59,0.18);
}

/* ---------- Hovercard ---------- */
.tl-hovercard{
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(2px) scale(0.985);

  width: 300px;
  max-width: 320px;

  pointer-events: none;
  opacity: 0;
  visibility: hidden;

  transition: opacity 120ms ease, transform 120ms ease, visibility 120ms ease;
  z-index: 10000;

  border-radius: 16px;
  background: rgba(10, 12, 16, 0.96);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow:
    0 22px 60px rgba(0,0,0,0.75),
    0 0 0 1px rgba(255,255,255,0.05) inset;
  backdrop-filter: blur(10px);

  padding: 12px;
}

.tl-ticket:hover .tl-hovercard{
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
}

.tl-hovercard::after{
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  border: 9px solid transparent;
  border-top-color: rgba(10, 12, 16, 0.96);
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.35));
}

.tl-hover-toprow{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  min-width: 0;
}

/* Thumb controlado */
.tl-hover-thumb{
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;

  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 10px 22px rgba(0,0,0,0.35);
}

.tl-hover-thumb-img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.tl-hover-top{
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}

.tl-hover-title{
  font-weight: 900;
  font-size: 13px;
  color: rgba(255,255,255,0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tl-hover-sub{
  font-weight: 800;
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tl-hover-money{
  flex: 0 0 auto;
  font-weight: 900;
  font-size: 13px;
  color: rgba(0,231,101,0.95);
  padding: 7px 10px;
  border-radius: 12px;

  background:
    radial-gradient(800px 120px at 30% 0%, rgba(34,197,94,0.12), transparent 60%),
    rgba(255,255,255,0.04);
  border: 1px solid rgba(34,197,94,0.18);
  white-space: nowrap;
}

.tl-ticket--outmonth .tl-hover-money{
  color: rgba(255,107,107,0.95);
  background:
    radial-gradient(800px 120px at 30% 0%, rgba(255,59,59,0.10), transparent 60%),
    rgba(255,255,255,0.04);
  border: 1px solid rgba(255,59,59,0.18);
}

.tl-hover-meta{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tl-hover-chip{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 11px;
  font-weight: 800;

  color: rgba(255,255,255,0.82);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 999px;
  padding: 4px 8px;
}
