.farmland-risk-report {
    color: #24313f;
}

.report-heading {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.region-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.85rem;
}

.region-selector-label {
    color: #66788a;
    font-size: 0.86rem;
}

.region-chip {
    display: inline-flex;
    align-items: center;
    min-height: 1.75rem;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    border: 1px solid #b9d8c9;
    background: #edf8f2;
    color: #276749;
    font-size: 0.86rem;
    font-weight: 600;
}

.risk-kpi,
.report-panel,
.empty-report {
    background: #fff;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(36, 49, 63, 0.06);
}

.risk-kpi {
    padding: 1rem;
    min-height: 156px;
}

.risk-kpi span {
    display: block;
    color: #66788a;
    font-size: 0.86rem;
    margin-bottom: 0.35rem;
}

.risk-kpi strong {
    display: inline-block;
    font-size: 1.8rem;
    line-height: 1.1;
}

.risk-kpi small {
    color: #66788a;
    margin-left: 0.2rem;
}

.kpi-primary-value {
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem 0.2rem;
    align-items: baseline;
}

.kpi-primary-value small {
    margin-left: 0;
}

.kpi-inline-comparison {
    display: inline;
    margin-bottom: 0;
    color: #66788a;
    font-size: 0.95rem;
}

.kpi-meta {
    display: grid;
    gap: 0.25rem;
    margin-top: 0.65rem;
    color: #66788a;
    font-size: 0.78rem;
}

.scope-badge {
    display: inline-flex;
    align-items: center;
    width: max-content;
    min-height: 1.35rem;
    padding: 0.1rem 0.5rem;
    border: 1px solid #b9d8c9;
    border-radius: 999px;
    background: #edf8f2;
    color: #276749;
    font-size: 0.76rem;
    font-weight: 700;
    white-space: nowrap;
}

.kpi-comparison {
    display: grid;
    gap: 0.2rem;
    margin-top: 0.75rem;
    padding-top: 0.65rem;
    border-top: 1px solid #e5edf5;
}

.kpi-comparison span {
    margin-bottom: 0;
    color: #66788a;
    font-size: 0.78rem;
    font-weight: 700;
}

.kpi-comparison strong {
    color: #334e68;
    font-size: 1rem;
    line-height: 1.2;
}

.kpi-comparison small {
    margin-left: 0;
    color: #66788a;
    font-size: 0.74rem;
}

.report-panel,
.empty-report {
    padding: 1.25rem;
}

