body.reports-page {
    background-color: var(--bg-primary);
    min-height: 100vh;
}

.reports-main {
    width: min(1200px, 96vw);
    margin: 1.8rem auto 2.4rem;
}

.reports-hero {
    padding: 1.5rem 1.5rem 1rem;
    border-radius: 18px;
    background: linear-gradient(110deg, rgba(45, 80, 22, 0.95), rgba(74, 124, 44, 0.92));
    color: #fff;
    box-shadow: 0 16px 36px var(--shadow-large);
}

.reports-hero h1 {
    font-size: clamp(1.3rem, 2.4vw, 2rem);
    margin-bottom: 0.45rem;
}

.reports-hero p {
    opacity: 0.93;
}

.reports-state {
    margin-top: 1.2rem;
    padding: 1rem;
    border-radius: 12px;
    border: 1px dashed var(--border-color);
    color: var(--text-light);
    text-align: center;
}

.reports-city-filter {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.2rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-primary);
    color: var(--text-dark);
}

.reports-city-filter label {
    font-weight: 600;
}

.reports-city-filter select {
    min-width: 12rem;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-dark);
    font: inherit;
}

.kpi-grid {
    margin-top: 1.2rem;
    display: grid;
    gap: 0.8rem;
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.kpi-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 0.9rem;
    box-shadow: 0 8px 24px var(--shadow);
}

.kpi-card h3 {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.kpi-card h3.with-tip {
    width: 100%;
    justify-content: space-between;
    align-items: flex-start;
}

.kpi-card h3.with-tip > span:first-child {
    max-width: 12ch;
    white-space: normal;
}

.kpi-card h3.with-tip .calc-tip {
    flex: 0 0 auto;
    align-self: flex-start;
}

.with-tip {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
}

.calc-tip {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--secondary-green);
    border: 1px solid var(--light-green);
    background: var(--bg-secondary);
    cursor: pointer;
    line-height: 1;
    user-select: none;
}

.kpi-card p {
    font-size: 1.5rem;
    color: var(--primary-green);
    font-weight: 700;
}

.reports-grid {
    margin-top: 1rem;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.report-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 10px 30px var(--shadow);
}

.report-title-row h2 {
    font-size: 1.05rem;
    color: var(--text-dark);
    margin-bottom: 0.9rem;
}

.report-card .chart-host {
    min-height: 280px;
    max-height: 320px;
}

.city-table-wrap {
    margin-top: 1rem;
}

.table-scroll {
    overflow-x: auto;
}

.city-table {
    width: 100%;
    border-collapse: collapse;
}

.city-table th,
.city-table td {
    text-align: start;
    padding: 0.65rem 0.5rem;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.city-table th {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 600;
}

.city-table th .with-tip {
    white-space: nowrap;
}

.city-table td {
    color: var(--text-dark);
    font-size: 0.94rem;
}

@media (max-width: 1050px) {
    .kpi-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .reports-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .reports-main {
        width: 94vw;
    }

    .reports-city-filter {
        align-items: stretch;
        flex-direction: column;
        gap: 0.45rem;
    }

    .reports-city-filter select {
        width: 100%;
    }

    .kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .kpi-card p {
        font-size: 1.2rem;
    }
}
