/* Dealer Dashboard (Dashboard.razor). Dark-only; fluid. The KPI grid is auto-fit
   (4-up on desktop, 2-up on a tablet, 1-up on a phone); the header stacks below 700px. */

.dash {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.dash-state {
    display: grid;
    place-items: center;
    padding: 80px 0;
}

.dash-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px 24px;
    flex-wrap: wrap;
}

.dash-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sa-ink-3);
}

.dash-head h1 {
    margin: 6px 0;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.7rem, 3.6vw, 2.25rem);
    letter-spacing: -0.015em;
    line-height: 1.15;
}

.dash-head p {
    margin: 0;
    font-size: 1.02rem;
    color: var(--sa-ink-2);
}

.dash-head p strong {
    color: var(--sa-ink);
}

.dash-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dash-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    box-sizing: border-box;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.dash-btn--primary {
    background: var(--sa-primary);
    color: var(--sa-on-primary);
}

.dash-btn--primary:hover {
    background: var(--sa-primary-hover);
}

.dash-btn--ghost {
    background: var(--sa-surface);
    border: 1px solid var(--sa-line);
    color: var(--sa-ink);
}

.dash-btn--ghost:hover {
    border-color: #3a4d80;
}

.dash-strip {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 18px;
    border-radius: var(--sa-radius-md);
    font-size: 0.95rem;
    line-height: 1.5;
}

.dash-strip .mud-icon-root {
    flex: none;
    margin-top: 1px;
}

.dash-strip a {
    font-weight: 700;
    color: inherit;
    text-decoration: underline;
}

.dash-strip--warn {
    background: var(--sa-warn-bg);
    color: var(--sa-warn-ink);
}

.dash-strip--info {
    background: var(--sa-primary-soft);
    color: var(--sa-primary-ink);
}

.dash-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
}

.dash-card {
    padding: 22px;
    background: var(--sa-surface);
    border: 1px solid var(--sa-line);
    border-radius: var(--sa-radius-lg);
    box-shadow: var(--sa-shadow);
}

.dash-card h2 {
    margin: 0 0 12px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
}

.dash-empty {
    padding: 8px 0;
    color: var(--sa-ink-2);
}

.dash-activity {
    margin: 0;
    padding: 0;
    list-style: none;
}

.dash-activity li {
    position: relative;
    display: flex;
    gap: 14px;
    padding: 12px 0;
    min-height: 44px;
    box-sizing: border-box;
    border-top: 1px solid var(--sa-line);
}

/* The whole row is the tap target, not just the line of text. */
.dash-activity__text a::after {
    content: "";
    position: absolute;
    inset: 0;
}

.dash-activity li:first-child {
    border-top: 0;
}

.dash-activity__icon {
    width: 34px;
    height: 34px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 50%;
}

.dash-activity__icon--chat {
    background: var(--sa-primary-soft);
    color: var(--sa-primary-ink);
}

.dash-activity__icon--offer {
    background: var(--sa-warn-bg);
    color: var(--sa-warn-ink);
}

.dash-activity__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.dash-activity__text a,
.dash-activity__text > span {
    font-weight: 600;
    color: var(--sa-ink);
    text-decoration: none;
    overflow-wrap: anywhere;
}

.dash-activity__text a:hover {
    color: var(--sa-primary-ink);
    text-decoration: underline;
}

.dash-activity__text small {
    font-size: 0.82rem;
    color: var(--sa-ink-3);
}

@media (max-width: 700px) {
    .dash-actions {
        width: 100%;
    }

    .dash-actions .dash-btn {
        flex: 1 1 0;
    }

    .dash-card {
        padding: 18px 16px;
    }
}
