.heatmap-market-card {
    overflow: hidden;
}

.heatmap-market-toolbar {
    gap: 12px;
    flex-wrap: wrap;
}

.heatmap-chart-title {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.heatmap-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.heatmap-industry-select {
    width: 170px;
    min-height: 38px;
    border-color: var(--border-color);
    border-radius: 20px;
}

.heatmap-toolbar .pill-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    line-height: 1.2;
}

.heatmap-toolbar .pill-item i {
    width: 1rem;
    text-align: center;
    font-size: 0.92rem;
    line-height: 1;
}

.heatmap-help-icon {
    margin-left: 16px;
}

.heatmap-help-tooltip .tooltip-inner {
    max-width: 320px;
    line-height: 1.65;
}

.heatmap-chart-shell {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background-color: var(--chart-bg);
}

.heatmap-chart {
    width: 100%;
    height: calc(100vh - 245px);
    min-height: 620px;
}

.heatmap-status {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    background: color-mix(in srgb, var(--chart-bg) 88%, transparent);
    font-weight: 700;
    z-index: 2;
}

.heatmap-status.is-visible {
    display: flex;
}

.heatmap-tooltip {
    min-width: 240px;
    max-width: 320px;
}

.heatmap-tooltip-title {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-weight: 800;
    padding-bottom: 6px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--divider);
}

.heatmap-tooltip-subtitle {
    color: var(--text-muted);
    font-size: 0.78rem;
    margin-top: 2px;
}

.heatmap-tooltip-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    line-height: 1.65;
}

.heatmap-tooltip-row span:first-child {
    color: var(--text-muted);
}

.heatmap-tooltip-note {
    color: var(--text-muted);
    font-size: 0.78rem;
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px solid var(--divider);
}

.heatmap-scale {
    display: grid;
    gap: 4px;
    width: 100%;
    margin-top: 18px;
    padding-top: 4px;
}

.heatmap-scale-labels,
.heatmap-scale-track {
    display: grid;
    grid-template-columns: repeat(var(--heatmap-scale-steps, 9), minmax(0, 1fr));
}

.heatmap-scale-labels {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

.heatmap-scale-track {
    gap: 2px;
    height: 7px;
}

.heatmap-scale-track i {
    display: block;
    border-radius: 1px;
}

@media (max-width: 991.98px) {
    .heatmap-market-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .heatmap-toolbar {
        align-items: stretch;
        justify-content: stretch;
    }

    .heatmap-toolbar .pill-group,
    .heatmap-industry-select {
        width: 100%;
        min-width: 0;
    }

    .heatmap-help-icon {
        margin-left: 0;
        align-self: center;
    }

    .heatmap-chart-shell,
    .heatmap-chart {
        min-height: 680px;
    }

    .heatmap-chart {
        height: 680px;
    }

    .heatmap-scale {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .heatmap-chart-shell,
    .heatmap-chart {
        min-height: 640px;
    }

    .heatmap-chart {
        height: 640px;
    }
}
