/* Inbox ERP — tela exclusiva (PWA celular + desktop) e layout nativo no mobile. */

:root {
  --wa-navy: #07111f;
  --wa-navy-2: #0d1a35;
  --wa-gold: #b9975b;
  --wa-red: #d42028;
  --wa-ok: #25d366;
  --wa-chrome: calc(52px + env(safe-area-inset-top, 0px));
  --wa-dock: calc(64px + env(safe-area-inset-bottom, 0px));
  --wa-kb: 0px;
}

#wa-inbox-status.is-syncing {
  color: #94a3b8;
}
.wa-syncbar {
  display: none;
  margin-top: 2px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: none;
  color: #94a3b8;
}
.wa-syncbar:not([hidden]) {
  display: block;
}
.wa-syncbar::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 5px;
  border-radius: 50%;
  background: #94a3b8;
  vertical-align: middle;
  animation: waSyncPulse 1.2s ease-in-out infinite;
}
@keyframes waSyncPulse {
  0%, 100% { opacity: .35; }
  50% { opacity: 1; }
}
#wa-inbox.is-bg-syncing .wa-inbox-head {
  box-shadow: none;
}

/* Abertura do Inbox — feedback visual enquanto a primeira sincronização ocorre. */
#wa-inbox {
  position: relative;
}

.wa-boot-loader {
  position: absolute;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  overflow: hidden;
  padding: clamp(18px, 4vw, 52px);
  color: #fff;
  isolation: isolate;
  background:
    radial-gradient(circle at 18% 16%, rgba(0, 61, 165, .54), transparent 38%),
    radial-gradient(circle at 84% 78%, rgba(185, 151, 91, .23), transparent 34%),
    linear-gradient(145deg, #050b15 0%, #071426 45%, #0b1d3b 100%);
  transition: opacity .42s ease, visibility .42s ease, transform .42s ease;
}

.wa-boot-loader::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .24;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
}

.wa-boot-loader::after {
  content: '';
  position: absolute;
  inset: -60%;
  z-index: -1;
  opacity: .34;
  background: conic-gradient(from 110deg, transparent 0 36%, rgba(37,211,102,.11) 43%, transparent 51% 72%, rgba(185,151,91,.12) 80%, transparent 88%);
  animation: waBootAura 15s linear infinite;
}

.wa-boot-loader.is-leaving {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.015);
  pointer-events: none;
}

.wa-boot-ambient,
.wa-boot-ambient i {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.wa-boot-ambient i {
  width: 7px;
  height: 7px;
  margin: auto;
  border-radius: 50%;
  background: #e8d5a3;
  box-shadow: 0 0 22px rgba(232,213,163,.75);
  animation: waBootParticle 5.8s ease-in-out infinite;
}

.wa-boot-ambient i:nth-child(1) { transform: translate(-38vw,-24vh); }
.wa-boot-ambient i:nth-child(2) { transform: translate(41vw,-11vh) scale(.65); animation-delay: -2.1s; }
.wa-boot-ambient i:nth-child(3) { transform: translate(30vw,31vh) scale(.45); animation-delay: -4s; }

.wa-boot-card {
  position: relative;
  width: min(500px, 100%);
  padding: clamp(28px, 4.5vw, 46px);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 28px;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(145deg, rgba(255,255,255,.105), rgba(255,255,255,.045));
  box-shadow: 0 34px 90px rgba(0,0,0,.36), inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(22px) saturate(125%);
  -webkit-backdrop-filter: blur(22px) saturate(125%);
}

.wa-boot-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 14%;
  right: 14%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232,213,163,.8), transparent);
}

.wa-boot-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 23px;
  color: rgba(255,255,255,.66);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .2em;
}

.wa-boot-brand b {
  padding: 4px 8px;
  border-radius: 999px;
  color: #07111f;
  font-size: 8px;
  letter-spacing: .14em;
  background: linear-gradient(135deg, #f0dfb2, #b9975b);
}

.wa-boot-symbol {
  position: relative;
  width: 98px;
  height: 98px;
  margin: 0 auto 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wa-boot-symbol-core {
  position: relative;
  z-index: 2;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 20px;
  color: #e8d5a3;
  background: linear-gradient(145deg, #102a58, #09172d);
  box-shadow: 0 16px 34px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.12);
}

.wa-boot-symbol-core .wa-ic { color: #e8d5a3; }

.wa-boot-symbol-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12);
}

.wa-boot-symbol-ring.is-outer {
  inset: 0;
  border-top-color: #25d366;
  border-right-color: rgba(37,211,102,.45);
  animation: waBootSpin 2.1s linear infinite;
}

.wa-boot-symbol-ring.is-inner {
  inset: 10px;
  border-bottom-color: #b9975b;
  border-left-color: rgba(185,151,91,.45);
  animation: waBootSpin 1.45s linear infinite reverse;
}

.wa-boot-online {
  position: absolute;
  z-index: 3;
  right: 17px;
  bottom: 15px;
  width: 13px;
  height: 13px;
  border: 3px solid #0b1a31;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 0 0 0 rgba(37,211,102,.45);
  animation: waBootPulse 1.8s ease-out infinite;
}

.wa-boot-eyebrow {
  margin-bottom: 7px;
  color: #d5be83;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .22em;
}

.wa-boot-card h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(21px, 3.2vw, 29px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.035em;
}

.wa-boot-status-copy {
  min-height: 53px;
  margin-top: 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.wa-boot-status-copy strong {
  color: rgba(255,255,255,.9);
  font-size: 13px;
  font-weight: 700;
}

.wa-boot-status-copy span {
  max-width: 370px;
  color: rgba(255,255,255,.51);
  font-size: 11px;
  line-height: 1.55;
}

.wa-boot-progress {
  position: relative;
  height: 3px;
  margin: 19px 0 23px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.09);
}

.wa-boot-progress i {
  position: absolute;
  inset: 0;
  width: 38%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, #25d366 38%, #e8d5a3 75%, transparent);
  filter: drop-shadow(0 0 7px rgba(37,211,102,.52));
  animation: waBootRail 1.35s ease-in-out infinite;
}

.wa-boot-progress b {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #25d366, #b9975b);
  transition: width .42s ease;
}

.wa-boot-loader.is-ready .wa-boot-progress i { opacity: 0; }
.wa-boot-loader.is-ready .wa-boot-progress b { width: 100%; }

.wa-boot-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wa-boot-steps::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 16.66%;
  right: 16.66%;
  height: 1px;
  background: rgba(255,255,255,.13);
}

.wa-boot-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.32);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .04em;
  transition: color .3s ease;
}

.wa-boot-step i {
  width: 25px;
  height: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 50%;
  color: inherit;
  font-style: normal;
  background: #0c1a31;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.wa-boot-step.is-on { color: #fff; }
.wa-boot-step.is-on i {
  border-color: rgba(232,213,163,.7);
  color: #07111f;
  background: #e8d5a3;
  box-shadow: 0 0 0 5px rgba(232,213,163,.09);
}

.wa-boot-step.is-done { color: rgba(255,255,255,.72); }
.wa-boot-step.is-done i {
  border-color: #25d366;
  color: #07111f;
  background: #25d366;
  font-size: 0;
}

.wa-boot-step.is-done i::before {
  content: '✓';
  font-size: 11px;
  font-weight: 900;
}

.wa-boot-trust {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: rgba(255,255,255,.36);
  font-size: 9px;
}

.wa-boot-trust i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 0 8px rgba(37,211,102,.65);
}

@keyframes waBootSpin { to { transform: rotate(360deg); } }
@keyframes waBootAura { to { transform: rotate(360deg); } }
@keyframes waBootRail { 0% { transform: translateX(-110%); } 100% { transform: translateX(275%); } }
@keyframes waBootPulse { 70% { box-shadow: 0 0 0 8px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }
@keyframes waBootParticle { 0%,100% { opacity: .18; } 50% { opacity: .85; filter: blur(.2px); } }

@media (max-width: 620px) {
  .wa-boot-loader { padding: 14px; align-items: center; }
  .wa-boot-card { padding: 25px 20px 23px; border-radius: 23px; }
  .wa-boot-brand { margin-bottom: 17px; }
  .wa-boot-symbol { width: 86px; height: 86px; margin-bottom: 18px; }
  .wa-boot-symbol-core { width: 52px; height: 52px; border-radius: 18px; }
  .wa-boot-online { right: 14px; bottom: 12px; }
  .wa-boot-status-copy { min-height: 58px; }
  .wa-boot-progress { margin: 15px 0 19px; }
  .wa-boot-trust { margin-top: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  .wa-boot-loader::after,
  .wa-boot-ambient i,
  .wa-boot-symbol-ring,
  .wa-boot-online,
  .wa-boot-progress i {
    animation: none !important;
  }
}

html.modo-inbox,
html.modo-inbox body {
  background: var(--wa-navy);
  overscroll-behavior: none;
  height: 100%;
  height: 100dvh;
}

html.modo-inbox body {
  overflow: hidden;
}

html.modo-inbox #app.on {
  height: 100dvh;
  min-height: 100dvh;
}

html.modo-inbox .tb-us,
html.modo-inbox .tb-av {
  overflow: visible;
}

html.modo-inbox .tb-logo::after {
  content: 'Inbox';
  margin-left: 2px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #0d1829;
  background: linear-gradient(135deg, #e8d5a3, var(--wa-gold));
  flex-shrink: 0;
}
html.modo-inbox .mb-menu,
html.modo-inbox .tb-dt,
html.modo-inbox .tb-search,
html.modo-inbox #sb,
html.modo-inbox .sb-overlay,
html.modo-inbox .ph,
html.modo-inbox #gs-wrap,
html.modo-inbox #gs-overlay {
  display: none !important;
}

html.modo-inbox .bw {
  min-height: 0;
  height: calc(100dvh - var(--wa-chrome));
}

html.modo-inbox .ca {
  margin-left: 0 !important;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0b1524;
}

html.modo-inbox #pc,
html.modo-inbox .pc {
  padding: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #0b1524;
}

html.modo-inbox .out-btn {
  background: rgba(212, 32, 40, .16);
  border: 1px solid rgba(212, 32, 40, .35);
}

html.modo-inbox #ls-login .wlc {
  color: rgba(255, 255, 255, .55);
  font-size: 12px;
}

@media (display-mode: window-controls-overlay) {
  html.modo-inbox .tb {
    -webkit-app-region: drag;
    app-region: drag;
    height: env(titlebar-area-height, var(--wa-chrome));
    padding-left: env(titlebar-area-x, 12px);
    padding-right: calc(100vw - env(titlebar-area-x, 0px) - env(titlebar-area-width, 100vw) + 8px);
  }
  html.modo-inbox .tb button,
  html.modo-inbox .tb-us,
  html.modo-inbox .tb-cluster,
  html.modo-inbox .tb-notif-wrap {
    -webkit-app-region: no-drag;
    app-region: no-drag;
  }
}

/* ===== Inbox em tela cheia (PWA e ERP compacto) ===== */

html.modo-inbox #wa-inbox,
html.wa-compact #wa-inbox {
  flex: 1;
  height: 100%;
  min-height: 0;
  margin: 0;
  border: none;
  border-radius: 0;
  background: #fff;
}

html.modo-inbox #wa-inbox {
  border-radius: 0;
}

html.modo-inbox.wa-has-dock #wa-inbox,
html.modo-inbox.wa-compact #app.on #wa-inbox:not(.wa-view-chat) {
  height: calc(100% - var(--wa-dock));
  max-height: calc(100% - var(--wa-dock));
}

html.modo-inbox.wa-has-dock.wa-chat-open #wa-inbox,
html.modo-inbox.wa-compact:has(#wa-inbox.wa-view-chat) #wa-inbox,
html.modo-inbox.wa-compact #app.on #wa-inbox.wa-view-chat {
  height: 100%;
  max-height: none;
}

html.modo-inbox .wa-atalhos-erp,
html.wa-compact .wa-atalhos-erp {
  display: none;
}

html.modo-inbox button,html.wa-compact #wa-inbox button{touch-action:manipulation}

.wa-back {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-right: 2px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #0d1f4e;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}

.wa-back:hover,
.wa-back:active {
  background: #f1f5f9;
}

html.wa-compact #wa-inbox.wa-view-chat .wa-back {
  display: inline-flex;
}

#wa-inbox.wa-eq-on.wa-eq-chat .wa-eq-topo .wa-back,
html.wa-compact #wa-inbox.wa-eq-on.wa-eq-chat .wa-back {
  display: inline-flex;
}

/* Não usar display:none nem visibility:hidden no chat: o Chromium descarta
   o bitmap das <img> e a foto abre preta, some e reaparece. O painel já é
   position:absolute — deslocar para fora da tela mantém o decode. */
html.wa-compact #wa-inbox.wa-view-list .wa-inbox-chat,
html.wa-compact #wa-inbox:not(.wa-view-chat) .wa-inbox-chat {
  display: flex !important;
  visibility: visible;
  pointer-events: none;
  z-index: 0;
  transform: translate3d(110%, 0, 0);
}

html.wa-compact #wa-inbox.wa-view-chat .wa-inbox-side {
  display: none;
}

html.wa-compact #wa-inbox.wa-view-chat .wa-inbox-chat {
  display: flex;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  width: 100%;
  max-width: none;
  z-index: 6;
}

/* As abas do PWA são persistentes: trocar de aba só tira a conversa da frente
   e mantém o painel e a árvore de mensagens montados para o retorno imediato. */
html.wa-compact #wa-inbox.wa-pwa-tab-away .wa-inbox-side {
  display: flex !important;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  z-index: 2;
}

html.wa-compact #wa-inbox.wa-pwa-tab-away .wa-inbox-chat {
  display: flex !important;
  visibility: visible;
  pointer-events: none;
  transform: translate3d(110%, 0, 0);
  z-index: 0;
}

html.wa-compact .wa-inbox-body {
  position: relative;
}

html.wa-compact .wa-inbox-side {
  width: 100% !important;
  max-width: none !important;
  border-right: none;
  background: #fff;
}

