.stats-dashboard-v3 {
    --stats-navy: #0b2f3b;
    --stats-navy-2: #123f4b;
    --stats-teal: #147d78;
    --stats-teal-soft: #e8f5f2;
    --stats-gold: #d99a32;
    --stats-coral: #c85b50;
    --stats-ink: #102f39;
    --stats-muted: #60757b;
    --stats-line: #dbe5e3;
    --stats-surface: #ffffff;
    --stats-canvas: #f3f7f6;
    width: 100%;
    min-width: 0;
    color: var(--stats-ink);
}

.stats-page-v3 .main-content,
.stats-page-v3 .stats-panel,
.stats-page-v3 .stats-card {
    min-width: 0;
}

.stats-page-v3 .main-content {
    background:
        radial-gradient(circle at 96% 4%, rgba(20, 125, 120, .08), transparent 28rem),
        var(--stats-canvas);
}

.stats-dashboard-v3 *,
.stats-dashboard-v3 *::before,
.stats-dashboard-v3 *::after {
    box-sizing: border-box;
}

.stats-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin: 4px 0 18px;
}

.stats-heading-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
    color: var(--stats-teal);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.stats-heading-meta i {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--stats-gold);
}

.stats-heading h2,
.stats-panel-heading h2 {
    margin: 0;
    color: var(--stats-navy);
    font-size: clamp(26px, 2.2vw, 38px);
    line-height: 1.08;
    letter-spacing: -.035em;
}

.stats-heading > div > p,
.stats-panel-heading p {
    max-width: 720px;
    margin: 8px 0 0;
    color: var(--stats-muted);
    font-size: 15px;
    line-height: 1.55;
}

.stats-heading-actions,
.stats-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.stats-heading-actions {
    flex: 0 0 auto;
}

.stats-button,
.stats-dashboard-v3 a.stats-button,
.stats-dashboard-v3 button.stats-button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 16px;
    border: 1px solid var(--stats-line);
    border-radius: 10px;
    background: #fff;
    color: var(--stats-navy);
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .16s ease, background-color .16s ease, transform .16s ease;
}

.stats-button:hover {
    transform: translateY(-1px);
}

.stats-button svg,
.stats-card-head svg,
.stats-priority-list svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.stats-button-primary,
.stats-dashboard-v3 a.stats-button-primary,
.stats-dashboard-v3 button.stats-button-primary {
    border-color: var(--stats-navy);
    background: var(--stats-navy);
    color: #fff;
}

.stats-button-primary:hover {
    background: var(--stats-navy-2);
}

.stats-scope-card {
    position: relative;
    padding: 13px;
    border: 1px solid var(--stats-line);
    border-radius: 14px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 9px 30px rgba(18, 63, 75, .05);
}

.stats-scope-card.is-loading::after {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgba(255, 255, 255, .68);
    content: "";
    cursor: progress;
}

.stats-scope-form {
    display: grid;
    grid-template-columns: minmax(150px, .7fr) minmax(240px, 1.45fr) minmax(150px, .75fr) auto;
    align-items: end;
    gap: 10px;
}

.stats-scope-form label {
    display: grid;
    gap: 5px;
}

.stats-scope-form label > span {
    color: #5a7076;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.stats-scope-form select {
    width: 100%;
    height: 42px;
    padding: 0 34px 0 12px;
    border: 1px solid #cedbd9;
    border-radius: 9px;
    background-color: #f9fbfb;
    color: var(--stats-ink);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
}

.stats-scope-form select:disabled {
    color: #75878b;
    opacity: 1;
}

.stats-button-filter {
    border-color: #b9ceca !important;
    background: var(--stats-teal-soft) !important;
    color: #0a6864 !important;
}

.stats-filter-status {
    position: absolute;
    right: 14px;
    bottom: -21px;
    color: var(--stats-teal);
    font-size: 11px;
    font-weight: 800;
}

.stats-tabs {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0;
    margin: 18px 0;
    padding: 5px;
    border: 1px solid var(--stats-line);
    border-radius: 14px;
    background: #e8efed;
}

.stats-tabs button {
    position: relative;
    display: grid;
    gap: 2px;
    min-height: 54px;
    padding: 8px 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #526b71;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.stats-tabs button + button::before {
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 0;
    width: 1px;
    background: #d5e0de;
    content: "";
}

.stats-tabs button[aria-selected="true"] {
    background: #fff;
    color: var(--stats-navy);
    box-shadow: 0 4px 15px rgba(24, 59, 67, .09);
}

