/**
 *	Tooltips for Datanavigator and web sites
 *	@author: Frank van den Heuvel
 *	@Copyright 2002-2025 All rights reserved.
 *
 *  based on: https://www.geeksforgeeks.org/html/what-is-a-tooltip-in-html/
 *              using the 3rd method
 *              allowing tooltip box to expand to fit text
 */

 .tooltip {
    position: relative;
    display: inline-block;
}

.tooltip::after {
    content: attr(data-tooltip);
    visibility: hidden;
    background-color: darkslategray;
    color: ivory;
    text-align: center;
    border-radius: 6px;
    padding: 5px 8px;
    position: absolute;
    z-index: 1;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover::after {
    visibility: visible;
    opacity: 1;
}