/* ============================================================
   IA · interruptores de la empresa (Shared/IaInterruptor.razor)
   ============================================================ */
.iasw-wrap { position: relative; }
.iasw-pill {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid #d7dce6; background: #fff; color: #334155;
  border-radius: 999px; padding: 5px 12px; font-size: .8rem; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.iasw-pill:hover { background: #f8fafc; }
.iasw-pill.off { border-color: #fecaca; background: #fef2f2; color: #991b1b; }
.iasw-pill.auto { border-color: #bbf7d0; background: #f0fdf4; color: #166534; }
.iasw-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; display: inline-block; }
.iasw-dot.on { background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.18); }
.iasw-dot.off { background: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,.16); }
.iasw-bg { position: fixed; inset: 0; z-index: 1299; }
.iasw-pop {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 1300;
  width: 330px; max-width: 92vw; background: #fff; color: #1e293b;
  border: 1px solid #e2e8f0; border-radius: 12px; box-shadow: 0 8px 28px rgba(0,0,0,.16); padding: 12px 14px;
}
.iasw-pop-h { font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.iasw-pop-foot { font-size: .74rem; color: #64748b; margin-top: 8px; }
.iasw-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid #f1f5f9; cursor: pointer; }
.iasw-row.dis { opacity: .55; cursor: default; }
.iasw-txt { display: flex; flex-direction: column; line-height: 1.25; }
.iasw-txt b { font-size: .85rem; }
.iasw-txt small { font-size: .74rem; color: #64748b; }
.iasw-err { font-size: .76rem; color: #b91c1c; margin-top: 4px; }

/* Interruptor tipo switch sobre un checkbox nativo (accesible con teclado). */
.iasw-sw {
  appearance: none; -webkit-appearance: none; flex: none;
  width: 40px; height: 22px; border-radius: 999px; background: #cbd5e1; position: relative; cursor: pointer; transition: background .15s;
}
.iasw-sw::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s;
}
.iasw-sw:checked { background: #22c55e; }
.iasw-sw:checked::after { transform: translateX(18px); }
.iasw-sw:disabled { cursor: default; }
.iasw-sw:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }

/* Variante lateral: barra oscura de Mensajería / GoBots, siempre visible. */
.iasw-lat { margin: .6rem .2rem .8rem; padding: .7rem .75rem .3rem; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.iasw-lat-h { display: flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; color: #fff; margin-bottom: 2px; }
.iasw-lat .iasw-row { border-top-color: rgba(255,255,255,.08); }
.iasw-lat .iasw-txt b { color: #e5e7eb; font-size: .8rem; }
.iasw-lat .iasw-txt small { color: #9ca3af; font-size: .7rem; }
.iasw-lat .iasw-sw { background: #4b5563; }
.iasw-lat .iasw-sw:checked { background: #22c55e; }
.iasw-lat .iasw-err { color: #fca5a5; }
