/* Normalization tooltips - for all normalized values */
.normalization-tooltip {
    position: relative;
    cursor: help;
    display: inline;
}

/* Tooltip appears BELOW the value to avoid overflow clipping */
.normalization-tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    background-color: #1f2937;
    color: #f9fafb;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    white-space: nowrap;
    z-index: 9999;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    pointer-events: none;
}

/* Arrow pointing up */
.normalization-tooltip:hover::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 12px;
    margin-top: 2px;
    border: 6px solid transparent;
    border-bottom-color: #1f2937;
    z-index: 9999;
    pointer-events: none;
}

/* Dark mode normalization tooltip */
.dark .normalization-tooltip:hover::after {
    background-color: #374151;
    color: #f3f4f6;
}

.dark .normalization-tooltip:hover::before {
    border-bottom-color: #374151;
}

/* Star indicator for automatic normalizations */
.normalization-star {
    color: #f59e0b;
    font-size: 1.1em;
    vertical-align: baseline;
}

.dark .normalization-star {
    color: #fbbf24;
}

/* Star indicator for manual edits */
.normalization-manual {
    color: #f59e0b;
    font-size: 1.1em;
    vertical-align: baseline;
}

.dark .normalization-manual {
    color: #fbbf24;
}
