/* Panel principal del dealer */
.dash-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.35rem 1.5rem;
    border-radius: 16px;
    background:
        radial-gradient(circle at 100% 0%, rgba(200, 16, 46, 0.18), transparent 45%),
        linear-gradient(135deg, #0b1f44 0%, #123a7a 55%, #1a4d8f 100%);
    color: #fff;
    margin-bottom: 1.5rem;
}

.dash-hero__kicker {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.75;
    margin-bottom: 0.25rem;
}

.dash-hero h1 {
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    font-weight: 800;
    margin: 0 0 0.25rem;
}

.dash-hero p {
    margin: 0;
    opacity: 0.85;
}

.dash-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.dash-hero__actions .btn {
    border-radius: 10px;
    font-weight: 700;
}

.dash-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.dash-kpi {
    background: #fff;
    border: 1px solid #e8eef5;
    border-radius: 14px;
    padding: 1.1rem 1.15rem;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.dash-kpi__icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.dash-kpi__icon.is-blue { background: rgba(13, 110, 253, 0.12); color: #0d6efd; }
.dash-kpi__icon.is-green { background: rgba(25, 135, 84, 0.12); color: #198754; }
.dash-kpi__icon.is-amber { background: rgba(255, 193, 7, 0.2); color: #b78103; }
.dash-kpi__icon.is-slate { background: rgba(100, 116, 139, 0.15); color: #475569; }
.dash-kpi__icon.is-red { background: rgba(200, 16, 46, 0.12); color: #c8102e; }

.dash-kpi__value {
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1;
    color: #0f172a;
}

.dash-kpi__label {
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 600;
    margin-top: 0.2rem;
}

.dash-finance {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.dash-fin {
    border-radius: 14px;
    padding: 1.05rem 1.15rem;
    border: 1px solid #e8eef5;
    background: #f8fafc;
}

.dash-fin__label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 0.35rem;
}

.dash-fin__value {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
}

.dash-fin__hint {
    font-size: 0.78rem;
    color: #94a3b8;
    margin-top: 0.2rem;
}

.dash-fin.is-accent {
    background: linear-gradient(135deg, rgba(25, 135, 84, 0.08), #fff);
    border-color: rgba(25, 135, 84, 0.2);
}

.dash-fin.is-accent .dash-fin__value { color: #198754; }

.dash-panel {
    background: #fff;
    border: 1px solid #e8eef5;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.dash-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid #eef2f7;
}

.dash-panel__head h2 {
    font-size: 1rem;
    font-weight: 800;
    margin: 0;
    color: #0f172a;
}

.dash-panel__body {
    padding: 0.5rem 1.15rem 1.15rem;
    flex: 1;
}

.dash-table {
    width: 100%;
    margin: 0;
}

.dash-table th {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
    font-weight: 700;
    border-bottom-color: #eef2f7;
    white-space: nowrap;
}

.dash-table td {
    vertical-align: middle;
    border-bottom-color: #f1f5f9;
    font-size: 0.9rem;
}

.dash-car {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.dash-car img {
    width: 48px;
    height: 36px;
    object-fit: cover;
    border-radius: 8px;
    background: #e2e8f0;
}

.dash-car strong {
    display: block;
    font-size: 0.9rem;
    color: #0f172a;
}

.dash-car small {
    color: #64748b;
}

.dash-lead {
    display: flex;
    gap: 0.75rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.dash-lead:last-child { border-bottom: 0; }

.dash-lead__avatar {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(13, 110, 253, 0.12);
    color: #0d6efd;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex-shrink: 0;
}

.dash-lead__name {
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.1rem;
    font-size: 0.92rem;
}

.dash-lead__meta {
    color: #64748b;
    font-size: 0.8rem;
    margin: 0;
}

.dash-lead__date {
    margin-left: auto;
    color: #94a3b8;
    font-size: 0.75rem;
    white-space: nowrap;
}

.dash-quick {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.dash-quick a {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.95rem 1rem;
    border-radius: 12px;
    border: 1px solid #e8eef5;
    background: #fff;
    text-decoration: none;
    color: #0f172a;
    font-weight: 700;
    font-size: 0.9rem;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.dash-quick a:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px);
    color: #0f172a;
}

.dash-quick a i {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #334155;
}

.dash-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: #64748b;
}

@media (max-width: 1199px) {
    .dash-kpis,
    .dash-finance,
    .dash-quick {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .dash-kpis,
    .dash-finance,
    .dash-quick {
        grid-template-columns: 1fr;
    }

    .dash-hero {
        padding: 1.1rem;
    }
}
