/* EXAMSAVVY QUESTION TOPIC HEATMAP V1 */

.es-heatmap-card {
    margin: 24px 0;
    min-width: 0;
}

.es-heatmap-scroll {
    max-width: 100%;
    overflow-x: auto;
    margin: 18px 0;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.es-heatmap-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
}

.es-heatmap-table th,
.es-heatmap-table td {
    padding: 8px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
}

.es-heatmap-table thead th {
    background: #edf7fc;
    color: #24465a;
}

.es-heatmap-table tbody th {
    position: sticky;
    left: 0;
    z-index: 1;
    background: #ffffff;
    text-align: left;
}

.es-heatmap-table tbody th a {
    color: #0879a9;
    font-weight: 600;
    text-decoration: underline;
    display: inline-flex;
    align-items: center;
    min-height: 36px;
}

.es-heatmap-cell {
    display: inline-flex;
    width: 38px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    font-weight: 600;
}

.es-heatmap-primary {
    background: #1aa6e2;
    color: #07374c;
}

.es-heatmap-secondary {
    background: #91c453;
    color: #233c0b;
}

.es-heatmap-empty {
    background: #f1f5f9;
    color: #64748b;
}

.es-heatmap-table tfoot {
    background: #f8fafc;
    font-weight: 600;
}

.es-heatmap-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
}

.es-heatmap-legend span {
    display: flex;
    align-items: center;
    gap: 7px;
}

.es-heatmap-legend b {
    padding: 5px 9px;
    border-radius: 4px;
}

.es-heatmap-topics {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.es-heatmap-topics > div {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px;
    background: #f8fafc;
    border-radius: 6px;
    overflow-wrap: anywhere;
}

.es-heatmap-topics strong {
    color: #0879a9;
    min-width: 30px;
}

.es-heatmap-table tr[data-part="A"]
    + tr[data-part="B"] > * {
    border-top: 2px solid #594bc0;
}

@media (max-width: 600px) {

    .es-heatmap-topics {
        grid-template-columns: minmax(0, 1fr);
    }

    .es-heatmap-table th,
    .es-heatmap-table td {
        padding: 6px;
    }

    .es-heatmap-cell {
        width: 32px;
        height: 26px;
    }

}
