.statistik-page {
    background: #f4f7fb;
    padding: 24px 0 48px;
}

.stat-container {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
}

.stat-hero {
    background: linear-gradient(135deg, #0f4c81, #1d6fa5);
    border-radius: 22px;
    padding: 30px;
    margin-bottom: 24px;
    color: #fff;
    box-shadow: 0 14px 32px rgba(15, 76, 129, 0.16);
}

.stat-hero__text h1 {
    margin: 0 0 10px;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
}

.stat-hero__text p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    max-width: 850px;
    opacity: 0.96;
}

.filter-box {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
    margin-bottom: 16px;
}

.filter-form {
    display: grid;
    grid-template-columns: 1fr 1fr auto auto;
    gap: 14px;
    align-items: end;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
}

.form-group select {
    width: 100%;
    height: 48px;
    border: 1px solid #dbe3ee;
    border-radius: 14px;
    padding: 0 14px;
    font-size: 14px;
    background: #fff;
    color: #0f172a;
    outline: none;
    transition: 0.2s ease;
}

.form-group select:focus {
    border-color: #1d6fa5;
    box-shadow: 0 0 0 4px rgba(29, 111, 165, 0.10);
}

.btn {
    height: 48px;
    border: none;
    border-radius: 14px;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    transition: 0.2s ease;
}

.btn-primary {
    background: #0f4c81;
    color: #fff;
}

.btn-primary:hover {
    background: #0c3e6b;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #e9eef5;
    color: #1e293b;
}

.btn-secondary:hover {
    background: #dbe5ef;
    transform: translateY(-1px);
}

.filter-info {
    margin-bottom: 18px;
    color: #475569;
    font-size: 14px;
}

.filter-info .sep {
    margin: 0 8px;
    color: #94a3b8;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.summary-card {
    border-radius: 20px;
    padding: 22px;
    color: #fff;
    box-shadow: 0 10px 24px rgba(16, 24, 40, 0.08);
}

.summary-card--blue {
    background: linear-gradient(135deg, #0f4c81, #2876b1);
}

.summary-card--green {
    background: linear-gradient(135deg, #0f766e, #1fb5a8);
}

.summary-card--pink {
    background: linear-gradient(135deg, #c2185b, #ec4899);
}

.summary-card .label {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    opacity: 0.95;
    margin-bottom: 10px;
}

.summary-card .value {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.1;
}

.summary-card .sub {
    margin-top: 8px;
    font-size: 13px;
    opacity: 0.94;
}

.section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
    align-items: start;
}

.stat-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
    overflow: hidden;
    height: 100%;
}

.stat-card-header {
    padding: 20px 22px;
    border-bottom: 1px solid #eef2f7;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.stat-card-header h2 {
    margin: 0;
    font-size: 22px;
    color: #0f172a;
    line-height: 1.2;
}

.stat-card-header p {
    margin: 6px 0 0;
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

.badge-total {
    background: #edf6ff;
    color: #0f4c81;
    font-weight: 800;
    border-radius: 999px;
    padding: 9px 14px;
    white-space: nowrap;
    font-size: 13px;
}

.chart-box {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.chart-box--side {
    height: 360px;
}

.stat-table-wrap {
    padding: 0 20px 20px;
    overflow-x: auto;
}

.stat-table {
    width: 100%;
    border-collapse: collapse;
}

.stat-table th,
.stat-table td {
    padding: 12px 8px;
    border-bottom: 1px solid #eef2f7;
    font-size: 14px;
    text-align: left;
}

.stat-table th {
    color: #475569;
    font-size: 13px;
    font-weight: 800;
}

.stat-table td.num {
    width: 110px;
    font-weight: 700;
    color: #0f172a;
}

.bar-wrap {
    width: 100%;
    height: 12px;
    background: #e9eef5;
    border-radius: 999px;
    overflow: hidden;
    min-width: 180px;
}

.bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #0f4c81, #27a2df);
}

.empty-box {
    background: #fff;
    border-radius: 18px;
    padding: 32px 20px;
    text-align: center;
    color: #64748b;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
}

.statistik-page,
.stat-container,
.stat-card,
.stat-table-wrap {
    position: relative;
    z-index: 1;
}

@media (max-width: 992px) {
    .summary-grid,
    .section-grid {
        grid-template-columns: 1fr;
    }

    .filter-form {
        grid-template-columns: 1fr;
    }

    .chart-box--side {
        height: 300px;
    }

    .stat-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .badge-total {
        align-self: flex-start;
    }
}

@media (max-width: 576px) {
    .statistik-page {
        padding: 18px 0 36px;
    }

    .stat-container {
        width: min(100%, calc(100% - 20px));
    }

    .stat-hero {
        padding: 22px 18px;
        border-radius: 18px;
    }

    .stat-hero__text h1 {
        font-size: 28px;
    }

    .summary-card .value {
        font-size: 28px;
    }

    .chart-box--side {
        height: 260px;
    }

    .bar-wrap {
        min-width: 140px;
    }
}

.stat-update {
    display: inline-block;
    margin-top: 14px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2px;
}