﻿.edtooltip .edtooltip-text {
    background-color: #990000;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 999999;
    width: 400px;
    opacity: 0;
    transition: opacity 1s;
    text-align: initial;
}

    .edtooltip .edtooltip-text::after {
        content: " ";
        position: absolute;
        margin-left: -5px;
        border-width: 5px;
        border-style: solid;        
    }

.edtooltip .edtooltip-item:hover + .edtooltip-text {
    /*visibility: visible;*/
    opacity: 1;
}

.edtooltip .edtooltip-text.top {
    bottom: 100%;
    left: 50%;
    margin-left: -200px;
}
.edtooltip .edtooltip-text.left {
    top: -5px;
    right: 105%;
}
.edtooltip .edtooltip-text.right {
    top: -5px;
    left: 105%;
}
.edtooltip .edtooltip-text.bottom {
    top: 100%;
    left: 50%;
    margin-left: -200px; /* Use half of the width (120/2 = 60), to center the tooltip */
}



.edtooltip .edtooltip-text.top::after {
    top: 100%; /* At the bottom of the tooltip */
    left: 58%;
    border-color: #990000 transparent transparent transparent;
}

.edtooltip .edtooltip-text.left::after {
    top: 50%;
    left: 100%; /* To the right of the tooltip */
    border-color: transparent transparent transparent #990000;
}

.edtooltip .edtooltip-text.right::after {
    top: 30%;
    right: 100%; /* To the left of the tooltip */
    border-color: transparent #990000 transparent transparent;
}

.edtooltip .edtooltip-text.bottom {
    bottom: 100%; /* At the top of the tooltip */
    left: 50%;
    border-color: transparent transparent #990000 transparent;
}