:root {
  --wa-teal-dark: #075e54;
  --wa-header: #008069;
  --wa-header-icon: #fff;
  --wa-accent: #00a884;
  --wa-send: #00a884;
  --wa-outgoing: #d9fdd3;
  --wa-incoming: #fff;
  --wa-bg: #efeae2;
  --wa-composer-bg: #f0f2f5;
  --wa-panel: #f0f2f5;
  --wa-text: #111b21;
  --wa-muted: #667781;
  --wa-secondary: #54656f;
  --wa-border: #e9edef;
  --wa-tick: #53bdeb;
  --wa-encrypt: #ffeecd;
  --wa-encrypt-text: #54656f;
  --wa-danger: #ea0038;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
  --header-h: 60px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  font-family: var(--font);
  color: var(--wa-text);
  background: #fff;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
  position: fixed;
  inset: 0;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  border: 0;
  cursor: pointer;
  background: none;
  padding: 0;
}

.app {
  width: 100%;
  max-width: none;
  height: var(--vvh, 100dvh);
  margin: 0;
  background: #fff;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: none;
}

/* ========== ICONS ========== */
.icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
  display: block;
}

.icon.sm {
  width: 20px;
  height: 20px;
}

.icon.lg {
  width: 26px;
  height: 26px;
}

/* ========== LOGIN (arriba: usable con teclado) ========== */
.login-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fff;
  padding: calc(16px + var(--safe-top)) 20px calc(16px + var(--safe-bottom));
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.login-top {
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex-shrink: 0;
}

.login-brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.login-brand-row h1 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--wa-text);
  line-height: 1.2;
}

.login-brand-row p {
  margin: 4px 0 0;
  font-size: 0.88rem;
  color: var(--wa-muted);
  line-height: 1.3;
}

.login-ring {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d0f0e4, #a7e0cb 45%, #7dcfb6 100%);
  display: grid;
  place-items: center;
  position: relative;
  flex-shrink: 0;
}

.login-ring::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1px solid rgba(7, 94, 84, 0.08);
}

.login-ring svg {
  width: 28px;
  height: 28px;
  fill: var(--wa-header);
}

.login-label {
  display: block;
  font-size: 0.8rem;
  color: var(--wa-muted);
  margin-bottom: 2px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fff;
}

.login-field {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1.5px solid #d1d7db;
  border-radius: 12px;
  padding: 12px 14px;
  background: #f0f2f5;
}

.login-field:focus-within {
  border-color: var(--wa-accent);
  background: #fff;
}

.login-field .icon {
  color: var(--wa-muted);
  flex-shrink: 0;
}

.login-field input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 16px;
  padding: 2px 0;
  min-width: 0;
}

.login-field input::placeholder {
  color: #8696a0;
}

.btn-wa {
  width: 100%;
  background: var(--wa-accent);
  color: #fff;
  border-radius: 24px;
  padding: 15px 16px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  min-height: 52px;
}

.btn-wa:active {
  background: #008f72;
}

.btn-wa:disabled {
  opacity: 0.55;
}

.error-text {
  color: var(--wa-danger);
  font-size: 0.82rem;
  min-height: 1.1em;
  margin: 0;
  text-align: left;
}

.login-legal {
  margin: 12px 0 0;
  text-align: center;
  font-size: 0.72rem;
  color: var(--wa-muted);
  line-height: 1.35;
}

/* Compat: ya no usamos keyboard-open grande */
.login-screen.keyboard-open .login-legal {
  display: none;
}

.login-art {
  display: none;
}

/* ========== CHAT ========== */
.chat-screen {
  flex: 1 1 auto;
  display: none;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  background: var(--wa-bg);
}

.chat-screen.active {
  display: flex;
}

.chat-header {
  background: var(--wa-header);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: calc(6px + var(--safe-top)) 2px 6px 8px;
  min-height: calc(56px + var(--safe-top));
  flex-shrink: 0;
  z-index: 3;
}

.header-back {
  width: 40px;
  height: 48px;
  display: none;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #dfe5e7;
  color: #54656f;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 1rem;
  flex-shrink: 0;
  overflow: hidden;
  user-select: none;
}

.avatar.photo {
  background: #25d366;
  color: #fff;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-meta {
  flex: 1;
  min-width: 0;
  padding: 0 6px;
  cursor: default;
}

.header-meta h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.header-meta .status {
  margin: 1px 0 0;
  font-size: 0.78rem;
  opacity: 0.95;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.header-pill {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.header-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8696a0;
  flex-shrink: 0;
}

.header-pill.camila-pill.on {
  border-color: rgba(37, 211, 102, 0.55);
  background: rgba(37, 211, 102, 0.16);
}

.header-pill.camila-pill.on .header-pill-dot {
  background: #25d366;
  box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.25);
}

.header-pill.camila-pill.off {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.72);
}

.header-pill.ficha-pill {
  border-color: rgba(255, 255, 255, 0.22);
}

.header-pill.ficha-pill.active {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.18);
}

body.admin-ar .header-pill.ficha-pill.active {
  border-color: rgba(167, 139, 250, 0.65);
  background: rgba(124, 58, 237, 0.28);
}

body.admin-uyn, body.admin-cln .header-pill.ficha-pill.active {
  border-color: rgba(45, 212, 191, 0.55);
  background: rgba(15, 118, 110, 0.32);
}

@media (max-width: 520px) {
  .header-pill {
    padding: 6px 8px;
    font-size: 0.66rem;
  }

  .header-pill.ficha-pill svg {
    display: none;
  }
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--wa-header-icon);
  display: grid;
  place-items: center;
}

.icon-btn:active {
  background: rgba(255, 255, 255, 0.12);
}

.icon-btn.muted {
  color: var(--wa-secondary);
}

.icon-btn.muted:active {
  background: rgba(11, 20, 26, 0.06);
}

/* Wallpaper WhatsApp */
.messages {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 8px 8px 6px;
  position: relative;
  z-index: 0;
  background-color: #e5ddd5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260' viewBox='0 0 260 260'%3E%3Cg fill='%23c9bfb3' fill-opacity='0.35'%3E%3Cpath d='M30 40c6 0 10-5 10-10S36 20 30 20s-10 5-10 10 4 10 10 10zm40 30c4 0 7-3 7-7s-3-7-7-7-7 3-7 7 3 7 7 7zm90-18c5 0 9-4 9-9s-4-9-9-9-9 4-9 9 4 9 9 9zM70 160c6 0 11-5 11-11s-5-11-11-11-11 5-11 11 5 11 11 11zm120 20c4 0 8-4 8-8s-4-8-8-8-8 4-8 8 4 8 8 8zM180 70c3 0 6-3 6-6s-3-6-6-6-6 3-6 6 3 6 6 6zM50 210c5 0 9-4 9-9s-4-9-9-9-9 4-9 9 4 9 9 9zm150-90c7 0 12-5 12-12s-5-12-12-12-12 5-12 12 5 12 12 12z'/%3E%3Cpath d='M100 40l8 14h-16l8-14zm80 120l10 16h-20l10-16zM40 120l6 10H34l6-10zm140 60l7 12h-14l7-12z'/%3E%3Cpath d='M120 200c0 8 6 14 14 14s14-6 14-14-6-14-14-14-14 6-14 14zm-70-50c0 6 4 10 10 10s10-4 10-10-4-10-10-10-10 4-10 10z'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 260px 260px;
}

