/* GASCA · RRHH — Chatbot de WhatsApp (vista 'rrhh-bot-view'). Usa las piezas rh-* de gasca_rrhh.css */
#rrhh-bot-view {
    --rh-red: #b4000c; --rh-ink: #0f172a; --rh-ink2: #334155; --rh-muted: #64748b; --rh-line: #e2e8f0; --rh-card: #fff; --rh-bg: #f8fafc;
    --rh-s1: #2a78d6; --rh-radius: 16px; --rh-shadow: 0 1px 2px rgba(15,23,42,.04), 0 10px 30px -14px rgba(15,23,42,.16);
    font-family: 'Inter', sans-serif; color: var(--rh-ink); font-size: 14px; line-height: 1.45;
}
#rrhh-bot-view.active { container-type: inline-size; container-name: rh; }
#rrhh-bot-view :is(h2, h3, h4, p) { margin: 0; padding: 0; font-family: inherit; }
#rrhh-bot-view :is(button, select, input, textarea) { font-family: inherit; }
.bot-root { gap: 16px; }
.bot-estado { display: flex; gap: 14px; align-items: center; padding: 14px 18px; border-radius: 14px; border: 1px solid; flex-wrap: wrap; }
.bot-estado > i { font-size: 1.6rem; }
.bot-estado > div:first-of-type { display: grid; flex: 1; min-width: 200px; } .bot-estado span { font-size: .84rem; }
.bot-estado-acc { display: flex; gap: 8px; flex-wrap: wrap; }
.bot-off { background: #f1f5f9; border-color: #cbd5e1; color: #334155; } .bot-prueba { background: #fffbeb; border-color: #fcd34d; color: #92400e; }
.bot-on { background: #f0fdf4; border-color: #86efac; color: #166534; }
.bot-peligro { color: #b91c1c !important; border-color: #fecaca !important; }
.bot-sim .rh-card { max-width: 900px; }
.bot-quien { margin: 6px 0 10px; position: relative; } .bot-quien input { width: 100%; height: 36px; border: 1px solid var(--rh-line); border-radius: 10px; padding: 0 10px; }
.bot-pres { display: grid; gap: 4px; margin-top: 4px; } .bot-pres button { text-align: left; border: 1px solid var(--rh-line); background: #fff; border-radius: 8px; padding: 6px 10px; cursor: pointer; font-size: .82rem; }
.bot-pres button:hover { background: #f8fafc; }
.bot-pers { display: inline-flex; gap: 8px; align-items: center; padding: 6px 10px; background: #f0fdf4; border-radius: 10px; font-size: .84rem; }
.bot-chat { display: flex; flex-direction: column; gap: 8px; min-height: 260px; max-height: 52vh; overflow: auto; padding: 12px; background: #efeae2; border-radius: 12px; }
.bot-m { max-width: 80%; padding: 8px 11px; border-radius: 10px; white-space: pre-wrap; font-size: .88rem; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.bot-in { align-self: flex-end; background: #d9fdd3; } .bot-out { align-self: flex-start; background: #fff; }
.bot-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; font-size: .72rem; color: #64748b; }
.bot-esc { background: #fee2e2; color: #991b1b; padding: 2px 8px; border-radius: 999px; font-weight: 700; font-size: .72rem; }
.bot-envio { display: flex; gap: 8px; margin-top: 10px; align-items: flex-end; } .bot-envio textarea { flex: 1; border: 1px solid var(--rh-line); border-radius: 10px; padding: 8px; }
.bot-ta { width: 100%; border: 1px solid var(--rh-line); border-radius: 10px; padding: 10px; font-size: .86rem; line-height: 1.5; resize: vertical; }
.bot-chk { display: flex; gap: 8px; align-items: center; font-size: .84rem; padding: 4px 0; } .bot-sens { color: #b91c1c; }
.bot-resp { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 12px; }
.bot-lbl { display: grid; gap: 4px; font-size: .74rem; font-weight: 700; color: #64748b; margin-top: 10px; }
.bot-lbl input { height: 34px; border: 1px solid var(--rh-line); border-radius: 10px; padding: 0 10px; font-size: .86rem; font-weight: 400; color: #0f172a; }
.bot-guardar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.bot-aviso { background: #fef3c7; color: #92400e; padding: 2px 8px; border-radius: 999px; font-weight: 700; font-size: .72rem; }
.bot-deps { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.bot-dep { border: 1px solid var(--rh-line); border-radius: 12px; padding: 10px 12px; background: #fff; }
.bot-dep-h { display: flex; gap: 8px; } .bot-dep-h input { flex: 1; height: 32px; border: 1px solid var(--rh-line); border-radius: 8px; padding: 0 8px; font-weight: 700; }
.bot-users { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); max-height: 120px; overflow: auto; font-size: .78rem; }
.bot-dep-b { background: #dbeafe; color: #1e40af; padding: 2px 8px; border-radius: 999px; font-weight: 700; font-size: .72rem; }
/* llamada de Susana e INC-00146 (15/10/2026): sugerencias, urgencia, ausencia y valoración de respuestas */
.bot-sug { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 6px; }
.bot-chip { border: 1px solid #d1fae5; background: #f0fdf4; color: #166534; border-radius: 999px; padding: 4px 10px; font: inherit; font-size: .76rem; cursor: pointer; }
.bot-chip:hover { border-color: #16a34a; }
.bot-urg { font-size: .7rem; font-weight: 800; padding: 1px 8px; border-radius: 999px; }
.bot-urg-a { background: #fee2e2; color: #991b1b; } .bot-urg-m { background: #fef3c7; color: #92400e; } .bot-urg-b { background: #f1f5f9; color: #475569; }
.bot-aus { font-size: .72rem; background: #eff6ff; color: #1e3a8a; border-radius: 8px; padding: 2px 8px; }
.bot-val { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 6px; font-size: .74rem; color: #475569; }
.bot-val-ok { color: #166534; font-weight: 700; }
.bot-vals { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }
.bot-valf { border: 1px solid #e2e8f0; border-radius: 12px; padding: 10px; display: grid; gap: 6px; }
.bot-valf-h { display: flex; gap: 8px; align-items: center; justify-content: space-between; }

/* revisión humana de la respuesta propuesta por el bot */
.bot-prop { margin-top: 8px; border: 1px solid #bbf7d0; background: #f0fdf4; border-radius: 10px; padding: 8px; }
.bot-prop-h { font-size: 12px; font-weight: 700; color: #15803d; margin-bottom: 6px; }
.bot-prop .bot-ta { width: 100%; box-sizing: border-box; }
.bot-prop-b { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
