/* 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: #b9975b;
}
.wa-syncbar {
  display: none;
  margin-top: 3px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #b9975b;
}
.wa-syncbar:not([hidden]) {
  display: block;
}
#wa-inbox.is-bg-syncing .wa-inbox-head {
  box-shadow: inset 0 -2px 0 #b9975b;
}

/* 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;
}

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-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-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;
}

/* 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;
}

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 {
  display: inline-flex;
}

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: Inter, system-ui, 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: Inter, system-ui, 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-aviso {
  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;
  background: #f4f6fb;
}
#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 {
  display: flex;
  position: relative;
  z-index: 1;
}
.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-vazio, .wa-eq-vazio-chat {
  padding: 24px 16px;
  color: #94a3b8;
  font-size: 13px;
  text-align: center;
}
.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;
}
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;
}
