.dashboard-hero {
    position: relative;
    display: grid;
    overflow: hidden;
    padding: clamp(26px, 5vw, 46px);
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    color: var(--white);
    border-radius: 8px;
    background: var(--brand-blue);
    box-shadow: var(--shadow);
}

.dashboard-hero-content {
    position: relative;
    z-index: 1;
}

.panel-kicker {
    margin: 0 0 12px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.dashboard-hero h1 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(2rem, 5vw, 3.05rem);
    line-height: 1.05;
}

.dashboard-hero p:not(.panel-kicker) {
    max-width: 680px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.7;
}

.dashboard-hero-badge {
    display: inline-grid;
    width: clamp(74px, 11vw, 112px);
    height: clamp(74px, 11vw, 112px);
    align-self: start;
    color: var(--brand-charcoal);
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 999px;
    place-items: center;
    background: var(--orange);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
    font-size: clamp(1.25rem, 3vw, 2rem);
    font-weight: 900;
}

.dashboard-quick-actions {
    display: flex;
    flex-wrap: wrap;
    margin-top: 26px;
    gap: 12px;
}

.quick-action-card {
    display: inline-flex;
    min-height: 44px;
    padding: 0 18px;
    align-items: center;
    justify-content: center;
    color: var(--blue-dark);
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 10px 24px rgba(51, 52, 118, 0.18);
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.quick-action-card:hover,
.quick-action-card:focus {
    color: var(--brand-charcoal);
    background: var(--orange);
    transform: translateY(-1px);
    outline: none;
}

.quick-action-card span {
    font-size: 0.98rem;
    font-weight: 900;
}

.dashboard-section {
    margin-top: 28px;
}

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

.summary-card {
    display: grid;
    min-height: 148px;
    padding: 20px;
    align-content: space-between;
    gap: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 12px 28px rgba(51, 52, 118, 0.08);
}

.summary-card p {
    margin: 0;
    color: var(--blue-dark);
    font-weight: 900;
}

.summary-card strong {
    color: var(--orange);
    font-size: clamp(1.65rem, 4vw, 2.3rem);
    line-height: 1;
}

.summary-card span {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.dashboard-tabs {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 12px 28px rgba(51, 52, 118, 0.08);
}

.tab-list {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding: 10px;
    border-bottom: 1px solid var(--border);
}

.tab-button {
    display: grid;
    min-height: 58px;
    padding: 9px 16px;
    align-content: center;
    gap: 3px;
    flex: 0 0 auto;
    color: var(--blue-dark);
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    font-weight: 900;
    text-align: left;
}

.tab-button small {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.tab-button:hover,
.tab-button.is-active {
    color: var(--white);
    background: var(--blue);
}

.tab-button:hover small,
.tab-button.is-active small {
    color: rgba(255, 255, 255, 0.82);
}

.tab-button.is-active {
    border-color: var(--blue);
}

.tab-panel {
    padding: clamp(20px, 4vw, 30px);
}

.tab-panel h3 {
    margin: 0 0 10px;
    color: var(--blue-dark);
    font-size: 1.25rem;
}

.tab-panel h4 {
    margin: 0;
    color: var(--blue-dark);
    font-size: 1.08rem;
}

.tab-panel p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.summary-inside-tab {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
}

.dashboard-kpi-grid {
    display: grid;
    margin-top: 22px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.dashboard-kpi-card,
.dashboard-chart-card,
.dashboard-panel-list {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 12px 28px rgba(51, 52, 118, 0.07);
}

.dashboard-kpi-card {
    display: grid;
    min-height: 132px;
    padding: 18px;
    align-content: space-between;
    gap: 10px;
}

.dashboard-kpi-card span {
    color: var(--blue-dark);
    font-size: 0.85rem;
    font-weight: 900;
    text-transform: uppercase;
}

.dashboard-kpi-card strong {
    color: var(--orange);
    font-size: clamp(1.55rem, 4vw, 2.1rem);
    line-height: 1;
}

.dashboard-kpi-card small,
.muted,
.empty-note {
    color: var(--muted);
    font-weight: 700;
}

.dashboard-chart-grid {
    display: grid;
    margin-top: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.dashboard-chart-card,
.dashboard-panel-list {
    padding: 20px;
}

.dashboard-chart-card h4,
.dashboard-panel-list h4 {
    margin: 0 0 8px;
}

.dash-bars {
    display: grid;
    margin-top: 18px;
    gap: 14px;
}

.dash-bar-label {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    color: var(--blue-dark);
    font-size: 0.9rem;
    font-weight: 900;
}

.dash-bar-label span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dash-bar-label strong {
    color: var(--orange);
}

.dash-bar-track {
    overflow: hidden;
    height: 10px;
    margin-top: 7px;
    border-radius: 999px;
    background: var(--yellow-soft);
}

.dash-bar-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--blue-secondary);
}

.dashboard-panel-list {
    display: grid;
    align-content: start;
    gap: 10px;
}

.dashboard-panel-list a {
    display: flex;
    min-height: 52px;
    padding: 12px 14px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: var(--blue-dark);
    border-radius: 8px;
    background: var(--soft);
    text-decoration: none;
    font-weight: 900;
}

.dashboard-panel-list a:hover,
.dashboard-panel-list a:focus {
    color: var(--white);
    background: var(--blue);
    outline: none;
}

.dashboard-panel-list small {
    color: inherit;
    font-weight: 800;
}

@media (max-width: 980px) {
    .summary-grid,
    .dashboard-kpi-grid,
    .dashboard-chart-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .dashboard-hero {
        grid-template-columns: 1fr;
    }

    .dashboard-hero-badge {
        order: -1;
    }

    .dashboard-quick-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .quick-action-card {
        width: 100%;
    }

    .summary-grid,
    .dashboard-kpi-grid,
    .dashboard-chart-grid {
        grid-template-columns: 1fr;
    }
}
