/* Tables */

.ranking-table {
    border-collapse: collapse;
    white-space: nowrap;
}

.ranking-table td,
.ranking-table th {
    text-align: end;
    padding-right: 10px;
    padding-top: 2px;
    padding-bottom: 2px;
}

.ranking-table .left {
    text-align: start;
}

/* Tooltip */

.tooltip {
    border-bottom: 1px dotted black;
    display: inline-block;
    position: relative;
}

.tooltiptext {
    position: absolute;
    padding: 5px;
    background: #444;
    border: 1px solid #222;
    border-radius: 6px;
    visibility: hidden;
    opacity: 0;
    box-shadow: -2px 2px 5px rgb(0 0 0 / 20%);
    transition: opacity 0.3s, visibility 0s;
    color: white;
    width: max-content;
    max-width: 200px;
    left: 125%;
    z-index: 1;
    top: 50%;
    transform: translateY(-50%);
    text-align: start;
    white-space: normal;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.row {
    margin: 3px 0;
}

.text-row {
    max-width: 432px;
}

/* Modal */

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15vh auto;
    padding: 15px;
    border: 1px solid #888;
    width: fit-content;
    overflow-y: auto;
    max-width: 384px;
    max-height: 70%;
}

.modal-div {
    padding: 2px 0;
}

/* Heat map table */

.heat-map {
    text-align: end;
}

.heat-map tr:first-child th {
    writing-mode: vertical-lr;
    vertical-align: bottom;
    width: 20px;
}

.heat-map tr th:first-child {
    white-space: nowrap;
}

/* Tabs */

.tabs button {
    background-color: inherit;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px;
    transition: 0.3s;
}

.tabs button:hover {
    background-color: #ddd;
}

.tabs button.active {
    background-color: #ccc;
}