.day-chip {
  width: fit-content;
  margin: 6px auto 10px;
  background: #fff;
  color: var(--wa-secondary);
  font-size: 12.5px;
  font-weight: 500;
  padding: 5px 12px 6px;
  border-radius: 7.5px;
  box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.encrypt-banner {
  width: fit-content;
  max-width: 92%;
  margin: 4px auto 12px;
  background: var(--wa-encrypt);
  color: var(--wa-encrypt-text);
  font-size: 12.5px;
  line-height: 1.35;
  text-align: center;
  padding: 8px 12px;
  border-radius: 7.5px;
  box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13);
}

.encrypt-banner .lock {
  display: inline-block;
  vertical-align: -2px;
  margin-right: 4px;
}

.bubble-row {
  display: flex;
  margin-bottom: 2px;
  padding: 0 6px;
}

.bubble-row + .bubble-row.out,
.bubble-row + .bubble-row.in {
  margin-top: 2px;
}

.bubble-row.group-start {
  margin-top: 10px;
}

.bubble-row.out {
  justify-content: flex-end;
}

.bubble-row.in {
  justify-content: flex-start;
}

.bubble-row.system {
  justify-content: center;
  padding: 4px 10px;
}

.bubble {
  position: relative;
  max-width: min(85%, 320px);
  padding: 6px 7px 4px 9px;
  border-radius: 7.5px;
  box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13);
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.bubble.in {
  background: var(--wa-incoming);
  border-top-left-radius: 0;
}

.bubble.out {
  background: var(--wa-outgoing);
  border-top-right-radius: 0;
}

.bubble.system {
  background: #ffe9a8;
  color: #54656f;
  font-size: 12.5px;
  text-align: center;
  max-width: 92%;
  padding: 6px 12px;
  box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13);
}

/* Cola de burbuja WhatsApp */
.bubble.in.tail::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 0;
  width: 8px;
  height: 13px;
  background: var(--wa-incoming);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  filter: drop-shadow(-0.5px 1px 0 rgba(11, 20, 26, 0.06));
}

.bubble.out.tail::before {
  content: "";
  position: absolute;
  right: -8px;
  top: 0;
  width: 8px;
  height: 13px;
  background: var(--wa-outgoing);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  filter: drop-shadow(0.5px 1px 0 rgba(11, 20, 26, 0.06));
}

.bubble .text strong {
  font-weight: 700;
}

.bubble .text {
  white-space: normal;
  overflow-wrap: anywhere;
}

.bubble .text a.msg-link {
  color: #027eb5;
  text-decoration: underline;
  word-break: break-word;
}

.bubble .text a.msg-wa {
  color: #027eb5;
  text-decoration: underline;
  word-break: normal;
}

.bubble-photo {
  display: block;
  width: min(220px, 70vw);
  max-height: 280px;
  object-fit: cover;
  border-radius: 8px;
  margin: 0 0 4px;
  cursor: pointer;
}

.bubble-file {
  display: inline-block;
  margin: 0 0 6px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.06);
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  word-break: break-all;
}

.bubble.out .text a.msg-link {
  color: #027eb5;
}

.bubble .meta {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  float: right;
  margin: 4px 0 0 12px;
  position: relative;
  top: 2px;
}

.bubble .time {
  font-size: 11px;
  color: var(--wa-muted);
  line-height: 1;
}

.bubble .ticks {
  display: inline-flex;
  color: #8696a0; /* gris = enviado / no leído */
  line-height: 0;
}

.bubble .ticks.read {
  color: var(--wa-tick); /* azul = leído */
}

.bubble .ticks svg {
  width: 16px;
  height: 11px;
  fill: currentColor;
}

.bubble-row.is-failed .bubble {
  opacity: 0.78;
}

.bubble-row.is-voided-carga .bubble.voided {
  opacity: 0.72;
  border: 1px dashed rgba(234, 0, 56, 0.35);
}

.void-carga-badge {
  margin-top: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #c62828;
}

.admin-app .btn-void-carga {
  display: block;
  margin-top: 8px;
  padding: 4px 8px;
  border: 1px solid rgba(234, 0, 56, 0.35);
  border-radius: 6px;
  background: rgba(234, 0, 56, 0.06);
  color: #c62828;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.admin-app .btn-void-carga:hover {
  background: rgba(234, 0, 56, 0.12);
}

.bubble .edited {
  font-size: 10px;
  color: var(--wa-muted);
  font-style: italic;
  margin-right: 2px;
}

.admin-app .bubble.out {
  position: relative;
}

.admin-app .btn-edit-msg {
  position: absolute;
  top: 4px;
  right: 4px;
  border: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  color: #54656f;
  font-size: 12px;
  line-height: 22px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.admin-app .bubble.out:hover .btn-edit-msg,
.admin-app .bubble.out.is-editing .btn-edit-msg {
  opacity: 1;
}

.admin-app .msg-edit-box {
  margin-top: 4px;
}

.admin-app .msg-edit-input {
  width: 100%;
  min-width: 200px;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(0, 168, 132, 0.35);
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  font-size: 14px;
  line-height: 1.35;
  resize: vertical;
  background: #fff;
  color: #111b21;
}

.admin-app .msg-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}

.admin-app .msg-edit-cancel,
.admin-app .msg-edit-save {
  border: 0;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.admin-app .msg-edit-cancel {
  background: rgba(0, 0, 0, 0.06);
  color: #54656f;
}

.admin-app .msg-edit-save {
  background: var(--wa-accent, #00a884);
  color: #fff;
}

.admin-app .msg-edit-save:disabled {
  opacity: 0.6;
  cursor: wait;
}

.retry-send {
  margin-left: 4px;
  border: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ea0038;
  color: #fff;
  font-weight: 800;
  font-size: 0.75rem;
  line-height: 18px;
  cursor: pointer;
}

.typing-indicator {
  display: none;
  align-items: center;
  gap: 4px;
  background: #fff;
  width: fit-content;
  padding: 12px 16px;
  border-radius: 7.5px;
  border-top-left-radius: 0;
  box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13);
  margin: 8px 14px;
  position: relative;
}

.typing-indicator.show {
  display: inline-flex;
}

.typing-indicator::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 0;
  width: 8px;
  height: 13px;
  background: #fff;
  clip-path: polygon(100% 0, 0 0, 100% 100%);
}