html.wa-compact .wa-inbox-chat {
  position: absolute;
  inset: 0;
  z-index: 6;
  background: #ece5dd;
  width: 100%;
  transition: none;
}

html.wa-compact #wa-inbox-busca,
html.wa-compact #wa-inbox-texto,
html.wa-compact #wa-inbox-find-q,
html.wa-compact #wa-eq-find-q,
html.wa-compact #wa-cat-q,
html.wa-compact #wa-ct-busca {
  font-size: 16px;
}

html.wa-compact .wa-ct-hero {
  padding: 14px 16px 12px;
}

html.wa-compact .wa-ct-row {
  padding: 12px 16px;
}

html.wa-compact .wa-ct-go {
  width: 40px;
  height: 40px;
}

html.wa-compact .wa-inbox-filtros {
  padding: 8px 12px 4px;
  gap: 6px;
  overflow-x: visible;
  flex-wrap: wrap;
}

html.wa-compact .wa-filtro {
  flex: 1;
  min-height: 36px;
  border-radius: 999px;
  font-size: 12px;
  justify-content: center;
  text-align: center;
}

html.wa-compact .wa-filtro-corretor-wrap {
  flex: 1 1 100%;
}

html.wa-compact .wa-filtro-corretor {
  min-height: 36px;
  border-radius: 10px;
  font-size: 16px;
}

html.wa-compact .wa-fila-claim {
  min-height: 44px;
  font-size: 13px;
}

html.wa-compact .wa-inbox-busca-wrap {
  padding: 6px 12px 10px;
}

html.wa-compact .wa-conv-dispatch {
  width: 48px;
  flex-basis: 48px;
}

html.wa-compact .wa-inbox-head {
  display: none !important;
}

html.wa-compact .wa-inbox-rail {
  display: none !important;
}

html.wa-compact #wa-inbox:not(.wa-view-chat) .wa-nova-fab {
  display: inline-flex;
  bottom: 18px;
  z-index: 8;
}

html.wa-compact #wa-inbox:not(.wa-view-chat) .wa-tx-fab {
  display: inline-flex;
  bottom: 82px;
  z-index: 8;
}

html.wa-compact #wa-inbox.wa-view-chat .wa-nova-fab,
html.wa-compact #wa-inbox.wa-view-chat .wa-tx-fab {
  display: none !important;
}

html.wa-compact #wa-inbox:not(.wa-view-chat) #wa-inbox-lista {
  padding-bottom: 148px;
}

html.wa-compact #wa-inbox:not(.wa-view-chat) .wa-sel-fab {
  display: inline-flex;
}

html.wa-compact #wa-inbox.is-sel .wa-sel-fab,
html.wa-compact #wa-inbox.is-sel .wa-nova-fab,
html.wa-compact #wa-inbox.is-sel .wa-tx-fab {
  display: none !important;
}

html.wa-compact .wa-conv-more,
html.wa-compact .wa-msg-more {
  display: none !important;
}

html.wa-compact #wa-inbox.is-sel #wa-inbox-lista {
  padding-bottom: 12px;
}

html.wa-compact #wa-inbox.is-sel .wa-inbox-head,
html.wa-compact #wa-inbox.is-sel .wa-inbox-filtros,
html.wa-compact #wa-inbox.is-sel .wa-inbox-busca-wrap {
  display: none !important;
}

html.wa-compact #wa-inbox.is-sel .wa-sel-bar {
  display: none !important;
}

html.modo-inbox:not(.wa-compact) .wa-sel-top {
  display: none !important;
}

html.wa-compact .wa-sel-top {
  padding-top: calc(10px + env(safe-area-inset-top, 0px));
}

html.wa-compact .wa-sel-act {
  min-width: 40px;
  min-height: 40px;
}

html.wa-compact .wa-sel-bar {
  gap: 8px;
  padding: 10px 10px calc(10px + env(safe-area-inset-bottom, 0px));
}
html.wa-compact .wa-sel-xfer,
html.wa-compact .wa-sel-apagar,
html.wa-compact .wa-sel-cancel,
html.wa-compact .wa-msg-sel-cancel,
html.wa-compact .wa-msg-sel-fwd {
  min-height: 44px;
  padding: 10px 14px;
  font-size: 14px;
}
html.wa-compact .wa-msg-sel-bar {
  padding: 6px 2px calc(4px + env(safe-area-inset-bottom, 0px));
}
html.wa-compact .wa-anexo-strip {
  max-width: 100%;
}

html.modo-inbox:not(.wa-compact) .wa-nova-dlg {
  align-items: center;
  padding: 24px;
}

html.modo-inbox:not(.wa-compact) .wa-nova-card {
  border-radius: 16px;
}

html.wa-compact #wa-inbox-composer {
  padding: 7px 8px calc(8px + env(safe-area-inset-bottom, 0px) + var(--wa-kb));
  background: #f0f2f5;
}

html.modo-inbox.wa-compact #wa-inbox-composer {
  padding-bottom: calc(8px + var(--wa-kb));
}

html.modo-inbox.wa-compact.wa-chat-open #wa-inbox-composer,
html.modo-inbox.wa-compact:has(#wa-inbox.wa-view-chat) #wa-inbox-composer {
  padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px) + var(--wa-kb));
}

html.wa-compact .wa-inbox-composer-row {
  gap: 7px;
  align-items: flex-end;
}

html.wa-compact .wa-comp-field {
  display: flex;
  flex: 1 1 auto;
  align-items: flex-end;
  min-width: 0;
  min-height: 48px;
  padding: 2px 3px;
  overflow: hidden;
  border: 1px solid rgba(84, 101, 111, .13);
  border-radius: 25px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .08);
  transition: border-color .16s ease, box-shadow .16s ease;
}

html.wa-compact .wa-comp-field:focus-within {
  border-color: rgba(0, 61, 165, .28);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .07), 0 0 0 3px rgba(0, 61, 165, .07);
}

html.wa-compact .wa-comp-field-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-end;
  gap: 0;
}

html.wa-compact .wa-comp-field .wa-comp-icon {
  width: 40px;
  height: 42px;
  flex: 0 0 40px;
  color: #667781;
  -webkit-tap-highlight-color: transparent;
}

html.wa-compact .wa-comp-field .wa-comp-icon:active {
  background: rgba(84, 101, 111, .1);
  transform: scale(.94);
}

html.wa-compact .wa-comp-stickers {
  margin-left: 0;
}

html.wa-compact #wa-inbox-texto,
html.wa-compact #wa-eq-texto {
  min-width: 0;
  min-height: 43px;
  max-height: 124px;
  margin: 0;
  padding: 11px 3px 10px;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  color: #111b21;
  line-height: 21px;
}

html.wa-compact #wa-inbox-texto::placeholder,
html.wa-compact #wa-eq-texto::placeholder {
  color: #75848d;
  opacity: 1;
}

html.wa-compact .wa-comp-actions {
  padding-bottom: 0;
}

html.wa-compact .wa-comp-acao {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  box-shadow: 0 2px 5px rgba(37, 211, 102, .3);
  -webkit-tap-highlight-color: transparent;
  transition: transform .16s ease, background-color .16s ease, box-shadow .16s ease;
}

html.wa-compact .wa-comp-acao:active {
  transform: scale(.94);
}

html.wa-compact .wa-comp-icon {
  width: 44px;
  height: 44px;
}

html.wa-compact #wa-inbox-topo {
  padding: 6px 8px;
  min-height: 56px;
  background: #fff;
}

html.wa-compact #wa-inbox .wa-posse-bar {
  padding: 6px 8px;
}

/* Compacto: o ⋮ do chat aberto sempre visível (não depende do container 640px). */
html.wa-compact .wa-topo-wide {
  display: none !important;
}
html.wa-compact .wa-topo-dock {
  display: inline-flex !important;
  width: 44px;
  height: 44px;
  background: transparent;
  color: #0d1f4e;
  box-shadow: none;
}
html.wa-compact .wa-topo-dock.is-on {
  background: #edf1f7;
  color: #0d1f4e;
  box-shadow: none;
}
html.wa-compact .wa-topo-find,
html.wa-compact .wa-eq-topo .wa-topo-find {
  width: 44px;
  height: 44px;
}

html.modo-inbox #wa-inbox-msgs,
html.wa-compact #wa-inbox-msgs {
  background:
    linear-gradient(180deg, rgba(7, 17, 31, .04), transparent 80px),
    #ece5dd;
}

/* Bottom sheets nativos no compacto */
html.wa-compact #wa-topo-dock-menu,
html.wa-compact #wa-clip-menu,
html.wa-compact #wa-assign-menu,
html.wa-compact #wa-crm-menu,
html.wa-compact #wa-conv-menu {
  top: auto !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  border-radius: 22px 22px 0 0 !important;
  max-height: min(78vh, 640px) !important;
  padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)) !important;
  box-shadow: 0 -18px 50px rgba(7, 17, 31, .28) !important;
  overflow-y: auto !important;
  z-index: 640 !important;
}

/* Menu da mensagem: flutuante ao lado do balão, nunca sheet no rodapé */
html.wa-compact #wa-msg-menu,
html.wa-compact #wa-react-who,
html.wa-compact #wa-eq-msg-menu,
html.wa-compact #wa-eq-react-who {
  right: auto !important;
  bottom: auto !important;
  width: auto !important;
  max-width: min(280px, calc(100vw - 16px)) !important;
  min-width: min(220px, calc(100vw - 16px)) !important;
  border-radius: 14px !important;
  max-height: min(70vh, 520px) !important;
  overflow: auto !important;
  padding-bottom: 6px !important;
  box-shadow: 0 16px 36px rgba(15, 23, 42, .22) !important;
}

/* Cadastro CRM do Inbox precisa ficar acima da prévia do contato (5210) e dos sheets. */
html.modo-inbox #mov,
html.modo-inbox #mov2,
html.wa-compact #mov,
html.wa-compact #mov2 {
  z-index: 5600;
}

html.wa-compact .wa-cat-panel {
  width: 100%;
  border-left: none;
  border-top: 1px solid #edf2f7;
}

html.wa-compact .tb-notif-panel {
  right: 8px;
  width: min(360px, calc(100vw - 16px));
}

/* Dock inferior — só no app exclusivo mobile */
.wa-app-dock {
  display: none;
}

html.inbox-install-gate #wa-app-root,
html.modo-inbox:not(:has(#app.on)) #wa-app-root {
  display: none !important;
}

html.modo-inbox.wa-compact #app.on ~ #wa-app-root .wa-app-dock {
  display: flex;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 220;
  height: var(--wa-dock);
  padding: 6px 10px calc(8px + env(safe-area-inset-bottom, 0px));
  background: rgba(7, 17, 31, .96);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(185, 151, 91, .22);
  align-items: stretch;
  justify-content: space-around;
  gap: 4px;
}

html.modo-inbox.wa-compact.wa-chat-open #app.on ~ #wa-app-root .wa-app-dock,
html.modo-inbox.wa-compact:has(#wa-inbox.wa-view-chat) #app.on ~ #wa-app-root .wa-app-dock {
  display: none !important;
}

.wa-app-dock button {
  position: relative;
  flex: 1;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, .55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 12px;
  overflow: visible;
}

.wa-app-dock button.is-on {
  color: #e8d5a3;
  background: rgba(185, 151, 91, .12);
}

.wa-app-dock .wa-dock-badge {
  position: absolute;
  top: 2px;
  left: 50%;
  margin-left: 6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--wa-red);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
  box-shadow: 0 0 0 2px #07111f;
}

.wa-app-sheet {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(7, 17, 31, .55);
}

.wa-app-sheet.is-on {
  display: flex;
  align-items: flex-end;
}

.wa-app-sheet-card {
  width: 100%;
  max-height: min(88dvh, 820px);
  background: #f4f6fb;
  border-radius: 22px 22px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.wa-app-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
  padding: 14px 16px;
  background: #fff;
  border-bottom: 1px solid #edf2f7;
}

.wa-app-sheet-head > div {
  min-width: 0;
}

.wa-app-sheet-head h3 {
  font-size: 15px;
  font-weight: 800;
  color: #0d1f4e;
  margin: 0;
  overflow-wrap: anywhere;
}

.wa-app-sheet-head p {
  margin: 2px 0 0;
  font-size: 11px;
  color: #64748b;
  overflow-wrap: anywhere;
}

.wa-app-sheet-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.wa-app-sheet-body .wa-atalhos-erp {
  display: block !important;
  overflow: visible;
  min-width: 0;
}

html.modo-inbox:not(.wa-compact) .wa-app-sheet-card {
  width: min(1180px, calc(100vw - 48px));
  max-width: 1180px;
  margin: auto;
  border-radius: 18px;
  max-height: min(88vh, 820px);
}

html.modo-inbox:not(.wa-compact) .wa-app-sheet {
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* Compacto: Atalhos/Mais viram aba nativa acima do dock — nunca por baixo da barra. */
html.modo-inbox.wa-compact .wa-app-sheet {
  z-index: 210;
  inset: 0 0 var(--wa-dock) 0;
  align-items: stretch;
  background: #eef1f6;
}

html.modo-inbox.wa-compact .wa-app-sheet-card {
  width: 100%;
  max-height: none;
  height: 100%;
  border-radius: 0;
  padding-bottom: 0;
  background: #eef1f6;
}

html.modo-inbox.wa-compact .wa-app-sheet-head {
  padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 12px;
}

html.modo-inbox.wa-compact .wa-app-sheet-body {
  padding: 10px 12px 18px;
}

html.modo-inbox .wa-app-sheet-body #aw-inbox-host,
html.modo-inbox .wa-app-sheet-body .aw-host-inbox {
  width: 100%;
  min-width: 0;
}

html.modo-inbox.wa-compact .wa-app-sheet-body .aw-foot {
  position: sticky;
  bottom: 0;
}

.wa-atalhos-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}

.wa-atalhos-kpi {
  background: #fff;
  border-radius: 14px;
  padding: 16px 18px;
  border: 1px solid #e8edf2;
  border-top-width: 3px;
  min-width: 0;
}

