.page-hd {
    margin-bottom: 18px;
}

.page-hd h1 {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.page-hd p {
    font-size: .82rem;
    color: #6b7280;
    margin-top: 4px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.stat {
    background: #ffffff;
    border-radius: 14px;
    padding: 14px 14px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.04);
    border: 1px solid #eef1f5;
    transition: transform .15s ease;
}

.stat:active {
    transform: scale(0.98);
}

.stat-lbl {
    font-size: .65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #9ca3af;
    margin-bottom: 6px;
}

.stat-val {
    font-size: 1.4rem;
    font-weight: 700;
    color: #111827;
}

.stat-sub {
    font-size: .7rem;
    color: #6b7280;
    margin-top: 4px;
}

.stat:nth-child(4) {
    background: linear-gradient(135deg, #111827, #1f2937);
    color: white;
}

.stat:nth-child(4) .stat-lbl,
.stat:nth-child(4) .stat-sub {
    color: rgba(255,255,255,0.7);
}

.stat:nth-child(4) .stat-val {
    color: #ffffff;
}

.charts-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 18px;
}

.box {
    background: #ffffff;
    border-radius: 16px;
    padding: 16px;
    border: 1px solid #eef1f5;
    box-shadow: 0 3px 14px rgba(0,0,0,0.04);
}

.box-hd {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.box-title {
    font-size: .9rem;
    font-weight: 600;
}

.box-tag {
    font-size: .6rem;
    font-weight: 600;
    padding: 4px 8px;
    background: #f3f4f6;
    border-radius: 20px;
    color: #6b7280;
}

.chart-wrap {
    height: 150px;
}

.donut-wrap {
    height: 180px;
    position: relative;
}

.donut-mid-n {
    font-size: 1.4rem;
    font-weight: 700;
}

.donut-mid-l {
    font-size: .65rem;
    color: #6b7280;
}

@media (min-width: 768px) {

    .stats {
        grid-template-columns: repeat(4, 1fr);
    }

    .charts-row {
        grid-template-columns: 1.2fr 0.8fr;
    }

    .chart-wrap {
        height: 220px;
    }

    .donut-wrap {
        height: 220px;
    }
}

.filter-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 6px 12px;
    border: none;
    background: #eee;
    border-radius: 6px;
    cursor: pointer;
}

.filter-btn.active {
    background: #4ade80;
    color: #fff;
}

.range-title {
    margin-bottom: 10px;
    font-size: 13px;
    color: #666;
}		