.typing-indicator span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #90a4ae;
  animation: bounce 1.2s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.15s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes bounce {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.45;
  }
  40% {
    transform: translateY(-3px);
    opacity: 1;
  }
}

.wa-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 10px 8px;
  padding: 11px 16px;
  border-radius: 24px;
  background: #25d366;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  flex-shrink: 0;
  z-index: 4;
}

.wa-cta.hidden {
  display: none !important;
}

.wa-cta:active {
  filter: brightness(0.95);
}

/* ========== PUSH BANNER + TABS (estilo widget Ganamos) ========== */
.push-banner {
  position: relative;
  margin: 8px 10px 0;
  padding: 12px 28px 12px 12px;
  background: #e7f7ef;
  border: 1px solid #b7e0c8;
  border-radius: 10px;
  flex-shrink: 0;
  z-index: 2;
}

.push-banner[hidden] {
  display: none !important;
}

.push-banner p {
  margin: 0 0 10px;
  font-size: 0.82rem;
  line-height: 1.35;
  color: #1a3d2e;
}

.push-banner-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 10px 12px;
  background: #006b4f;
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
}

.push-banner-btn:active {
  filter: brightness(0.95);
}

.push-banner-close {
  position: absolute;
  top: 4px;
  right: 6px;
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: #4a6b5c;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.chat-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 10px 10px 6px;
  background: transparent;
  flex-shrink: 0;
  z-index: 2;
}

.chat-tab {
  border: 1.5px solid #1f2c34;
  background: #fff;
  color: #111b21;
  border-radius: 10px;
  padding: 10px 6px;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.chat-tab.active {
  background: #25d366;
  border-color: #25d366;
  color: #063b1d;
}

.chat-tab:active {
  transform: scale(0.98);
}

.tab-panel {
  margin: 0 10px 8px;
  padding: 14px 12px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 12px;
  flex-shrink: 0;
  z-index: 2;
}

.tab-panel[hidden] {
  display: none !important;
}

.tab-panel h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: #111b21;
}

.tab-panel p {
  margin: 0 0 12px;
  font-size: 0.85rem;
  color: #54656f;
  line-height: 1.35;
}

.money-form {
  display: grid;
  gap: 8px;
}

.money-form input {
  border: 1px solid #d1d7db;
  border-radius: 10px;
  padding: 12px 12px;
  font-size: 16px;
  outline: none;
}

.money-form input:focus {
  border-color: #008069;
}

.chat-screen .messages {
  flex: 1;
  min-height: 0;
}

.chat-screen.tab-cargar .messages,
.chat-screen.tab-retirar .messages,
.chat-screen.tab-cargar .composer,
.chat-screen.tab-retirar .composer,
.chat-screen.tab-cargar .wa-cta,
.chat-screen.tab-retirar .wa-cta {
  display: none;
}

.chat-screen.tab-cargar .chat-tabs,
.chat-screen.tab-retirar .chat-tabs {
  order: 2;
}

/* ========== COMPOSER (proporción WhatsApp móvil) ========== */
.composer {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding: 4px 4px 4px 2px;
  padding-bottom: calc(4px + var(--safe-bottom));
  background: var(--wa-composer-bg);
  flex-shrink: 0;
  z-index: 3;
  width: 100%;
}

/* Con teclado abierto: sin safe-area extra (el teclado ya ocupa abajo) */
.chat-screen.keyboard-open .composer {
  padding-bottom: 4px;
}

.chat-screen.keyboard-open .push-banner,
.chat-screen.keyboard-open .chat-tabs {
  display: none !important;
}

.composer-box {
  flex: 1;
  display: flex;
  align-items: flex-end;
  background: #fff;
  border-radius: 24px;
  min-height: 40px;
  max-height: 120px;
  padding: 4px 8px 4px 2px;
  box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.08);
  min-width: 0;
}

.file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.composer-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--wa-secondary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  cursor: pointer;
}

.composer-icon.plus-btn,
.composer-icon.cam-btn {
  color: var(--wa-secondary);
}

.composer-icon:active {
  background: rgba(11, 20, 26, 0.05);
}

.composer.has-text .cam-btn {
  display: none;
}

.composer-box textarea {
  flex: 1;
  border: 0;
  outline: none;
  resize: none;
  max-height: 100px;
  min-height: 22px;
  line-height: 1.35;
  font-size: 16px;
  background: transparent;
  padding: 8px 4px;
  color: var(--wa-text);
  min-width: 0;
}

.composer-box textarea::placeholder {
  color: #8696a0;
}

.send-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--wa-send);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 0.08s ease;
  margin-bottom: 0;
}

.send-btn:active {
  transform: scale(0.94);
}

.send-btn .icon-send {
  display: block;
}

.send-btn .icon-mic {
  display: none;
}

body.embed-chat .app {
  max-width: none;
  height: 100dvh;
  min-height: 100dvh;
  border-radius: 0;
  box-shadow: none;
}

body.embed-chat .login-screen,
body.embed-chat .chat-screen {
  min-height: 100dvh;
}

/* ========== ADMIN ========== */
.admin-app {
  max-width: none;
  width: 100%;
  background: var(--wa-panel);
}

.admin-login {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #fff;
  padding: calc(28px + var(--safe-top)) 28px calc(28px + var(--safe-bottom));
}

.admin-shell {
  display: none;
  flex: 1;
  min-height: 0;
  background: #fff;
}

.admin-shell.active {
  display: flex;
}

.sidebar {
  width: 100%;
  max-width: 100%;
  background: #fff;
  display: flex;
  flex-direction: row;
  border-right: 1px solid var(--wa-border);
  min-height: 0;
}

.admin-rail {
  width: 58px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  padding: calc(8px + var(--safe-top)) 6px 8px;
  background: #0b141a;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

body.admin-uyn, body.admin-cln .admin-rail {
  background: #042f2e;
}

body.admin-ar .admin-rail {
  background: #0c0716;
}

.rail-btn {
  position: relative;
  border: 0;
  border-radius: 12px;
  padding: 8px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  transition: background 0.15s ease, color 0.15s ease;
}

.rail-btn svg {
  width: 22px;
  height: 22px;
}

.rail-btn span {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-align: center;
}

.rail-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.rail-btn.active {
  background: rgba(0, 168, 132, 0.22);
  color: #fff;
}

.rail-btn.on {
  background: rgba(0, 168, 132, 0.28);
  color: #fff;
}

.rail-btn.off {
  background: rgba(134, 150, 160, 0.25);
  color: rgba(255, 255, 255, 0.72);
}

body.admin-uyn, body.admin-cln .rail-btn.active,
body.admin-uyn, body.admin-cln .rail-btn.on {
  background: rgba(15, 118, 110, 0.45);
}

body.admin-ar .rail-btn.active,
body.admin-ar .rail-btn.on {
  background: rgba(124, 58, 237, 0.35);
}

.rail-spacer {
  flex: 1;
  min-height: 8px;
}

.rail-btn.active {
  position: relative;
}

.rail-btn.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #00a884;
}