.wa-atalhos-kpi.is-danger { border-top-color: #b91c1c; }
.wa-atalhos-kpi.is-warn { border-top-color: #b45309; }
.wa-atalhos-kpi.is-navy { border-top-color: #0d1f4e; }
.wa-atalhos-kpi.is-blue { border-top-color: #2563eb; }
.wa-atalhos-kpi.is-ok { border-top-color: #1a6e3a; }

.wa-atalhos-kpi-lbl {
  display: block;
  font-size: 9px;
  font-weight: 800;
  color: #4a5568;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.wa-atalhos-kpi-val {
  display: block;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.05;
  margin-bottom: 3px;
  color: #0d1f4e;
}

.wa-atalhos-kpi.is-danger .wa-atalhos-kpi-val { color: #b91c1c; }
.wa-atalhos-kpi.is-warn .wa-atalhos-kpi-val { color: #b45309; }
.wa-atalhos-kpi.is-blue .wa-atalhos-kpi-val { color: #2563eb; }
.wa-atalhos-kpi.is-ok .wa-atalhos-kpi-val { color: #1a6e3a; }

.wa-atalhos-kpi-sub {
  display: block;
  font-size: 11px;
  color: #64748b;
}

.wa-atalhos-kicker {
  margin: 0 0 10px;
  font-size: 10px;
  font-weight: 800;
  color: #0d1f4e;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.wa-atalhos-kicker.is-loc { color: #b91c1c; }
.wa-atalhos-kicker.is-geral { margin-top: 18px; }

.wa-erp-section {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e8edf2;
  overflow: hidden;
  margin-bottom: 14px;
}

.wa-erp-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid #edf2f7;
  background: #fafbfd;
}

.wa-erp-section-title {
  margin: 0;
  min-width: 0;
  font-size: 10px;
  font-weight: 800;
  color: #4a5568;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.wa-erp-section-count {
  flex-shrink: 0;
  background: #25D366;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 20px;
}

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

.wa-erp-table th {
  padding: 10px 12px;
  text-align: left;
  font-size: 10px;
  font-weight: 800;
  color: #4a5568;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-bottom: 1px solid #edf2f7;
  background: #fafbfd;
}

.wa-erp-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f4f6f8;
  font-size: 12px;
  color: #334155;
  vertical-align: middle;
}

.wa-erp-table td.wa-erp-hero {
  font-weight: 800;
  color: #0d1829;
}

.wa-erp-table td.wa-erp-hero small {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
}

.wa-erp-table td[data-label="Valor"] {
  font-weight: 700;
  color: #b91c1c;
}

.wa-erp-table td[data-label="Repasse líquido"] {
  font-weight: 700;
  color: #1a6e3a;
}

.wa-erp-table td[data-label="Hora"] {
  font-weight: 800;
  color: #0d1f4e;
  white-space: nowrap;
}

.wa-atalhos-chip {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}

.wa-atalhos-chip.is-loc {
  background: #ecfdf5;
  color: #166534;
}

.wa-atalhos-chip.is-venda {
  background: #eff6ff;
  color: #1d4ed8;
}

.wa-atalhos-etapa {
  font-size: 11px;
  font-weight: 700;
  color: #334155;
  margin-top: 4px;
}

.wa-erp-empty-row td {
  text-align: center;
  color: #94a3b8;
  padding: 20px;
  font-size: 12px;
}

.wa-erp-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #25D366;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.wa-erp-action-btn.is-repasse {
  background: #1a6e3a;
}

html.modo-inbox.wa-compact .wa-atalhos-kpis {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 12px;
  margin: 0 -12px 14px;
  padding: 2px 12px 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

html.modo-inbox.wa-compact .wa-atalhos-kpis::-webkit-scrollbar {
  display: none;
}

html.modo-inbox.wa-compact .wa-atalhos-kpi {
  flex: 0 0 min(46vw, 176px);
  scroll-snap-align: start;
  padding: 12px 14px;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, .05);
}

html.modo-inbox.wa-compact .wa-atalhos-kpi-val {
  font-size: 24px;
}

html.modo-inbox.wa-compact .wa-atalhos-kicker {
  letter-spacing: .08em;
  margin: 4px 2px 8px;
}

html.modo-inbox.wa-compact .wa-atalhos-kicker.is-geral {
  margin-top: 8px;
}

html.modo-inbox.wa-compact .wa-erp-section {
  background: transparent;
  border: 0;
  overflow: visible;
  margin-bottom: 18px;
}

html.modo-inbox.wa-compact .wa-erp-section-head {
  padding: 8px 4px 10px;
  border: 0;
  background: transparent;
}

html.modo-inbox.wa-compact .wa-erp-section-title {
  font-size: 13px;
  letter-spacing: .02em;
  text-transform: none;
  color: #0d1f4e;
}

html.modo-inbox.wa-compact .wa-app-sheet-body .wa-erp-table-wrap {
  overflow: visible;
  min-width: 0;
  max-width: 100%;
}

html.modo-inbox.wa-compact .wa-app-sheet-body .wa-erp-table,
html.modo-inbox.wa-compact .wa-app-sheet-body .wa-erp-table tbody {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  min-width: 0 !important;
  gap: 10px;
}

html.modo-inbox.wa-compact .wa-app-sheet-body .wa-erp-table thead {
  display: none;
}

html.modo-inbox.wa-compact .wa-app-sheet-body .wa-erp-table tr {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0 !important;
  box-sizing: border-box;
  margin: 0;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .05);
}

html.modo-inbox.wa-compact .wa-app-sheet-body .wa-erp-table td {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-width: 0;
  width: auto;
  padding: 0 !important;
  border: 0 !important;
  text-align: left !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: break-word;
}

html.modo-inbox.wa-compact .wa-app-sheet-body .wa-erp-table td:before {
  content: attr(data-label);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: #64748b;
}

html.modo-inbox.wa-compact .wa-app-sheet-body .wa-erp-table td.wa-erp-hero,
html.modo-inbox.wa-compact .wa-app-sheet-body .wa-erp-table td[data-label="Ação"],
html.modo-inbox.wa-compact .wa-app-sheet-body .wa-erp-table td[data-label="Ações"] {
  grid-column: 1 / -1;
}

html.modo-inbox.wa-compact .wa-app-sheet-body .wa-erp-table td[data-label="Hora"] {
  white-space: now;
}

html.modo-inbox.wa-compact .wa-app-sheet-body .wa-erp-table td.wa-erp-hero:before {
  display: none;
}

html.modo-inbox.wa-compact .wa-app-sheet-body .wa-erp-table td.wa-erp-hero {
  padding-bottom: 4px !important;
}

html.modo-inbox.wa-compact .wa-app-sheet-body .wa-erp-table td[data-label="Ação"],
html.modo-inbox.wa-compact .wa-app-sheet-body .wa-erp-table td[data-label="Ações"] {
  padding-top: 6px !important;
}

html.modo-inbox.wa-compact .wa-app-sheet-body .wa-erp-action-btn,
html.modo-inbox.wa-compact .wa-app-sheet-body .wa-erp-table td[data-label="Ação"] > button,
html.modo-inbox.wa-compact .wa-app-sheet-body .wa-erp-table td[data-label="Ações"] > button {
  width: 100%;
  min-height: 42px;
  white-space: normal;
  border-radius: 12px;
}

html.modo-inbox.wa-compact .wa-app-sheet-body .wa-erp-empty-row {
  padding: 18px 12px !important;
  border: 1px dashed #d5dde7 !important;
  box-shadow: none !important;
  background: #f8fafc;
}

html.modo-inbox.wa-compact .wa-app-sheet-body .wa-erp-empty-row td {
  display: block;
  grid-column: 1 / -1;
  text-align: center !important;
  color: #94a3b8;
  font-size: 12px;
}

html.modo-inbox.wa-compact .wa-app-sheet-body .wa-erp-empty-row td:before {
  display: none;
}

html.modo-inbox.wa-compact .wa-app-sheet-body .wa-erp-lead-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(136px, 1fr));
  gap: 8px;
  width: 100%;
}

html.modo-inbox.wa-compact .wa-app-sheet-body .wa-erp-lead-actions .wa-crm-quick-btn {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 8px 10px;
  white-space: normal;
  justify-content: center;
}

html.modo-inbox.wa-compact .wa-app-sheet-body .wa-erp-lead-actions .wa-crm-quick-btn span {
  text-align: center;
  overflow-wrap: anywhere;
}

@media (max-width: 380px) {
  html.modo-inbox.wa-compact .wa-app-sheet-body .wa-erp-table tr {
    grid-template-columns: 1fr;
  }
  html.modo-inbox.wa-compact .wa-atalhos-kpi {
    flex-basis: min(70vw, 220px);
  }
}

/* CTA instalar */
.wa-install-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, #0d1f4e, #003da5);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 61, 165, .22);
}

.wa-install-cta:hover {
  filter: brightness(1.06);
}

.wa-install-banner {
  display: none;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 10px 14px;
  background: linear-gradient(90deg, #0d1a35, #13284d);
  color: #fff;
  border-bottom: 1px solid rgba(185, 151, 91, .25);
}

.wa-install-banner.is-on {
  display: flex;
}

.wa-install-banner strong {
  font-size: 13px;
  display: block;
}

.wa-install-banner span {
  font-size: 11px;
  color: rgba(255, 255, 255, .65);
}

.wa-install-banner .wa-install-cta {
  margin-left: auto;
  flex-shrink: 0;
}

.wa-install-x {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, .55);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
}

/* Desktop exclusivo — janela de mensagens profissional */
html.modo-inbox:not(.wa-compact) #wa-inbox {
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4);
}

html.modo-inbox:not(.wa-compact) .wa-inbox-rail {
  width: 62px;
  padding-top: 12px;
  background: linear-gradient(180deg, #06101c, #0a1628);
  border-right: 1px solid rgba(185, 151, 91, .18);
}

html.modo-inbox:not(.wa-compact) .wa-rail-mais,
html.modo-inbox:not(.wa-compact) .wa-rail-captacao {
  display: inline-flex;
}

/* Dock com 6 itens (Captar acima de Mais) */
html.modo-inbox.wa-compact #app.on ~ #wa-app-root .wa-app-dock {
  gap: 2px;
  padding-left: 4px;
  padding-right: 4px;
}

html.modo-inbox.wa-compact #app.on ~ #wa-app-root .wa-app-dock button {
  font-size: 9px;
  letter-spacing: .02em;
  gap: 2px;
  padding: 0 2px;
}

html.modo-inbox.wa-compact #app.on ~ #wa-app-root .wa-app-dock button .wa-ic {
  width: 16px !important;
  height: 16px !important;
}

html.modo-inbox:not(.wa-compact) .wa-inbox-head {
  background: #f7f9fc;
}

html.modo-inbox:not(.wa-compact) .wa-inbox-side {
  width: min(360px, 32vw);
  max-width: 400px;
  background: #f7f9fc;
}

html.modo-inbox:not(.wa-compact) .wa-inbox-chat {
  background: #ece5dd;
}

.wa-chat-empty {
  max-width: 360px;
  margin: auto;
  text-align: center;
  color: #64748b;
  padding: 28px 20px;
}
.wa-chat-empty-ico {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 20px;
  background: linear-gradient(135deg, #0d1a35, #003da5);
  color: #e8d5a3;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(13, 31, 78, .2);
}
.wa-chat-empty strong {
  display: block;
  font-size: 16px;
  color: #0d1f4e;
  margin-bottom: 6px;
}
.wa-chat-empty span {
  font-size: 13px;
  line-height: 1.5;
}

html.modo-inbox:not(.wa-compact) #wa-inbox-topo {
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
}

/* iOS hint */
.wa-ios-hint {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 12000;
  background: rgba(7, 17, 31, .62);
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
}

.wa-ios-hint.is-on {
  display: flex;
}

.wa-ios-card {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 18px;
  padding: 20px 18px 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
}

.wa-ios-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: #0d1f4e;
}

.wa-ios-card ol {
  margin: 0 0 14px;
  padding-left: 18px;
  color: #334155;
  font-size: 13px;
  line-height: 1.55;
}

.wa-ios-card button {
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 11px;
  background: #0d1f4e;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.wa-app-status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94a3b8;
  margin-right: 6px;
  vertical-align: middle;
}

.wa-app-status-dot.is-on {
  background: var(--wa-ok);
  box-shadow: 0 0 0 4px rgba(37, 211, 102, .18);
}

.wa-app-status-dot.is-off {
  background: #ef4444;
}

html.modo-inbox .wa-mais-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wa-mais-perfil {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 2px 4px 14px;
  margin: 0 0 4px;
  border-bottom: 1px solid #e2e8f0;
}

.wa-mais-perfil-av {
  position: relative;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
}

.wa-mais-perfil-av .pf-av,
.wa-mais-av {
  width: 64px !important;
  height: 64px !important;
  border-radius: 18px;
  overflow: hidden;
}

.wa-mais-foto-btn {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #003DA5;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}

.wa-mais-perfil-meta {
  min-width: 0;
  flex: 1;
}

.wa-mais-perfil-meta strong {
  display: block;
  font-size: 15px;
  color: #0d1f4e;
  font-weight: 800;
  line-height: 1.2;
}

.wa-mais-perfil-meta small {
  display: block;
  font-size: 11px;
  color: #64748b;
  margin-top: 3px;
}

.wa-mais-perfil-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.wa-mais-foto-link {
  font-size: 12px;
  font-weight: 800;
  color: #003DA5;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  font-family: inherit;
}

.wa-mais-foto-link.is-btn {
  color: #64748b;
}

#wa-back-hint {
  position: fixed;
  left: 50%;
  bottom: calc(var(--wa-dock, 24px) + 12px);
  transform: translateX(-50%) translateY(10px);
  background: rgba(15, 23, 42, .94);
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  font-family: var(--font-sans), sans-serif;
  padding: 10px 16px;
  border-radius: 10px;
  z-index: 40000;
  max-width: calc(100vw - 32px);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .28);
  transition: opacity .18s ease, transform .18s ease;
}

