/****************************************************************
Tooltips

Note: this file cannot be run through the minify-maven-plugin, because
the plugin removes spaces in places it shouldn't. For example:

calc(100% + 10px) turns into calc(100%+10px) which is invalid

***************************************************************/

.tooltip {
    position: relative;
}

.tooltip-text {
    line-height: 25px;
    background-color: black;
    color: #fff;
    text-align: center;
    padding: 0 10px;
    border-radius: 6px;
    white-space: nowrap;
    position: absolute;
    z-index: 1;
    font-size: 12px;
}

.tooltip.tooltip-top > .tooltip-text {
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
}

.tooltip.tooltip-right > .tooltip-text {
    top: 50%;
    transform: translateY(-50%);
    left: calc(100% + 10px);
}

.tooltip.tooltip-bottom > .tooltip-text {
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
}

.tooltip.tooltip-left > .tooltip-text {
    top: 50%;
    transform: translateY(-50%);
    right: calc(100% + 10px);
}

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

.tooltip.tooltip-bottom > .tooltip-text:after {
    bottom: 100%; /* At the top of the tooltip */
    left: 50%;
    transform: translateX(-50%);
    border-color: transparent transparent black transparent;
}

.tooltip.tooltip-left > .tooltip-text:after {
    top: 50%;
    transform: translateY(-50%);
    left: 100%; /* To the right of the tooltip */
    border-color: transparent transparent transparent black;
}

.tooltip.tooltip-top > .tooltip-text:after {
    top: 100%; /* At the bottom of the tooltip */
    left: 50%;
    transform: translateX(-50%);
    border-color: black transparent transparent transparent;
}

.tooltip.tooltip-right > .tooltip-text:after {
    top: 50%;
    transform: translateY(-50%);
    right: 100%; /* To the left of the tooltip */
    border-color: transparent black transparent transparent;
}

.tooltip-text ul {
    text-align: left;
    margin: 6px 0 12px 30px;
    padding: 0;
    font-weight: normal;
}

.tooltip-text li {
    text-align: left;
    margin: 3px 0;
    padding: 0;
    line-height: initial;
}