body.admin-ar .rail-btn.active::before {
  background: #a78bfa;
}

body.admin-uyn, body.admin-cln .rail-btn.active::before {
  background: #2dd4bf;
}

.sidebar-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.sidebar-header {
  background: var(--wa-header);
  color: #fff;
  padding: calc(12px + var(--safe-top)) 16px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: calc(60px + var(--safe-top));
}

.sidebar-brand {
  min-width: 0;
}

.sidebar-header h1 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.2;
}

.sidebar-brand .admin-market {
  margin: 2px 0 0;
  padding: 0;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  background: none;
  border: 0;
}

.sidebar-header .count {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 600;
  opacity: 0.9;
  white-space: nowrap;
}

.admin-market {
  margin: 0;
  padding: 8px 16px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #54656f;
  background: #f0f2f5;
  border-bottom: 1px solid var(--wa-border);
}

body.admin-ar .admin-login {
  background: #12081f;
  color: #fff;
}

body.admin-ar .admin-login h1,
body.admin-ar .admin-login p {
  color: #fff;
}

body.admin-ar .admin-login p {
  color: rgba(255, 255, 255, 0.7);
}

body.admin-ar .btn-wa {
  background: #7c3aed;
}

body.admin-ar .sidebar-header,
body.admin-ar .chat-header {
  background: #160c28;
}

body.admin-ar .admin-market {
  background: #2a1848;
  color: #ddd6fe;
  border-bottom-color: rgba(168, 85, 247, 0.35);
}

body.admin-ar .admin-tool-btn.primary {
  background: #7c3aed;
}

body.admin-ar .login-field {
  background: #0c0716;
  border-color: rgba(168, 85, 247, 0.4);
}

body.admin-ar .login-field input,
body.admin-ar .login-field .icon {
  color: #fff;
}

body.admin-uyn, body.admin-cln .admin-login {
  background: #072523;
  color: #fff;
}

body.admin-uyn, body.admin-cln .admin-login h1,
body.admin-uyn, body.admin-cln .admin-login p {
  color: #fff;
}

body.admin-uyn, body.admin-cln .admin-login p {
  color: rgba(255, 255, 255, 0.7);
}

body.admin-uyn, body.admin-cln .btn-wa {
  background: #0f766e;
}

body.admin-uyn, body.admin-cln .sidebar-header,
body.admin-uyn, body.admin-cln .chat-header {
  background: #115e59;
}

body.admin-uyn, body.admin-cln .admin-market {
  background: #134e4a;
  color: #ccfbf1;
  border-bottom-color: rgba(45, 212, 191, 0.35);
}

body.admin-uyn, body.admin-cln .admin-tool-btn.primary {
  background: #0f766e;
}

body.admin-uyn, body.admin-cln .login-field {
  background: #042f2e;
  border-color: rgba(45, 212, 191, 0.4);
}

body.admin-uyn, body.admin-cln .login-field input,
body.admin-uyn, body.admin-cln .login-field .icon {
  color: #fff;
}

.tenant-tabs {
  display: none;
}

.tenant-tab {
  position: relative;
  border: 0;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  background: #f0f2f5;
  color: #54656f;
}

.tenant-tab.active {
  background: #008069;
  color: #fff;
}

.tenant-tab .tenant-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  font-size: 0.65rem;
  line-height: 16px;
  font-weight: 700;
}

.auto-toggle {
  border: 0;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  background: #54656f;
  color: #fff;
}

.auto-toggle.on {
  background: #00a884;
}

.auto-toggle.off {
  background: #8696a0;
}

.admin-drawer {
  position: fixed;
  inset: 0;
  z-index: 120;
  pointer-events: none;
  visibility: hidden;
}

.admin-drawer.open {
  pointer-events: auto;
  visibility: visible;
}

.admin-drawer-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(11, 20, 26, 0.45);
  opacity: 0;
  transition: opacity 0.2s ease;
  cursor: pointer;
}

.admin-drawer.open .admin-drawer-backdrop {
  opacity: 1;
}

.admin-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100%);
  background: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 32px rgba(11, 20, 26, 0.18);
  transform: translateX(100%);
  transition: transform 0.24s ease;
}

.admin-drawer.open .admin-drawer-panel {
  transform: translateX(0);
}

.admin-drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: calc(14px + var(--safe-top)) 16px 12px;
  background: var(--wa-header);
  color: #fff;
}

body.admin-ar .admin-drawer-head {
  background: #160c28;
}

body.admin-uyn, body.admin-cln .admin-drawer-head {
  background: #115e59;
}

.admin-drawer-head h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.admin-drawer-head p {
  margin: 4px 0 0;
  font-size: 0.78rem;
  opacity: 0.85;
}

.admin-drawer-close {
  border: 0;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.admin-drawer-meta {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: #008069;
}

body.admin-ar .admin-drawer-meta {
  color: #7c3aed;
}

body.admin-uyn, body.admin-cln .admin-drawer-meta {
  color: #0f766e;
}

.admin-drawer-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.admin-drawer-pane {
  display: none;
  padding: 14px 16px calc(20px + var(--safe-bottom));
  gap: 10px;
}

.admin-drawer-pane.open {
  display: grid;
}

.admin-drawer-help {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: #667781;
}

.admin-field {
  display: grid;
  gap: 6px;
}

.admin-field > span {
  font-size: 0.72rem;
  font-weight: 700;
  color: #54656f;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-field > em {
  font-style: normal;
  font-size: 0.68rem;
  color: #8696a0;
  text-align: right;
}

.admin-field-check {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  cursor: pointer;
}

.admin-field-check input {
  margin-top: 2px;
}

.admin-field-check > span {
  text-transform: none;
  font-weight: 600;
  line-height: 1.35;
}

.push-special-fields {
  display: grid;
  gap: 10px;
  padding: 10px 0 4px;
  border-top: 1px dashed #d1d7db;
}

.push-special-active {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  margin: 4px 0 8px;
  border-radius: 10px;
  background: #fff8e6;
  border: 1px solid #f0d48a;
}

.push-special-active .admin-drawer-meta {
  margin: 0;
  color: #7a5b00;
}

.admin-deploy-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 10px 14px;
  background: #fdecea;
  color: #b3261e;
  font-size: 0.82rem;
  line-height: 1.35;
  border-bottom: 1px solid #f5c2c0;
  text-align: center;
}