#wa-back-hint.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

html.wa-chat-open #wa-back-hint {
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}

.wa-update-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  top: calc(var(--wa-chrome, 52px) + 8px);
  z-index: 40010;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #0d1f4e;
  color: #fff;
  font-family: var(--font-sans), sans-serif;
  font-size: 13px;
  font-weight: 650;
  box-shadow: 0 10px 28px rgba(13, 31, 78, .28);
}

.wa-update-banner.is-on {
  display: flex;
}

.wa-update-banner button {
  flex-shrink: 0;
  border: 0;
  border-radius: 8px;
  background: #b9975b;
  color: #0d1829;
  font-weight: 800;
  font-size: 12px;
  padding: 8px 12px;
  cursor: pointer;
  font-family: inherit;
}

.wa-mais-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  border: 1px solid #e8edf2;
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  cursor: pointer;
  color: #0d1f4e;
  font-weight: 800;
  font-size: 13px;
}

.wa-mais-btn small {
  display: block;
  font-weight: 600;
  color: #64748b;
  font-size: 11px;
  margin-top: 2px;
}

.wa-mais-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #f1f5f9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #0d1f4e;
}

html.modo-inbox #novo-mes-banner {
  display: none !important;
}

html.modo-inbox .tb-notif-wrap {
  position: static;
}

html.modo-inbox .tb-notif-panel {
  position: fixed;
  top: calc(var(--wa-chrome) + 8px);
  right: 12px;
  left: auto;
  width: 360px;
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - var(--wa-chrome) - 24px);
  z-index: 10050;
  display: none;
  overflow: hidden;
}

html.modo-inbox.wa-compact .tb-notif-panel,
html.wa-compact.modo-inbox .tb-notif-panel {
  top: calc(var(--wa-chrome) + 8px);
  bottom: auto;
  left: auto;
  right: 8px;
  width: min(360px, calc(100vw - 16px));
  max-width: calc(100vw - 16px);
  max-height: min(70vh, calc(100dvh - var(--wa-chrome) - 16px));
  transform-origin: top right;
}

@media (max-width: 768px) {
  html.wa-compact #wa-inbox {
    height: calc(100dvh - 120px);
    min-height: 0;
  }
  html.modo-inbox.wa-compact #wa-inbox {
    height: 100%;
  }
  html.modo-inbox.wa-compact #app.on #wa-inbox:not(.wa-view-chat) {
    height: calc(100% - var(--wa-dock));
    max-height: calc(100% - var(--wa-dock));
  }
  html.modo-inbox.wa-compact #app.on #wa-inbox.wa-view-chat {
    height: 100%;
    max-height: none;
  }
  html:not(.modo-inbox).wa-compact .ca {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: calc(100dvh - 52px);
  }
  html:not(.modo-inbox).wa-compact .ph {
    flex-shrink: 0;
  }
  html:not(.modo-inbox).wa-compact #pc {
    padding: 0;
    flex: 1;
    min-height: 0;
    height: auto;
    display: flex;
    flex-direction: column;
  }
}

/* ===== Sala da Equipe ===== */
#wa-equipe-pane {
  display: none;
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #f4f6fb;
}
#wa-equipe-pane[hidden] {
  display: none !important;
}
#wa-inbox.wa-eq-on .wa-inbox-side,
#wa-inbox.wa-eq-on .wa-inbox-chat {
  display: none !important;
}
#wa-inbox.wa-eq-on #wa-equipe-pane:not([hidden]) {
  display: flex;
  position: relative;
  z-index: 1;
  overflow: hidden;
  flex: 1 1 auto;
  height: 100%;
  min-height: 0;
}
html.modo-inbox #wa-inbox.wa-eq-on,
html.wa-compact #wa-inbox.wa-eq-on {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
#wa-inbox.wa-eq-on .wa-inbox-body {
  display: flex;
  flex: 1;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}
.wa-eq-pane {
  flex-direction: row;
}
.wa-eq-lista-col {
  width: min(340px, 36vw);
  max-width: 400px;
  border-right: 1px solid #e8edf2;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #f7f9fc;
}
.wa-eq-chat-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background:
    linear-gradient(180deg, rgba(0,61,165,.06), transparent 120px),
    repeating-linear-gradient(-18deg, transparent, transparent 22px, rgba(185,151,91,.04) 22px, rgba(185,151,91,.04) 23px);
}
.wa-eq-head {
  padding: 16px 16px 12px;
  background: linear-gradient(135deg, #061536 0%, #003DA5 62%, #1a4fd8 100%);
  color: #fff;
}
.wa-eq-kicker {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #e8d5a3;
}
.wa-eq-lead {
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.4;
  color: rgba(255,255,255,.72);
  max-width: 280px;
}
.wa-eq-extras {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 4px 6px;
}
.wa-eq-hint {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
  color: #64748b;
}
.wa-eq-avisar {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #0d1f4e;
  cursor: pointer;
  user-select: none;
}
.wa-eq-avisar[hidden] { display: none !important; }
.wa-eq-avisar input {
  margin: 2px 0 0;
  accent-color: #6d28d9;
  flex-shrink: 0;
}
.wa-eq-avisar-ajuda {
  margin: 8px 0 12px;
}
.wa-eq-online {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.wa-eq-online-lbl {
  font-size: 11px;
  color: rgba(255,255,255,.72);
}
.wa-eq-online-avs {
  display: flex;
  align-items: center;
}
.wa-eq-online-avs .wa-eq-av,
.wa-eq-online-avs .pf-av {
  margin-left: -8px;
  border: 2px solid #0d1f4e;
  border-radius: 50%;
}
.wa-eq-online-avs .wa-eq-av:first-child,
.wa-eq-online-avs .pf-av:first-child { margin-left: 0; }
.wa-eq-busca-wrap { padding: 10px 12px 6px; }
#wa-eq-busca {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 13px;
}
.wa-eq-lista {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 4px 8px 16px;
}
.wa-eq-sec {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #94a3b8;
  padding: 12px 8px 6px;
}
.wa-eq-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border: none;
  background: transparent;
  text-align: left;
  padding: 10px 8px;
  border-radius: 12px;
  cursor: pointer;
  position: relative;
}
.wa-eq-item:hover { background: rgba(0,61,165,.06); }
.wa-eq-item.is-on { background: rgba(0,61,165,.1); }
.wa-eq-item-av { position: relative; flex-shrink: 0; }
.wa-eq-av,
.wa-eq-item .pf-av {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
  overflow: hidden;
}
.wa-eq-av-sala {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #003DA5, #b9975b);
  color: #fff;
}
.wa-eq-av-sala .wa-ic { color: #fff; }
.wa-eq-dot {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #f7f9fc;
  background: #94a3b8;
}
.wa-eq-dot.is-online { background: #16a34a; }
.wa-eq-dot.is-ausente { background: #f59e0b; }
.wa-eq-item-body { flex: 1; min-width: 0; }
.wa-eq-item-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
}
.wa-eq-item-top b { color: #0d1f4e; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wa-eq-item-top span { font-size: 10px; color: #94a3b8; flex-shrink: 0; }
.wa-eq-item-prev {
  display: block;
  font-size: 12px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}
.wa-eq-unread {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #003DA5;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(0,61,165,.16);
}
.wa-eq-topo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  min-height: 56px;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid #e8edf2;
  backdrop-filter: blur(10px);
}
.wa-eq-topo-meta { min-width: 0; }
.wa-eq-topo-meta b {
  display: block;
  color: #0d1f4e;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wa-eq-topo-meta span { font-size: 11px; color: #64748b; text-transform: capitalize; }
.wa-eq-msgs {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 16px 10px;
  -webkit-touch-callout: none;
}
.wa-eq-msg.is-find-cur,
.wa-eq-sys-row.is-find-cur {
  box-shadow: 0 0 0 2px rgba(245,158,11,.55);
  border-radius: 12px;
}
.wa-eq-vazio, .wa-eq-vazio-chat {
  padding: 24px 16px;
  color: #94a3b8;
  font-size: 13px;
  text-align: center;
}
.wa-eq-stale {
  margin: 4px 8px 8px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  color: #8a6d32;
  background: rgba(185, 151, 91, .12);
  border-radius: 8px;
}
.wa-eq-retry,
.wa-eq-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 10px auto 0;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: #003DA5;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.wa-eq-more {
  display: flex;
  width: fit-content;
  margin: 0 auto 12px;
  background: rgba(0, 61, 165, .1);
  color: #003DA5;
}
.wa-eq-erro .wa-eq-retry { display: inline-flex; }
.wa-eq-msg {
  max-width: min(76%, 420px);
  margin: 0 0 10px;
  padding: 8px 12px 6px;
  border-radius: 14px 14px 14px 4px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15,23,42,.08);
  color: #0f172a;
}
.wa-eq-msg.is-mine {
  margin-left: auto;
  background: linear-gradient(180deg, #003DA5, #062e7a);
  color: #fff;
  border-radius: 14px 14px 4px 14px;
}
.wa-eq-msg.is-menu {
  box-shadow: 0 0 0 2px rgba(185, 151, 91, .55);
}
.wa-eq-msg.is-flash {
  animation: waEqFlash 1.2s ease;
}
@keyframes waEqFlash {
  0%, 100% { box-shadow: 0 1px 2px rgba(15,23,42,.08); }
  35% { box-shadow: 0 0 0 3px rgba(185, 151, 91, .7); }
}
html.wa-compact .wa-eq-msg {
  -webkit-user-select: none;
  user-select: none;
}
.wa-eq-msg-who { font-size: 11px; font-weight: 800; color: #003DA5; margin-bottom: 3px; }
.wa-eq-msg.is-mine .wa-eq-msg-who { display: none; }
.wa-eq-msg-txt { font-size: 14px; line-height: 1.4; word-wrap: break-word; }
.wa-eq-mention {
  color: #8a6d2b;
  font-weight: 800;
  background: rgba(185, 151, 91, .2);
  border-radius: 5px;
  padding: 0 4px;
}
.wa-eq-mention.is-hit { box-shadow: inset 0 0 0 1px rgba(185, 151, 91, .35); }
.wa-eq-msg.is-mine .wa-eq-mention {
  color: #ffe9a8;
  background: rgba(255, 255, 255, .16);
}
.wa-eq-msg.is-mine .wa-eq-mention.is-hit {
  box-shadow: inset 0 0 0 1px rgba(255, 233, 168, .45);
}
.wa-eq-composer { position: relative; }
.wa-eq-mention-pop {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: calc(100% - 2px);
  z-index: 40;
  max-height: 220px;
  overflow: auto;
  padding: 6px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .16);
}
.wa-eq-mention-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: 10px;
  padding: 8px 10px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: #0f172a;
}
.wa-eq-mention-opt:hover,
.wa-eq-mention-opt.is-on { background: #f1f5f9; }
.wa-eq-mention-meta { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.wa-eq-mention-meta b { font-size: 13px; font-weight: 800; }
.wa-eq-mention-meta small { font-size: 11px; color: #64748b; }
.wa-eq-msg-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  font-size: 10px;
  color: #94a3b8;
  margin-top: 4px;
}
.wa-eq-msg.is-mine .wa-eq-msg-meta { color: rgba(255,255,255,.65); }
.wa-eq-msg-more {
  border: none;
  background: transparent;
  color: inherit;
  padding: 0;
  cursor: pointer;
  opacity: .9;
  min-width: 36px;
  min-height: 36px;
  margin: -10px -6px -10px 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
html.wa-compact .wa-eq-msg-more {
  min-width: 44px;
  min-height: 44px;
}
.wa-eq-reacts { display: flex; gap: 4px; margin-top: 6px; flex-wrap: wrap; }
.wa-eq-react {
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 999px;
  font-size: 12px;
  padding: 1px 7px;
  cursor: pointer;
}
.wa-eq-react.is-mine { border-color: #b9975b; background: #fbf6ea; }
.wa-eq-msg.is-mine .wa-eq-react { border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.12); color: #fff; }
.wa-eq-card {
  background: rgba(0,61,165,.06);
  border: 1px solid rgba(185,151,91,.35);
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 6px;
}
.wa-eq-msg.is-mine .wa-eq-card {
  background: rgba(255,255,255,.1);
  border-color: rgba(232,213,163,.4);
}
.wa-eq-card-k {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #b9975b;
  margin-bottom: 4px;
}
.wa-eq-card-n { font-weight: 800; font-size: 14px; }
.wa-eq-papel {
  display: inline-block;
  margin-left: 6px;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(185,151,91,.2);
  color: #8a6d32;
}
.wa-eq-card-t, .wa-eq-card-p { font-size: 12px; color: #64748b; margin-top: 3px; }
.wa-eq-msg.is-mine .wa-eq-card-t,
.wa-eq-msg.is-mine .wa-eq-card-p { color: rgba(255,255,255,.75); }
.wa-eq-card-recado {
  margin-top: 8px;
  padding: 8px 10px;
  background: rgba(185,151,91,.14);
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.4;
  color: #0d1f4e;
}
.wa-eq-card-recado-k {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #b9975b;
  margin-bottom: 4px;
}
.wa-eq-msg.is-mine .wa-eq-card-recado {
  color: #fff;
  background: rgba(255,255,255,.12);
}
.wa-eq-msg.is-mine .wa-eq-card-recado-k { color: #e8d5a3; }
.wa-eq-card-go {
  margin-top: 8px;
  border: none;
  border-radius: 8px;
  padding: 6px 10px;
  background: #b9975b;
  color: #0d1829;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.wa-eq-card-acoes { display: flex; gap: 8px; margin-top: 8px; }
.wa-eq-card-no {
  margin-top: 8px;
  border: 1px solid rgba(185,151,91,.45);
  border-radius: 8px;
  padding: 6px 10px;
  background: transparent;
  color: #003DA5;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.wa-eq-msg.is-mine .wa-eq-card-no { color: #e8d5a3; border-color: rgba(232,213,163,.45); }
.wa-eq-card-timer {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #8a6d32;
}
.wa-eq-card-timer .wa-aceite-timer { color: #003DA5; margin-left: 4px; }
.wa-eq-msg.is-mine .wa-eq-card-timer .wa-aceite-timer { color: #e8d5a3; }
.wa-eq-card-status {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.wa-eq-card-status.is-ok { color: #003DA5; }
.wa-eq-card-status.is-no { color: #8a6d32; }
.wa-eq-sys-row { display: flex; justify-content: center; margin: 10px 0; }
.wa-eq-sys {
  max-width: 86%;
  text-align: center;
  font-size: 12px;
  line-height: 1.4;
  color: #64748b;
  background: rgba(0,61,165,.06);
  border-radius: 999px;
  padding: 6px 12px;
}
.wa-eq-composer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
  background: #f6f8fc;
  border-top: 1px solid #e8edf2;
}
#wa-inbox.wa-eq-on:not(.wa-eq-chat) .wa-eq-composer {
  display: none;
}
#wa-eq-acao.wa-comp-acao {
  background: #003DA5;
  box-shadow: 0 1px 3px rgba(0, 61, 165, .35);
}
#wa-eq-acao.wa-comp-acao:hover { background: #062e7a; }
#wa-eq-acao.wa-comp-acao.is-rec {
  background: #ef4444;
  box-shadow: 0 1px 3px rgba(239, 68, 68, .35);
}
#wa-eq-composer .wa-emoji-tabs button.is-on {
  background: #d6e4f7;
  color: #003DA5;
}
#wa-eq-composer .wa-emoji-cats button.is-on {
  color: #003DA5;
  background: #e8eef8;
}
#wa-eq-composer .wa-emoji-panel {
  margin: -8px -8px 8px;
}
.wa-eq-quote {
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  cursor: pointer;
  font-size: 12px;
  border: none;
  border-left: 3px solid #b9975b;
  padding: 4px 8px;
  margin-bottom: 6px;
  color: #64748b;
  background: rgba(185, 151, 91, .12);
  border-radius: 0 8px 8px 0;
}
.wa-eq-msg.is-mine .wa-eq-quote { color: rgba(255,255,255,.8); border-left-color: #e8d5a3; }
.wa-eq-trecho {
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.35;
  color: #475569;
}
.wa-eq-trecho.is-clip:not(.is-open) {
  max-height: 12em;
  overflow: hidden;
}
.wa-eq-trecho-row { margin: 0 0 8px; }
.wa-eq-trecho-row.is-eq { text-align: right; color: #003DA5; }
.wa-eq-trecho-row.is-ct { text-align: left; }
.wa-eq-trecho-row > b { display: block; margin-bottom: 2px; }
.wa-eq-trecho-cap { margin-top: 4px; white-space: pre-wrap; word-break: break-word; }
.wa-eq-trecho-thumb,
.wa-eq-trecho-vid {
  display: inline-block;
  max-width: 180px;
  max-height: 140px;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 4px;
}
.wa-eq-trecho-thumb img,
.wa-eq-trecho-vid {
  display: block;
  width: 100%;
  max-height: 140px;
  object-fit: cover;
  background: #0d1f4e;
}
.wa-eq-trecho-audio { max-width: 220px; margin-top: 4px; }
.wa-eq-trecho .wa-loc-card { max-width: 220px; margin-top: 4px; }
.wa-eq-trecho .wa-loc-map { height: 84px; }
.wa-eq-msg.is-mine .wa-eq-trecho,
.wa-eq-msg.is-mine .wa-eq-trecho-row.is-eq { color: rgba(255,255,255,.85); }
.wa-eq-trecho-more {
  border: none;
  background: transparent;
  color: #003DA5;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 0;
  cursor: pointer;
}
.wa-eq-msg.is-mine .wa-eq-trecho-more { color: #e8d5a3; }
.wa-eq-vcard { margin: 4px 0; }
#wa-eq-msg-menu-scrim {
  position: fixed;
  inset: 0;
  z-index: 559;
  background: transparent;
}
#wa-eq-texto {
  flex: 1;
  resize: none;
  min-height: 40px;
  max-height: 120px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
}
.wa-eq-send {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: #003DA5;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.wa-eq-send .wa-ic { color: #fff; }
.wa-eq-ajuda {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 540;
  background: rgba(7,17,31,.55);
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
}
.wa-eq-ajuda.is-on { display: flex; }
.wa-eq-ajuda-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: 18px 18px 12px 12px;
  padding: 10px 16px 18px;
  box-shadow: 0 20px 50px rgba(15,23,42,.28);
}
.wa-eq-ajuda-head { display: flex; align-items: center; gap: 8px; padding: 6px 0 8px; }
.wa-eq-ajuda-head > div > div:last-child { font-size: 16px; font-weight: 800; color: #0d1f4e; }
.wa-eq-ajuda-sub { font-size: 12px; color: #64748b; margin: 0 0 10px; }
.wa-eq-ajuda-card label { display: block; font-size: 11px; font-weight: 800; color: #475569; margin: 8px 0 4px; }
.wa-eq-ajuda-card select,
.wa-eq-ajuda-card textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
}
.wa-eq-ajuda-go {
  margin-top: 14px;
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 12px 14px;
  background: #003DA5;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}
#wa-eq-msg-menu {
  position: fixed;
  z-index: 560;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #fff;
  border: 1px solid #e8edf2;
  border-radius: 14px;
  padding: 8px;
  min-width: 260px;
  box-shadow: 0 12px 28px rgba(15,23,42,.16);
}
#wa-eq-msg-menu .wa-eq-msg-reacts {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding-bottom: 6px;
  margin-bottom: 4px;
  border-bottom: 1px solid #f1f5f9;
}
#wa-eq-msg-menu .wa-eq-msg-reacts button {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
  border-radius: 50%;
}
#wa-eq-msg-menu .wa-eq-msg-reacts button.is-on {
  background: rgba(185, 151, 91, .2);
}
#wa-eq-msg-menu .wa-eq-msg-act {
  width: auto;
  height: auto;
  border: none;
  background: transparent;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 700;
  color: #0d1f4e;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
}
#wa-eq-msg-menu .wa-eq-msg-act:hover {
  background: #f1f5f9;
}
#wa-eq-msg-menu .wa-eq-msg-act.is-danger {
  color: #b91c1c;
}
#wa-eq-react-who-scrim {
  position: fixed;
  inset: 0;
  z-index: 559;
  background: rgba(7, 17, 31, .28);
}
#wa-eq-react-who {
  position: fixed;
  z-index: 560;
  min-width: 240px;
  max-width: min(320px, calc(100vw - 16px));
  background: #fff;
  border: 1px solid #e8edf2;
  border-radius: 14px;
  padding: 8px 0 6px;
  box-shadow: 0 12px 28px rgba(15,23,42,.16);
  overflow: auto;
  max-height: min(70vh, 520px);
}
.wa-eq-react-who-hd {
  font-size: 12px;
  font-weight: 800;
  color: #0d1f4e;
  padding: 4px 14px 8px;
}
.wa-eq-react-who-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: none;
  background: transparent;
  padding: 8px 14px;
  cursor: default;
  text-align: left;
  color: #0d1f4e;
  font: inherit;
}
.wa-eq-react-who-row.is-mine {
  cursor: pointer;
  background: #fbf6ea;
}
.wa-eq-react-who-row.is-mine:hover {
  background: #f4ead3;
}
.wa-eq-react-who-av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #dbeafe;
  color: #003DA5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}
.wa-eq-react-who-name {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wa-eq-react-who-em {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}
.wa-eq-react-who-hint {
  display: block;
  font-size: 11px;
  color: #8a6d32;
  font-weight: 500;
  margin-top: 1px;
}

html.modo-inbox:not(.wa-compact) .wa-eq-lista-col {
  width: min(360px, 32vw);
}

html.wa-compact #wa-inbox.wa-eq-on .wa-eq-lista-col,
html.wa-compact #wa-inbox.wa-eq-on .wa-eq-chat-col {
  width: 100%;
  max-width: none;
  min-height: 0;
  flex: 1;
}
html.wa-compact #wa-inbox.wa-eq-on:not(.wa-eq-chat) .wa-eq-chat-col {
  display: none;
}
html.wa-compact #wa-inbox.wa-eq-on.wa-eq-chat .wa-eq-lista-col {
  display: none;
}
html.wa-compact #wa-eq-texto,
html.wa-compact #wa-eq-busca,
html.wa-compact #wa-eq-ajuda-texto { font-size: 16px; }
html.modo-inbox.wa-compact:has(#wa-inbox.wa-eq-on:not(.wa-eq-chat)) #app.on ~ #wa-app-root .wa-app-dock {
  display: flex !important;
}
html.modo-inbox.wa-compact:has(#wa-inbox.wa-eq-on.wa-eq-chat) #app.on ~ #wa-app-root .wa-app-dock {
  display: none !important;
}

