/* Portal dashboard - metric tiles + server-rendered inline SVG chart.
 * SVG fills come from CSS (var() is not resolved in SVG presentation attributes).
 */

.dash-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: var(--space-xl);
}

.dash-head h1 {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.dash-badge {
    background: rgba(249, 231, 159, 0.12);
    border: 1px solid rgba(249, 231, 159, 0.3);
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 100px;
}

.dash-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: var(--space-xl);
}

.dash-metric {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
}

.dash-metric-value {
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.dash-metric--gold .dash-metric-value {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dash-metric-label {
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.82rem;
}

.dash-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
}

.dash-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.dash-card-head h2 {
    font-size: 1.05rem;
    font-weight: 700;
}

.dash-legend {
    display: flex;
    gap: 16px;
}

.dash-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--muted);
}

.dash-swatch {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    display: inline-block;
}

.dash-swatch--delivered { background: var(--gold-dark); }
.dash-swatch--sent { background: rgba(255, 255, 255, 0.14); }

.dash-chart {
    width: 100%;
    height: auto;
    display: block;
}

.dash-bar--sent { fill: rgba(255, 255, 255, 0.10); }
.dash-bar--delivered { fill: var(--gold-dark); }

.dash-bar-label {
    fill: var(--light);
    font-size: 11px;
    font-family: 'Geist', sans-serif;
}

.dash-note {
    margin-top: 16px;
    text-align: center;
    color: var(--light);
    font-size: 0.82rem;
}

@media (max-width: 720px) {
    .dash-metrics { grid-template-columns: repeat(2, 1fr); }
}