.admin-shell:has(.admin-deploy-banner:not(.hidden)) {
  padding-top: 44px;
}

.composer-status {
  margin: 0;
  padding: 4px 12px 0;
  font-size: 0.78rem;
  color: #667781;
  text-align: center;
}

.composer-status.is-error {
  color: #ea4335;
}

.admin-drawer-pane input,
.admin-drawer-pane textarea {
  border: 1px solid #d1d7db;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.9rem;
  outline: none;
  background: #fff;
  font-family: inherit;
  line-height: 1.35;
  width: 100%;
}

.admin-drawer-pane textarea {
  resize: vertical;
  min-height: 120px;
}

.admin-drawer-pane input:focus,
.admin-drawer-pane textarea:focus {
  border-color: #008069;
}

.admin-drawer-pane .admin-tool-btn {
  width: 100%;
  padding: 12px;
  font-size: 0.9rem;
}

.sidebar-search {
  padding: 8px 12px;
  background: #fff;
  border-bottom: 1px solid var(--wa-border);
}

.sidebar-search .search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--wa-panel);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--wa-muted);
}

.admin-filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  padding: 8px 12px 6px;
  background: #fff;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.admin-filters::-webkit-scrollbar {
  display: none;
}

.admin-filters-secondary {
  padding-top: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--wa-border);
}

.admin-filters-secondary .admin-filter {
  font-size: 0.68rem;
  padding: 4px 9px;
  opacity: 0.92;
}

.admin-filter.meta-filter-btn {
  background: #ede9fe;
  color: #5b21b6;
  border: 1px solid rgba(124, 58, 237, 0.35);
  font-weight: 800;
}

.admin-filter.meta-filter-btn.active {
  background: #7c3aed;
  color: #fff;
  border-color: #6d28d9;
}

body.admin-uyn, body.admin-cln .admin-filter.meta-filter-btn.active {
  background: #7c3aed;
  border-color: #6d28d9;
}

.admin-filter.meta-filter-btn.has-items {
  animation: metaFilterPulse 2s ease-in-out infinite;
}

.admin-filter.receipt-filter-btn.has-items {
  animation: receiptFilterPulse 1.6s ease-in-out infinite;
}

@keyframes metaFilterPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.35); }
  50% { box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15); }
}

@keyframes receiptFilterPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.45); }
  50% { box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.18); }
}

.rail-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ea580c;
  color: #fff;
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  pointer-events: none;
}

.rail-btn.rail-receipts.has-items {
  color: #c2410c;
}

.rail-btn.rail-receipts.has-items.active,
.rail-btn.rail-receipts.has-items.on {
  background: #fff7ed;
}

.receipt-queue-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  width: calc(100% - 16px);
  margin: 0 8px 6px;
  padding: 10px 12px;
  border: 1px solid #fdba74;
  border-radius: 12px;
  background: linear-gradient(90deg, #fff7ed, #ffedd5);
  color: #9a3412;
  font: inherit;
  text-align: left;
  cursor: pointer;
  flex-shrink: 0;
}

.receipt-queue-banner:hover {
  background: #ffedd5;
}

.receipt-queue-banner .rqb-icon {
  font-size: 1.1rem;
}

.receipt-queue-banner .rqb-copy {
  flex: 1;
  font-size: 0.82rem;
  line-height: 1.25;
}

.receipt-queue-banner .rqb-action {
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.receipt-queue-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: min(62vh, 520px);
  overflow-y: auto;
  margin-bottom: 12px;
}

.receipt-queue-item {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 10px;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.receipt-queue-item:hover {
  background: #fff7ed;
  border-color: #fb923c;
}

.receipt-queue-item.needs-review {
  border-color: #fbbf24;
  background: #fffbeb;
}

.receipt-queue-thumb {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.receipt-queue-thumb img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.receipt-queue-main strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 2px;
}

.receipt-queue-main span {
  display: block;
  font-size: 0.78rem;
  color: #6b7280;
}

.receipt-queue-amt {
  font-size: 0.95rem;
  font-weight: 700;
  color: #c2410c;
  white-space: nowrap;
}

.receipt-queue-empty {
  padding: 16px 8px;
  color: #6b7280;
  font-size: 0.88rem;
  text-align: center;
}

.bubble-row.msg-highlight .bubble {
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.55);
  animation: receiptMsgPulse 1.8s ease-out;
}

@keyframes receiptMsgPulse {
  0% { box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.65); }
  100% { box-shadow: 0 0 0 10px rgba(234, 88, 12, 0); }
}

.admin-filter span {
  font-variant-numeric: tabular-nums;
}

.admin-filter {
  border: 1px solid #d1d7db;
  background: #f0f2f5;
  color: #111b21;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.admin-filter.active {
  background: #008069;
  border-color: #008069;
  color: #fff;
}

body.admin-ar .admin-filter.active {
  background: #7c3aed;
  border-color: #7c3aed;
}

body.admin-uyn, body.admin-cln .admin-filter.active {
  background: #0f766e;
  border-color: #0f766e;
}

.conv-item.needs-carga {
  background: #fff7ed;
}

.conv-item.needs-retiro {
  background: #eff6ff;
}

.conv-item.from-meta {
  background: #f5f3ff;
  border-left: 3px solid #7c3aed;
}

.conv-item.from-meta-new {
  background: #ede9fe;
  box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.18);
}

.sidebar-search input {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 10px 0;
  outline: none;
  font-size: 0.95rem;
}

.conv-list {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.conv-item {
  position: relative;
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 12px 14px 12px 16px;
  border: 0;
  border-bottom: 1px solid var(--wa-border);
  cursor: pointer;
  width: 100%;
  text-align: left;
  color: inherit;
  background: #fff;
  transition: background 0.12s ease;
}

.conv-item:active,
.conv-item.active {
  background: #f0f2f5;
}

.conv-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #008069;
}

body.admin-ar .conv-item.active::before {
  background: #7c3aed;
}

body.admin-uyn, body.admin-cln .conv-item.active::before {
  background: #0f766e;
}

.conv-item.has-unread .conv-preview {
  color: #111b21;
  font-weight: 600;
}

.conv-item.has-unread .conv-top strong {
  font-weight: 600;
}

.conv-empty {
  padding: 28px 20px;
  color: var(--wa-muted);
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 0;
}

.list-truncated-note {
  margin: 0;
  padding: 8px 12px 6px;
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--wa-muted);
  background: rgba(255, 193, 7, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.conv-body {
  flex: 1;
  min-width: 0;
  padding-right: 2px;
}

.conv-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}

