.dashboard-page {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 1.25rem;
}

.dashboard-page__header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.dashboard-page__header h1 {
    margin: 0.2rem 0 0;
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2.4vw, 1.7rem);
    font-weight: 750;
}

.dashboard-page__submenu {
    width: 100%;
}

.dashboard-page__kicker {
    display: block;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard-page__card {
    width: 100%;
}

/* Filter panel */

.dashboard-filter-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--divider);
    border-radius: var(--radius-card, var(--radius-md));
    background: var(--surface);
}

.dashboard-filter-panel__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.85rem;
}

.dashboard-filter-panel__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.dashboard-filter-panel__actions {
    display: flex;
    gap: 0.6rem;
}

@media (max-width: 1200px) {
    .dashboard-filter-panel__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .dashboard-filter-panel__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .dashboard-filter-panel__grid {
        grid-template-columns: 1fr;
    }

    .dashboard-filter-panel__footer {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Overview tab */

.dashboard-overview-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.dashboard-overview-kpis {
    margin-bottom: 1.25rem;
}

.dashboard-overview-main-grid {
    min-width: 0;
}

.dashboard-overview-performers {
    display: flex;
    flex-direction: column;
    container-name: dashboard-performers;
    container-type: inline-size;
}

.dashboard-overview-performers .ui-performer-list {
    display: grid;
    flex: 1 1 auto;
    grid-auto-rows: minmax(4rem, 1fr);
}

.dashboard-overview-performers .ui-empty-state {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@container dashboard-performers (max-width: 22rem) {
    .dashboard-overview-performers .ui-performer-row {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: var(--space-2);
        padding-inline: var(--space-3);
    }

    .dashboard-overview-performers .ui-performer-rank {
        display: none;
    }
}

/* Grouped / period tables, shared by five tabs */

.table-scroll {
    overflow-x: auto;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.dashboard-table th,
.dashboard-table td {
    padding: 0.65rem 0.85rem;
    border-bottom: 1px solid var(--divider);
    text-align: left;
    white-space: nowrap;
}

.dashboard-table th {
    background: var(--surface-sunken);
    color: var(--color-kview, var(--text-primary));
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.dashboard-table .num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.dashboard-table .col-separator {
    border-left: 2px solid var(--divider);
}

.dashboard-footnote {
    margin: 0.85rem 0 0;
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.5;
}

.dashboard-period-group {
    margin-bottom: 1.75rem;
}

.dashboard-period-group:last-child {
    margin-bottom: 0;
}

.dashboard-quarterly-investor {
    margin: 0 0 0.6rem;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
}

.dashboard-quarterly-table-wrap {
    margin-bottom: 0.85rem;
}

.dashboard-quarterly-charts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 900px) {
    .dashboard-quarterly-charts {
        grid-template-columns: 1fr;
    }
}
