/* =========================
   SUMMARY
========================= */

.statistics-summary {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 14px;

    margin-top: 18px;
}

.stat-card {
    background: white;

    border: 1px solid var(--border);

    border-radius: 14px;

    padding: 19px;

    box-shadow: var(--shadow);
}

.stat-label {
    display: block;

    color: #9ca3af;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 1px;

    margin-bottom: 9px;
}

.stat-card strong {
    display: block;

    font-size: 28px;

    line-height: 1;
}

.stat-description {
    display: block;

    color: #9ca3af;

    font-size: 11px;

    margin-top: 8px;
}


/* =========================
   CHARTS
========================= */

.statistics-charts {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 18px;

    margin-top: 25px;
}

.large-chart-card {
    background: white;

    border: 1px solid var(--border);

    border-radius: 16px;

    padding: 21px;

    box-shadow: var(--shadow);
}

.chart-card-heading {
    margin-bottom: 15px;
}

.chart-card-heading h2 {
    font-size: 17px;

    margin-top: 4px;
}

.chart-card-heading p {
    color: var(--muted);

    font-size: 11px;

    margin-top: 5px;
}

.large-chart-container {
    height: 350px;
}


/* =========================
   CATEGORY
========================= */

.category-card {
    background: white;

    border: 1px solid var(--border);

    border-radius: 16px;

    padding: 21px;

    box-shadow: var(--shadow);

    margin-top: 18px;
}

.category-header h2 {
    font-size: 17px;

    margin-top: 4px;
}

.category-header p {
    color: var(--muted);

    font-size: 11px;

    margin-top: 5px;
}

.category-content {
    display: grid;

    grid-template-columns:
        330px 1fr;

    gap: 35px;

    align-items: center;

    margin-top: 15px;
}

.category-chart-container {
    height: 260px;
}

.category-legend {
    display: flex;

    flex-direction: column;

    gap: 12px;
}

.category-legend-item {
    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 10px 12px;

    background: #f9fafb;

    border-radius: 9px;
}

.category-legend-left {
    display: flex;

    align-items: center;

    gap: 9px;
}

.category-color {
    width: 10px;
    height: 10px;

    border-radius: 50%;
}

.category-name {
    font-size: 12px;

    color: #4b5563;
}

.category-value {
    font-size: 12px;

    font-weight: 700;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1050px) {

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

    .statistics-charts {
        grid-template-columns:
            1fr;
    }

}


@media (max-width: 800px) {


    .category-content {
        grid-template-columns:
            1fr;
    }

}


@media (max-width: 600px) {

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

    .large-chart-container {
        height: 280px;
    }

}