.conv-top strong {
  font-size: 1.02rem;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conv-top time {
  font-size: 0.75rem;
  color: var(--wa-muted);
  flex-shrink: 0;
  padding-top: 3px;
}

.conv-end {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}

.conv-top time.unread {
  color: var(--wa-accent);
  font-weight: 600;
}

.conv-gift {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 1px 6px;
  line-height: 1.35;
  white-space: nowrap;
}

.conv-gift.done {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.conv-gift.half {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
}

.conv-gift.todo {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}

.conv-gift.none {
  background: #eef2ff;
  color: #4338ca;
  border: 1px dashed #a5b4fc;
}

.badge.wait-pip {
  min-width: 10px;
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
}

.conv-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 2px 0 3px;
}

.conv-tag {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 2px 7px;
  background: #e9edef;
  color: #54656f;
}

.conv-tag.warn {
  background: #fff7ed;
  color: #9a3412;
}

.conv-tag.meta,
.conv-tag.meta-new {
  background: #ede9fe;
  color: #5b21b6;
}

.conv-tag.meta-new {
  background: #7c3aed;
  color: #fff;
}

.source-tag.meta-source {
  background: #ede9fe;
  color: #5b21b6;
  border: 1px solid rgba(124, 58, 237, 0.35);
}

.source-tag.meta-source-new {
  background: #7c3aed;
  color: #fff;
  border-color: #6d28d9;
}

.conv-bottom {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.conv-preview {
  font-size: 0.88rem;
  color: var(--wa-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.badge {
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  background: var(--wa-accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  padding: 0 6px;
}

.online-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #b0b0b0;
  position: absolute;
  right: 0;
  bottom: 0;
  border: 2px solid #fff;
}

.online-dot.on {
  background: #25d366;
}

.avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.chat-pane {
  display: none;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: var(--wa-bg);
}

.chat-pane.open {
  display: flex;
}

.admin-tools {
  flex-shrink: 0;
  padding: 10px 12px 8px;
  background: #f0f2f5;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-tools-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.admin-tools-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-tools-bar .admin-tools-toggle {
  flex: 1;
  min-width: 0;
}

.admin-tools-bar .admin-tool-btn {
  flex-shrink: 0;
  background: #008069;
  color: #fff;
}

.admin-tools-toggle {
  display: flex;
  width: 100%;
  border: 0;
  background: #fff;
  color: #111b21;
  padding: 10px 12px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  border-radius: 12px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
  text-align: left;
}

.admin-tools-peek {
  min-width: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: #111b21;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-tools-toggle-hint {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #008069;
}

.admin-tools-toggle.has-pending {
  background: #fff7ed;
}

.admin-tools-toggle.has-pending .admin-tools-toggle-hint {
  color: #9a3412;
}

.admin-tools.is-open .admin-tools-toggle-hint svg {
  transform: rotate(180deg);
}

.admin-ficha {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-ficha-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.admin-ficha-main strong {
  font-size: 0.92rem;
  color: #111b21;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-ficha-main strong.is-empty {
  color: #8696a0;
  font-weight: 600;
}

.admin-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.admin-ficha-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.admin-phone {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #fff;
  border: 1px solid #d1d7db;
  border-radius: 10px;
  padding: 2px 2px 2px 8px;
}

.admin-phone input,
.admin-phone input.admin-phone-input,
.admin-phone input#phoneInput {
  width: 118px;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 6px 4px;
  font-size: 0.8rem;
  color: #111b21;
  outline: none;
}

.admin-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.admin-card {
  background: #fff;
  border: 1px solid #e4e7ea;
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.admin-card h4 {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #667781;
}

.admin-card-note {
  margin: -2px 0 0;
  font-size: 0.72rem;
  color: #667781;
  line-height: 1.35;
  word-break: break-word;
}

.admin-card-note:empty {
  display: none;
}

#blockCarga h4 {
  color: #0f766e;
}

#blockRetiro h4 {
  color: #1d4ed8;
}

#blockRegalo h4 {
  color: #c2410c;
}

.admin-card-fields {
  display: flex;
  gap: 6px;
}

.admin-card-fields input {
  width: 100%;
  min-width: 0;
  border: 1px solid #d1d7db;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.82rem;
  background: #f8f9fa;
  color: #111b21;
}

.admin-card-fields input:focus,
.admin-card-fields select:focus,
.admin-card-extra input:focus {
  outline: none;
  border-color: #008069;
  background: #fff;
}

.admin-card-fields select {
  width: 100%;
  min-width: 0;
  border: 1px solid #d1d7db;
  border-radius: 8px;
  padding: 8px 8px;
  font-size: 0.78rem;
  font-weight: 700;
  background: #f8f9fa;
  color: #111b21;
}

.admin-card-extra {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.admin-card-extra input {
  flex: 1;
  min-width: 0;
  border: 1px solid #d1d7db;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.82rem;
  background: #f8f9fa;
  color: #111b21;
}

.admin-card-extra .admin-tool-btn {
  flex: 0 0 auto;
}

.admin-card-btns {
  display: flex;
  gap: 6px;
  margin-top: auto;
}

.admin-card-btns .admin-tool-btn {
  flex: 1;
}

.admin-device {
  font-size: 0.72rem;
  font-weight: 600;
  color: #667781;
  background: #fff;
  border: 1px solid #d1d7db;
  border-radius: 999px;
  padding: 3px 8px;
  white-space: nowrap;
}

.admin-device.is-app {
  border-color: #25d366;
  color: #075e54;
}

.admin-device.is-push {
  background: #e7fce9;
}

.dev-tag {
  display: inline-block;
  margin-left: 4px;
  font-size: 0.68rem;
  font-weight: 600;
  color: #667781;
  background: #e9edef;
  border-radius: 6px;
  padding: 1px 6px;
  vertical-align: middle;
}

.dev-tag.gift {
  color: #075e54;
  background: #e7fce9;
}

.admin-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 7px;
  background: #e9edef;
  color: #54656f;
}

.admin-tag.ok {
  background: #e7fce9;
  color: #075e54;
}

.admin-tag.warn {
  background: #fff7ed;
  color: #9a3412;
}

.admin-tag.info {
  background: #eef2ff;
  color: #4338ca;
  border: 1px dashed #a5b4fc;
}

.admin-ficha-actions .admin-tool-btn {
  background: #fff;
  border: 1px solid #d1d7db;
  padding: 7px 10px;
}

.admin-phone .admin-tool-btn {
  background: #008069;
  color: #fff;
  border: 0;
}

.admin-tool-btn.danger,
.admin-ficha-actions .admin-tool-btn.danger {
  background: #fff;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.admin-tool-btn {
  border: 0;
  border-radius: 8px;
  padding: 8px 10px;
  background: #e9edef;
  color: #111b21;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.admin-tool-btn.primary {
  background: #00a884;
  color: #fff;
}

#btnAcceptLoad {
  background: #7c3aed;
  color: #fff;
}

.bonus-picks {
  display: flex;
  gap: 4px;
  margin-top: 8px;
}

.bonus-pick {
  flex: 1;
  border: 1px solid #d1d7db;
  border-radius: 8px;
  padding: 7px 4px;
  background: #f8f9fa;
  color: #111b21;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

.bonus-pick.is-on {
  background: #7c3aed;
  border-color: #7c3aed;
  color: #fff;
}

#btnBonus {
  background: #d97706;
  color: #fff;
}

.admin-tool-btn:disabled {
  opacity: 0.55;
  cursor: default;
}

.admin-card.is-hot {
  border-color: #7c3aed;
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.12);
}