.wa-conv-pin {
  color: #64748b;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
}
.wa-conv-wrap.is-pinned .wa-conv-pin {
  color: #0d1f4e;
}
.wa-conv-mute {
  color: #94a3b8;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
}
.wa-conv-wrap.is-muted .wa-conv-mute {
  color: #64748b;
}

.wa-media-lib {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #0d1f4e;
  font-family: inherit;
}

.wa-media-lib-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #0a1220 0%, #0d1f4e 52%, #111827 100%);
  border-radius: 16px;
  padding: 18px 18px 16px;
  color: #fff;
  box-shadow: 0 8px 24px rgba(13, 31, 78, .18);
}

.wa-media-lib-hero::before {
  content: '';
  position: absolute;
  top: -48%;
  right: -10%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(212, 32, 40, .16) 0%, transparent 70%);
  pointer-events: none;
}

.wa-media-lib-hero-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.wa-media-lib-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #003DA5, #D42028);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.wa-media-lib-hero-brand strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.2px;
}

.wa-media-lib-hero-brand p {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 255, 255, .58);
}

.wa-media-lib-metrics {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.wa-media-lib-metric {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
  padding: 10px 12px;
}

.wa-media-lib-metric span {
  display: block;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: rgba(255, 255, 255, .55);
  margin-bottom: 4px;
}

.wa-media-lib-metric b {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.4px;
}

.wa-media-lib-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #e8edf2;
  border-radius: 12px;
  padding: 0 12px;
  color: #64748b;
}

.wa-media-lib-search:focus-within {
  border-color: #003DA5;
  box-shadow: 0 0 0 3px rgba(0, 61, 165, .08);
}

.wa-media-lib-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: 0;
  padding: 11px 0;
  font: 650 13px inherit;
  color: #0d1f4e;
}

.wa-media-lib-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wa-media-lib-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fff;
  border: 1px solid #e8edf2;
  border-radius: 14px;
  padding: 14px;
}

.wa-media-lib-file {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #f1f5f9;
  color: #0d1f4e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wa-media-lib-copy {
  min-width: 0;
  flex: 1;
}

.wa-media-lib-copy strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.wa-media-lib-copy small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
}

.wa-media-lib-badge {
  display: inline-flex;
  margin-top: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}

.wa-media-lib-badge.is-ok {
  background: #ecfdf5;
  color: #047857;
}

.wa-media-lib-badge.is-warn {
  background: #fffbeb;
  color: #b45309;
}

.wa-media-lib-err {
  margin: 6px 0 0;
  font-size: 11px;
  font-weight: 600;
  color: #b91c1c;
  overflow-wrap: anywhere;
}

