﻿.hover-text {
    position: relative;
    display: inline-block;
}

    .hover-text .tooltip-text {
        visibility: hidden;

        background-color: #122F3B;
        color: #fff;
        text-align: center;
        border-radius: 6px;
        padding: 5px 0;
        position: absolute;
        z-index: 2;
        bottom: 100%;
        opacity: 0.9;
        white-space: normal;
        padding: 4px;
        height: auto;
        word-break: break-all;
    }
    .hover-text:hover .tooltip-text {
        visibility: visible;
    }

/*TOOLTIP PARA MOSTRAR MENSJAE DE ADVERTENCIA EN BOTON CONTINUAR EN VISTA EDITAR DATOS */
button.custom-tooltip {
    position: relative;
}

    button.custom-tooltip[disabled]:hover:after {
        content: attr(data-tooltip);
        position: absolute;
        left: 50%;
        /*bottom: 135%;*/
        transform: translateX(-50%);
        min-width: 170px;
        border: 1px solid #333;
        background: #2A63C3;
        color: #fff;
        padding: 5px;
        border-radius: 5px;
        text-align: center;
        font-size: 14px;
        font-weight: 500;
        z-index: 1;
        opacity: 1;
        box-shadow: 0 3px 8px 0px rgba(0, 0, 0, 0.1);
    }

    button.custom-tooltip[disabled]:hover:before {
        content: '';
        position: absolute;
        left: 50%;
        bottom: 105%;
        transform: translateX(-50%);
        border-width: 8px;
        border-style: solid;
        border-color: #555 transparent transparent transparent;
    }

    button.custom-tooltip:not([disabled]) {
        cursor: not-allowed;
    }


/*TOOLTIP PARA MENSAJE EN TABLA HABERES Y DESCUENTOS AL HACER SCROLL EN VISTA EDITAR DATOS*/
div.custom-tooltip-container {
    position: relative;
    display: inline-block;
}

span.custom-tooltip {
    display: none;
    position: absolute;
    top: -28%;
    left: 525px;
    transform: translateX(-50%);
    border-radius: 15px;
    background: linear-gradient(262deg, #00BBF9 0%, #0096DB 17.88%, #0069B9 41.02%, #0057AA 60.76%, #004199 77.06%, #002885 89.46%, #001475 100%);
    color: #fff;
    border-radius: 10px;
    padding: 10px;
    z-index: 1;
    white-space: normal;
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    max-width: 980px;
    min-width: 980px;
    height: 45px;

}

div.custom-tooltip-container:hover .custom-tooltip {
    display: block;
}

.tooltip-icon {
    vertical-align: middle;
    margin-right: 5px;
}

.tooltip-text {
    vertical-align: middle;
}

.tooltip-text-datos-ejecutivo {

}

/*Animación tooltip fadeout*/
@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.fade-out {
    animation-name: fadeOut;
    animation-duration: 1s;
    animation-fill-mode: forwards;
}

.tooltip-mouse {
    position: absolute;
    background-color: #fff; /* Fondo blanco */
    color: #555; /* Letras plomas (gris oscuro) */
    padding: 8px;
    padding-left: 20px;
    padding-right: 20px;
    border-radius: 4px;
    font-size: 14px;
    display: block;
    z-index: 9999;
    white-space: nowrap; /* Evita el salto de línea */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); /* Borde con box-shadow */
    max-width: none; /* Permite que el tooltip se ajuste al contenido */
}

.tooltip-mouse-trigger {
    position: relative;
    cursor: pointer;
}