#blockRetiro.is-hot {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

.admin-tools-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-more {
  font-size: 0.75rem;
  color: #667781;
  flex-shrink: 0;
}

.admin-more summary {
  cursor: pointer;
  font-weight: 700;
}

.admin-more[open] {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.admin-more input {
  width: 88px;
}

.admin-tools-status {
  margin: 0;
  min-height: 1em;
  font-size: 0.75rem;
  color: #667781;
}

.admin-tools:not(.is-open) .admin-tools-body {
  display: none;
}

.admin-tools.is-open .admin-tools-body {
  max-height: min(42vh, 360px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}

.chat-pane.tools-open .messages {
  flex: 1;
  min-height: 0;
}

#btnFichaHeader.active,
#btnToolsHeader.active {
  background: rgba(255, 255, 255, 0.22);
}

@media (max-width: 860px) {
  .admin-tools {
    padding: 8px 10px;
    gap: 8px;
  }

  .admin-tools.is-open .admin-tools-body {
    max-height: 46vh;
  }

  .admin-actions {
    grid-template-columns: 1fr;
  }
}

.empty-pane {
  display: none !important;
}

.empty-pane.show {
  display: none !important;
}

.empty-pane .wa-mark {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #dfe5e7;
  display: grid;
  place-items: center;
  color: var(--wa-secondary);
  margin-bottom: 8px;
}

.empty-pane h3 {
  margin: 0;
  font-weight: 300;
  font-size: 1.5rem;
  color: #41525d;
}

.empty-pane p {
  margin: 0;
  max-width: 320px;
  font-size: 0.88rem;
  line-height: 1.4;
}

.source-tag {
  display: inline-block;
  font-size: 0.68rem;
  background: rgba(255, 255, 255, 0.18);
  padding: 1px 7px;
  border-radius: 10px;
  margin-left: 4px;
}

.hidden {
  display: none !important;
}

@media (min-width: 768px) {
  body {
    background: #0b141a;
    padding: 0;
  }

  .admin-app {
    max-width: none;
    width: 100%;
    height: 100dvh;
    margin: 0;
    border-radius: 0;
    overflow: hidden;
  }

  .sidebar {
    width: 34%;
    max-width: 400px;
    min-width: 300px;
  }

  .conv-list {
    flex: 1;
    min-height: 0;
  }

  .chat-pane,
  .chat-pane.open {
    display: flex;
  }

  .header-back.admin-back {
    display: none;
  }
}

@media (max-width: 767px) {
  .admin-shell.list-mode .sidebar {
    display: flex;
  }

  .admin-shell.list-mode .chat-pane,
  .admin-shell.list-mode .empty-pane {
    display: none !important;
  }

  .admin-shell.chat-mode .sidebar {
    display: none;
  }

  .admin-shell.chat-mode .chat-pane {
    display: flex;
  }

  .admin-shell.chat-mode .empty-pane {
    display: none !important;
  }

  .header-back.admin-back {
    display: grid;
  }
}

/* Cliente: móvil a pantalla completa (proporción WhatsApp) */
@media (max-width: 900px) {
  .app:not(.admin-app) {
    max-width: none;
    width: 100%;
    left: 0;
    right: 0;
    margin: 0;
  }
}

@media (min-width: 901px) {
  html,
  body {
    background: #0b141a;
    position: relative;
    overflow: auto;
  }

  .app:not(.admin-app) {
    position: relative;
    top: 0;
    width: 100%;
    max-width: 420px;
    height: 100dvh;
    margin: 0 auto;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
  }

  .admin-app {
    position: relative;
    height: 100dvh;
    margin: 0;
  }
}

body.ganamos-funnel .chat-header {
  background: #4b157c;
}

.dash-pane {
  display: none;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: #f0f2f5;
}

.dash-pane.open {
  display: flex;
}

.dash-header {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-height: calc(60px + var(--safe-top));
  padding: calc(10px + var(--safe-top)) 16px 10px;
  background: var(--wa-header);
  color: #fff;
}

body.admin-ar .dash-header {
  background: #160c28;
}

body.admin-uyn, body.admin-cln .dash-header {
  background: #115e59;
}

.dash-header-text {
  flex: 1;
  min-width: 0;
}

.dash-header-text h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.dash-header-text p {
  margin: 2px 0 0;
  font-size: 0.72rem;
  opacity: 0.8;
}

.dash-ranges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
}