.wa-media-lib-acts {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

.wa-media-lib-btn {
  border: 1px solid #e2e8f0;
  background: #0f1a35;
  color: #fff;
  border-radius: 8px;
  padding: 7px 10px;
  font: 800 11px inherit;
  cursor: pointer;
  white-space: nowrap;
}

.wa-media-lib-btn:disabled {
  opacity: .55;
  cursor: default;
}

.wa-media-lib-btn.is-danger {
  background: #fff;
  color: #b91c1c;
  border-color: #fecaca;
}

.wa-media-lib-empty {
  background: #fff;
  border: 1px dashed #d9e0e9;
  border-radius: 14px;
  padding: 36px 20px;
  text-align: center;
  color: #64748b;
}

.wa-media-lib-empty-ico {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 14px;
  background: #f1f5f9;
  color: #0d1f4e;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wa-media-lib-empty strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: #0d1f4e;
}

.wa-media-lib-empty p {
  margin: 6px auto 0;
  max-width: 320px;
  font-size: 12px;
  line-height: 1.45;
}

.wa-media-lib-loading {
  background: #fff;
  border-radius: 14px;
  padding: 28px 16px;
  text-align: center;
  font-size: 13px;
  font-weight: 650;
  color: #64748b;
}

@media (max-width: 560px) {
  .wa-media-lib-card {
    flex-wrap: wrap;
  }
  .wa-media-lib-acts {
    flex-direction: row;
    width: 100%;
  }
  .wa-media-lib-btn {
    flex: 1;
  }
}

/* Captação de imóveis — hub Inbox */
.wa-cap-hub {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 4px 2px 8px;
}

.wa-cap-lead {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #475569;
}

.wa-cap-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  padding: 14px 12px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

.wa-cap-card:hover,
.wa-cap-card:focus-visible {
  border-color: #b9975b;
  background: #fffdf8;
  outline: none;
}

.wa-cap-card-ico {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0d1f4e, #16306e);
  color: #e8d5a3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wa-cap-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wa-cap-card-body strong {
  font-size: 14px;
  font-weight: 800;
  color: #0d1f4e;
}

.wa-cap-card-body span {
  font-size: 12px;
  line-height: 1.4;
  color: #64748b;
}

.wa-cap-card-go {
  flex-shrink: 0;
  color: #94a3b8;
}

.wa-cap-tips {
  margin-top: 4px;
  padding: 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.wa-cap-tips-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 6px;
}

.wa-cap-tips ul {
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
  line-height: 1.45;
  color: #475569;
}

.wa-cap-tips li + li {
  margin-top: 4px;
}

.wa-cap-form {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 8px;
}

.wa-cap-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.wa-cap-btn {
  flex: 1 1 140px;
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  padding: 10px 12px;
}

.wa-cap-btn:disabled {
  opacity: .55;
  cursor: wait;
}

.wa-cap-btn-ghost {
  background: #fff;
  border-color: #e2e8f0;
  color: #475569;
  flex: 0 1 auto;
}

.wa-cap-btn-navy {
  background: #0d1f4e;
  color: #fff;
}

.wa-cap-btn-wa {
  background: #25d366;
  color: #fff;
}

.wa-cap-foot {
  margin: 10px 0 0;
  font-size: 11px;
  line-height: 1.4;
  color: #94a3b8;
}

@media (max-width: 480px) {
  .wa-cap-actions {
    flex-direction: column;
  }
  .wa-cap-btn,
  .wa-cap-btn-ghost {
    flex: 1 1 auto;
    width: 100%;
  }
}

.wa-cap-loader {
  position: fixed;
  inset: 0;
  z-index: 230000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(7, 17, 31, .48);
  backdrop-filter: blur(4px);
}

.wa-cap-loader-card {
  width: min(320px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 22px 18px 16px;
  text-align: center;
  box-shadow: 0 18px 48px rgba(15, 23, 42, .28);
}

.wa-cap-spinner {
  width: 36px;
  height: 36px;
  margin: 0 auto 14px;
  border-radius: 50%;
  border: 3px solid #e2e8f0;
  border-top-color: #0d1f4e;
  animation: wa-cap-spin .8s linear infinite;
}

@keyframes wa-cap-spin {
  to { transform: rotate(360deg); }
}

.wa-cap-loader-msg {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
  color: #0f172a;
}

.wa-cap-loader-cancel {
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #64748b;
  border-radius: 10px;
  min-height: 40px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .wa-cap-spinner { animation: none; border-top-color: #b9975b; }
}

/* Seletor de abertura do Inbox no ERP */
.ui-dlg.ui-dlg-choice .ui-dlg-card {
  width: min(480px, 100%);
  max-height: min(calc(100vh - 24px), calc(100dvh - 24px));
}
.ui-dlg.ui-dlg-choice .ui-dlg-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 20px calc(18px + env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
}
.ui-dlg-choice-act {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  text-decoration: none;
  text-align: left;
  font: inherit;
  cursor: pointer;
  box-sizing: border-box;
}
.ui-dlg-choice-act:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}
.ui-dlg-choice-act:focus {
  outline: 2px solid rgba(0, 61, 165, .35);
  outline-offset: 2px;
}
.ui-dlg-choice-act:active {
  background: #f1f5f9;
}
.ui-dlg-choice-act.is-primary {
  background: #003DA5;
  border-color: #003DA5;
  color: #fff;
}
.ui-dlg-choice-act.is-primary:hover,
.ui-dlg-choice-act.is-primary:active {
  background: #002f80;
  border-color: #002f80;
  color: #fff;
}
.ui-dlg-choice-act.is-primary:focus {
  outline-color: rgba(0, 61, 165, .55);
}
.ui-dlg-choice-label {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}
.ui-dlg-choice-hint {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  opacity: .78;
}
.ui-dlg-choice-close {
  min-height: 44px;
  width: 100%;
  border: 0;
  background: none;
  color: #64748b;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.ui-dlg-choice-close:hover,
.ui-dlg-choice-close:focus {
  color: #0f172a;
  outline: 2px solid rgba(0, 61, 165, .35);
  outline-offset: 2px;
}
.ui-dlg-live:empty {
  display: none;
}
.ui-dlg-live:not(:empty) {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.45;
  color: #475569;
}
@media (max-width: 640px) {
  .ui-dlg.ui-dlg-choice {
    align-items: flex-end;
    padding: 12px 12px calc(12px + env(safe-area-inset-bottom, 0px));
  }
  .ui-dlg.ui-dlg-choice .ui-dlg-card {
    width: 100%;
    max-height: min(calc(100vh - 16px), calc(100dvh - 16px));
  }
}
@media (prefers-reduced-motion: reduce) {
  .ui-dlg.ui-dlg-choice .ui-dlg-card {
    animation: none;
  }
}


/* =====================================================================
   Inbox — Mesa de atendimento (redesenho)
   Camada visual sobre o CSS base injetado por waRenderInboxShell().
   Prefixo #wa-inbox para vencer o <style> injetado sem !important.
   ===================================================================== */

#wa-inbox {
  --ib-ink: #0b1a33;
  --ib-ink-2: #2f3d52;
  --ib-muted: #56657a;
  --ib-faint: #8795a8;
  --ib-line: #e3e8ef;
  --ib-line-2: #edf1f6;
  --ib-side: #f6f8fb;
  --ib-hover: #edf1f7;
  --ib-sel: #e3ebf9;
  --ib-navy: #0d1f4e;
  --ib-blue: #003da5;
  --ib-gold: #b9975b;
  --ib-gold-soft: #e8d5a3;
  --ib-green: #15803d;
  --ib-green-bg: #e3f3e8;
  --ib-warn: #8a4b06;
  --ib-warn-bg: #fcefd9;
  --ib-late: #a51d24;
  --ib-late-bg: #fde4e4;
  --ib-canvas: #efebe4;
  --ib-out: #dde7f7;
  --ib-ease: cubic-bezier(.16, 1, .3, 1);
  color: var(--ib-ink);
}

#wa-inbox ::selection { background: rgba(0, 61, 165, .18); }
#wa-inbox input,
#wa-inbox textarea { caret-color: var(--ib-blue); }

/* ---------- Trilho (barra de ícones) ---------- */

html.modo-inbox:not(.wa-compact) #wa-inbox .wa-inbox-rail {
  width: 64px;
  gap: 4px;
  padding: 14px 0;
  background: #07111f;
  border-right: 1px solid rgba(255, 255, 255, .05);
}

#wa-inbox .wa-rail-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: rgba(214, 223, 236, .6);
  transition: background-color .18s ease, color .18s ease;
}

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

#wa-inbox .wa-rail-btn:focus-visible,
#wa-inbox .wa-rail-eu:focus-visible {
  outline: 2px solid var(--ib-gold-soft);
  outline-offset: 2px;
}

#wa-inbox .wa-rail-btn.is-on {
  background: rgba(185, 151, 91, .15);
  color: var(--ib-gold-soft);
}

#wa-inbox .wa-rail-btn.is-on::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 11px;
  bottom: 11px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--ib-gold);
}

#wa-inbox .wa-rail-nova {
  width: 44px;
  height: 44px;
  margin: 2px 0 4px;
  border-radius: 14px;
  background: var(--ib-gold);
  color: #07111f;
  box-shadow: 0 6px 16px rgba(185, 151, 91, .28);
}

#wa-inbox .wa-rail-nova .wa-ic { color: #07111f; }
#wa-inbox .wa-rail-nova:hover,
#wa-inbox .wa-rail-nova:focus-visible { background: #ccab70; color: #07111f; }

#wa-inbox .wa-rail-sep {
  display: block;
  width: 24px;
  height: 1px;
  margin: 6px 0;
  background: rgba(255, 255, 255, .1);
}

#wa-inbox .wa-rail-eu {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  margin-top: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #1b2b47;
  color: var(--ib-gold-soft);
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .1);
  transition: box-shadow .18s ease;
}

#wa-inbox .wa-rail-eu:hover { box-shadow: 0 0 0 2px rgba(232, 213, 163, .55); }

#wa-inbox .wa-rail-eu img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

#wa-inbox .wa-rail-eu i {
  position: absolute;
  right: -1px;
  bottom: -1px;
  z-index: 2;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #94a3b8;
  box-shadow: 0 0 0 2px #07111f;
}

#wa-inbox .wa-rail-eu[data-presenca="online"] i { background: #22c55e; }
#wa-inbox .wa-rail-eu[data-presenca="ocupado"] i { background: #ef4444; }
#wa-inbox .wa-rail-eu[data-presenca="ausente"] i { background: #f59e0b; }

/* Tooltips do trilho: o rótulo já está no aria-label. */
html:not(.wa-compact) #wa-inbox .wa-rail-btn::after,
html:not(.wa-compact) #wa-inbox .wa-rail-eu::after {
  content: attr(aria-label);
  position: absolute;
  left: calc(100% + 14px);
  top: 50%;
  z-index: 40;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--ib-ink);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-4px, -50%);
  box-shadow: 0 8px 20px rgba(7, 17, 31, .24);
  transition: opacity .12s ease, transform .2s var(--ib-ease);
}

html:not(.wa-compact) #wa-inbox .wa-rail-btn:hover::after,
html:not(.wa-compact) #wa-inbox .wa-rail-eu:hover::after {
  opacity: 1;
  transform: translate(0, -50%);
  transition-delay: .35s;
}

html:not(.wa-compact) #wa-inbox .wa-rail-btn:focus-visible::after,
html:not(.wa-compact) #wa-inbox .wa-rail-eu:focus-visible::after {
  opacity: 1;
  transform: translate(0, -50%);
}

/* ---------- Coluna de conversas ---------- */

html.modo-inbox:not(.wa-compact) #wa-inbox .wa-inbox-side {
  width: clamp(340px, 29vw, 420px);
  max-width: none;
  background: var(--ib-side);
  border-right: 1px solid var(--ib-line);
}

html.modo-inbox:not(.wa-compact) #wa-inbox .wa-inbox-head {
  padding: 18px 18px 12px;
  border-bottom: 0;
  background: transparent;
}

#wa-inbox .wa-inbox-brand-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -.02em;
  line-height: 1.15;
  color: var(--ib-ink);
}

#wa-inbox .wa-inbox-brand-title span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ib-muted);
}

#wa-inbox #wa-inbox-status {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ib-muted);
}

#wa-inbox #wa-inbox-status::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  vertical-align: 1px;
  background: #94a3b8;
}

#wa-inbox #wa-inbox-status[data-state="on"]::before {
  background: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, .16);
}

#wa-inbox #wa-inbox-status[data-state="pending"]::before {
  background: #d97706;
  animation: waSyncPulse 1.2s ease-in-out infinite;
}

#wa-inbox #wa-inbox-status[data-state="off"] { color: var(--ib-late); }
#wa-inbox #wa-inbox-status[data-state="off"]::before { background: #dc2626; }

#wa-inbox .wa-syncbar { color: var(--ib-muted); font-size: 11px; }

/* Busca */
#wa-inbox .wa-inbox-busca-wrap {
  position: relative;
  padding: 0 14px 10px;
}

#wa-inbox #wa-inbox-busca {
  width: 100%;
  height: 40px;
  padding: 0 40px 0 38px;
  border: 1px solid var(--ib-line);
  border-radius: 12px;
  background: #fff;
  color: var(--ib-ink);
  font: inherit;
  font-size: 14px;
  box-shadow: 0 1px 2px rgba(11, 26, 51, .04);
  transition: border-color .15s ease, box-shadow .15s ease;
}

#wa-inbox #wa-inbox-busca::placeholder { color: #6b7a8f; }

#wa-inbox #wa-inbox-busca:focus {
  outline: none;
  border-color: var(--ib-blue);
  box-shadow: 0 0 0 4px rgba(0, 61, 165, .12);
}

#wa-inbox .wa-inbox-busca-ico {
  position: absolute;
  left: 27px;
  top: 20px;
  display: flex;
  color: var(--ib-faint);
  pointer-events: none;
  transform: translateY(-50%);
}

#wa-inbox .wa-inbox-busca-kbd {
  position: absolute;
  right: 26px;
  top: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border: 1px solid var(--ib-line);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--ib-side);
  color: var(--ib-muted);
  font: 700 11px/1 var(--font-sans), sans-serif;
  pointer-events: none;
  transform: translateY(-50%);
  transition: opacity .15s ease;
}

#wa-inbox #wa-inbox-busca:focus ~ .wa-inbox-busca-kbd,
#wa-inbox #wa-inbox-busca:not(:placeholder-shown) ~ .wa-inbox-busca-kbd { opacity: 0; }

/* Abas: controle segmentado com contadores semânticos */
#wa-inbox .wa-inbox-filtros {
  display: block;
  padding: 0 14px 12px;
  border-bottom: 1px solid var(--ib-line);
}

#wa-inbox .wa-filtros-track {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 12px;
  background: #e8edf4;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

#wa-inbox .wa-filtros-track::-webkit-scrollbar { display: none; }

#wa-inbox .wa-filtro {
  flex: 1 0 auto;
  gap: 6px;
  height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ib-muted);
  font: inherit;
  font-size: 12.5px;
  font-weight: 650;
  white-space: nowrap;
  scroll-snap-align: start;
  transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
}

#wa-inbox .wa-filtro:hover { color: var(--ib-ink); background: rgba(255, 255, 255, .55); }

#wa-inbox .wa-filtro.is-on {
  background: #fff;
  color: var(--ib-ink);
  box-shadow: 0 1px 2px rgba(11, 26, 51, .08), 0 3px 8px rgba(11, 26, 51, .06);
}

#wa-inbox .wa-filtro.is-peek { background: rgba(255, 255, 255, .6); box-shadow: none; }

#wa-inbox .wa-filtro:focus-visible {
  outline: 2px solid var(--ib-blue);
  outline-offset: 1px;
}

#wa-inbox .wa-filtro-badge,
#wa-inbox .wa-filtro.is-on .wa-filtro-badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #dbe2ec;
  color: var(--ib-ink-2);
  font-size: 10.5px;
  font-weight: 750;
  line-height: 18px;
  font-variant-numeric: tabular-nums;
}

#wa-inbox #wa-minhas-badge,
#wa-inbox #wa-nao-lidas-badge { background: var(--ib-green-bg); color: #0f6b34; }
#wa-inbox #wa-aceitar-badge { background: var(--ib-warn-bg); color: var(--ib-warn); }
#wa-inbox #wa-fila-badge { background: var(--ib-late-bg); color: var(--ib-late); }

#wa-inbox .wa-filtro-corretor-wrap {
  display: block;
  margin-top: 8px;
}