.stats-tabs button[aria-selected="true"]::after {
    position: absolute;
    right: 12px;
    bottom: 0;
    left: 12px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--stats-teal);
    content: "";
}

.stats-tabs button span {
    font-size: 13px;
    font-weight: 850;
}

.stats-tabs button small {
    overflow: hidden;
    font-size: 10px;
    font-weight: 650;
    opacity: .78;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stats-panel[hidden] {
    display: none !important;
}

.stats-panel.is-entering {
    animation: stats-panel-in .22s ease both;
}

@keyframes stats-panel-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.stats-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.stats-kpi,
.stats-card,
.stats-ratio,
.stats-operation-grid article,
.stats-finance-grid article {
    border: 1px solid var(--stats-line);
    border-radius: 14px;
    background: var(--stats-surface);
    box-shadow: 0 8px 24px rgba(19, 57, 64, .045);
}

.stats-kpi {
    position: relative;
    overflow: hidden;
    min-height: 152px;
    padding: 17px 18px 15px;
}

.stats-kpi::after {
    position: absolute;
    right: -34px;
    bottom: -50px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--kpi-color) 10%, transparent);
    content: "";
}

.stats-kpi.is-revenue { --kpi-color: #147d78; }
.stats-kpi.is-orders { --kpi-color: #2776a5; }
.stats-kpi.is-basket { --kpi-color: #d08b2f; }
.stats-kpi.is-conversion { --kpi-color: #9b5d84; }

.stats-kpi-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 31px;
    margin-bottom: 12px;
}

.stats-kpi-icon {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 9px;
    background: color-mix(in srgb, var(--kpi-color) 13%, #fff);
    color: var(--kpi-color);
    font-size: 14px;
    font-weight: 900;
}

.stats-evolution {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    padding: 4px 7px;
    border-radius: 20px;
    background: #eff4f3;
    color: #61777b;
    font-size: 11px;
}

.stats-evolution small {
    font-size: 8px;
    text-transform: uppercase;
}

.stats-evolution.is-up { background: #e8f6ef; color: #14744f; }
.stats-evolution.is-down { background: #fff0ee; color: #a9473e; }

.stats-kpi-label {
    display: block;
    color: var(--stats-muted);
    font-size: 12px;
    font-weight: 800;
}

.stats-kpi > strong {
    position: relative;
    z-index: 1;
    display: block;
    margin-top: 3px;
    color: var(--stats-navy);
    font-size: clamp(22px, 2vw, 31px);
    line-height: 1.1;
    letter-spacing: -.03em;
}

.stats-kpi > p {
    position: relative;
    z-index: 1;
    margin: 8px 0 0;
    color: var(--stats-muted);
    font-size: 11px;
    line-height: 1.4;
}

.stats-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(310px, .75fr);
    gap: 12px;
    margin-top: 12px;
}

.stats-card {
    padding: 18px;
}

.stats-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 15px;
}

.stats-section-kicker {
    display: block;
    margin-bottom: 3px;
    color: var(--stats-teal);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.stats-card-head h3,
.stats-definition-card h3 {
    margin: 0;
    color: var(--stats-navy);
    font-size: 17px;
    line-height: 1.2;
}

.stats-card-head p {
    margin: 4px 0 0;
    color: var(--stats-muted);
    font-size: 11px;
}

.stats-card-head > a,
.stats-card-head > button {
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    background: none;
    color: var(--stats-teal);
    font: inherit;
    font-size: 11px;
    font-weight: 850;
    text-decoration: none;
    cursor: pointer;
}

.stats-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--stats-muted);
    font-size: 10px;
    font-weight: 800;
}

.stats-chart-legend span::before {
    display: inline-block;
    width: 16px;
    height: 3px;
    margin-right: 5px;
    border-radius: 3px;
    background: var(--stats-teal);
    vertical-align: middle;
    content: "";
}

.stats-chart-legend .is-previous::before {
    background: #b2c1bf;
}

.stats-line-chart {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
}

.stats-line-chart svg {
    display: block;
    width: 100%;
    min-width: 650px;
    height: auto;
}

.stats-chart-grid {
    stroke: #e2e9e7;
    stroke-width: 1;
}

.stats-chart-axis,
.stats-chart-month {
    fill: #718488;
    font-size: 11px;
    font-weight: 650;
}

.stats-chart-line {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
}

.stats-chart-line.is-current { stroke: var(--stats-teal); }
.stats-chart-line.is-previous { stroke: #afbfbc; stroke-dasharray: 7 6; stroke-width: 2; }

.stats-chart-values {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.stats-count-badge,
.stats-role-pill {
    display: inline-flex;
    min-width: 28px;
    min-height: 28px;
    align-items: center;
    justify-content: center;
    padding: 0 9px;
    border-radius: 20px;
    background: var(--stats-teal-soft);
    color: var(--stats-teal);
    font-size: 11px;
    font-weight: 900;
}

.stats-priority-list {
    display: grid;
    gap: 7px;
}

.stats-priority-list article {
    display: grid;
    grid-template-columns: 8px 1fr;
    gap: 0 11px;
    padding: 11px 0;
    border-top: 1px solid #e5ecea;
}

.stats-priority-list article:first-child { border-top: 0; padding-top: 0; }
.stats-priority-list article > i { width: 7px; height: 7px; margin-top: 5px; border-radius: 50%; background: #84979b; }
.stats-priority-list article.is-urgent > i { background: var(--stats-coral); box-shadow: 0 0 0 4px #fae9e7; }
.stats-priority-list article.is-watch > i { background: var(--stats-gold); box-shadow: 0 0 0 4px #fbf1df; }
.stats-priority-list article.is-info > i { background: #3987a8; box-shadow: 0 0 0 4px #e6f2f7; }
.stats-priority-list article.is-success > i { background: #22835f; box-shadow: 0 0 0 4px #e4f5ed; }
.stats-priority-list article > div > span { color: var(--stats-muted); font-size: 11px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.stats-priority-list article strong { display: block; margin-top: 2px; color: var(--stats-ink); font-size: 12px; line-height: 1.35; }
.stats-priority-list article p { margin: 3px 0 0; color: var(--stats-muted); font-size: 11px; line-height: 1.4; }
.stats-priority-list article a { grid-column: 2; display: inline-flex; align-items: center; gap: 2px; width: max-content; margin-top: 5px; color: var(--stats-teal); font-size: 11px; font-weight: 850; text-decoration: none; }
.stats-priority-list article a svg { width: 14px; height: 14px; }

.stats-overview-lower {
    display: grid;
    grid-template-columns: 1.05fr 1.25fr .85fr;
    gap: 12px;
    margin-top: 12px;
}

.stats-funnel {
    display: grid;
    gap: 7px;
}

.stats-funnel div {
    position: relative;
    display: flex;
    min-height: 35px;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    padding: 0 10px;
    border-radius: 8px;
    background: #eef3f2;
}

.stats-funnel div::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: max(3px, var(--funnel));
    background: linear-gradient(90deg, rgba(20, 125, 120, .24), rgba(20, 125, 120, .08));
    content: "";
}

.stats-funnel span,
.stats-funnel strong { position: relative; z-index: 1; font-size: 11px; }
.stats-funnel strong { color: var(--stats-navy); }
.stats-card > footer { display: flex; gap: 12px; margin-top: 11px; color: var(--stats-muted); font-size: 10px; font-weight: 700; }

.stats-mini-ranking {
    display: grid;
}

.stats-mini-ranking > a,
.stats-mini-ranking > article {
    display: grid;
    grid-template-columns: 25px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    min-height: 46px;
    border-top: 1px solid #e5ecea;
    color: inherit;
    text-decoration: none;
}

.stats-mini-ranking > :first-child { border-top: 0; }
.stats-mini-ranking > a > b,
.stats-mini-ranking > article > b { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 7px; background: #edf3f2; color: var(--stats-teal); font-size: 10px; }
.stats-mini-ranking span { min-width: 0; }
.stats-mini-ranking span strong,
.stats-mini-ranking span small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stats-mini-ranking span strong { color: var(--stats-ink); font-size: 11px; }
.stats-mini-ranking span small { margin-top: 2px; color: var(--stats-muted); font-size: 9px; }
.stats-mini-ranking em { color: var(--stats-navy); font-size: 10px; font-style: normal; font-weight: 900; white-space: nowrap; }
.stats-mini-ranking.is-roomy > * { min-height: 58px; }

.stats-operation-compact {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.stats-operation-compact div {
    min-height: 64px;
    padding: 10px;
    border-radius: 9px;
    background: #f2f6f5;
}

.stats-operation-compact span,
.stats-operation-compact strong { display: block; }
.stats-operation-compact span { color: var(--stats-muted); font-size: 11px; line-height: 1.3; }
.stats-operation-compact strong { margin-top: 5px; color: var(--stats-navy); font-size: 20px; }
.stats-operation-compact .is-warning { background: #fff4e8; }
.stats-operation-compact .is-info { background: #eaf4f8; }
.stats-operation-compact .is-success { background: #eaf6ef; }

.stats-panel-heading {
    min-height: 94px;
    padding: 17px 20px;
    border: 1px solid var(--stats-line);
    border-radius: 14px;
    background: linear-gradient(120deg, #fff, #f5faf8);
}

.stats-panel-heading h2 { font-size: clamp(22px, 1.8vw, 30px); }

.stats-ratio-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.stats-ratio {
    min-height: 130px;
    padding: 16px;
    border-top: 3px solid #9bb0ad;
}

.stats-ratio.is-good { border-top-color: #26906a; }
.stats-ratio.is-watch { border-top-color: var(--stats-gold); }
.stats-ratio.is-alert { border-top-color: var(--stats-coral); }
.stats-ratio span { display: block; color: var(--stats-muted); font-size: 10px; font-weight: 800; }
.stats-ratio strong { display: block; margin-top: 8px; color: var(--stats-navy); font-size: 24px; }
.stats-ratio p { margin: 7px 0 0; color: var(--stats-muted); font-size: 10px; line-height: 1.4; }

.stats-two-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.stats-channel-list {
    display: grid;
    gap: 15px;
}

.stats-channel-list article > div:first-child { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; }
.stats-channel-list article > div:first-child span { font-weight: 800; }
.stats-channel-list article > div:first-child strong { color: var(--stats-navy); }
.stats-channel-list p { margin: 4px 0 0; color: var(--stats-muted); font-size: 9px; }
.stats-progress { height: 7px; margin-top: 8px; overflow: hidden; border-radius: 8px; background: #edf2f1; }
.stats-progress i { display: block; width: var(--channel); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--stats-teal), #50a99c); }

.stats-operation-grid,
.stats-finance-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.stats-operation-grid article,
.stats-finance-grid article { min-height: 116px; padding: 16px; }
.stats-operation-grid span,
.stats-finance-grid span { display: block; color: var(--stats-muted); font-size: 10px; font-weight: 800; }
.stats-operation-grid strong,
.stats-finance-grid strong { display: block; margin-top: 11px; color: var(--stats-navy); font-size: 24px; }
.stats-operation-grid .is-warning { border-top: 3px solid var(--stats-gold); }
.stats-operation-grid .is-info { border-top: 3px solid #3987a8; }
.stats-operation-grid .is-success { border-top: 3px solid #26906a; }

.stats-distribution-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.stats-donut-layout {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
}

.stats-donut { display: grid; width: 104px; height: 104px; place-items: center; border-radius: 50%; }
.stats-donut span { width: 67px; height: 67px; border-radius: 50%; background: #fff; }
.stats-legend { display: grid; gap: 7px; }
.stats-legend > div { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto auto; align-items: center; gap: 7px; font-size: 10px; }
.stats-legend i { width: 7px; height: 7px; border-radius: 50%; background: var(--legend); }
.stats-legend span { overflow: hidden; color: var(--stats-muted); text-overflow: ellipsis; white-space: nowrap; }
.stats-legend strong { color: var(--stats-navy); }
.stats-legend small { color: var(--stats-muted); }

.stats-finance-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats-finance-grid article { min-height: 136px; border-top: 3px solid var(--stats-teal); }
.stats-finance-grid p { margin: 7px 0 0; color: var(--stats-muted); font-size: 10px; line-height: 1.4; }
.stats-finance-lower { grid-template-columns: 1.25fr .75fr; }
.stats-finance-balance { display: grid; gap: 18px; }
.stats-finance-balance > div > div:first-child { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; font-size: 11px; }
.stats-finance-balance span { color: var(--stats-muted); }
.stats-finance-balance strong { color: var(--stats-navy); }
.stats-finance-balance em { color: var(--stats-teal); font-style: normal; font-weight: 900; }
.stats-finance-balance > div > div:last-child { height: 8px; margin-top: 8px; overflow: hidden; border-radius: 8px; background: #edf2f1; }
.stats-finance-balance i { display: block; width: var(--balance); height: 100%; border-radius: inherit; background: var(--stats-teal); }
.stats-finance-balance .is-school i { background: var(--stats-gold); }
.stats-definition-card { background: linear-gradient(135deg, #0c3440, #14545d); color: #fff; }
.stats-definition-card .stats-section-kicker { color: #83d6cc; }
.stats-definition-card h3 { color: #fff; font-size: 22px; }
.stats-definition-card > p { color: #d5e5e5; font-size: 12px; line-height: 1.6; }
.stats-definition-card details { margin-top: 16px; border-top: 1px solid rgba(255,255,255,.18); padding-top: 13px; }
.stats-definition-card summary { color: #fff; font-size: 11px; font-weight: 850; cursor: pointer; }
.stats-definition-card details p { color: #d5e5e5; font-size: 10px; line-height: 1.5; }

.stats-matrix-card { margin-top: 12px; padding: 0; overflow: hidden; }
.stats-table-wrap { width: 100%; overflow-x: auto; }
.stats-table { width: 100%; min-width: 860px; border-collapse: collapse; }
.stats-table th { padding: 13px 15px; border-bottom: 1px solid var(--stats-line); background: #edf3f2; color: #5b7075; font-size: 9px; letter-spacing: .07em; text-align: right; text-transform: uppercase; }
.stats-table th:first-child { text-align: left; }
.stats-table td { padding: 14px 15px; border-bottom: 1px solid #e7eeec; color: var(--stats-ink); font-size: 11px; font-weight: 700; text-align: right; }
.stats-table td:first-child { max-width: 330px; text-align: left; }
.stats-table td:first-child strong,
.stats-table td:first-child small { display: block; }
.stats-table td:first-child small { margin-top: 3px; color: var(--stats-muted); font-size: 9px; font-weight: 500; line-height: 1.35; }
.stats-table tbody tr:hover { background: #fafcfb; }

.stats-method {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-top: 12px;
    padding: 13px 16px;
    border: 1px solid #d7e4e1;
    border-radius: 12px;
    background: #eef5f3;
}
.stats-method strong { flex: 0 0 auto; color: var(--stats-teal); font-size: 11px; }
.stats-method p { margin: 0; color: var(--stats-muted); font-size: 10px; line-height: 1.5; }

.stats-empty-state {
    display: grid;
    place-items: center;
    min-height: 180px;
    padding: 24px;
    color: var(--stats-muted);
    text-align: center;
}
.stats-empty-state > span { display: grid; width: 40px; height: 40px; place-items: center; margin-bottom: 8px; border-radius: 50%; background: var(--stats-teal-soft); color: var(--stats-teal); font-size: 19px; }
.stats-empty-state strong { color: var(--stats-navy); font-size: 13px; }
.stats-empty-state p { max-width: 370px; margin: 5px 0 0; font-size: 10px; line-height: 1.5; }
.stats-empty-state.is-inline { min-height: 86px; }

@media (max-width: 1380px) {
    .stats-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .stats-tabs button:nth-child(4)::before { display: none; }
    .stats-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats-overview-lower { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats-overview-lower > :last-child { grid-column: 1 / -1; }
    .stats-operation-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .stats-ratio-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1050px) {
    .stats-heading { align-items: flex-start; }
    .stats-scope-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats-button-filter { width: 100%; }
    .stats-main-grid,
    .stats-two-column,
    .stats-finance-lower { grid-template-columns: 1fr; }
    .stats-distribution-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .stats-heading,
    .stats-panel-heading { align-items: stretch; flex-direction: column; }
    .stats-heading-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
    .stats-heading-actions .stats-button { width: 100%; }
    .stats-heading-meta { align-items: flex-start; flex-direction: column; gap: 3px; }
    .stats-heading-meta i { display: none; }
    .stats-scope-form { grid-template-columns: 1fr; }
    .stats-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats-tabs button:nth-child(odd)::before { display: none; }
    .stats-tabs button small { display: none; }
    .stats-tabs button { min-height: 44px; text-align: center; }
    .stats-kpi-grid,
    .stats-overview-lower,
    .stats-ratio-grid,
    .stats-operation-grid,
    .stats-finance-grid { grid-template-columns: 1fr; }
    .stats-overview-lower > :last-child { grid-column: auto; }
    .stats-kpi { min-height: 136px; }
    .stats-card { padding: 15px; }
    .stats-donut-layout { grid-template-columns: 90px minmax(0, 1fr); gap: 12px; }
    .stats-donut { width: 82px; height: 82px; }
    .stats-donut span { width: 52px; height: 52px; }
    .stats-method { flex-direction: column; gap: 5px; }
}

@media (prefers-reduced-motion: reduce) {
    .stats-panel.is-entering,
    .stats-button { animation: none; transition: none; }
}
