/* ========================================= */

.abandoned > rect {
    fill: #ff595e;
}

.answered > rect {
    fill: #00a143;
}

.tooltip .abandoned,
.minicard .abandoned {
    padding-left: 10px;
    border-left: solid 5px #ff595e;
}

.tooltip .answered,
.minicard .answered {
    padding-left: 10px;
    border-left: solid 5px #00a143;
}

.tooltip {
    display: none;
    position: absolute;
    background-color: var(--background-primary);
    color: var(--primary);
    padding: 5px;
    border-radius: 3px;
    pointer-events: none;
    /* filter: drop-shadow(1px 1px 2px #0007); */
    box-shadow: 1px 1px 2px #0007;
}

/* ========================================= */

table {
    width: 100%;
    border-spacing: 1px;
    border-collapse: separate;
    border-radius: 10px;
    /* border: 1px solid #b3b3b3; */
    overflow: hidden;
}

table > thead {
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
}

table > tfoot {
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
}

table > thead th {
    background-color: #0f006d;
    color: #fff;
}

table.alt > thead th {
    background-color: #0f6d00;
    color: #fff;
}

table.alt_2 > thead th {
    background-color: #6d0f00;
    color: #fff;
}

table > tfoot td {
    background-color: #1111;
    font-weight: 700;
}

/* Apply a border to the bottom of all but the last row */

/* table > :not(thead) > tr:first-child > th,
table > :not(thead) > tr:first-child > td {
    border-top: 1px solid #b3b3b3;
}

table tr:not(:last-child) > th,
table tr:not(:last-child) > td {
    border-bottom: 1px solid #b3b3b3;
}

table tr > th:not(:last-child),
table tr > td:not(:last-child) {
    border-right: 1px solid #b3b3b3;
} */

table tr:nth-child(even) {
    background-color: #1111;
}

table td,
table th {
    text-align: center;
    padding: 10px;
    cursor: pointer;
}

table th > div {
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
}

table h3 {
    margin: 0;
    font-size: 18px;
}

table > thead h3 {
    color: #fff;
}

.material-symbols-outlined.hide {
    display: none;
    visibility: hidden;
}

/* ========================================= */

.page-control {
    margin: 0px;
    margin-top: 0;
    flex: 0 0 50px;
    background-color: #0000;
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.page-control > .material-symbols-outlined {
    border: none;
    border-radius: 5px;
    background-color: #6c55ff;
    color: #ffffff;
    font-size: 24px;
    font-weight: 500;
    padding: 5px 5px;
    margin: 0 5px;
    cursor: pointer;
}

/* ========================================= */

.control {
    margin-left: auto;
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
}

/* ========================================= */

.collapse-button .material-symbols-outlined {
    font-size: 3rem;
    font-weight: 900;
    color: #1c1b1f;
}

.collapse-button .expand:has(~ input[type="checkbox"]:not(:checked)) {
    display: none;
    visibility: hidden;
}

.collapse-button .collapse:has(~ input[type="checkbox"]:checked) {
    display: none;
    visibility: hidden;
}

.collapse-button input[type="checkbox"] {
    display: none;
    visibility: hidden;
}

/* ========================================= */

.loader {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    border: 3px solid;
    border-color: #29fe #29fe transparent transparent;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}
.loader::after,
.loader::before {
    content: "";
    box-sizing: border-box;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    border: 3px solid;
    border-color: transparent transparent #6c55ff #6c55ff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-sizing: border-box;
    animation: rotationBack 0.5s linear infinite;
    transform-origin: center center;
}
.loader::before {
    width: 32px;
    height: 32px;
    border-color: #29fe #29fe transparent transparent;
    animation: rotation 1.5s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
@keyframes rotationBack {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(-360deg);
    }
}

/* ========================================= */

.decorated {
    font-weight: 700;
    border-radius: 5px;
    background-color: #0f006d;
    color: #ffffff;
    padding: 5px 5px;
}

/* ========================================= */

.heatmap {
    height: 40rem;
}
