/*
 * Self-hosted CSS-only tooltip (replaces the v-tooltip library).
 * Served as a linked stylesheet so the CSP needs no style-src 'unsafe-inline'
 * (the library injected its CSS as an inline <style>). See GSR-10301 / KPT-6247.
 *
 * Usage: add class "cve-tooltip" and bind :data-tooltip="<text>".
 * Newlines in the text render as separate lines (white-space: pre-line).
 */
.cve-tooltip {
    position: relative;
}

.cve-tooltip[data-tooltip]:not([data-tooltip=""]):hover::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 8px;
    z-index: 1000;
    white-space: pre-line;
    max-width: 320px;
    width: max-content;
    padding: 6px 10px;
    border-radius: 4px;
    background: #1f2933;
    color: #fff;
    font-size: 12px;
    line-height: 1.45;
    text-align: left;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    pointer-events: none;
}

.cve-tooltip[data-tooltip]:not([data-tooltip=""]):hover::before {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 3px;
    border: 5px solid transparent;
    border-bottom-color: #1f2933;
    z-index: 1000;
    pointer-events: none;
}