.dash-ranges button {
  border: 0;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.dash-ranges button.active {
  background: #fff;
  color: #111b21;
}

body.admin-ar .dash-ranges button.active {
  color: #160c28;
}

body.admin-uyn, body.admin-cln .dash-ranges button.active {
  color: #115e59;
}

.dash-ranges input[type="date"] {
  border: 0;
  border-radius: 999px;
  padding: 4px 8px;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  color-scheme: dark;
}

.dash-ranges input[type="date"].active {
  background: #fff;
  color: #111b21;
  color-scheme: light;
}

.dash-period {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.dash-period strong {
  display: block;
  font-size: 1rem;
  color: #111b21;
  text-transform: capitalize;
}

.dash-period small {
  display: block;
  font-size: 0.72rem;
  color: #667781;
}

.dash-period .admin-tool-btn {
  flex-shrink: 0;
  padding: 8px 12px;
}

.dash-period-btns {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.dash-fx {
  margin: 2px 2px 6px;
  font-size: 0.72rem;
  color: #667781;
}

.dash-hours {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 110px;
  padding-top: 8px;
}

.dash-hour {
  flex: 1;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
}

.dash-hour div {
  width: 100%;
  min-height: 2px;
  border-radius: 3px 3px 1px 1px;
  background: #b2dfdb;
}

.dash-hour.peak div {
  background: #008069;
}

body.admin-uyn, body.admin-cln .dash-hour.peak div {
  background: #0f766e;
}

body.admin-ar .dash-hour.peak div {
  background: #7c3aed;
}

.dash-hour span {
  height: 10px;
  font-size: 0.58rem;
  color: #8696a0;
  line-height: 1;
}

.dash-section {
  margin: 14px 2px 8px;
  font-size: 0.7rem;
  font-weight: 800;
  color: #8696a0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dash-kpi.hero strong {
  font-size: 1.45rem;
}

.dash-kpi.alert {
  box-shadow: inset 3px 0 0 #f59e0b, 0 1px 2px rgba(11, 20, 26, 0.06);
}

.dash-kpis-now .dash-kpi strong {
  font-size: 1.1rem;
}

.dash-delta {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 4px;
  font-size: 0.72rem;
}

.dash-delta b {
  font-weight: 800;
}

.dash-delta small {
  color: #8696a0;
}

.dash-delta.up b {
  color: #15803d;
}

.dash-delta.down b {
  color: #dc2626;
}

.dash-delta.flat b {
  color: #8696a0;
}

.dash-kpi strong .dash-bad,
.dash-daily .dash-bad {
  color: #dc2626;
}

.dash-hint {
  margin-left: 6px;
  font-size: 0.66rem;
  font-weight: 500;
  color: #8696a0;
  text-transform: none;
  letter-spacing: 0;
}

.dash-chart .dash-bar-col {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  opacity: 0.45;
}

.dash-chart .dash-bar-col.in {
  opacity: 1;
}

.dash-bar-col em {
  font-style: normal;
  font-size: 0.55rem;
  color: #667781;
  white-space: nowrap;
}

.dash-daily {
  display: grid;
  max-height: 360px;
  overflow-y: auto;
}

.dash-daily-row {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 1fr 1fr 1fr 0.6fr;
  gap: 6px;
  align-items: center;
  padding: 7px 0;
  border: 0;
  border-top: 1px solid #f0f2f5;
  background: none;
  text-align: right;
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
  color: #111b21;
  cursor: pointer;
}

.dash-daily-row span:first-child {
  text-align: left;
  text-transform: capitalize;
}

.dash-daily-row.head {
  position: sticky;
  top: 0;
  border-top: 0;
  background: #fff;
  font-size: 0.66rem;
  font-weight: 700;
  color: #8696a0;
  text-transform: uppercase;
  cursor: default;
}

.dash-daily button.dash-daily-row:hover {
  background: #f7f8fa;
}

.dash-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 14px 14px calc(20px + var(--safe-bottom));
}

.dash-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.dash-kpi {
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 1px 2px rgba(11, 20, 26, 0.06);
}

.dash-kpi strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #111b21;
}

.dash-kpi > span {
  display: block;
  margin-bottom: 2px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #667781;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dash-kpi em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-size: 0.72rem;
  color: #8696a0;
}

.dash-card {
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 1px 2px rgba(11, 20, 26, 0.06);
}

.dash-card h3 {
  margin: 0 0 12px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #54656f;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dash-meta-device-card .dash-meta-dev {
  font-size: 0.78rem;
  line-height: 1.45;
  color: #111b21;
  padding: 8px 0;
  border-bottom: 1px solid #e9edef;
}
.dash-meta-device-card .dash-meta-dev:last-of-type {
  border-bottom: none;
}
.dash-meta-device-card .dash-meta-dev strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.82rem;
}
.dash-meta-device-card .dash-hint {
  color: #667781;
}

.dash-quick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.dash-quick .admin-tool-btn {
  width: 100%;
  padding: 12px;
}

.dash-funnel {
  display: grid;
  gap: 8px;
}

.dash-funnel-row {
  display: grid;
  grid-template-columns: 88px 1fr 42px;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
}

.dash-funnel-row b {
  font-weight: 600;
  color: #111b21;
}

.dash-funnel-row i {
  font-style: normal;
  text-align: right;
  color: #667781;
  font-variant-numeric: tabular-nums;
}

.dash-funnel-track {
  height: 8px;
  border-radius: 999px;
  background: #e9edef;
  overflow: hidden;
}

.dash-funnel-fill {
  height: 100%;
  border-radius: 999px;
  background: #008069;
}

body.admin-ar .dash-funnel-fill {
  background: #7c3aed;
}

body.admin-uyn, body.admin-cln .dash-funnel-fill {
  background: #0f766e;
}

.dash-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 110px;
  padding-top: 8px;
}

.dash-bar-col {
  flex: 1;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.dash-bar {
  width: 100%;
  max-width: 18px;
  min-height: 2px;
  border-radius: 4px 4px 1px 1px;
  background: #008069;
}

body.admin-ar .dash-bar {
  background: #7c3aed;
}

body.admin-uyn, body.admin-cln .dash-bar {
  background: #0f766e;
}

.dash-bar-col span {
  font-size: 0.58rem;
  color: #8696a0;
  line-height: 1;
}

.dash-split {
  display: grid;
  gap: 12px;
}

.dash-table {
  width: 100%;
  border-collapse: collapse;
}

.dash-table button {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid #f0f2f5;
  text-align: left;
}

.dash-table button:first-child {
  border-top: 0;
}

.dash-table strong {
  display: block;
  font-size: 0.86rem;
}

.dash-table small {
  display: block;
  color: #667781;
  font-size: 0.72rem;
}

.dash-table b {
  font-size: 0.86rem;
  white-space: nowrap;
}

.dash-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dash-chip {
  background: #f0f2f5;
  color: #111b21;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.74rem;
  font-weight: 600;
}

.dash-empty {
  margin: 0;
  color: #667781;
  font-size: 0.85rem;
}


@media (min-width: 768px) {
  .admin-shell.dash-mode .dash-pane {
    display: flex;
  }

  .admin-shell.dash-mode .chat-pane {
    display: none !important;
  }

  .admin-shell.chat-mode .dash-pane {
    display: none !important;
  }

  .dash-kpis {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .dash-split {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  .admin-shell.dash-mode .sidebar-main {
    display: none;
  }

  .admin-shell.dash-mode .sidebar {
    display: flex;
    width: 58px;
    max-width: none;
    min-width: 0;
    flex-shrink: 0;
  }

  .admin-shell.dash-mode .admin-rail {
    width: 58px;
    min-height: 100%;
  }

  .admin-shell.dash-mode .dash-pane {
    display: flex;
    flex: 1;
    min-width: 0;
  }

  .admin-shell.dash-mode .chat-pane,
  .admin-shell.list-mode .dash-pane,
  .admin-shell.chat-mode .dash-pane {
    display: none !important;
  }
}

.dash-table b.dash-bad {
  color: #e5534b;
}
