﻿/* between cards = 8px (stack them in this wrapper) */
.annual-summary-cards,
.indicator-card-grid {
    display: grid;
    grid-auto-rows: min-content;
    row-gap: 8px;
}

/* indicator card */
.indicator-card {
    height: 84px;
    padding: 16px; /* TOP RIGHT BOTTOM LEFT = 16px */
    position: relative;
    box-sizing: border-box;
    display: flex;
    align-items: flex-start; /* content starts at top padding */
    background: #FFFFFF;
    border: 1px solid #E3E8EF;
    border-radius: 8px;
    overflow: hidden; /* clip bar to rounded corners */
    margin: 0; /* no extra outer spacing */

}

/* top colored bar (4px) */
.indicator-card__bar {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 4px;
    background: var(--bar-color, #14E1A0);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    pointer-events: none;
}

/* title + value/unit column */
.indicator-card__stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 4px; /* title → value row */
    width: 100%;
}

/* title (label) */
.indicator-card__label {
    font-family: 'Inter', var(--font-sidebar, system-ui);
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -0.04em;
    color: #697586;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* value + unit row */
.indicator-card__number-row {
    display: flex;
    align-items: baseline; /* unit sits directly next to value */
    gap: 6px; /* value ↔ unit */
}

/* value */
.indicator-card__number {
    font-family: 'Inter', var(--font-sidebar, system-ui);
    font-weight: 600;
    font-size: 24px;
    line-height: 28px;
    color: #4B5565;
    white-space: nowrap;
}

/* unit */
.indicator-card__unit {
    font-family: 'Inter', var(--font-sidebar, system-ui);
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -0.04em;
    color: #697586;
    white-space: nowrap;
    margin: 0;
}

/* optional: keep 24px from section title to first card */
.annual-summary-header {
    margin-bottom: 24px;
}
