/* ══════════════════════════════════════════
   Chatbot — Estilos de resumen ejecutivo y
   botones de acción rápida por rol
══════════════════════════════════════════ */

/* ── Resumen ejecutivo (tarjeta KPI) ─────── */
.exec-summary {
    background: linear-gradient(135deg, #1a2f1a 0%, #0d1f0d 100%);
    border: 1px solid rgba(74, 222, 128, 0.2);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 4px;
    animation: fadeSlideIn 0.4s ease-out;
}

.exec-summary.customer {
    background: linear-gradient(135deg, #0f1f3a 0%, #0a1628 100%);
    border-color: rgba(56, 189, 248, 0.2);
}

.exec-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}

.exec-kpis {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.exec-kpi {
    flex: 1;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    padding: 8px 6px;
    text-align: center;
}

.kpi-num {
    display: block;
    font-family: 'Syne', sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    color: #4ade80;
    line-height: 1.1;
}

.exec-summary.customer .kpi-num {
    color: #38bdf8;
}

.kpi-label {
    display: block;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 2px;
    line-height: 1.2;
}

/* ── Chips de alerta ──────────────────────── */
.exec-alerts {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.alert-chip {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
}

.alert-chip.red {
    background: rgba(220, 38, 38, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.alert-chip.amber {
    background: rgba(245, 158, 11, 0.2);
    color: #fcd34d;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.alert-chip.green {
    background: rgba(22, 163, 74, 0.2);
    color: #4ade80;
    border: 1px solid rgba(22, 163, 74, 0.3);
}

/* ── Botones de acción rápida ─────────────── */
.quick-actions-wrap {
    padding: 4px 0 8px;
    animation: fadeSlideIn 0.35s ease-out;
}

.qa-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.62rem;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.qa-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.qa-btn {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 8px;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    color: #374151;
    cursor: pointer;
    transition: all 0.15s ease;
    line-height: 1.3;
    text-align: left;
}

.qa-btn:hover {
    border-color: #16a34a;
    background: #f0fdf4;
    color: #15803d;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.15);
}

/* Admin: accent rojo para los botones */
[data-chatbot-role="admin"] .qa-btn:hover {
    border-color: #991b1b;
    background: #fef2f2;
    color: #991b1b;
    box-shadow: 0 2px 8px rgba(153, 27, 27, 0.15);
}

/* ── Animación de entrada ─────────────────── */
@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}