/* ═══════════════════════════════════════════════════════
   TOOLTIP
═══════════════════════════════════════════════════════ */
#tooltip {
  position: fixed;

  z-index: 200;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;

  background: #fff;
  color: var(--menu-accent);
  outline: 1px solid var(--menu-accent);
  width: 300px;
  /* Nooit breder dan het scherm (bijv. 320px-telefoons) */
  max-width: calc(100vw - 16px);
  height: auto;
  min-width: 200px;
  font-size: 13px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}

#tooltip.visible { opacity: 1; }

.tooltip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--menu-accent);
  color: #fff;
  padding: 6px 10px;
  font-size: 14px;
  font-weight: bold;
}

.tooltip-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 10px;
  border-bottom: 1px solid #eee;
}

.tooltip-row:last-child { border-bottom: none; }

.tooltip-title {
  font-weight: bold;
  color: var(--menu-accent);
  flex-shrink: 0;
  margin-right: 12px;
}

.tooltip-value {
  color: #333;
  text-align: right;
}