#wa-inbox .wa-filtro-corretor-wrap[hidden] { display: none; }

#wa-inbox .wa-filtro-corretor {
  width: 100%;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--ib-line);
  border-radius: 10px;
  background: #fff;
  color: var(--ib-ink);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
}

/* Lista */
#wa-inbox #wa-inbox-lista,
#wa-inbox .wa-inbox-page {
  padding: 8px 8px 16px;
  background: transparent;
  scrollbar-width: thin;
  scrollbar-color: rgba(11, 26, 51, .18) transparent;
}

#wa-inbox .wa-conv-wrap {
  margin: 0 0 2px;
  border-radius: 12px;
  transition: background-color .15s ease;
}

@media (hover: hover) {
  #wa-inbox .wa-conv-wrap:hover { background: var(--ib-hover); }
}

#wa-inbox .wa-conv-wrap:has(.wa-conv.is-on) { background: var(--ib-sel); }
#wa-inbox .wa-conv-wrap.is-sel { background: #dcefe2; }

#wa-inbox .wa-conv {
  align-items: flex-start;
  gap: 12px;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  font: inherit;
}

#wa-inbox .wa-conv.is-on { background: transparent; }
#wa-inbox .wa-conv-wrap.is-sel .wa-conv { background: transparent; }

#wa-inbox .wa-conv:focus-visible {
  outline: 2px solid var(--ib-blue);
  outline-offset: -2px;
}

#wa-inbox .wa-conv .wa-conv-avatar-action,
#wa-inbox .wa-fila-card .wa-conv-avatar-action {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
}

#wa-inbox .wa-av {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  background: #e1e8f3;
  color: var(--ib-navy);
  font-size: 14px;
  font-weight: 750;
}

#wa-inbox .wa-av-img { background: #e1e8f3; }

#wa-inbox .wa-conv-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding-top: 1px;
}

#wa-inbox .wa-conv-l1,
#wa-inbox .wa-conv-l2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

#wa-inbox .wa-conv-l2 { min-height: 20px; }

#wa-inbox .wa-conv-title {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

#wa-inbox .wa-conv-name {
  overflow: hidden;
  color: var(--ib-ink);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -.005em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#wa-inbox .wa-conv-time {
  flex-shrink: 0;
  color: var(--ib-muted);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}

#wa-inbox .wa-conv-prev {
  font-size: 13px;
  color: var(--ib-muted);
}

#wa-inbox .wa-conv-wrap.is-unread .wa-conv-name { font-weight: 750; }
#wa-inbox .wa-conv-wrap.is-unread .wa-conv-time { color: var(--ib-green); font-weight: 700; }
#wa-inbox .wa-conv-wrap.is-unread .wa-conv-prev { color: var(--ib-ink-2); }

#wa-inbox .wa-conv-flags {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
  color: var(--ib-faint);
  transition: opacity .12s ease;
}

#wa-inbox .wa-conv-flags:empty { display: none; }
#wa-inbox .wa-conv-pin,
#wa-inbox .wa-conv-mute { display: inline-flex; color: var(--ib-faint); }

#wa-inbox .wa-conv-unread {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--ib-green);
  color: #fff;
  font-size: 11px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

#wa-inbox .wa-conv-wrap.is-muted .wa-conv-unread { background: #8795a8; }

#wa-inbox .wa-conv-l3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin-top: 3px;
  color: var(--ib-muted);
  font-size: 11.5px;
}

#wa-inbox .wa-conv-l3:empty { display: none; }
#wa-inbox .wa-conv-tel { font-variant-numeric: tabular-nums; }

#wa-inbox .wa-conv-dono {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  padding: 1px 8px 1px 6px;
  border-radius: 999px;
  background: #e7ecf4;
  color: var(--ib-ink-2);
  font-weight: 600;
}

#wa-inbox .wa-conv-dono.is-none { padding-left: 8px; background: var(--ib-warn-bg); color: var(--ib-warn); }

/* Menu da conversa aparece sobre a linha, sem roubar largura */
html:not(.wa-compact) #wa-inbox .wa-conv-more {
  position: absolute;
  right: 8px;
  bottom: 9px;
  display: inline-flex;
  width: 28px;
  min-height: 0;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: var(--ib-ink-2);
  box-shadow: 0 1px 3px rgba(11, 26, 51, .16);
  opacity: 0;
  transition: opacity .12s ease;
}

html:not(.wa-compact) #wa-inbox .wa-conv-wrap:hover .wa-conv-more,
html:not(.wa-compact) #wa-inbox .wa-conv-more:focus-visible,
html:not(.wa-compact) #wa-inbox .wa-conv-more.is-on { opacity: 1; }

html:not(.wa-compact) #wa-inbox .wa-conv-wrap:has(.wa-conv-more):hover .wa-conv-flags { opacity: 0; }
html:not(.wa-compact) #wa-inbox .wa-conv-wrap:has(.wa-conv-dispatch) .wa-conv-more { right: 52px; }

#wa-inbox .wa-conv-dispatch {
  align-self: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  margin-right: 8px;
  border: 1px solid var(--ib-line);
  border-radius: 10px;
  background: #fff;
  color: var(--ib-navy);
  transition: background-color .15s ease, color .15s ease;
}

#wa-inbox .wa-conv-dispatch:hover,
#wa-inbox .wa-conv-dispatch.is-on { border-color: var(--ib-navy); background: var(--ib-navy); color: #fff; }

/* Para aceitar */
#wa-inbox .wa-aceite-timer {
  flex-shrink: 0;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--ib-late-bg);
  color: var(--ib-late);
  font-size: 11px;
}

#wa-inbox .wa-aceite-alvo {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  color: var(--ib-warn);
  font-size: 11.5px;
  font-weight: 650;
}

#wa-inbox .wa-aceite-acoes { gap: 8px; margin-top: 10px; }

#wa-inbox .wa-aceite-btn {
  height: 32px;
  padding: 0 14px;
  border: 1px solid var(--ib-line);
  border-radius: 9px;
  background: #fff;
  color: var(--ib-ink);
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  transition: filter .15s ease, background-color .15s ease;
}

#wa-inbox .wa-aceite-btn.is-ok { border-color: var(--ib-green); background: var(--ib-green); color: #fff; }
#wa-inbox .wa-aceite-btn:hover { filter: brightness(.96); }

#wa-inbox .wa-fila-lock.is-inline { margin-top: 0; padding: 4px 8px; }

/* Cliente da casa: posse temporária */
#wa-inbox .wa-fila-tag.is-casa { background: var(--ib-sel); color: var(--ib-blue); }
#wa-inbox .wa-fila-ultimo { color: var(--ib-muted); font-size: 12px; font-weight: 600; }

#wa-inbox .wa-posse-bar {
  flex-shrink: 0;
  margin: 0;
  padding: 6px 14px;
  border: none;
  border-bottom: 1px solid #f3e4b8;
  border-radius: 0;
  background: #fffbeb;
  color: #6b5420;
  font-size: 12.5px;
}
#wa-inbox .wa-posse-txt {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#wa-inbox .wa-posse-liberar {
  border: 0;
  background: transparent;
  color: var(--ib-ink);
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
#wa-inbox .wa-posse-liberar:hover { background: transparent; color: var(--ib-navy); }

/* Fila (corretor) */
#wa-inbox .wa-fila-card,
#wa-inbox .wa-fila-card.is-fresh,
#wa-inbox .wa-fila-card.is-wait,
#wa-inbox .wa-fila-card.is-late {
  gap: 12px;
  margin: 0 0 8px;
  padding: 12px;
  border: 1px solid var(--ib-line);
  border-radius: 14px;
  background: #fff;
}

#wa-inbox .wa-fila-card.is-destacar {
  outline: 2px solid var(--ib-gold);
  outline-offset: -2px;
  background: #fffaf0;
}

#wa-inbox .wa-fila-name { color: var(--ib-ink); font-size: 14px; font-weight: 700; }

#wa-inbox .wa-fila-wait {
  padding: 1px 8px;
  border-radius: 999px;
  background: #e7ecf4;
  font-size: 11px;
}

#wa-inbox .wa-fila-card.is-fresh .wa-fila-wait { background: var(--ib-green-bg); color: #0f6b34; }
#wa-inbox .wa-fila-card.is-wait .wa-fila-wait { background: var(--ib-warn-bg); color: var(--ib-warn); }
#wa-inbox .wa-fila-card.is-late .wa-fila-wait { background: var(--ib-late-bg); color: var(--ib-late); }

#wa-inbox .wa-fila-motivo { color: var(--ib-ink); font-size: 12.5px; font-weight: 650; }
#wa-inbox .wa-fila-origem { color: var(--ib-muted); font-size: 11.5px; }

#wa-inbox .wa-fila-claim {
  min-height: 38px;
  border-radius: 10px;
  background: var(--ib-navy);
  font-size: 13px;
  box-shadow: 0 6px 14px rgba(13, 31, 78, .18);
}

#wa-inbox .wa-fila-claim .wa-ic { color: var(--ib-gold-soft); }

/* Estado vazio da lista */
#wa-inbox .wa-list-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 44px 28px;
  color: var(--ib-muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  text-wrap: balance;
}

#wa-inbox .wa-list-empty strong { color: var(--ib-ink); font-size: 15px; font-weight: 700; }

#wa-inbox .wa-list-empty-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 8px;
  border-radius: 14px;
  background: var(--ib-green-bg);
  color: var(--ib-green);
}

#wa-inbox .wa-list-empty.is-busca .wa-list-empty-ico { background: #e7ecf4; color: var(--ib-navy); }

/* ---------- Conversa aberta ---------- */

#wa-inbox .wa-inbox-chat { background: var(--ib-canvas); }

html.modo-inbox:not(.wa-compact) #wa-inbox #wa-inbox-topo {
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--ib-line);
}

#wa-inbox .wa-inbox-topo-who .wa-crm-nome {
  display: block;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 700;
  color: var(--ib-ink);
}

#wa-inbox .wa-inbox-topo-sub { color: var(--ib-muted); }

#wa-inbox .wa-topo-tool {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ib-ink-2);
}

#wa-inbox .wa-topo-tool .wa-ic svg { stroke-width: 1.6; }

#wa-inbox .wa-topo-tool:hover,
#wa-inbox .wa-topo-tool.is-on {
  background: var(--ib-hover);
  color: var(--ib-ink);
}

#wa-inbox .wa-topo-tool.wa-cat-toggle,
#wa-inbox .wa-topo-tool.wa-cat-toggle.is-on {
  width: 36px;
  min-width: 36px;
  padding: 0;
  border: 0;
  box-shadow: none;
}

#wa-inbox .wa-topo-dock,
#wa-inbox .wa-topo-dock.is-on {
  background: transparent;
  color: var(--ib-ink-2);
  box-shadow: none;
}

#wa-inbox .wa-topo-dock:hover,
#wa-inbox .wa-topo-dock.is-on {
  background: var(--ib-hover);
  color: var(--ib-ink);
}

#wa-inbox #wa-inbox-msgs {
  background: var(--ib-canvas);
  scrollbar-color: rgba(11, 26, 51, .2) transparent;
}

html:not(.wa-compact) #wa-inbox #wa-inbox-msgs {
  padding: 18px clamp(14px, 5cqi, 64px) 14px;
}

#wa-inbox .wa-msg-row { margin-bottom: 2px; }

#wa-inbox .wa-msg-row.is-in + .wa-msg-row.is-out,
#wa-inbox .wa-msg-row.is-out + .wa-msg-row.is-in { margin-top: 10px; }

#wa-inbox .wa-msg-stack {
  max-width: min(85%, 680px);
  width: fit-content;
  min-width: 0;
}

#wa-inbox .wa-bubble {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-break: normal;
  box-shadow: 0 1px 1.5px rgba(11, 26, 51, .1);
}

#wa-inbox .wa-in { border: 0; background: #fff; color: var(--ib-ink); }
#wa-inbox .wa-out { background: var(--ib-out); color: var(--ib-ink); }

/* Primeira bolha de cada sequência ganha o canto de "rabo". */
#wa-inbox .wa-msg-row.is-in .wa-bubble { border-top-left-radius: 4px; }
#wa-inbox .wa-msg-row.is-out .wa-bubble { border-top-right-radius: 4px; }
#wa-inbox .wa-msg-row.is-in + .wa-msg-row.is-in:not([data-wa-dia]) .wa-bubble { border-top-left-radius: 14px; }
#wa-inbox .wa-msg-row.is-out + .wa-msg-row.is-out:not([data-wa-dia]) .wa-bubble { border-top-right-radius: 14px; }

#wa-inbox .wa-bubble.wa-sticker,
#wa-inbox .wa-bubble.wa-ptv { background: transparent; box-shadow: none; }
#wa-inbox .wa-in.is-audit { background-color: #eef2f6; box-shadow: none; }
#wa-inbox .wa-out.is-audit { background-color: #dbe4ec; box-shadow: none; }

#wa-inbox .wa-msg-meta {
  color: #607086;
  font-size: 11px;
  max-width: 100%;
  white-space: normal;
}
#wa-inbox .wa-msg-autor {
  display: block;
  max-width: 100%;
  margin: 0 0 2px;
  color: #0b3a82;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
}
#wa-inbox .wa-msg-hora { white-space: nowrap; }
#wa-inbox .wa-msg-hora { font-variant-numeric: tabular-nums; }
#wa-inbox .wa-out .wa-ticks.is-read { color: #1a73e8; }

#wa-inbox .wa-out .wa-quote { background: rgba(13, 31, 78, .07); border-left-color: var(--ib-blue); }
#wa-inbox .wa-out .wa-audio-play,
#wa-inbox .wa-out .wa-audio-speed.is-fast { background: var(--ib-navy); }
#wa-inbox .wa-out .wa-audio-seek-track { background: rgba(13, 31, 78, .16); }
#wa-inbox .wa-out .wa-audio-seek-fill { background: var(--ib-navy); }
#wa-inbox .wa-out .wa-audio-seek-knob { border-color: var(--ib-navy); }

