/* ══════════════════════════════════════════════════════════════════════════════
   CRM WhatsApp — TEMA CLARO (24/09/2026, pedido del dueño: "cambiale el fondo
   blanco, como este" — igual al chat de Tu taller IA).

   El tema oscuro sigue completo en css/crm-oscuro.css: para volver a él se cambia
   este <link> por aquél y listo. No se toca una línea del <style> de whatsapp.html,
   que YA es el tema claro de WhatsApp Web (lista blanca, conversación #efeae2 con
   el patrón, burbuja propia verde clarita).

   Entonces acá va SOLO lo que el archivo oscuro aportaba además de color: el menú
   ⋮ de administración, que no existe en el CSS de la página. Sin esto los 7
   botones de administración se desparraman en la barra.
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── ⋮ Menú de administración ── */
.adm-wrap { position: relative; display: flex; }
.adm-tog {
  background: rgba(255, 255, 255, .16); color: #fff; border: 1px solid rgba(255, 255, 255, .25);
  width: 34px; height: 34px; border-radius: 50%; font-size: 18px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: .15s; font-family: inherit;
}
.adm-tog:hover { background: rgba(255, 255, 255, .3); }
.adm-menu {
  display: none; position: absolute; top: 42px; right: 0; z-index: 120;
  background: #fff; border: 1px solid #e9edef; border-radius: 10px; padding: 6px;
  min-width: 232px; box-shadow: 0 10px 34px rgba(11, 20, 26, .22); flex-direction: column; gap: 2px;
}
.adm-menu.on { display: flex; }
/* Adentro del menú los botones dejan de ser pastillas y pasan a ser renglones */
.adm-menu .cfg-ia {
  background: transparent; border: none; border-radius: 7px; text-align: left;
  padding: 9px 12px; font-size: 13.5px; font-weight: 500; color: #111b21; width: 100%;
}
.adm-menu .cfg-ia:hover { background: #f0f2f5; }

/* ── Dos retoques para que se lea igual de bien que en Tu taller IA ── */
/* La sucursal del chat, en verde WhatsApp sobre blanco */
.chat-suc { color: #128C7E; }
/* La pantalla de "elegí un chat" sobre el mismo fondo de la conversación */
.empty { background-color: #efeae2; }

/* El damero del fondo se veía marcado: el mismo patrón pero más suave, como en
   WhatsApp Web (se nota la textura, no los cuadraditos). */
.conv-body {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill='%23000000' fill-opacity='0.015'%3E%3Cpath d='M0 0h20v20H0zM20 20h20v20H20z'/%3E%3C/g%3E%3C/svg%3E");
}

/* ══════ 🎨 EL COLOR DE CADA CHAT (24/09/2026) ══════
   Una barra a la izquierda, no la fila entera: con el fondo blanco, pintar todo
   convierte la lista en un arbolito. Un color por fila, el del estado más urgente. */
.chat-item { border-left: 4px solid transparent; }
.chat-item.est-espera { border-left-color: #F57C00; background: #FFF9F2; }
.chat-item.est-fria   { border-left-color: #E53935; background: #FFF6F5; }
.chat-item.est-tibia  { border-left-color: #EF9A9A; }
.chat-item.est-viva   { border-left-color: #1E88E5; }
.chat-item.est-taller { border-left-color: #7C3AED; }
/* El chat abierto y los no leídos siguen mandando sobre el color de fondo */
.chat-item.on { background: #f0f2f5; }

/* Las etiquetas de la fila */
.chat-est { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.ce { font-size: 10.5px; font-weight: 700; border-radius: 20px; padding: 2px 8px; white-space: nowrap; line-height: 1.5; }
.ce b { font-weight: 800; }
.ce-espera { background: #FFF3E0; color: #B45309; }
.ce-fria   { background: #FFEBEE; color: #B3261E; }
.ce-tibia  { background: #FDF0EE; color: #A3423A; }
.ce-vieja  { background: #F1EFE8; color: #5F5E5A; }
.ce-viva   { background: #E3F2FD; color: #0C447C; }
.ce-taller { background: #EDE7F6; color: #4527A0; }
.ce-debe   { background: #FCE4EC; color: #98304F; }
.ce-nuevo  { background: #E8F5E9; color: #2E6B12; }
.ce-otrasuc{ background: #EEF2FF; color: #3730A3; }

/* Los contadores de arriba, que además filtran */
.filt-estados { display: none; flex-wrap: wrap; gap: 5px; padding: 0 10px 8px; }
.filt-estados .fe {
  border: 1px solid transparent; border-radius: 20px; padding: 5px 10px; font-size: 11.5px;
  font-weight: 700; cursor: pointer; font-family: inherit; line-height: 1.4;
}
.filt-estados .fe b { font-weight: 900; margin-left: 2px; }
.filt-estados .fe-espera { background: #FFF3E0; color: #B45309; }
.filt-estados .fe-fria   { background: #FFEBEE; color: #B3261E; }
.filt-estados .fe-tibia  { background: #FDF0EE; color: #A3423A; }
.filt-estados .fe-viva   { background: #E3F2FD; color: #0C447C; }
.filt-estados .fe-taller { background: #EDE7F6; color: #4527A0; }
.filt-estados .fe-x      { background: #ECEFF1; color: #455A64; }
.filt-estados .fe.on { border-color: currentColor; box-shadow: 0 0 0 2px rgba(0, 0, 0, .06) inset; }


/* ══════ 🔔 AVISO DE MENSAJE NUEVO (24/09/2026) ══════
   Globos arriba a la derecha, 10 segundos, se tocan y abren el chat. */
.btn-noti { background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.25);
  width: 34px; height: 34px; border-radius: 50%; font-size: 16px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: .15s; font-family: inherit; }
.btn-noti:hover { background: rgba(255,255,255,.3); }
.btn-noti.off { opacity: .55; }

/* 🔔 26/09/2026: estaba en top:62px, o sea JUSTO encima de la barra de acciones del chat
   (Auto / IA fija / Humano / Consulta / Turno / Programar / Promo) y no se podía tocar ninguno.
   Va abajo a la derecha, como ya estaba en el celular, y crece hacia arriba. */
#notiWrap { position: fixed; top: auto; bottom: 150px; right: 16px; z-index: 900; display: flex;
  flex-direction: column-reverse; gap: 8px; width: 340px; max-width: calc(100vw - 32px); pointer-events: none; }
.noti { pointer-events: auto; position: relative; display: flex; gap: 10px; align-items: flex-start;
  background: #fff; border: 1px solid #d7dde0; border-left: 4px solid #25D366; border-radius: 0 12px 12px 0;
  box-shadow: 0 8px 26px rgba(11,20,26,.22); padding: 10px 12px 12px; cursor: pointer;
  animation: notiIn .22s ease-out; overflow: hidden; }
.noti:hover { background: #f7fbf8; }
.noti.fuera { opacity: 0; transform: translateX(14px); transition: .2s; }
@keyframes notiIn { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: none; } }
.noti .n-av { width: 38px; height: 38px; min-width: 38px; border-radius: 50%; color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; }
.noti .n-txt { flex: 1; min-width: 0; }
.noti .n-top { display: flex; gap: 8px; align-items: baseline; }
.noti .n-top b { font-size: 14px; color: #111b21; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.noti .n-top span { font-size: 10.5px; color: #667781; margin-left: auto; white-space: nowrap; }
.noti .n-prev { font-size: 12.5px; color: #3b4a54; line-height: 1.35; margin-top: 2px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.noti .n-est { display: inline-block; margin-top: 6px; }
.noti .n-x { position: absolute; top: 6px; right: 6px; background: none; border: 0; color: #8696a0;
  font-size: 13px; cursor: pointer; padding: 2px 5px; border-radius: 6px; font-family: inherit; }
.noti .n-x:hover { background: #eceff1; color: #37474f; }
.noti .n-barra { position: absolute; left: 0; bottom: 0; height: 3px; background: #25D366;
  width: 100%; transform-origin: left; animation: notiBarra 15s linear forwards; }
@keyframes notiBarra { to { transform: scaleX(0); } }
@media (max-width: 640px) { #notiWrap { top: auto; bottom: 88px; right: 10px; left: 10px; width: auto; } }


/* ↪️ Reenviar en TODAS las burbujas (24/09/2026). Discreto: se enciende al pasar por encima. */
.bubble .meta { position: relative; }
.b-fwd { background: none; border: 0; cursor: pointer; font-size: 12px; line-height: 1; padding: 1px 4px;
  margin-left: 6px; border-radius: 6px; opacity: .35; transition: .15s; font-family: inherit; }
.bubble:hover .b-fwd { opacity: .9; }
.b-fwd:hover { opacity: 1; background: rgba(11, 20, 26, .08); }
@media (hover: none) { .b-fwd { opacity: .75; } }