.data-status-heading {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.data-freshness {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    color: #66788a;
    font-size: 0.86rem;
}

.data-definition-list {
    display: grid;
    gap: 0.6rem;
    margin-top: 1rem;
    padding: 0.85rem;
    border: 1px solid #e5edf5;
    border-radius: 8px;
    background: #f8fbfd;
}

.data-definition-list div {
    display: grid;
    grid-template-columns: minmax(11rem, 0.45fr) 1fr;
    gap: 0.75rem;
}

.data-definition-list strong {
    color: #334e68;
    font-size: 0.9rem;
}

.data-definition-list span {
    color: #66788a;
    font-size: 0.88rem;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 1.5rem;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    border: 1px solid #d9e2ec;
    background: #f7fafc;
    color: #47596b;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

.status-pill.is-ready {
    border-color: #b9d8c9;
    background: #edf8f2;
    color: #276749;
}

.status-pill.is-pending {
    border-color: #d7c7a1;
    background: #fff8e6;
    color: #7a5a12;
}

.status-pill.is-muted {
    color: #66788a;
}

.age-bars,
.distribution-bars {
    display: grid;
    gap: 0.75rem;
}

.distribution-total {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.65rem;
    align-items: baseline;
    margin: 0.75rem 0 0.85rem;
    color: #47596b;
}

.distribution-total span {
    color: #66788a;
    font-size: 0.86rem;
    font-weight: 700;
}

.distribution-total strong {
    color: #334e68;
    font-size: 1.25rem;
    line-height: 1.2;
}

.distribution-note {
    color: #66788a;
    font-size: 0.86rem;
    margin-bottom: 1rem;
}

.distribution-example {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding: 0.7rem 0.85rem;
    border-left: 4px solid #4d7c9f;
    border-radius: 6px;
    background: #f3f8fc;
    color: #47596b;
    font-size: 0.88rem;
}

.distribution-example strong {
    color: #334e68;
    white-space: nowrap;
}

.source-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.75rem;
    align-items: center;
    margin-bottom: 1rem;
    color: #66788a;
    font-size: 0.86rem;
}

.source-list a {
    font-weight: 600;
}

.age-bar-row,
.distribution-bar-row {
    display: grid;
    grid-template-columns: 8rem minmax(10rem, 1fr) minmax(18rem, auto);
    gap: 0.75rem;
    align-items: center;
}

.age-bar-label,
.age-bar-value,
.distribution-bar-label,
.distribution-bar-value {
    font-size: 0.9rem;
    color: #47596b;
}

.age-bar-value,
.distribution-bar-value {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem 0.55rem;
    align-items: baseline;
    justify-content: flex-end;
    text-align: right;
    white-space: nowrap;
}

.age-bar-value strong,
.distribution-bar-value strong {
    color: #334e68;
    font-size: 0.9rem;
}

.age-bar-value span,
.distribution-bar-value span {
    color: #66788a;
}

.age-bar-track,
.distribution-bar-track {
    height: 14px;
    border-radius: 999px;
    background: #e8eef5;
    overflow: hidden;
}

.age-bar-fill,
.distribution-bar-fill {
    height: 100%;
    max-width: 100%;
    border-radius: inherit;
}

.distribution-bar-fill {
    background: #4d7c9f;
}

.age-bar-fill {
    background: #2f7d66;
}

.age-bar-fill.empty,
.distribution-bar-fill.empty {
    background: transparent;
}

.supplemental-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
    gap: 0.85rem;
}

.supplemental-item {
    display: grid;
    gap: 0.35rem;
    padding: 0.9rem;
    border: 1px solid #e5edf5;
    border-radius: 8px;
    background: #f8fbfd;
}

.supplemental-item span,
.supplemental-item small {
    color: #66788a;
    font-size: 0.82rem;
}

.supplemental-item strong {
    color: #334e68;
    font-size: 1.35rem;
    line-height: 1.2;
}

.supplemental-item p {
    margin-bottom: 0;
    color: #47596b;
    font-weight: 600;
}

.supplemental-item a {
    font-size: 0.86rem;
    font-weight: 600;
}

.supplemental-summary {
    display: grid;
    grid-template-columns: minmax(13rem, 0.45fr) 1fr;
    gap: 1rem;
    align-items: start;
}

.supplemental-summary strong {
    display: block;
    margin-top: 0.5rem;
    color: #334e68;
    font-size: 1.7rem;
    line-height: 1.2;
}

.supplemental-summary p {
    margin: 0.35rem 0 0;
    color: #47596b;
    font-weight: 600;
}

.data-period {
    display: block;
    margin-top: 0.4rem;
    color: #66788a;
    font-size: 0.84rem;
}

.supplemental-breakdown {
    padding: 0.85rem;
    border: 1px solid #e5edf5;
    border-radius: 8px;
    background: #f8fbfd;
}

@media (max-width: 767.98px) {
    .report-heading {
        display: block;
    }

    .report-heading .btn {
        margin-top: 1rem;
        width: 100%;
    }

    .age-bar-row,
    .distribution-bar-row {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .age-bar-value,
    .distribution-bar-value {
        justify-content: flex-start;
        text-align: left;
        white-space: normal;
    }

    .data-status-heading {
        display: block;
    }

    .data-freshness {
        margin-top: 0.75rem;
    }

    .data-definition-list div {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .supplemental-summary {
        grid-template-columns: 1fr;
    }
}
