/* WOW CRM theme. Lives on the server at /var/www/wow-brand/theme.css and is loaded
   through Chatwoot's DASHBOARD_SCRIPTS setting. Accent: logo celeste #00AEEF. */

@font-face{font-family:"Nunito";src:url("/wow-brand/nunito-latin.woff2") format("woff2");font-weight:400 800;font-style:normal;font-display:swap}
html,body,button,input,select,textarea{font-family:"Nunito",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif!important}

/* Celeste scale replacing Chatwoot's blue scale */
:root{--blue-1:249 254 255;--blue-2:241 250 254;--blue-3:225 245 254;--blue-4:208 238 252;--blue-5:187 229 249;--blue-6:160 217 244;--blue-7:121 200 237;--blue-8:72 190 240;--blue-9:0 174 239;--blue-10:0 158 222;--blue-11:0 116 170;--blue-12:12 60 86;--text-blue:3 32 46;--border-blue-strong:16 74 106;--solid-blue:208 238 252;--solid-blue-2:249 254 255;--border-blue:0, 174, 239, .5}
.dark{--blue-1:9 19 26;--blue-2:13 27 37;--blue-3:12 44 62;--blue-4:8 57 82;--blue-5:14 70 99;--blue-6:22 88 122;--blue-7:30 108 148;--blue-8:34 132 180;--blue-9:0 174 239;--blue-10:0 158 222;--blue-11:92 208 255;--blue-12:200 236 253;--text-blue:212 240 255;--border-blue-strong:187 229 249;--solid-blue:12 62 88;--solid-blue-2:26 29 35;--border-blue:0, 174, 239, .5}
.bg-n-brand{font-weight:700;letter-spacing:.01em}

/* Channel picker (Settings > Inboxes > Add): hide channels WOW does not offer.
   Cosmetic only; it applies to every account. */
div.grid>button:has(.i-woot-api),div.grid>button:has(.i-woot-telegram),div.grid>button:has(.i-woot-line){display:none!important}
/* ...unless WOW Admin enabled them for the account being viewed (wow.js sets data-wow-show). */
body[data-wow-show~="api"] div.grid>button:has(.i-woot-api),
body[data-wow-show~="telegram"] div.grid>button:has(.i-woot-telegram),
body[data-wow-show~="line"] div.grid>button:has(.i-woot-line){display:flex!important}

/* Sign-in and other auth screens: same dark glass look as the WOW dashboard,
   with celeste leading and the dashboard purple as the secondary glow. */
#app main.min-h-screen.py-20{
  background:
    radial-gradient(62rem 42rem at 16% 20%,rgba(0,174,239,.24),transparent 62%),
    radial-gradient(56rem 40rem at 86% 82%,rgba(110,63,208,.24),transparent 62%),
    #0b0c13!important;
  justify-content:center;padding-top:3rem!important;padding-bottom:3rem!important}
#app main.min-h-screen.py-20 img[src*="logo-light"]{display:none!important}
#app main.min-h-screen.py-20 img[src*="logo-dark"]{display:block!important;height:6.5rem!important}
#app main.min-h-screen.py-20 h2{color:#fff!important;font-size:1.3rem!important;line-height:1.3!important;font-weight:700!important;margin-top:1rem!important}
#app main.min-h-screen.py-20>section:first-of-type::after{content:"WhatsApp oficial y bandeja compartida para tu equipo";display:block;text-align:center;color:rgba(255,255,255,.58);font-size:.9rem;margin-top:.3rem}
#app main.min-h-screen.py-20>section.bg-white{
  background:rgba(19,21,31,.74)!important;border:1px solid rgba(255,255,255,.09);border-radius:20px!important;
  box-shadow:0 30px 80px rgba(0,0,0,.5)!important;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);
  max-width:26rem!important;width:100%;margin-left:auto;margin-right:auto;padding:2rem!important;margin-top:1.75rem!important;color:rgba(255,255,255,.8)}
#app main.min-h-screen.py-20 .text-n-slate-12{color:#fff!important}
#app main.min-h-screen.py-20 .text-n-slate-11,#app main.min-h-screen.py-20 .text-n-slate-10{color:rgba(255,255,255,.65)!important}
#app main.min-h-screen.py-20 label{color:rgba(255,255,255,.74)!important;font-weight:600!important}
#app main.min-h-screen.py-20 input{background:rgba(255,255,255,.06)!important;color:#fff!important;outline-color:rgba(255,255,255,.14)!important;border-radius:10px!important}
#app main.min-h-screen.py-20 input::placeholder{color:rgba(255,255,255,.34)!important}
#app main.min-h-screen.py-20 input:focus{outline-color:#00AEEF!important;box-shadow:0 0 0 3px rgba(0,174,239,.22)!important}
#app main.min-h-screen.py-20 button[type=submit]{background:linear-gradient(90deg,#00AEEF,#0A7FE0)!important;border-radius:10px!important;font-weight:700;box-shadow:0 10px 30px rgba(0,174,239,.32)}
#app main.min-h-screen.py-20 a{color:#5CD0FF!important}

/* Menu lateral: entradas que el plan de la cuenta no incluye (wow.js pone data-wow-show).
   Solo las hojas del arbol (.ms-3): el encabezado del grupo "Campañas" tambien enlaza a live_chat. */
#app .ms-3:has(> a[href$="/campaigns/sms"]),
#app .ms-3:has(> a[href$="/reports/sla"]),
body:not([data-wow-show~="f-website"]) #app .ms-3:has(> a[href$="/campaigns/live_chat"]),
body:not([data-wow-show~="f-bots"]) #app .ms-3:has(> a[href$="/reports/bot"]){display:none!important}

/* Selector de canal: SMS y llamadas de WhatsApp no se ofrecen (la segunda tarjeta con icono de WhatsApp es la de llamadas). */
div.grid>button:has(.i-woot-sms),
div.grid>button:has(.i-woot-whatsapp)~button:has(.i-woot-whatsapp){display:none!important}