/* START TOOLTIP STYLES */
[tooltip] {
    position: relative;
    /* opinion 1 */
}

/* Applies to all [tooltip]s */
[tooltip]::before,
[tooltip]::after {
    text-transform: none;
    /* opinion 2 */
    font-size: 1.2em;
    /* opinion 3 */
    line-height: 1;
    user-select: none;
    pointer-events: none;
    position: absolute;
    display: none;
    opacity: 0;
    white-space: break-spaces;
}

[tooltip]::before {
    content: '';
    border: 5px solid transparent;
    /* opinion 4 */
    z-index: 1001;
    /* absurdity 1 */
}

[tooltip]::after {
    content: attr(tooltip);
    /* magic! */

    /* most of the rest of this is opinion */
    font-family: Helvetica, sans-serif;
    text-align: center;

    /*
      Let the content set the size of the [tooltip]s
      but this will also keep them from being obnoxious
      */
    min-width: 30ch;
    padding: 1ch 1.5ch;
    border-radius: .3ch;
    box-shadow: 0 1em 2em -.5em rgba(0, 0, 0, 0.35);
    background: #333;
    color: #fff;
    z-index: 1000;
    /* absurdity 2 */
}

/* Make the [tooltip]s respond to hover */
[tooltip]:hover::before,
[tooltip]:hover::after {
    display: block;
}

/* FLOW: UP */
[tooltip]::before {
    bottom: 100%;
    border-bottom-width: 0;
    border-top-color: #333;
}

[tooltip]::after {
    bottom: calc(100% + 5px);
}

[tooltip]::before,
[tooltip]::after {
    left: 50%;
    transform: translate(-50%, -.5em);
}

/* KEYFRAMES */
@keyframes tooltips-vert {
    to {
        opacity: .9;
        transform: translate(-50%, 0);
    }
}

/* FX All The Things */
[tooltip]:hover::before,
[tooltip]:hover::after {
    animation: tooltips-vert 300ms ease-out forwards;
}

[tooltip] {
    font-size: 10px;
    width: 11px;
    height: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 4px;
    color: white;
    border-radius: 300px;
    background-color: #999999;
}

.caseListIconTooltip {
    position: absolute;
    visibility: hidden !important;
    min-width: 50px;
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: .5rem;
    min-width: 120px;
    bottom: 120%;
}

.caseListIconTooltip::before {
    position: absolute;
    content: '';
    z-index: 999;
    right: calc(50% - 10px);
    top: 40px;
    border: 7px solid transparent;
    border-top: 8px solid black;
    border-bottom: 0 none;
}

.row-action-btn {
    min-width: 0;
}

.row-action-btn:hover {
    position: relative;
}

.row-action-btn:hover .caseListIconTooltip {
    visibility: visible !important;
}