/**
 * Premium DataTable Tooltips
 * Specialized styling for DataTables within the system.
 */

.amedis-tooltip {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 999999;
    padding: 8px 12px;
    background: rgba(15, 23, 42, 0.85); /* Slightly more opaque for readability */
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    pointer-events: none !important;
    max-width: 250px;
    opacity: 0;
    transition: opacity 100ms ease-out;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    will-change: transform, opacity;
}

.amedis-tooltip.active {
    opacity: 1;
}

/* Arrow Logic (V2 Simplified) */
.amedis-tooltip::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    left: 50%;
    margin-left: -6px;
}

.amedis-tooltip.pos-top::after {
    border-top: 6px solid rgba(15, 23, 42, 0.85);
    bottom: -6px;
    top: auto;
}

.amedis-tooltip.pos-bottom::after {
    border-bottom: 6px solid rgba(15, 23, 42, 0.85);
    top: -6px;
    bottom: auto;
}

