/* Crosshair time label on chart */
#chart-crosshair-time {
  position: absolute;
  transform: translateX(-50%);
  bottom: auto;
  padding: 2px 8px;
  background: rgba(0, 0, 0, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 2px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0;
  transition: opacity 0.12s ease;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  user-select: none;
  z-index: 40;
  font-family: var(--font-bloomberg, var(--inst-mono, var(--mono, monospace)));
  font-variant-numeric: tabular-nums;
}

#chart-crosshair-time.visible {
  opacity: 1;
}

body.geral-view-only #chart-crosshair-time {
  font-size: 14px;
  padding: 3px 9px;
}

body.view-geral-active #chart-crosshair-time.visible {
  display: block;
  opacity: 1;
}

/* CPM ALERTS — minicharts MTG + expand terminal */
#mtg-expand-host {
  position: relative;
}

#term-alerts-host .mtg-chart-host .mtg-crosshair-time,
#view-alertas.al-alerts-desk .mtg-chart-host .mtg-crosshair-time,
#mtg-expand-host > .mtg-crosshair-time {
  position: absolute;
  transform: translateX(-50%);
  bottom: auto;
  padding: 2px 8px;
  background: rgba(0, 0, 0, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 2px;
  color: #ffffff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0;
  transition: opacity 0.12s ease;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  user-select: none;
  z-index: 40;
  font-family: var(--font-bloomberg, var(--inst-mono, var(--mono, monospace)));
  font-variant-numeric: tabular-nums;
}

#term-alerts-host .mtg-chart-host .mtg-crosshair-time.visible,
#view-alertas.al-alerts-desk .mtg-chart-host .mtg-crosshair-time.visible,
#mtg-expand-host > .mtg-crosshair-time.visible {
  opacity: 1;
}
