/* Interart Estamparia — Sobrescrita de cores Chatwoot */
:root {
  --w-color-woot: #1976d2 !important;
  --w-color-woot-50: #e3f2fd !important;
  --w-color-woot-100: #bbdefb !important;
  --w-color-woot-200: #90caf9 !important;
  --w-color-woot-300: #64b5f6 !important;
  --w-color-woot-400: #42a5f5 !important;
  --w-color-woot-500: #1976d2 !important;
  --w-color-woot-600: #1565c0 !important;
  --w-color-woot-700: #0d47a1 !important;
  --w-color-woot-800: #0a3a8a !important;
  --w-color-woot-900: #052e72 !important;
  --w-color-woot-950: #021f5c !important;

  /* Variantes alternativas usadas em algumas telas */
  --color-woot: #1976d2 !important;
  --color-primary: #1976d2 !important;
  --color-primary-light: #42a5f5 !important;
  --color-primary-dark: #0d47a1 !important;
}

/* Botão primário Chatwoot */
.button.success,
button.button--primary,
.button.button--primary,
button[type="submit"].button {
  background-color: #1976d2 !important;
  border-color: #1976d2 !important;
}

.button.success:hover,
button.button--primary:hover,
.button.button--primary:hover {
  background-color: #1565c0 !important;
  border-color: #1565c0 !important;
}

/* Links */
a, .link {
  color: #1976d2;
}

/* Logo Chatwoot na sidebar / login → troca por Interart */
img[src*="logo_thumbnail"],
img[src*="chatwoot_logo"],
img[src*="logo-chatwoot"],
img[src*="logo_chatwoot"],
img[alt="Chatwoot"],
img[alt*="chatwoot" i] {
  content: url('/interart-logo.png') !important;
  object-fit: contain !important;
  max-width: 140px !important;
}

/* Sidebar logo (header pequeno) — forca fundo transparente no container e remove cantos pretos */
.app-context-menu .logo,
.sidebar .logo,
.logo-wrapper,
[class*="logo-wrapper"],
[class*="sidebar"] [class*="logo"] {
  background: transparent !important;
  background-color: transparent !important;
}
.app-context-menu .logo img,
.sidebar .logo img,
.logo-wrapper img,
[class*="logo-wrapper"] img,
[class*="sidebar"] [class*="logo"] img {
  content: url('/interart-logo.png') !important;
  object-fit: contain !important;
  background: transparent !important;
}

/* Esconder inbox 'Interart WhatsApp' (id=1) — canal Cloud API desativado enquanto WABA 141008 estiver travado.
   Reativar: remover este bloco + readicionar membros via Rails console. */
li[name="Interart WhatsApp-1"],
a[href="/app/accounts/2/inbox/1"] {
  display: none !important;
}

/* Painel de conversas um pouco mais largo pra caber as 4 tabs (Minhas/Não atribuídas/Todos/Não Lidas) sem truncar */
.conversations-list-wrap:not(.basis-full) {
  width: 400px !important;
}
@media (min-width: 1536px) {
  .conversations-list-wrap:not(.basis-full) {
    width: 480px !important;
  }
}