/* Separadores de dia (atributo marcado por waInboxMarcarDias) */
#wa-inbox #wa-inbox-msgs .wa-msg-row[data-wa-dia] { margin-top: 48px; }

#wa-inbox #wa-inbox-msgs .wa-msg-row[data-wa-dia]::before {
  content: attr(data-wa-dia);
  position: absolute;
  top: -36px;
  left: 50%;
  z-index: 1;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: var(--ib-ink-2);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 1px 2px rgba(11, 26, 51, .1);
  transform: translateX(-50%);
}

html:not(.wa-compact) #wa-inbox #wa-inbox-composer {
  padding: 10px clamp(12px, 5cqi, 64px) 12px;
  border-top: 1px solid rgba(11, 26, 51, .07);
  background: #f7f5f1;
}

/* ---------- Painel do turno (chat vazio no desktop) ---------- */

#wa-inbox.is-hub #wa-inbox-topo,
#wa-inbox.is-hub #wa-posse-bar,
#wa-inbox.is-hub #wa-inbox-find,
#wa-inbox.is-hub #wa-inbox-jump,
#wa-inbox.is-hub #wa-inbox-composer { display: none !important; }

#wa-inbox.is-hub .wa-inbox-chat,
#wa-inbox.is-hub #wa-inbox-msgs { background: #fbfbfd; }

#wa-inbox.is-hub #wa-inbox-msgs {
  display: block;
  padding: 0;
}

#wa-inbox .wa-hub {
  min-height: 100%;
  color: var(--ib-ink);
}

#wa-inbox .wa-hub-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 36px clamp(20px, 5cqi, 56px) 64px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(185, 151, 91, .18), transparent 55%),
    linear-gradient(160deg, #0b1a33 0%, #0d1f4e 100%);
  color: #fff;
}

#wa-inbox .wa-hub-hello h2 {
  margin: 0;
  font-size: clamp(24px, 3.2cqi, 32px);
  font-weight: 750;
  letter-spacing: -.025em;
  line-height: 1.1;
  text-wrap: balance;
}

#wa-inbox .wa-hub-hello p {
  margin: 8px 0 0;
  color: #b9c5d8;
  font-size: 14px;
  font-weight: 500;
}

#wa-inbox .wa-hub-hello p::first-letter { text-transform: uppercase; }

#wa-inbox .wa-hub-cta {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px 0 14px;
  border: 0;
  border-radius: 12px;
  background: var(--ib-gold);
  color: #07111f;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .22);
  transition: background-color .15s ease, transform .2s var(--ib-ease);
}

#wa-inbox .wa-hub-cta .wa-ic { color: #07111f; }
#wa-inbox .wa-hub-cta:hover { background: #ccab70; transform: translateY(-1px); }
#wa-inbox .wa-hub-cta:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

#wa-inbox .wa-hub-lanes {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: -38px clamp(20px, 5cqi, 56px) 0;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(11, 26, 51, .06), 0 12px 32px rgba(11, 26, 51, .1);
}

#wa-inbox .wa-hub-lane {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 18px 20px;
  border: 0;
  background: transparent;
  color: var(--ib-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color .15s ease;
}

#wa-inbox .wa-hub-lane + .wa-hub-lane { box-shadow: inset 1px 0 0 var(--ib-line); }
#wa-inbox .wa-hub-lane:hover { background: #f6f8fb; }
#wa-inbox .wa-hub-lane:focus-visible { outline: 2px solid var(--ib-blue); outline-offset: -3px; }

#wa-inbox .wa-hub-lane b {
  grid-row: 1 / 3;
  min-width: 1.4ch;
  color: #aab6c6;
  font-size: 30px;
  font-weight: 750;
  letter-spacing: -.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

#wa-inbox .wa-hub-lane span {
  overflow: hidden;
  font-size: 13.5px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#wa-inbox .wa-hub-lane small {
  overflow: hidden;
  color: var(--ib-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#wa-inbox .wa-hub-lane.is-hot.is-ink b { color: var(--ib-navy); }
#wa-inbox .wa-hub-lane.is-hot.is-ok b { color: var(--ib-green); }
#wa-inbox .wa-hub-lane.is-hot.is-warn b { color: #b45309; }
#wa-inbox .wa-hub-lane.is-hot.is-late b { color: #c0262d; }

#wa-inbox .wa-hub-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, 1fr);
  gap: 40px;
  max-width: 1240px;
  padding: 32px clamp(20px, 5cqi, 56px) 48px;
}

#wa-inbox .wa-hub-sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

#wa-inbox .wa-hub-sec-head h3 {
  margin: 0;
  color: var(--ib-ink);
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -.01em;
}

#wa-inbox .wa-hub-sec-head > span {
  color: var(--ib-muted);
  font-size: 12px;
  text-align: right;
}

#wa-inbox .wa-hub-list,
#wa-inbox .wa-hub-mini,
#wa-inbox .wa-hub-team {
  margin: 0;
  padding: 0;
  list-style: none;
}

#wa-inbox .wa-hub-list { border-top: 1px solid var(--ib-line); }
#wa-inbox .wa-hub-list li { border-bottom: 1px solid var(--ib-line-2); }

#wa-inbox .wa-hub-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color .15s ease;
}

#wa-inbox .wa-hub-row:hover { background: var(--ib-hover); }
#wa-inbox .wa-hub-row:focus-visible { outline: 2px solid var(--ib-blue); outline-offset: -2px; }

#wa-inbox .wa-hub-row-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

#wa-inbox .wa-hub-row-copy b {
  overflow: hidden;
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#wa-inbox .wa-hub-row-side {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
}

#wa-inbox .wa-hub-wait {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 9px 0 7px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

#wa-inbox .wa-hub-wait.is-fresh { background: var(--ib-green-bg); color: #0f6b34; }
#wa-inbox .wa-hub-wait.is-wait { background: var(--ib-warn-bg); color: var(--ib-warn); }
#wa-inbox .wa-hub-wait.is-late { background: var(--ib-late-bg); color: var(--ib-late); }

#wa-inbox .wa-hub-more,
#wa-inbox .wa-hub-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ib-blue);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: text-decoration-color .15s ease;
}

#wa-inbox .wa-hub-more { margin-top: 12px; }
#wa-inbox .wa-hub-more:hover,
#wa-inbox .wa-hub-link:hover { text-decoration-color: currentColor; }
#wa-inbox .wa-hub-more:focus-visible,
#wa-inbox .wa-hub-link:focus-visible { outline: 2px solid var(--ib-blue); outline-offset: 3px; border-radius: 4px; }

#wa-inbox .wa-hub-zero {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 4px;
  border-top: 1px solid var(--ib-line);
}

#wa-inbox .wa-hub-zero-ico {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--ib-green-bg);
  color: var(--ib-green);
}

#wa-inbox .wa-hub-zero strong { display: block; font-size: 15px; font-weight: 700; }

#wa-inbox .wa-hub-zero span {
  display: block;
  max-width: 52ch;
  margin-top: 3px;
  color: var(--ib-muted);
  font-size: 13.5px;
  line-height: 1.5;
}

#wa-inbox .wa-hub-block + .wa-hub-block {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--ib-line);
}

#wa-inbox .wa-hub-note {
  margin: 0;
  color: var(--ib-muted);
  font-size: 13px;
  line-height: 1.5;
}

#wa-inbox .wa-hub-mini li + li { margin-top: 2px; }

#wa-inbox .wa-hub-mini button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

#wa-inbox .wa-hub-mini button:hover { background: var(--ib-hover); }
#wa-inbox .wa-hub-mini button:focus-visible { outline: 2px solid var(--ib-blue); outline-offset: -2px; }

#wa-inbox .wa-hub-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

#wa-inbox .wa-hub-dot.is-fresh { background: #16a34a; }
#wa-inbox .wa-hub-dot.is-wait { background: #d97706; }
#wa-inbox .wa-hub-dot.is-late { background: #dc2626; }

#wa-inbox .wa-hub-mini-copy { display: flex; flex: 1; flex-direction: column; min-width: 0; }

#wa-inbox .wa-hub-mini-copy b,
#wa-inbox .wa-hub-mini-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#wa-inbox .wa-hub-mini-copy b { font-size: 13.5px; font-weight: 650; }
#wa-inbox .wa-hub-mini-copy small { color: var(--ib-muted); font-size: 12px; }

#wa-inbox .wa-hub-mini-t {
  flex-shrink: 0;
  color: var(--ib-muted);
  font-size: 12px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

#wa-inbox .wa-hub-team {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 10px;
  margin-bottom: 14px;
}

#wa-inbox .wa-hub-team li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 58px;
  color: var(--ib-ink-2);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

#wa-inbox .wa-hub-team li > span:last-child {
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#wa-inbox .wa-hub-team-av {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e1e8f3;
  color: var(--ib-navy);
  font-size: 13px;
  font-weight: 750;
}

#wa-inbox .wa-hub-team-av i {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #b6c0cd;
  box-shadow: 0 0 0 2px #fbfbfd;
}

#wa-inbox .wa-hub-team li[data-presenca="online"] .wa-hub-team-av i { background: #22c55e; }
#wa-inbox .wa-hub-team li[data-presenca="ocupado"] .wa-hub-team-av i { background: #ef4444; }
#wa-inbox .wa-hub-team li[data-presenca="ausente"] .wa-hub-team-av i { background: #f59e0b; }
#wa-inbox .wa-hub-team li:not([data-presenca="online"]) { opacity: .62; }

#wa-inbox .wa-hub-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(156px, 1fr));
  gap: 8px;
}

#wa-inbox .wa-hub-actions button {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--ib-line);
  border-radius: 10px;
  background: #fff;
  color: var(--ib-ink);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}

#wa-inbox .wa-hub-actions button .wa-ic { flex-shrink: 0; color: var(--ib-navy); }
#wa-inbox .wa-hub-actions button:hover { border-color: #c9d3e1; background: #f6f8fb; }
#wa-inbox .wa-hub-actions button:focus-visible { outline: 2px solid var(--ib-blue); outline-offset: 1px; }

#wa-inbox .wa-hub-keys { margin: 16px 0 0; }

#wa-inbox .wa-hub-keys div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 5px 0;
}

#wa-inbox .wa-hub-keys dt {
  display: flex;
  gap: 4px;
  min-width: 52px;
}

#wa-inbox .wa-hub-keys dd {
  margin: 0;
  color: var(--ib-muted);
  font-size: 12.5px;
}

#wa-inbox .wa-hub-keys kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border: 1px solid var(--ib-line);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: #fff;
  color: var(--ib-ink-2);
  font: 700 11px/1 var(--font-sans), sans-serif;
}

/* Entrada do painel: único momento de movimento autoral */
#wa-inbox .wa-hub.is-enter .wa-hub-head { animation: waHubHead .6s var(--ib-ease) both; }
#wa-inbox .wa-hub.is-enter .wa-hub-lanes { animation: waHubRise .6s var(--ib-ease) .06s both; }
#wa-inbox .wa-hub.is-enter .wa-hub-grid { animation: waHubRise .6s var(--ib-ease) .12s both; }

@keyframes waHubHead {
  from { opacity: .4; filter: saturate(.6); }
  to { opacity: 1; filter: none; }
}

@keyframes waHubRise {
  from { opacity: 0; transform: translateY(10px); filter: blur(3px); }
  to { opacity: 1; transform: none; filter: none; }
}

@container wachat (max-width: 820px) {
  #wa-inbox .wa-hub-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

@container wachat (max-width: 640px) {
  #wa-inbox .wa-hub-lanes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #wa-inbox .wa-hub-lane:nth-child(3) { box-shadow: inset 0 1px 0 var(--ib-line); }
  #wa-inbox .wa-hub-lane:nth-child(4) { box-shadow: inset 1px 0 0 var(--ib-line), inset 0 1px 0 var(--ib-line); }
  #wa-inbox .wa-hub-head { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  #wa-inbox .wa-hub.is-enter .wa-hub-head,
  #wa-inbox .wa-hub.is-enter .wa-hub-lanes,
  #wa-inbox .wa-hub.is-enter .wa-hub-grid { animation: none; }
  #wa-inbox .wa-rail-btn::after,
  #wa-inbox .wa-rail-eu::after { transition: none; }
}

/* ---------- Compacto (PWA celular) ---------- */

html.wa-compact #wa-inbox .wa-inbox-busca-wrap { padding: 8px 12px; }
html.wa-compact #wa-inbox .wa-inbox-busca-ico { left: 25px; top: 29px; }

html.wa-compact #wa-inbox #wa-inbox-busca {
  height: 42px;
  padding-right: 14px;
  border-radius: 999px;
  font-size: 16px;
}

html.wa-compact #wa-inbox .wa-inbox-busca-kbd { display: none; }
html.wa-compact #wa-inbox .wa-inbox-filtros { padding: 0 12px 10px; }

html.wa-compact #wa-inbox .wa-filtros-track {
  gap: 6px;
  padding: 0;
  background: transparent;
}

html.wa-compact #wa-inbox .wa-filtro {
  height: 34px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--ib-line);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
}

html.wa-compact #wa-inbox .wa-filtro.is-on {
  border-color: var(--ib-navy);
  background: var(--ib-navy);
  color: #fff;
  box-shadow: none;
}

html.wa-compact #wa-inbox .wa-filtro-corretor { height: 38px; font-size: 16px; }
html.wa-compact #wa-inbox #wa-inbox-lista,
html.wa-compact #wa-inbox .wa-inbox-page { padding-left: 6px; padding-right: 6px; }

html.wa-compact #wa-inbox #wa-inbox-msgs {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  padding: 8px 8px 10px;
  scrollbar-width: none;
}

html.wa-compact #wa-inbox #wa-inbox-msgs::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

html.wa-compact #wa-inbox .wa-msg-row {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-right: 0;
  padding-right: 0;
}
html.wa-compact #wa-inbox .wa-inbox-side { background: #fff; }
html.wa-compact #wa-inbox .wa-conv-dispatch { width: 44px; height: 44px; flex-basis: 44px; }
