/* telas próprias da AGNUM CRM (o resto vem do base.css) */

/* ---------- login em conversa ---------- */
#login { position: fixed; inset: 0; display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(420px, 1fr); place-items: stretch; background: #F8F7F2; padding: 0; min-height: 0; }
#login.hidden { display: none !important; }
.lg-arte { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: 44px clamp(32px, 5vw, 64px) 52px; color: #fff;
  background: radial-gradient(120% 80% at 85% 10%, rgba(255,255,255,.16), transparent 55%), radial-gradient(90% 70% at 0% 100%, rgba(0,0,0,.18), transparent 60%), linear-gradient(155deg, #4A4542 0%, #3A3532 50%, #1F1C1A 100%); }
.lg-arte::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.22) 1px, transparent 1.4px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 75%); mask-image: linear-gradient(180deg, #000, transparent 75%); }
.lg-marca { position: relative; display: flex; align-items: center; gap: 12px; }
.lg-marca img { height: 40px; filter: brightness(0) invert(1); }
.lg-marca span { font-weight: 800; letter-spacing: .14em; font-size: 12px; padding: 4px 10px; border: 1.5px solid rgba(255,255,255,.65); border-radius: 6px; }
/* Pipo apresentando, com balão de fala que muda junto com a animação */
.lg-pipo { position: relative; z-index: 4; display: flex; align-items: flex-end; gap: 6px; margin-top: -24px; }
.lg-pipo-corpo { position: relative; width: 132px; flex: none; animation: boiar 3.2s ease-in-out infinite; filter: drop-shadow(0 18px 18px rgba(0, 40, 20, .35)); }
.lg-pipo-corpo::before { content: ""; position: absolute; left: 50%; top: 50%; width: 170px; height: 170px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.38), rgba(255,255,255,0) 68%); z-index: -1; }
.lg-pipo-corpo svg { position: relative; display: block; width: 100%; height: auto; overflow: visible; }
.lg-pipo .asa { transform-box: view-box; transform-origin: 86px 98px; }
.lg-pipo.acena .asa { animation: acenar .9s ease-in-out; }
.lg-fala { position: relative; flex: 1; max-width: 400px; min-height: 76px; margin-bottom: 70px; background: #fff; color: var(--text); border-radius: 20px 20px 20px 6px; padding: 16px 20px; font-size: 16px; line-height: 1.4; font-weight: 500; box-shadow: 0 20px 40px -18px rgba(0, 40, 20, .55); display: flex; align-items: center; }
.lg-fala::before { content: ""; position: absolute; left: -9px; bottom: 10px; border: 10px solid transparent; border-right-color: #fff; border-left: 0; }
.lg-fala b { color: var(--accent); font-weight: 800; }
.lg-fala span { animation: falar .4s ease-out both; }
@keyframes boiar { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-6px) rotate(1.5deg); } }
@keyframes acenar { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-16deg); } 65% { transform: rotate(8deg); } }
@keyframes falar { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .lg-pipo-corpo, .lg-pipo.acena .asa, .lg-fala span { animation: none; } }
@media (max-width: 1180px) { .lg-pipo-corpo { width: 108px; } .lg-fala { font-size: 14.5px; margin-bottom: 56px; } }

/* vitrine: celular com a conversa animada + cartões em volta */
.lg-vitrine { position: relative; flex: 1; min-height: 400px; max-height: 560px; width: 100%; max-width: 620px; align-self: center; display: flex; align-items: stretch; }
.lg-brilho { position: absolute; left: 30%; top: 50%; width: 420px; height: 420px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(184, 255, 210, .45), transparent 65%); filter: blur(10px); }
.lg-cel { position: relative; flex: none; aspect-ratio: 9 / 17.5; max-width: 288px; margin-left: 2%; background: #0e1512; border-radius: 40px; padding: 10px; display: flex; flex-direction: column;
  box-shadow: 0 40px 80px -30px rgba(0, 30, 15, .7), inset 0 0 0 2px rgba(255,255,255,.08); }
.lg-cel::before { content: ""; position: absolute; top: 18px; left: 50%; width: 70px; height: 20px; transform: translateX(-50%); background: #0e1512; border-radius: 6px; z-index: 2; }
.lg-cel > * { position: relative; }
.lg-cel-cab { display: flex; align-items: center; gap: 9px; padding: 40px 14px 12px; background: #2D2926; color: #fff; border-radius: 30px 30px 0 0; }
.lg-cel-cab b { display: block; font-size: 13.5px; } .lg-cel-cab small { font-size: 11px; opacity: .85; }
.lg-cel-chat { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 0; padding: 12px 10px 6px; background-color: #efeae2;
  background-image: radial-gradient(rgba(45, 41, 38,.08) 1.2px, transparent 1.6px); background-size: 16px 16px; }
.lg-cel-chat .lg-digitando { padding: 9px 12px; margin-bottom: 8px; } .lg-cel-chat .lg-digitando i { width: 6px; height: 6px; }
.lg-cel-pe { display: flex; align-items: center; gap: 8px; padding: 8px 10px 14px; background: #efeae2; border-radius: 0 0 30px 30px; }
.lg-cel-pe span { flex: 1; background: #fff; border-radius: 6px; padding: 9px 14px; font-size: 12.5px; color: #8696a0; }
.lg-cel-pe i { width: 36px; height: 36px; border-radius: 50%; background: #2D2926; color: #fff; display: grid; place-items: center; flex: none; } .lg-cel-pe svg { width: 16px; height: 16px; }
.lg-ini { width: 34px; height: 34px; border-radius: 50%; background: #ffe2b8; color: #9a5b00; font-weight: 800; font-size: 12px; display: grid; place-items: center; flex: none; }
.lg-bolha { position: relative; max-width: 86%; padding: 7px 10px 18px; border-radius: 10px; font-size: 12.5px; line-height: 1.38; margin-bottom: 7px; color: var(--text); box-shadow: 0 1px .5px rgba(0,0,0,.13); animation: chegar .3s ease-out both; }
.lg-bolha.nos { background: #d9fdd3; align-self: flex-end; border-top-right-radius: 3px; padding-right: 12px; }
.lg-bolha.ele { background: #fff; align-self: flex-start; border-top-left-radius: 3px; }
.lg-bolha em, .lg-msg em { position: absolute; right: 9px; bottom: 4px; font-style: normal; font-size: 10px; color: #8696a0; }
.lg-bolha em i, .lg-msg em i { font-style: normal; color: #53bdeb; letter-spacing: -2px; }

.lg-pilha { position: relative; z-index: 3; flex: 1; min-width: 0; margin-left: -34px; display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.lg-cartao { position: relative; max-width: 290px; background: #fff; color: var(--text); border-radius: 10px; box-shadow: 0 24px 50px -18px rgba(0, 40, 20, .5), 0 2px 6px rgba(0, 40, 20, .14); animation: flutuar 7s ease-in-out infinite; }
.lg-prog { padding: 13px 15px; margin-left: 26px; }
.lg-prog-t { display: flex; align-items: center; justify-content: space-between; gap: 8px; } .lg-prog-t b { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-vivo { flex: none; display: flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 800; color: #e5484d; text-transform: uppercase; letter-spacing: .05em; }
.lg-vivo::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #e5484d; animation: piscar 1.2s ease-in-out infinite; }
.lg-barra { height: 8px; border-radius: 6px; background: #e9efeb; margin: 10px 0 8px; overflow: hidden; }
.lg-barra i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #4A4542, #7be0a4); animation: encher 12s ease-in-out infinite; }
.lg-prog small { font-size: 11.5px; color: var(--muted); } .lg-prog small b { color: var(--text); }
.lg-funil { padding: 13px 15px; animation-delay: -2.5s; }
.lg-funil > small { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.lg-etapas { display: flex; gap: 4px; margin: 9px 0 8px; }
.lg-etapas span { flex: 1; text-align: center; font-size: 10.5px; font-weight: 800; padding: 7px 2px; border-radius: 8px; background: #f0f3f1; color: #9aa3ab; transition: background .35s, color .35s, transform .35s, box-shadow .35s; }
.lg-etapas span.feito { background: #E6E5E1; color: #2D2926; }
.lg-etapas span.on { background: var(--accent); color: #fff; transform: translateY(-2px) scale(1.06); box-shadow: 0 8px 16px -6px rgba(45, 41, 38,.8); }
.lg-etapas span.on:last-child { background: #f5a300; box-shadow: 0 8px 16px -6px rgba(245,163,0,.8); }
.lg-mov { font-size: 11.5px; color: #4b5560; display: flex; align-items: center; gap: 6px; }
.lg-mov::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(45, 41, 38,.18); }
.lg-venda { margin-left: 40px; align-self: flex-start; display: flex; align-items: center; gap: 11px; padding: 12px 18px 12px 12px; opacity: 0; transform: translateY(14px) scale(.85); transition: opacity .35s, transform .45s cubic-bezier(.2, 1.6, .4, 1); animation: none; }
.lg-venda.on { opacity: 1; transform: none; }
.lg-venda > span { width: 40px; height: 40px; border-radius: 8px; background: #fff4dc; display: grid; place-items: center; font-size: 21px; }
.lg-venda b { display: block; font-size: 14px; } .lg-venda small { font-size: 12px; color: var(--muted); }
@keyframes flutuar { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes encher { 0% { width: 18%; } 80%, 100% { width: 76%; } }
@keyframes piscar { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .lg-cartao, .lg-barra i, .lg-vivo::before { animation: none; } .lg-barra i { width: 62%; } }
@media (max-width: 1180px) { .lg-prog, .lg-venda { margin-left: 12px; } .lg-etapas span { font-size: 9.5px; } }

/* lado do acesso: janela de conversa */
.lg-lado { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px clamp(16px, 5vw, 72px); min-width: 0; overflow-y: auto; }
.lg-janela { width: 100%; max-width: 440px; background: #fff; border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 30px 60px -30px rgba(20, 60, 40, .35), 0 1px 3px rgba(20, 60, 40, .08); }
.lg-bot { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid #EFEEE8; }
.lg-bot .av { position: relative; width: 58px; height: 58px; flex: none; }
.lg-bot .av svg { width: 58px; height: 58px; border-radius: 50%; display: block; }
.lg-on { position: absolute; right: 0; bottom: 1px; width: 13px; height: 13px; border-radius: 50%; background: #25d366; border: 2.5px solid #fff; }
.lg-bot b { display: block; font-size: 17px; font-weight: 800; } .lg-bot small { color: var(--accent); font-size: 12.5px; font-weight: 600; }
.lg-conversa { display: flex; flex-direction: column; gap: 6px; padding: 18px 16px; height: clamp(300px, 46vh, 420px); overflow-y: auto; background-color: #f4f1ea;
  background-image: radial-gradient(rgba(45, 41, 38,.07) 1.2px, transparent 1.6px); background-size: 18px 18px; }
.lg-conversa > :first-child { margin-top: auto; }
.lg-dia { align-self: center; font-size: 11.5px; font-weight: 700; color: #6D6C6C; background: rgba(255,255,255,.85); padding: 4px 10px; border-radius: 8px; margin-bottom: 6px; }
.lg-msg { position: relative; max-width: 84%; padding: 8px 12px 20px; border-radius: 8px; font-size: 14.5px; line-height: 1.4; box-shadow: 0 1px .5px rgba(0,0,0,.12); animation: chegar .25s ease-out both; }
.lg-msg.bot { background: #fff; border-top-left-radius: 3px; align-self: flex-start; padding-right: 48px; }
.lg-msg.eu { background: #d9fdd3; color: var(--text); border-top-right-radius: 3px; align-self: flex-end; padding-right: 62px; }
.lg-msg .qr { background: #fff; border-radius: 8px; padding: 6px; margin-top: 8px; width: 180px; height: auto; border: 1px solid #EFEEE8; }
.lg-msg code { display: inline-block; margin-top: 6px; font-size: 13px; letter-spacing: .08em; background: #F8F7F2; padding: 4px 8px; border-radius: 6px; word-break: break-all; }
.lg-digitando { align-self: flex-start; background: #fff; border-radius: 8px; border-top-left-radius: 3px; padding: 12px 14px; display: flex; gap: 4px; box-shadow: 0 1px .5px rgba(0,0,0,.12); }
.lg-digitando i { width: 7px; height: 7px; border-radius: 50%; background: #9aa3ab; animation: pulo 1s infinite; }
.lg-digitando i:nth-child(2) { animation-delay: .15s; } .lg-digitando i:nth-child(3) { animation-delay: .3s; }
@keyframes pulo { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes chegar { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.lg-entrada { display: flex; gap: 8px; padding: 12px; background: #f7f8f7; border-top: 1px solid #EFEEE8; }
.lg-entrada input { flex: 1; min-width: 0; font-size: 15px; padding: 12px 18px; border-radius: 6px; border: 1px solid #e3e8e5; background: #fff; outline: none; }
.lg-entrada input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(45, 41, 38, .14); }
.lg-entrada button { width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; transition: background .15s, transform .15s; }
.lg-entrada button:hover { background: var(--accent-dark); } .lg-entrada button:active { transform: scale(.94); }
.lg-entrada button svg { width: 20px; height: 20px; margin-left: -2px; }
.lg-erro { width: 100%; max-width: 440px; color: var(--red); font-size: 13.5px; font-weight: 600; min-height: 20px; margin-top: 12px; text-align: center; }
.lg-rodape { margin-top: 6px; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; font-size: 13px; color: #8a949c; }
.lg-rodape button { color: #5b6670; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 960px) { #login { grid-template-columns: 1fr; } .lg-arte { display: none; }
  .lg-lado { justify-content: flex-start; padding-top: 28px; }
  .lg-lado::before { content: ""; display: block; width: 150px; height: 40px; margin-bottom: 22px; flex: none; background: url(/logo.png) center / contain no-repeat; } }
@media (max-width: 520px) { .lg-lado { padding: 20px 12px; } .lg-janela { border-radius: 10px; } .lg-conversa { height: calc(100dvh - 300px); min-height: 280px; } }

/* ---------- conversas ---------- */
#cvFiltro { display: flex; } #cvFiltro button { flex: 1; padding: 6px 4px; font-size: 12.5px; white-space: nowrap; }
.voltar-mob { display: none; transform: rotate(180deg); }
@media (max-width: 760px) { .voltar-mob { display: grid; } }

/* ---------- leads ---------- */
.ld-sel { width: 34px; text-align: center; }
.ld-acoes { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 14px; background: #EFEEE8; border: 1px solid #cfe9da; border-radius: 8px; margin-bottom: 10px; }
.tag-et { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 6px; background: #eef0f2; color: #4b5258; margin: 1px 3px 1px 0; }
.wpp-ok { color: var(--whats); font-weight: 700; } .wpp-nao { color: var(--red); } .wpp-falta { color: var(--muted); }
.ld-card-sub { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ficha-extras { display: grid; grid-template-columns: 140px 1fr; gap: 4px 10px; font-size: 13px; }
.ficha-extras span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.ev-lista { display: flex; flex-direction: column; gap: 8px; }
.ev { font-size: 13px; padding-left: 12px; border-left: 2px solid var(--line); } .ev small { display: block; color: var(--muted); font-size: 11.5px; }

/* ---------- importar ---------- */
.imp-mapa { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.imp-mapa .col { background: var(--bg); border-radius: 8px; padding: 8px 10px; flex: initial; width: auto; display: block; }
.imp-mapa .col b { display: block; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.imp-mapa .col small { display: block; color: var(--muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 2px 0 6px; }
.imp-barra { height: 8px; background: #eef0f2; border-radius: 6px; overflow: hidden; } .imp-barra i { display: block; height: 100%; background: var(--accent); transition: width .2s; }
.imp-res { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.imp-res div { background: var(--bg); border-radius: 8px; padding: 10px; } .imp-res b { display: block; font-size: 22px; } .imp-res span { font-size: 12px; color: var(--muted); }

/* ---------- números ---------- */
.nm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.nm { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.nm-top { display: flex; align-items: center; gap: 10px; }
.nm-top .ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: #EFEEE8; color: var(--whats); flex: none; }
.nm-top b { display: block; } .nm-top small { color: var(--muted); }
.nm-st { margin-left: auto; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 6px; white-space: nowrap; }
.nm-st.conectado { background: #EFEEE8; color: #2D2926; } .nm-st.conectando { background: #fff3d6; color: #8a5a00; }
.nm-st.desconectado, .nm-st.caiu { background: #fde4e4; color: #a61b1f; } .nm-st.banido { background: #2b2f33; color: #fff; }
.nm-uso { font-size: 13px; color: var(--muted); } .nm-uso b { color: var(--text); }
.nm-qr { display: grid; place-items: center; padding: 10px; }
.nm-qr img { width: 260px; height: 260px; image-rendering: pixelated; border: 1px solid var(--line); border-radius: 8px; }
.canal-tag { font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 6px; margin-left: 6px; vertical-align: 1px; }
.canal-tag.evolution { background: #eef0f2; color: #4b5258; } .canal-tag.meta { background: #e8f0fb; color: #1a5fa8; }

/* ---------- em breve ---------- */
.breve { text-align: center; padding: 60px 20px; color: var(--muted); }
.breve b { display: block; color: var(--text); font-size: 18px; margin-bottom: 6px; }

/* ---------- construtor de fluxos (cartões no estilo do Dispara Aí) ---------- */
:root { --fx-msg: #4cc0ad; --fx-midia: #9b5de5; --fx-perg: #48607a; --fx-espera: #4a8fe7; --fx-acao: #f0a030; --fx-fim: #98a3af; }
.fx { display: flex; flex-direction: column; height: calc(100vh - 110px); min-height: 520px; }
.fx-topo { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.fx-palco { position: relative; flex: 1; min-height: 0; border-radius: 10px; overflow: hidden; border: 1px solid #e3e9f1;
  background-color: #f4f7fc; background-image: radial-gradient(#cfd8e4 1px, transparent 1px); background-size: 24px 24px; }
.fx-quadro { position: absolute; inset: 0; }
.fx-quadro .drawflow .connection .main-path { stroke: #a9b4c0; stroke-width: 3px; }
.fx-quadro .drawflow .connection .main-path:hover, .fx-quadro .drawflow .connection .main-path.selected { stroke: var(--accent); }

/* o cartão */
.drawflow-node[data-cor] { --c: var(--fx-msg); }
.drawflow-node[data-cor="midia"] { --c: var(--fx-midia); } .drawflow-node[data-cor="perg"] { --c: var(--fx-perg); }
.drawflow-node[data-cor="espera"] { --c: var(--fx-espera); } .drawflow-node[data-cor="acao"] { --c: var(--fx-acao); } .drawflow-node[data-cor="fim"] { --c: var(--fx-fim); }
.fx-quadro .drawflow .drawflow-node { display: block; width: 320px; padding: 0; min-height: 0; border: 1.5px solid #e1e7ef; border-radius: 10px; background: #fff;
  box-shadow: 0 10px 24px -14px rgba(31, 28, 26, .28); color: var(--tinta); }
.fx-quadro .drawflow .drawflow-node.selected { z-index: 10; background: #fff; border-color: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 18%, transparent), 0 10px 24px -14px rgba(31, 28, 26, .28); }
.fx-quadro .drawflow .drawflow-node .drawflow_content_node { width: 100%; }
.fx-quadro .drawflow .drawflow-node .inputs { position: absolute; left: -10px; top: 95px; width: auto; }
.fx-quadro .drawflow .drawflow-node.fx-inicio .inputs { display: none; }
.fx-quadro .drawflow .drawflow-node .outputs { position: absolute; right: -10px; bottom: 0; top: auto; width: auto; display: flex; flex-direction: column; transform: none; }
.fx-quadro .drawflow .drawflow-node .input, .fx-quadro .drawflow .drawflow-node .output { width: 18px; height: 18px; border: 2.5px solid var(--c); background: #fff; left: 0; top: 0; }
.fx-quadro .drawflow .drawflow-node .output { margin: 11px 0; }
.fx-quadro .drawflow .drawflow-node .output:hover, .fx-quadro .drawflow .drawflow-node .input:hover { background: var(--c); }
.fx-no { position: relative; }
/* o CSS do Drawflow põe todo svg do quadro em position:absolute (é pras linhas): ícones dos cartões voltam pro lugar */
.fx-quadro .drawflow .drawflow-node svg.i { position: static; z-index: auto; }
.fx-sd.op button { display: grid; place-items: center; width: 22px; height: 22px; flex: none; }
.fx-num { position: absolute; top: -16px; left: -16px; width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 1.5px solid #e1e7ef; box-shadow: 0 3px 8px -4px rgba(0,0,0,.25);
  display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #2D2926; z-index: 2; }
.fx-faixa { display: flex; background: var(--c); color: #fff; border-radius: 16px 16px 0 0; padding: 10px 6px 8px; }
.fx-faixa div { flex: 1; text-align: center; } .fx-faixa b { display: block; font-size: 26px; line-height: 1.1; font-weight: 800; } .fx-faixa span { font-size: 12.5px; font-weight: 600; opacity: .95; }
.fx-cab { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid #eef2f6; }
.fx-ic { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--c); display: grid; place-items: center; }
.fx-ic svg { width: 24px; height: 24px; stroke: #fff; }
.fx-inicio .fx-ic { background: color-mix(in srgb, var(--c) 14%, #fff); } .fx-inicio .fx-ic svg { stroke: var(--c); }
.fx-tt { flex: 1; min-width: 0; } .fx-tt b { display: block; font-size: 16.5px; font-weight: 800; color: #2D2926; }
.fx-tt small { display: block; color: var(--c); font-size: 14px; font-weight: 600; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-q { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1.8px solid #4b5563; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #4b5563; cursor: help; }
.fx-campos { padding: 12px 14px; background: #f6f8fb; display: grid; gap: 8px; }
.fx-campos:empty { display: none; }
.fx-txt { font-size: 13.5px; color: #5b6570; line-height: 1.45; }
.fx-campos textarea, .fx-campos input:not([type=file]), .fx-campos select { width: 100%; border: 1px solid #e1e7ef; border-radius: 10px; background: #fff; padding: 9px 11px; font-size: 14px; color: var(--tinta); outline: none; }
.fx-campos textarea { resize: none; line-height: 1.4; }
.fx-campos textarea:focus, .fx-campos input:focus, .fx-campos select:focus { border-color: var(--c); }
.fx-linha { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.fx-linha select { flex: 1; }
.fx-campos .num, .fx-saidas .num { width: 70px !important; flex: none; text-align: center; }
.fx-vars { display: flex; flex-wrap: wrap; gap: 4px; }
.fx-vars button { font-size: 11.5px; font-weight: 700; color: var(--c); background: #fff; border: 1px dashed color-mix(in srgb, var(--c) 55%, #fff); border-radius: 6px; padding: 2px 8px; }
.fx-midia { display: grid; gap: 8px; }
.fx-midia audio { width: 100%; height: 36px; } .fx-midia img, .fx-midia video { width: 100%; max-height: 170px; object-fit: cover; border-radius: 10px; }
.fx-arq { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; } .fx-arq svg { width: 18px; height: 18px; stroke: var(--c); }
.fx-vazio { font-size: 13px; color: #8a95a1; font-style: italic; }
.fx-midia-bts { display: flex; gap: 6px; flex-wrap: wrap; }
.fx-midia-bts button, .fx-midia-bts label { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: #2D2926; background: #fff; border: 1px solid #e1e7ef; border-radius: 8px; padding: 6px 10px; cursor: pointer; }
.fx-midia-bts button:hover, .fx-midia-bts label:hover { border-color: var(--c); color: var(--c); }
.fx-midia-bts svg { width: 14px; height: 14px; }
.fx-midia-bts .gravando { color: #d33; border-color: #d33; }
.fx-saidas { border-top: 1px solid #eef2f6; }
.fx-sd { height: 40px; display: flex; align-items: center; justify-content: flex-end; gap: 6px; padding: 0 22px 0 14px; font-size: 13.5px; font-weight: 700; color: #2f3740; }
.fx-sd + .fx-sd { box-shadow: inset 0 1px 0 #f1f4f8; }
.fx-sd.op { justify-content: flex-start; }
.fx-sd.op input { flex: 1; height: 30px; border: 1px solid #e1e7ef; border-radius: 8px; padding: 0 9px; font-size: 13.5px; outline: none; }
.fx-sd.op input:focus { border-color: var(--c); }
.fx-sd.op button { color: #8a95a1; } .fx-sd.op button svg { width: 14px; height: 14px; }
.fx-sd.fx-outra { justify-content: space-between; } .fx-sd.fx-outra button { font-size: 12.5px; font-weight: 700; color: var(--c); }
.fx-sd .num { height: 30px; border: 1px solid #e1e7ef; border-radius: 8px; width: 56px !important; }
.fx-opn { width: 22px; height: 22px; border-radius: 50%; background: var(--c); color: #fff; font-size: 12px; display: grid; place-items: center; flex: none; }
.fx-dot { width: 9px; height: 9px; border-radius: 50%; }
.fx-dot.c0 { background: #2D2926; } .fx-dot.c1 { background: #4a8fe7; } .fx-dot.c2 { background: #f0a030; } .fx-dot.c3 { background: #98a3af; } .fx-dot.c4 { background: #d9485f; } .fx-dot.c5 { background: #b48ce8; }
/* barra Duplicar / Remover em cima do cartão selecionado */
.fx-barra { position: absolute; bottom: calc(100% + 14px); left: 50%; transform: translateX(-50%); display: flex; gap: 4px; background: #374151; border-radius: 8px; padding: 6px; box-shadow: 0 10px 24px -10px rgba(0,0,0,.45); z-index: 5; }
.fx-barra button { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-size: 15px; font-weight: 600; padding: 8px 14px; border-radius: 8px; white-space: nowrap; }
.fx-barra button:hover { background: rgba(255,255,255,.1); } .fx-barra svg { width: 18px; height: 18px; stroke: #fff; }

/* coluna CONFIGURAÇÕES */
.fx-config { position: absolute; left: 14px; top: 14px; bottom: 14px; width: 300px; overflow-y: auto; background: rgba(232, 239, 250, .82); backdrop-filter: blur(3px); border-radius: 10px; padding: 14px; z-index: 6; }
.fxc-tit { text-transform: uppercase; color: #6b7480; font-size: 15px; letter-spacing: .02em; margin: 2px 4px 12px; }
.fxc-card { background: #fff; border: 1.5px solid #fff; border-radius: 10px; padding: 16px; margin-bottom: 14px; box-shadow: 0 8px 20px -14px rgba(31, 28, 26, .3); overflow: hidden; }
.fxc-card.erro { border-color: #ef9a9a; }
.fxc-cab { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; } .fxc-cab b { font-size: 16.5px; font-weight: 800; color: #2D2926; }
.fxc-ic { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: none; } .fxc-ic svg { width: 22px; height: 22px; }
.fxc-ic.am { background: #fdf5d5; } .fxc-ic.am svg { stroke: #e6b422; } .fxc-ic.rosa { background: #fde9ef; } .fxc-ic.rosa svg { stroke: #d9485f; }
.fxc-card p { font-size: 13px; color: #4b5563; line-height: 1.45; margin-bottom: 12px; }
.fxc-err { display: flex; align-items: center; gap: 6px; color: #d9485f; font-size: 13px; margin-top: 8px; } .fxc-err svg { width: 15px; height: 15px; }
.fxc-faixa { display: flex; align-items: center; gap: 10px; margin: 4px -16px 12px; padding: 10px 16px; color: #fff; font-weight: 800; font-size: 15px; } .fxc-faixa svg { width: 20px; height: 20px; stroke: #fff; }
.fxc-faixa.vermelha { background: #cd4b63; }
.fxc-conds { display: grid; gap: 8px; }
.fxc-cond { display: flex; align-items: center; gap: 6px; background: #f3f6fb; border: 1px solid #e1e7ef; border-radius: 10px; padding: 6px; }
.fxc-cond select { border: 0; background: transparent; font-size: 12px; font-weight: 700; color: #2D2926; outline: none; max-width: 92px; }
.fxc-cond input { flex: 1; width: auto; min-width: 0; border: 1px dashed #c9d2de; border-radius: 6px; padding: 5px 7px; font-size: 12.5px; background: #fff; outline: none; }
.fxc-cond button { color: #8a95a1; } .fxc-cond button svg { width: 14px; height: 14px; }
.fxc-link { display: block; margin: 10px 0 0 auto; font-size: 12.5px; text-decoration: underline; color: #2D2926; }
.fx-config-bt { display: none; }

/* "Qual o próximo passo?" */
.fx-passo { position: absolute; z-index: 20; width: 262px; max-height: calc(100% - 16px); overflow-y: auto; background: #f4f8fe; border: 2px dashed #9aa6b5; border-radius: 10px; padding: 14px 12px; box-shadow: 0 14px 30px -18px rgba(31, 28, 26, .45); }
.fxp-tit { font-size: 16px; font-weight: 800; color: #2D2926; margin: 0 4px 6px; }
.fxp-g { font-size: 13px; color: #6b7480; margin: 10px 4px 4px; }
.fxp-it { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 6px; border-radius: 8px; font-size: 14px; color: #2D2926; text-align: left; }
.fxp-it:hover { background: #e6eefb; }
.fxp-ic { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: none; } .fxp-ic svg { width: 13px; height: 13px; stroke: #fff; }
.fxp-ic.msg { background: var(--fx-msg); } .fxp-ic.midia { background: var(--fx-midia); } .fxp-ic.perg { background: var(--fx-perg); } .fxp-ic.espera { background: var(--fx-espera); } .fxp-ic.acao { background: var(--fx-acao); } .fxp-ic.fim { background: var(--fx-fim); }

/* zoom */
.fx-zoom { position: absolute; right: 14px; bottom: 14px; display: flex; flex-direction: column; gap: 6px; z-index: 6; }
.fx-zoom button { width: 40px; height: 40px; border-radius: 8px; background: #fff; box-shadow: 0 6px 14px -8px rgba(31, 28, 26, .4); font-size: 20px; font-weight: 700; color: #2D2926; display: grid; place-items: center; }
.fx-zoom button:hover { color: var(--accent); } .fx-zoom svg { width: 18px; height: 18px; }
#fxAdd { background: var(--accent); color: #fff; } #fxAdd svg { stroke: #fff; }

/* modal "Como quer começar?" */
.fx-escolha { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fx-op { display: flex; align-items: center; gap: 14px; padding: 22px 18px; border: 1.5px solid #e1e7ef; border-radius: 8px; background: #fff; font-weight: 800; font-size: 16px; color: #1f2933; text-align: left; }
.fx-op:hover { border-color: #b9c4d2; } .fx-op.sel { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(45, 41, 38, .15); }
.fx-op .fx-ic { width: 42px; height: 42px; --c: var(--accent); } .fx-op .fx-ic svg { width: 20px; height: 20px; }
.fx-op small { display: block; font-weight: 500; font-size: 12.5px; color: #6b7480; margin-top: 2px; }

@media (max-width: 1000px) {
  .fx-config { display: none; width: min(300px, calc(100% - 28px)); top: 62px; }
  .fx-config.aberto { display: block; }
  .fx-config-bt { display: inline-flex; align-items: center; gap: 8px; position: absolute; left: 14px; top: 14px; z-index: 7; height: 38px; padding: 0 14px; border-radius: 6px; background: #fff; font-weight: 700; font-size: 13.5px; box-shadow: 0 6px 14px -8px rgba(31, 28, 26, .4); }
  .fx-config-bt svg { width: 16px; height: 16px; }
  .fx-escolha { grid-template-columns: 1fr; }
}

/* ---------- estrutura (topo + menu agrupado + folha branca), na linha do Dispara Aí ---------- */
:root { --fundo: #edf2f7; --topo: 76px; }
body { background: var(--fundo); }
#app { display: block; min-height: 100vh; background: var(--fundo); }
.topo { position: sticky; top: 0; z-index: 40; height: var(--topo); background: #fff; display: flex; align-items: center; gap: 28px; padding: 0 32px; box-shadow: 0 1px 0 rgba(31, 28, 26, .06); }
.topo .logo img { height: 44px; }
.marca-tag { font-weight: 800; font-size: 15px; color: #fff; background: var(--accent); padding: 5px 12px; border-radius: 6px; letter-spacing: .02em; align-self: center; }
.topo-busca { flex: 0 1 460px; display: flex; align-items: center; gap: 10px; background: #f2f5f9; border-radius: 8px; padding: 0 16px; height: 46px; color: #9aa3ab; }
.topo-busca input { border: 0; background: transparent; outline: none; flex: 1; font-size: 15px; color: var(--text); min-width: 0; }
.topo-busca input::placeholder { color: #9aa3ab; font-style: italic; }
.topo-dir { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.topo-atualizar { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px; margin-left: -16px; border-radius: 8px; background: #f2f5f9; color: #5b636b; font-weight: 700; font-size: 14px; }
.topo-atualizar:hover { background: #e6ebf1; color: var(--text); }
.topo-atualizar svg { width: 18px; height: 18px; }
.topo-atualizar.girando svg { animation: girar .7s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }
@media (max-width: 760px) { .topo-atualizar { height: 40px; width: 40px; padding: 0; margin-left: auto; justify-content: center; } .topo-atualizar b { display: none; } .topo-atualizar + .topo-dir { margin-left: 0; } }
.topo-status { font-size: 14px; color: #5b636b; white-space: nowrap; } .topo-status b { color: var(--text); }
.criar { position: relative; }
.btn-criar { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 22px; border: 1.5px solid var(--accent); border-radius: 6px; color: var(--accent); font-weight: 700; font-size: 15px; background: #fff; }
.btn-criar:hover { background: #F3F2EE; }
.btn-criar svg { width: 16px; height: 16px; }
.criar-mn { position: absolute; top: calc(100% + 8px); left: 0; min-width: 230px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 16px 40px -16px rgba(31, 28, 26, .3); padding: 6px; z-index: 50; }
.criar-mn button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 8px; font-weight: 600; text-align: left; color: #3c4349; }
.criar-mn button:hover { background: #F3F2EE; color: var(--accent); }
.criar-mn svg { width: 17px; height: 17px; }
.av-quem { padding: 8px 12px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; } .av-quem b { display: block; } .av-quem small { color: var(--muted); }
.sino { width: 42px; height: 42px; } .sino svg { width: 24px; height: 24px; }
.sino-n { position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 6px; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff; }
.avatar-topo { width: 50px; height: 50px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; font-size: 17px; display: grid; place-items: center; box-shadow: 0 0 0 3px #fff, 0 0 0 5px #C3C5C4; }
.menu-mob2 { display: none; }

.corpo { display: grid; grid-template-columns: 260px minmax(0, 1fr); }
aside.side { width: auto; background: transparent; border: 0; position: sticky; top: var(--topo); height: calc(100vh - var(--topo)); padding: 26px 14px 18px 30px; overflow-y: auto; }
.workspace span { display: inline-flex; align-items: center; height: 46px; padding: 0 22px; border-radius: 6px; background: var(--accent); color: #fff; font-weight: 700; box-shadow: 0 6px 16px -8px rgba(45, 41, 38, .6); margin-bottom: 22px; }
nav.menu { padding: 0; gap: 0; overflow: visible; }
nav.menu .grupo { margin-bottom: 14px; }
nav.menu .g-tit { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 16px; color: var(--text); padding: 6px 0; }
nav.menu .g-tit svg { width: 20px; height: 20px; }
nav.menu .grupo button { padding: 7px 0 7px 32px; border: 0; border-radius: 0; font-weight: 600; font-size: 14.5px; color: #5b636b; background: none; width: 100%; }
nav.menu .grupo button:hover { background: none; color: var(--accent); }
nav.menu .grupo button.on { background: none; color: var(--accent); font-weight: 800; }
main.main { padding: 26px 30px 30px 8px; min-width: 0; }
.folha { background: #fff; border-radius: 10px; min-height: calc(100vh - var(--topo) - 64px); box-shadow: 0 1px 3px rgba(31, 28, 26, .05); padding: 14px 16px; }
.folha .pagehead { padding: 14px 16px 16px; }
.folha .pagehead h1 { font-size: 22px; font-weight: 800; }
/* telas de altura cheia dentro da folha */
#v-conversas { height: calc(100vh - var(--topo) - 84px); }
.board { height: calc(100vh - var(--topo) - 200px); }
.fx { height: calc(100vh - var(--topo) - 150px); }

@media (max-width: 1100px) { .topo-status { display: none; } .topo { gap: 16px; padding: 0 18px; } }
@media (max-width: 760px) {
  .menu-mob2 { display: grid; }
  .topo-busca { display: none; }
  .topo .logo img { height: 34px; } .marca-tag { font-size: 12px; padding: 3px 9px; }
  .btn-criar { height: 40px; padding: 0 14px; } .avatar-topo { width: 40px; height: 40px; font-size: 14px; }
  .topo-dir { gap: 10px; }
  .corpo { display: block; }
  aside.side { position: fixed; top: var(--topo); left: 0; bottom: 0; width: 270px; height: auto; background: #fff; transform: translateX(-105%); transition: transform .2s; box-shadow: 10px 0 30px -10px rgba(0,0,0,.3); z-index: 45; }
  aside.side.aberto { transform: none; }
  main.main { padding: 10px; }
  .folha { padding: 6px; border-radius: 8px; }
}
.folha { min-width: 0; } .folha .dcard, .folha .tbl-wrap, .folha .tbl { max-width: 100%; min-width: 0; }
.dash-grid > * { min-width: 0; }
@media (max-width: 760px) { main.main { overflow-x: hidden; } .dash-ctl select { max-width: 100%; } }
@media (max-width: 760px) {
  .topo { gap: 8px; padding: 0 10px; }
  .topo .logo img { height: 28px; } .marca-tag { font-size: 11px; padding: 2px 8px; }
  .btn-criar { width: 40px; padding: 0; justify-content: center; font-size: 0; gap: 0; }
  .btn-criar::before { content: "+"; font-size: 24px; font-weight: 600; line-height: 1; }
  .btn-criar svg { display: none; }
  .sino { width: 36px; height: 36px; }
  .avatar-topo { width: 36px; height: 36px; font-size: 13px; box-shadow: 0 0 0 2px #fff, 0 0 0 3px #C3C5C4; }
  .criar-mn { right: 0; left: auto; }
}

/* ================= padrão de telas na linha do Dispara Aí ================= */
:root { --fundo: #F8F7F2; --tinta: #2D2926; --roxo: #4A4542; --cab-tabela: #EFEEE8; }
body, button, input, select, textarea { font-family: "Figtree", system-ui, sans-serif; }
body { color: var(--tinta); }
/* o conteúdo fica direto no fundo, em cartões brancos (sem a folha) */
.folha { background: transparent; box-shadow: none; padding: 0; border-radius: 0; }
main.main { padding: 30px 34px 34px 10px; }
/* cabeçalho de página: título, CRIAR, traço, descrição e "Como funciona?" */
.pg-cab { display: flex; align-items: center; gap: 22px; margin-bottom: 26px; flex-wrap: wrap; }
.pg-cab h1 { font-size: 30px; font-weight: 800; color: var(--tinta); letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; }
.btn-pill { height: 38px; padding: 0 20px; border-radius: 6px; background: var(--accent); color: #fff; font-weight: 700; font-size: 15px; letter-spacing: .02em; box-shadow: 0 6px 14px -8px rgba(45, 41, 38, .7); }
.btn-pill:hover { background: var(--accent-dark); }
.pg-sep { width: 1px; align-self: stretch; min-height: 44px; background: #dfe6ef; }
.pg-desc { color: #6b7480; font-size: 14px; line-height: 1.4; max-width: 560px; }
.pg-dir { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.btn-ajuda { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 8px; background: var(--roxo); color: #fff; font-weight: 700; font-size: 14px; }
.btn-ajuda::before { content: "▶"; width: 18px; height: 18px; border-radius: 50%; background: #fff; color: var(--roxo); font-size: 8px; display: grid; place-items: center; padding-left: 2px; }
.btn-ajuda:hover { filter: brightness(1.08); }
.btn-tracejado { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 6px; border: 1.5px dashed var(--accent); color: var(--accent); font-weight: 700; background: transparent; }
.btn-tracejado:hover { background: #EFEEE8; }
.btn-tracejado svg { width: 18px; height: 18px; }
/* abas sublinhadas */
.pg-abas { display: flex; gap: 8px; border-bottom: 1px solid #e3e9f1; margin-bottom: 22px; flex-wrap: wrap; }
.pg-abas button { padding: 12px 20px; font-size: 16px; font-weight: 500; color: #4a5560; border-bottom: 3px solid transparent; margin-bottom: -1px; position: relative; }
.pg-abas button.on { color: var(--tinta); font-weight: 700; border-bottom-color: var(--accent); }
.pg-abas button sup { font-size: 10px; color: #6b7480; margin-left: 3px; font-weight: 500; }
/* busca em pílula + status */
.pg-busca { display: flex; gap: 12px; align-items: flex-end; margin-bottom: 20px; flex-wrap: wrap; }
.pg-pesq { flex: 1; min-width: 220px; display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 22px; background: #fff; border-radius: 6px; box-shadow: 0 1px 2px rgba(31, 28, 26, .05); }
.pg-pesq svg { width: 20px; height: 20px; color: #2D2926; }
.pg-pesq input { flex: 1; border: 0; outline: none; background: transparent; font-size: 16px; min-width: 0; }
.pg-pesq input::placeholder { color: #8a939d; }
.pg-status { display: flex; flex-direction: column; gap: 6px; } .pg-status > span { font-weight: 700; font-size: 15px; color: var(--tinta); }
.pg-status select { height: 52px; min-width: 190px; border-radius: 6px; border: 1px solid #d8dfe8; background: #fff; padding: 0 14px; font-size: 16px; color: var(--tinta); }
/* tabela */
.tbl { background: #fff; border: 0; border-radius: 8px; box-shadow: 0 1px 3px rgba(31, 28, 26, .05); overflow: hidden; overflow-x: auto; }
.tbl table { width: 100%; border-collapse: collapse; }
.tbl th { background: var(--cab-tabela); text-transform: uppercase; font-size: 13.5px; font-weight: 700; color: #4a5560; letter-spacing: .02em; padding: 22px 26px; text-align: left; border: 0; white-space: nowrap; }
.tbl td { padding: 18px 26px; border-top: 1px solid #eef2f7; font-size: 15px; color: var(--tinta); vertical-align: middle; }
.tbl tr.click:hover td { background: #f7fafd; cursor: pointer; }
.pg-vazio { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 70px 20px; color: #9aa3ab; text-align: center; }
.pg-vazio svg { width: 110px; height: 110px; stroke: #c4cad1; stroke-width: 1.6; }
.pg-vazio b { font-size: 24px; font-weight: 700; color: #9aa3ab; } .pg-vazio small { font-size: 14px; color: #9aa3ab; margin-top: -8px; max-width: 420px; }
.tbl .pg-vazio { background: var(--fundo); }
/* status com bolinha (como o ✓ / ✗ deles) */
.ok-x { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-size: 14px; font-weight: 800; }
.ok-x.ok { background: #36b37e; } .ok-x.x { background: #9aa3ab; } .ok-x.alerta { background: var(--orange); }
.btn-conectar { height: 44px; padding: 0 34px; border-radius: 4px; background: #61c8a0; background: var(--accent); color: #fff; font-weight: 700; font-size: 14px; letter-spacing: .03em; text-transform: uppercase; }
.btn-conectar:hover { background: var(--accent-dark); }
.mais { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 22px; font-weight: 800; color: var(--tinta); line-height: 1; }
.mais:hover { background: #eef2f7; }
.menu-opc { position: fixed; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 16px 40px -16px rgba(31, 28, 26,.3); padding: 6px; z-index: 80; min-width: 190px; }
.menu-opc button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 6px; font-weight: 600; font-size: 14px; }
.menu-opc button:hover { background: #F3F2EE; color: var(--accent); } .menu-opc button.perigo:hover { background: #fdeceb; color: var(--red); }
.tipo-canal svg { width: 26px; height: 26px; }
.st-pill { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 4px 12px; border-radius: 6px; white-space: nowrap; }
.st-pill.verde { background: #EFEEE8; color: #2D2926; } .st-pill.amarelo { background: #fff3d6; color: #8a5a00; } .st-pill.cinza { background: #eceff2; color: #5b636b; } .st-pill.vermelho { background: #fde4e4; color: #a61b1f; } .st-pill.azul { background: #e5effc; color: #1a5fa8; }
/* cartões de número com o ícone num quadradinho colorido */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; margin-bottom: 26px; }
.kpi { background: #fff; border-radius: 8px; padding: 22px 22px; display: flex; gap: 22px; align-items: flex-start; box-shadow: 0 1px 3px rgba(31, 28, 26, .05); min-height: 100px; }
.kpi[data-ir] { cursor: pointer; }
.kpi-ic { width: 54px; height: 54px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.kpi-ic svg { width: 28px; height: 28px; stroke-width: 2.2; }
.kpi-ic.roxo { background: #efe5fd; color: #8b46f0; } .kpi-ic.azul { background: #e3edfb; color: #2f6fd6; } .kpi-ic.verde { background: #EFEEE8; color: #22a06b; }
.kpi-ic.laranja { background: #fdefdc; color: #e8892c; } .kpi-ic.vermelho { background: #fde4e4; color: #e05555; } .kpi-ic.cinza { background: #eceff3; color: #7b8590; }
.kpi span { display: flex; align-items: center; gap: 6px; font-size: 15px; color: #4a5560; } .kpi b { display: block; font-size: 22px; font-weight: 800; color: var(--tinta); margin-top: 6px; } .kpi small { display: block; color: #8a939d; font-size: 13px; margin-top: 2px; }
.q { width: 17px; height: 17px; border-radius: 50%; background: #7b8590; color: #fff; font-size: 11px; font-weight: 800; font-style: normal; display: inline-grid; place-items: center; cursor: help; }
.sec-tit { font-size: 22px; font-weight: 800; color: var(--tinta); margin: 6px 0 16px; display: flex; align-items: center; gap: 8px; }
/* cartões de gráfico e quebras */
.dcard { background: #fff; border: 0; border-radius: 8px; box-shadow: 0 1px 3px rgba(31, 28, 26, .05); padding: 22px 24px; }
.dcard h3 { font-size: 19px; font-weight: 800; color: var(--tinta); }
.tbl-dash th { background: var(--cab-tabela); text-transform: uppercase; color: #4a5560; padding: 14px 16px; border: 0; }
.tbl-dash td { padding: 14px 16px; }
.tabs2 button.on { background: var(--accent); border-color: var(--accent); }
@media (max-width: 760px) { .pg-cab { gap: 12px; } .pg-cab h1 { font-size: 24px; } .pg-sep { display: none; } .pg-dir { margin-left: 0; width: 100%; } .tbl th, .tbl td { padding: 14px 14px; } main.main { padding: 14px 10px; } }
/* bate-papo num cartão branco */
#v-conversas { height: calc(100vh - var(--topo) - 60px); display: flex; flex-direction: column; }
.cartao-chat { flex: 1; min-height: 0; background: #fff; border-radius: 8px; box-shadow: 0 1px 3px rgba(31, 28, 26, .05); overflow: hidden; border-top: 0; }
.fx { height: calc(100vh - var(--topo) - 190px); }
.board { height: calc(100vh - var(--topo) - 330px); min-height: 420px; padding: 0; }
.board .col { background: #e8eef6; }
@media (max-width: 760px) { #v-conversas { height: calc(100vh - var(--topo) - 30px); } .fx { height: auto; } }
.pg-desc { flex: 1 1 240px; max-width: 560px; }
.tbl th { padding: 20px 18px; } .tbl td { padding: 16px 18px; }
.tbl th:first-child, .tbl td:first-child { padding-left: 26px; }
#v-leads .pg-busca { gap: 10px; }
#v-leads .pg-pesq { height: 46px; min-width: 240px; } #v-leads .pg-pesq input { font-size: 15px; }
#v-leads .pg-status > span { font-size: 13px; } #v-leads .pg-status select { height: 46px; min-width: 128px; font-size: 14px; }
#v-leads .btn-tracejado#ldConferir { height: 46px !important; padding: 0 16px; }
#cvLista { flex: 1; min-height: 0; overflow-y: auto; }
#cvFiltro, .wa-col .wa-busca { flex: none; }

/* ---------- disparo: modelo + prévia ---------- */
.dp-msg { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.dp-var { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; } .dp-var span { font-weight: 800; font-size: 13px; color: #6b7480; width: 38px; flex: none; }
.dp-chips { margin: 4px 0 2px 46px; } .dp-chips button { --c: var(--accent); }
@media (max-width: 800px) { .dp-msg { grid-template-columns: 1fr; } }
/* o cartão do Pipeline usa .nm pro nome, igual ao cartão de "Meus números": aqui volta a ser só texto */
.card .nm { background: none; border: 0; border-radius: 0; padding: 0; display: block; }
.card .foot .vals span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; color: var(--muted); }
.card .foot { display: flex; align-items: center; gap: 6px; min-width: 0; } .card .foot .vals { flex: 1; min-width: 0; }

/* detalhes do número: limite da Meta */
.nm-limite { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.nm-limite > div { background: #f3f7fd; border-radius: 8px; padding: 12px 14px; }
.nm-limite span { display: block; font-size: 12.5px; color: #6b7480; font-weight: 600; } .nm-limite b { display: block; font-size: 26px; font-weight: 800; color: var(--tinta); margin: 2px 0; } .nm-limite small { color: #8a95a1; font-size: 12px; }
.nm-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin-top: 14px; }
@media (max-width: 700px) { .nm-limite, .nm-kv { grid-template-columns: 1fr; } }
.nm-kv b .tag-et { display: inline-block; }

/* ---------- arrumação geral (varredura de 03/11) ---------- */
/* tabelas: texto longo quebra linha em vez de empurrar as colunas da direita pra fora */
.tbl th { padding: 16px 14px; font-size: 12.5px; white-space: nowrap; }
.tbl td { padding: 14px; white-space: normal; }
.tbl th:first-child, .tbl td:first-child { padding-left: 22px; }
.tbl th:last-child, .tbl td:last-child { padding-right: 18px; }
.tbl td .md-thumb + b, .tbl td b { word-break: break-word; }
#mdTabela td:last-child { max-width: 360px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
/* painel: 3 cartões por linha (6 = 2 linhas cheias), filtros do tamanho do conteúdo */
#painelBox .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dash-ctl { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dash-ctl select { width: auto; max-width: 240px; flex: 0 0 auto; }
@media (max-width: 1000px) { #painelBox .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { #painelBox .kpis { grid-template-columns: 1fr; } .dash-ctl select { max-width: 100%; flex: 1 1 100%; } }
/* filtros de leads: tudo na mesma régua */
#v-leads .pg-busca { display: grid; grid-template-columns: minmax(240px, 2fr) repeat(5, minmax(120px, 1fr)); gap: 10px; align-items: end; }
#v-leads .pg-status select { width: 100%; min-width: 0; }
@media (max-width: 1200px) { #v-leads .pg-busca { grid-template-columns: repeat(3, minmax(0, 1fr)); } #v-leads .pg-pesq { grid-column: 1 / -1; } }
@media (max-width: 600px) { #v-leads .pg-busca { grid-template-columns: 1fr 1fr; } }
/* abas do bate-papo: não espremem, rolam pro lado se precisar */
#cvFiltro { display: flex; overflow-x: auto; scrollbar-width: none; } #cvFiltro::-webkit-scrollbar { display: none; }
#cvFiltro button { flex: 1 0 auto; padding: 7px 10px; font-size: 13px; }
#cvTxt::placeholder { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* pipeline: colunas um pouco mais estreitas (cabem 5 no computador) */
#ldQuadro .col { flex: 0 0 248px; width: 248px; }

.tbl td .tagetapa, .tbl td .tag-et, .tbl td .md-st, .tbl .nowrap { white-space: nowrap; }
#ldLista td:nth-child(2) { min-width: 210px; }
#ldLista td:nth-child(3) { white-space: nowrap; }
#cvFiltro button { flex: 1 1 auto; min-width: 0; padding: 7px 6px; font-size: 12px; }
.dash-ctl select { max-width: 205px; }

/* bate-papo: as regras de tela pequena vieram do CRM com outros nomes (#waChatBox/#waLado); aqui são #cvChat/#cvLado */
.wa-layout { grid-template-columns: 320px minmax(0, 1fr) 300px; }
.wa-col, #cvChat, #cvLado { min-width: 0; }
#cvChat { min-height: 0; display: flex; flex-direction: column; }
#cvLado { overflow-y: auto; overflow-x: hidden; }
#cvLista > * { min-width: 0; }
#cvHead > div { min-width: 0; } #cvHead b, #cvHead small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1100px) { .wa-layout { grid-template-columns: 300px minmax(0, 1fr); } #cvLado { display: none; } }
@media (max-width: 760px) {
  .wa-layout { grid-template-columns: minmax(0, 1fr); }
  #v-conversas.chat-aberto .wa-col { display: none; }
  #v-conversas:not(.chat-aberto) #cvChat { display: none; }
}
/* tabelas no celular: rolam pro lado em vez de esmagar a 1ª coluna letra por letra */
.tbl td:first-child { min-width: 150px; }
@media (max-width: 760px) { .tbl table { min-width: 680px; } .tbl td:first-child { min-width: 170px; } .tbl td b { word-break: normal; } }
/* ficha do lead e outras janelas de 2 colunas: uma coluna só no celular */
@media (max-width: 700px) { .modal .mb[style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; } }
/* botões do topo da página não quebram em 2 linhas */
.pg-dir button, .pg-dir .btn-ajuda, .pg-dir .btn-tracejado { white-space: nowrap; }
@media (max-width: 760px) { .pg-dir { display: flex; flex-wrap: wrap; gap: 8px; } .pg-dir button { font-size: 13.5px; padding: 0 14px; height: 38px; } }

#ldLista td:first-child, #ldLista th:first-child { min-width: 0; width: 44px; padding-right: 0; }
#ldLista td:nth-child(2) { min-width: 200px; }
#nmTabela td:nth-child(2) { white-space: nowrap; }

/* ---------- pastas (Meus leads) ---------- */
.pastas.hidden { display: none; }
.pst-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; padding: 6px 0 22px; }
.pst-grade.sub { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; padding: 4px 0 18px; }
.pst { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px 18px 18px; background: #fff; border: 1px solid #e6ecf3; border-radius: 10px;
  box-shadow: 0 1px 2px rgba(31, 28, 26, .04); cursor: pointer; text-align: left; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; user-select: none; }
.pst:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -16px rgba(31, 28, 26, .35); border-color: #d6e0eb; }
.pst .pst-ic { width: 54px; height: 45px; display: block; }
.pst-grade.sub .pst { padding: 16px 16px 14px; gap: 10px; } .pst-grade.sub .pst .pst-ic { width: 42px; height: 35px; }
.pst-txt { min-width: 0; width: 100%; }
.pst-txt b { display: block; font-size: 16px; font-weight: 800; color: var(--tinta); line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pst-txt small { display: block; margin-top: 3px; color: #7a8591; font-size: 13px; }
.pst-ed { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: #8a95a1; opacity: 0; transition: opacity .15s; }
.pst-ed svg { width: 16px; height: 16px; }
.pst:hover .pst-ed { opacity: 1; } .pst-ed:hover { background: #f1f5f9; color: var(--tinta); }
@media (hover: none) { .pst-ed { opacity: 1; } }
.pst.nova { border: 1.5px dashed #c9d6e3; background: transparent; box-shadow: none; justify-content: center; }
.pst.nova svg { width: 26px; height: 26px; color: var(--accent); } .pst.nova:hover { background: #f6fbf8; border-color: var(--accent); }
.pst.nova .pst-txt b { color: var(--accent); }
.pst.sem { background: #fafcfe; }
.pst.arrastando { opacity: .45; }
.pst.alvo { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(45, 41, 38, .18); }
/* caminho: Pastas › Nicho › Cidade */
.pst-caminho { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 2px 0 14px; font-size: 15px; }
.pst-caminho button[data-ir] { color: #6b7480; font-weight: 600; padding: 4px 6px; border-radius: 8px; } .pst-caminho button[data-ir]:hover { background: #eef2f7; color: var(--tinta); }
.pst-caminho > span { color: #b3bcc6; }
.pst-caminho > b { display: inline-flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 800; color: var(--tinta); }
.pst-caminho > b .pst-ic { width: 30px; height: 25px; }
.pst-caminho .pst-tot { color: #7a8591; font-size: 14px; margin-left: 2px; }
.pst-caminho .btn { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; } .pst-caminho .btn svg { width: 15px; height: 15px; }
/* janela de editar: escolher cor */
.pst-cores { display: flex; flex-wrap: wrap; gap: 8px; }
.pst-cores button { width: 50px; height: 44px; border-radius: 8px; border: 2px solid transparent; display: grid; place-items: center; background: #f6f8fb; }
.pst-cores button .pst-ic { width: 32px; height: 27px; }
.pst-cores button.on { border-color: var(--c); background: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 20%, transparent); }
/* filtro "Pasta" no Pipeline entra na régua dos filtros */
#v-leads .pg-busca.com-pasta { grid-template-columns: minmax(150px, 1fr) minmax(220px, 2fr) repeat(5, minmax(110px, 1fr)); }
@media (max-width: 1200px) { #v-leads .pg-busca.com-pasta { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .pst-grade { grid-template-columns: 1fr 1fr; gap: 10px; } .pst { padding: 16px 14px 14px; } .pst .pst-ic { width: 42px; height: 35px; } .pst-txt b { font-size: 14.5px; white-space: normal; }
  #v-leads .pg-busca.com-pasta { grid-template-columns: 1fr 1fr; } .pst-caminho .btn { margin-left: 0; } }

/* ---------- página do disparo ---------- */
.dp-pg { display: flex; flex-direction: column; gap: 16px; }
.dp-topo { display: flex; align-items: center; gap: 12px; }
.dp-nome { flex: 1; min-width: 0; font-size: 22px; font-weight: 800; color: var(--tinta); background: transparent; border: 0; border-bottom: 2px dashed #d3dce7; padding: 6px 2px; outline: none; }
.dp-nome:focus { border-bottom-color: var(--accent); } .dp-nome::placeholder { color: #a7b2bf; font-weight: 700; }
.dp-corpo { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.dp-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.dp-card { background: #fff; border-radius: 10px; padding: 22px; box-shadow: 0 1px 3px rgba(31, 28, 26, .05); }
.dp-card > header { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.dp-card > header h3 { font-size: 18px; font-weight: 800; color: var(--tinta); } .dp-card > header p { color: #6b7480; font-size: 13.5px; margin-top: 2px; }
.dp-n { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; display: grid; place-items: center; }
.dp-card .lb small { font-weight: 500; color: #8a95a1; }
.dp-quem { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; }
/* árvore de pastas com caixinhas */
.dp-arvore { border: 1px solid #e6ecf3; border-radius: 10px; padding: 6px; max-height: 300px; overflow-y: auto; }
.dp-pst { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px calc(10px + var(--nivel) * 22px); border-radius: 10px; cursor: pointer; }
.dp-pst:hover { background: #f5f8fb; }
.dp-pst input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.dp-pst .pst-ic { width: 24px; height: 20px; flex: none; }
.dp-pst b { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 700; color: var(--tinta); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dp-pst small { color: #8a95a1; font-size: 12.5px; font-weight: 600; }
.dp-pst:has(input:disabled) { opacity: .75; }
/* botões liga/desliga (etapas, dias) */
.dp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dp-chips button { padding: 8px 14px; border-radius: 6px; border: 1.5px solid #dbe3ec; background: #fff; font-weight: 700; font-size: 13.5px; color: #55606b; }
.dp-chips button:hover { border-color: #b9d9c6; }
.dp-chips button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.dp-chips.dias button { min-width: 50px; text-align: center; }
#dpRegra { margin-top: 8px; }
.dp-mais { margin-top: 14px; } .dp-mais summary { cursor: pointer; font-weight: 700; color: #55606b; font-size: 14px; }
.dp-mais-g { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.dp-check { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; font-size: 13.5px; }
/* lista de leads que recebem */
.dp-leads { margin-top: 20px; border: 1px solid #e6ecf3; border-radius: 10px; overflow: hidden; }
.dp-leads-cab { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: #f6f9fc; border-bottom: 1px solid #e6ecf3; flex-wrap: wrap; }
.dp-leads-cab b { margin-right: auto; font-size: 14.5px; color: var(--tinta); }
.dp-leads-cab .field { width: 200px; height: 34px; padding: 0 10px; font-size: 13.5px; }
.dp-leads-lista { max-height: 340px; overflow-y: auto; }
.dp-lead { display: flex; align-items: center; gap: 12px; padding: 9px 14px; border-top: 1px solid #f1f4f8; cursor: pointer; }
.dp-lead:first-child { border-top: 0; } .dp-lead:hover { background: #fafcfe; }
.dp-lead input { width: 17px; height: 17px; accent-color: var(--accent); flex: none; }
.dp-lead > span:not(.tagetapa) { flex: 1; min-width: 0; } .dp-lead b { display: block; font-size: 14px; font-weight: 700; color: var(--tinta); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dp-lead small { display: block; color: #8a95a1; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dp-lead.fora { opacity: .45; } .dp-lead.fora b { text-decoration: line-through; }
/* modelos em cartões */
.dp-modelos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-bottom: 18px; }
.dp-mod { position: relative; text-align: left; padding: 14px; border: 1.5px solid #e3e9f1; border-radius: 10px; background: #fff; display: flex; flex-direction: column; gap: 6px; }
.dp-mod:hover { border-color: #b9d9c6; } .dp-mod.on { border-color: var(--accent); background: #F3F2EE; box-shadow: 0 0 0 3px rgba(45, 41, 38, .12); }
.dp-mod b { font-size: 14px; font-weight: 800; color: var(--tinta); word-break: break-word; padding-right: 26px; }
.dp-mod small { color: #6b7480; font-size: 12.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dp-mod i { font-style: normal; font-size: 11.5px; font-weight: 700; color: #3b82f6; }
.dp-mod-img { position: absolute; top: 12px; right: 12px; color: #8b5cf6; } .dp-mod-img svg { width: 18px; height: 18px; }
.dp-msg2 { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.dp-prev { position: static; }
.dp-chips-var { margin: 4px 0 2px 46px; } .dp-chips-var button { --c: var(--accent); }
/* quando */
.dp-nums { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.dp-num { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1.5px solid #e3e9f1; border-radius: 10px; cursor: pointer; min-width: 260px; }
.dp-num:has(input:checked) { border-color: var(--accent); background: #F3F2EE; }
.dp-num input { width: 18px; height: 18px; accent-color: var(--accent); }
.dp-num b { display: block; font-size: 14.5px; } .dp-num small { color: #6b7480; font-size: 12.5px; } .dp-num.off { opacity: .55; }
.dp-quando { display: grid; grid-template-columns: auto minmax(0, 1fr) 240px; gap: 22px; align-items: start; }
.dp-hora { display: flex; align-items: center; gap: 8px; } .dp-hora .field { width: 120px; } .dp-hora span { color: #8a95a1; font-size: 13.5px; }
.dp-quando input[type=range] { width: 100%; accent-color: var(--accent); margin: 8px 0 4px; }
.dp-quando .lb b { color: var(--accent); font-size: 15px; margin-left: 4px; }
/* resumo fixo */
.dp-resumo { position: sticky; top: calc(var(--topo) + 16px); background: #fff; border-radius: 10px; padding: 20px; box-shadow: 0 10px 30px -18px rgba(31, 28, 26, .35); display: flex; flex-direction: column; gap: 14px; }
.dp-resumo h3 { font-size: 16px; font-weight: 800; color: var(--tinta); }
.dp-big { display: flex; align-items: baseline; gap: 8px; } .dp-big b { font-size: 40px; font-weight: 800; color: var(--accent); line-height: 1; } .dp-big span { color: #6b7480; font-weight: 600; }
.dp-resumo dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: 13.5px; } .dp-resumo dt { color: #8a95a1; } .dp-resumo dd { color: var(--tinta); font-weight: 600; text-align: right; word-break: break-word; }
.dp-faltas { display: flex; flex-direction: column; gap: 6px; } .dp-faltas span { display: flex; align-items: center; gap: 6px; color: #b45309; font-size: 13px; font-weight: 600; } .dp-faltas svg { width: 15px; height: 15px; }
.dp-bt { width: 100%; justify-content: center; height: 44px; display: inline-flex; align-items: center; gap: 8px; } .dp-bt svg { width: 17px; height: 17px; }
.dp-bt:disabled { opacity: .5; cursor: not-allowed; }
@media (max-width: 1100px) { .dp-corpo { grid-template-columns: 1fr; } .dp-resumo { position: static; } .dp-msg2 { grid-template-columns: 1fr; } .dp-quando { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .dp-quem { grid-template-columns: 1fr; } .dp-card { padding: 16px; } .dp-nome { font-size: 18px; } .dp-leads-cab .field { width: 100%; } .dp-num { min-width: 0; width: 100%; } .dp-mais-g { grid-template-columns: 1fr; } }
.dp-card .dp-chips { margin: 0; }
.dp-quando { grid-template-columns: auto minmax(0, 1fr); }
.dp-quando > div:last-child { grid-column: 1 / -1; max-width: 420px; }
.dp-chips.dias button { min-width: 0; padding: 7px 12px; }
@media (max-width: 1100px) { .dp-quando { grid-template-columns: 1fr; } }
/* login: borda de nuvem entre o lado verde e o acesso (mesma cor do fundo da direita) */
.lg-arte::after { content: ""; position: absolute; top: 0; bottom: 0; right: -1px; width: 96px; z-index: 2; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='320' viewBox='0 0 96 320'%3E%3Cpath fill='%23f2f5f3' d='M96 0H62C28 0 16 34 42 54 8 64 6 112 38 124 14 142 18 182 50 190 20 208 24 254 56 262 28 280 34 316 62 320H96z'/%3E%3C/svg%3E") 0 0 / 96px 320px repeat-y; }
.lg-arte .lg-nuvem { position: absolute; z-index: 2; pointer-events: none; fill: #F8F7F2; }
.lg-arte .lg-nuvem.n1 { right: 0; top: 28px; width: 230px; animation: deriva 26s ease-in-out infinite; }
.lg-arte .lg-nuvem.n2 { right: 0; bottom: 34px; width: 280px; animation: deriva 34s ease-in-out infinite reverse; }
@keyframes deriva { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-18px); } }
@media (prefers-reduced-motion: reduce) { .lg-arte .lg-nuvem { animation: none; } }

/* ---------- novo disparo em passos ---------- */
.wz { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; padding-bottom: 90px; }
.wz-topo { display: flex; align-items: center; gap: 14px; } .wz-topo h2 { font-size: 22px; font-weight: 800; color: var(--tinta); }
.wz-trilha { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; counter-reset: p; }
.wz-trilha li { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #fff; border-radius: 10px; font-weight: 700; font-size: 14px; color: #9aa3ad; border: 1.5px solid transparent; }
.wz-trilha li span { width: 28px; height: 28px; border-radius: 50%; background: #eef2f6; color: #8a95a1; display: grid; place-items: center; font-size: 13px; font-weight: 800; flex: none; }
.wz-trilha li.pode { cursor: pointer; color: #55606b; } .wz-trilha li.pode:hover { border-color: #d6e9dd; }
.wz-trilha li.feito span { background: #E6E5E1; color: var(--accent); }
.wz-trilha li.on { color: var(--tinta); border-color: var(--accent); box-shadow: 0 6px 18px -10px rgba(45, 41, 38, .6); }
.wz-trilha li.on span { background: var(--accent); color: #fff; }
.wz-card { background: #fff; border-radius: 10px; padding: 30px 32px; box-shadow: 0 1px 3px rgba(31, 28, 26, .05); }
.wz-passo { display: none; } .wz-passo.on { display: block; animation: chegar .25s ease-out both; }
.wz-q { font-size: 24px; font-weight: 800; color: var(--tinta); letter-spacing: -.01em; }
.wz-sub { color: #6b7480; font-size: 14.5px; margin: 6px 0 20px; line-height: 1.5; }
.wz-lb { display: block; font-size: 13.5px; color: #3d4752; margin: 24px 0 10px; } .wz-sub + .wz-lb { margin-top: 0; }
.wz-arvore { max-height: 360px; }
.dp-pst.on { background: #f1faf4; } .dp-pst.on:hover { background: #e8f6ed; }
.wz .dp-chips { margin: 0; }
.wz-det { margin-top: 18px; border: 1px solid #e6ecf3; border-radius: 10px; padding: 12px 16px; } .wz-det[open] { padding-bottom: 16px; }
.wz-det summary span { color: var(--accent); font-weight: 800; } .wz-det .dp-leads { margin-top: 12px; }
.wz-nome { font-size: 16px; padding: 12px 14px; border-radius: 8px; }
.wz-modelos .dp-mod { padding-right: 40px; } .wz-modelos .dp-mod b { padding-right: 0; }
.wz-marca { position: absolute; top: 12px; right: 12px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #d3dce7; display: grid; place-items: center; font-style: normal; font-size: 12px !important; font-weight: 800; color: #fff !important; }
.dp-mod.on .wz-marca { background: var(--accent); border-color: var(--accent); }
.wz-modelos .dp-mod-img { right: 44px; }
.wz-varbox { border-top: 1px solid #eef2f6; padding-top: 18px; }
.wz-abas { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.wz-abas button { text-align: left; padding: 8px 14px; border-radius: 8px; border: 1.5px solid #e3e9f1; background: #fff; font-weight: 800; font-size: 13px; color: var(--tinta); }
.wz-abas button small { display: block; font-weight: 600; color: #8a95a1; font-size: 11.5px; } .wz-abas button.on { border-color: var(--accent); background: #F3F2EE; }
.wz .dp-chips-var, .wz .dp-chips { margin-left: 0; }
.wz-quando { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; }
.wz .dp-chips.dias { gap: 6px; } .wz .dp-chips.dias button { min-width: 0; padding: 8px 12px; }
.wz-atalhos { display: flex; gap: 6px; margin-top: 10px; } .wz-atalhos button { font-size: 12.5px; font-weight: 700; color: var(--link); padding: 4px 8px; border-radius: 8px; } .wz-atalhos button:hover { background: #f1f6fd; }
.wz-ph { display: inline-block; min-width: 44px; text-align: center; margin-left: 6px; padding: 3px 10px; border-radius: 6px; background: var(--accent); color: #fff; font-size: 14px; }
.wz-range { width: 100%; accent-color: var(--accent); height: 28px; }
.wz-conta { margin-top: 22px; background: #F3F2EE; border: 1.5px solid #D9D9D6; border-radius: 10px; padding: 18px 20px; display: grid; gap: 8px; font-size: 15px; line-height: 1.5; color: #2d3b33; }
.wz-conta b { color: #2D2926; }
.wz-custo { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 6px; padding-top: 12px; border-top: 1px dashed #bfe3cc; }
.wz-custo span { font-weight: 700; color: #3d4752; } .wz-custo b { font-size: 26px; font-weight: 800; color: var(--accent) !important; } .wz-custo small { color: #6b7480; }
.wz-custo.grande { margin-top: 16px; background: #F3F2EE; border: 1.5px solid #D9D9D6; border-radius: 10px; padding: 16px 20px; }
.wz-rev { display: grid; gap: 8px; }
.wz-item { display: grid; grid-template-columns: 200px minmax(0, 1fr) auto; align-items: center; gap: 12px; text-align: left; padding: 14px 16px; border-radius: 10px; border: 1.5px solid #eef2f6; background: #fff; }
.wz-item:hover { border-color: #D9D9D6; background: #fafdfb; }
.wz-item span { color: #6b7480; font-size: 13.5px; font-weight: 700; } .wz-item b { color: var(--tinta); font-size: 14.5px; word-break: break-word; }
.wz-item i { font-style: normal; color: var(--link); font-weight: 700; font-size: 13px; }
.wz-pe { position: sticky; bottom: 12px; z-index: 5; display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 10px; padding: 12px 14px; box-shadow: 0 14px 34px -16px rgba(31, 28, 26, .4), 0 0 0 1px #eef2f6; }
.wz-info { flex: 1; min-width: 0; text-align: center; font-size: 14px; color: #55606b; } .wz-info b { color: var(--tinta); font-size: 15px; }
.wz-falta { display: inline-flex; align-items: center; gap: 6px; color: #b45309; font-weight: 700; } .wz-falta svg { width: 16px; height: 16px; }
.wz-acoes { display: flex; gap: 8px; }
.wz-pe .btn { height: 44px; padding: 0 18px; border-radius: 8px; font-size: 14.5px; }
.wz-seguir { min-width: 150px; justify-content: center; } .wz-seguir:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 760px) {
  .wz-card { padding: 20px 16px; } .wz-q { font-size: 20px; }
  .wz-trilha { grid-template-columns: repeat(4, auto); justify-content: space-between; } .wz-trilha li { padding: 8px; font-size: 0; gap: 0; } .wz-trilha li span { font-size: 13px; } .wz-trilha li.on { font-size: 13px; gap: 8px; padding-right: 12px; }
  .wz-quando { grid-template-columns: 1fr; gap: 0; } .wz-item { grid-template-columns: 1fr auto; } .wz-item b { grid-column: 1; } .wz-item i { grid-row: 1 / span 2; grid-column: 2; }
  .wz-pe { flex-wrap: wrap; } .wz-info { order: -1; flex-basis: 100%; } .wz-acoes { margin-left: auto; } .wz-seguir { min-width: 0; }
}
/* todos os passos com o mesmo tamanho: o quadro tem altura fixa e o conteúdo rola por dentro */
.wz { padding-bottom: 24px; }
.wz-card { height: clamp(440px, calc(100vh - 350px), 760px); padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.wz-passo.on { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; padding: 28px 32px; }
.wz-passo .wz-sub { margin-bottom: 18px; }
.wz-p1 { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; }
.wz-col { min-height: 0; overflow-y: auto; padding-right: 4px; }
.wz-col-pastas { display: flex; flex-direction: column; overflow: hidden; }
.wz-col-pastas .wz-arvore { flex: 1; min-height: 0; max-height: none; }
.wz-col > .wz-lb:first-child { margin-top: 0; }
.wz-col .wz-det:first-of-type { margin-top: 22px; }
.wz-pe { position: static; }
@media (max-width: 860px) {
  .wz-card { height: auto; overflow: visible; } .wz-passo.on { overflow: visible; padding: 20px 16px; }
  .wz-p1 { grid-template-columns: 1fr; gap: 0; } .wz-col, .wz-col-pastas { overflow: visible; } .wz-col-pastas .wz-arvore { max-height: 340px; }
  .wz-pe { position: sticky; bottom: 10px; }
}
/* no passo a passo o cabeçalho "Disparos / CRIAR" sai, pra caber tudo na tela */
#v-campanhas:has(.wz) > .pg-cab { display: none; }
/* passo 3 mais compacto, pra conta e o custo caberem sem rolar */
.wz-passo[data-p="3"] .wz-lb { margin: 16px 0 8px; } .wz-passo[data-p="3"] .wz-sub + .wz-lb { margin-top: 0; }
.wz-passo[data-p="3"] .dp-nums { margin-bottom: 4px; } .wz-passo[data-p="3"] .wz-atalhos { margin-top: 6px; }
.wz-conta { margin-top: 14px; padding: 14px 18px; gap: 4px; font-size: 14.5px; }
.wz-conta .wz-custo { margin-top: 4px; padding-top: 8px; } .wz-conta .wz-custo b { font-size: 22px; }
/* botão de voltar: bolinha com a seta + o nome de pra onde volta */
.btn-voltar { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px 0 5px; border-radius: 6px; background: #fff; color: var(--tinta); font-weight: 700; font-size: 14.5px; box-shadow: 0 1px 2px rgba(31, 28, 26, .06), 0 0 0 1px #e8edf3; transition: box-shadow .15s, transform .15s; flex: none; }
.btn-voltar i { width: 30px; height: 30px; border-radius: 50%; background: #EFEEE8; color: var(--accent); display: grid; place-items: center; transition: background .15s, color .15s, transform .15s; }
.btn-voltar svg { width: 17px; height: 17px; margin-left: -1px; }
.btn-voltar:hover { box-shadow: 0 6px 16px -8px rgba(31, 28, 26, .35), 0 0 0 1px #d6e9dd; }
.btn-voltar:hover i { background: var(--accent); color: #fff; transform: translateX(-2px); }
.btn-voltar:active { transform: scale(.97); }
.wz-pe .btn-voltar { height: 44px; box-shadow: none; background: #f4f7f5; } .wz-pe .btn-voltar:hover { background: #eaf3ed; }

/* ---------- painel: filtros em pílula, cartões, gráfico e funil ---------- */
.pn-barra { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: #fff; border-radius: 10px; padding: 10px; margin-bottom: 20px; box-shadow: 0 1px 3px rgba(31, 28, 26, .05); }
.pn-seg { display: inline-flex; gap: 2px; background: #f0f3f7; border-radius: 8px; padding: 4px; flex: none; }
.pn-seg button { padding: 8px 16px; border-radius: 9px; font-weight: 700; font-size: 13.5px; color: #66717d; transition: background .15s, color .15s, box-shadow .15s; white-space: nowrap; }
.pn-seg button:hover { color: var(--tinta); }
.pn-seg button.on { background: #fff; color: var(--accent); box-shadow: 0 1px 3px rgba(31, 28, 26, .12); }
.pn-filtros { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; justify-content: flex-end; min-width: 0; }
.pn-sel { position: relative; display: inline-flex; align-items: center; height: 40px; border-radius: 8px; background: #f6f8fa; border: 1.5px solid transparent; color: #66717d; transition: border-color .15s, background .15s; min-width: 0; }
.pn-sel:hover { background: #eef2f6; } .pn-sel:focus-within { border-color: var(--accent); background: #fff; }
.pn-sel.on { background: #EFEEE8; color: var(--accent); border-color: #D9D9D6; }
.pn-sel > svg:first-child { position: absolute; left: 12px; width: 16px; height: 16px; pointer-events: none; }
.pn-sel > svg:last-child { position: absolute; right: 10px; width: 15px; height: 15px; pointer-events: none; opacity: .7; }
.pn-sel select { appearance: none; -webkit-appearance: none; background: transparent; border: 0; outline: none; height: 100%; padding: 0 32px 0 36px; font-weight: 700; font-size: 13.5px; color: var(--tinta); cursor: pointer; max-width: 210px; text-overflow: ellipsis; }
.pn-sel.on select { color: #2D2926; }

#painelBox .kpis { gap: 16px; margin-bottom: 20px; }
#painelBox .kpi { position: relative; border-radius: 10px; padding: 20px 22px; gap: 16px; align-items: center; min-height: 0; transition: transform .15s, box-shadow .15s; overflow: hidden; }
#painelBox .kpi:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -18px rgba(31, 28, 26, .35); }
#painelBox .kpi-ic { width: 52px; height: 52px; border-radius: 10px; }
#painelBox .kpi-ic svg { width: 24px; height: 24px; }
#painelBox .kpi span { font-size: 13.5px; font-weight: 700; color: #66717d; }
#painelBox .kpi b { font-size: 32px; line-height: 1.05; letter-spacing: -.02em; margin-top: 4px; display: flex; align-items: baseline; gap: 8px; }
#painelBox .kpi small { font-size: 12.5px; color: #8a95a1; margin-top: 4px; }
#painelBox .kpi .q { width: 15px; height: 15px; font-size: 10px; background: #c3cad3; }
.pn-pct { font-style: normal; font-size: 13px; font-weight: 800; color: var(--accent); background: #EFEEE8; padding: 3px 8px; border-radius: 6px; letter-spacing: 0; }

#painelBox .dash-grid { gap: 16px; }
#painelBox .dcard { border-radius: 10px; padding: 22px 24px; }
#painelBox .dcard h3 { font-size: 17px; } #painelBox .dcard header p { font-size: 13px; color: #8a95a1; }
.pn-leg { gap: 8px; } .pn-leg span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 6px; background: #f4f6f9; font-weight: 700; font-size: 12.5px; color: #55606b; }
.pn-leg i { width: 8px !important; height: 8px !important; border-radius: 50% !important; margin: 0 !important; }
.pn-funil { display: grid; gap: 14px; margin-top: 4px; }
.pn-f { display: grid; grid-template-columns: 112px minmax(0, 1fr) 34px 38px; align-items: center; gap: 10px; }
.pn-f-n { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #3d4752; }
.pn-f-n i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.pn-f-trk { height: 10px; border-radius: 6px; background: #f0f3f7; overflow: hidden; }
.pn-f-trk i { display: block; height: 100%; border-radius: inherit; transition: width .4s ease; }
.pn-f b { text-align: right; font-size: 15px; color: var(--tinta); font-variant-numeric: tabular-nums; }
.pn-f small { text-align: right; font-size: 12px; color: #8a95a1; font-weight: 700; }
#painelBox .tbl-wrap { border-radius: 10px; overflow-x: auto; border: 1px solid #eef1f5; }
#painelBox .tbl-dash th { background: #f7f9fb; font-size: 11.5px; letter-spacing: .05em; color: #7b8590; padding: 13px 16px; }
#painelBox .tbl-dash td { border-bottom: 1px solid #f1f4f7; } #painelBox .tbl-dash tbody tr:last-child td { border-bottom: 0; }
#painelBox .tbl-dash tbody tr:hover td { background: #fafcfd; }
#painelBox .tbl-dash td.vazio { text-align: center; color: #8a95a1; padding: 34px 16px; }
@media (max-width: 900px) { .pn-filtros { justify-content: flex-start; } .pn-sel select { max-width: 100%; } }
@media (max-width: 560px) { .pn-seg { width: 100%; overflow-x: auto; } .pn-seg button { flex: 1; padding: 8px 10px; } .pn-filtros { flex-direction: column; } .pn-sel { width: 100%; } .pn-sel select { width: 100%; max-width: none; } .pn-f { grid-template-columns: 96px minmax(0, 1fr) 30px 34px; } }
/* filtros numa linha só: os selects encolhem; legenda do gráfico em linha */
.pn-filtros { flex-wrap: nowrap; }

/* ---- Painel: esperando atendente ---- */
.pn-cnt { font-style: normal; display: inline-block; min-width: 24px; padding: 2px 9px; margin-left: 6px; border-radius: 6px; background: #fde7e7; color: #b42318; font-size: 13px; font-weight: 800; vertical-align: 2px; text-align: center; }
#painelBox .pn-esp-card.tem { box-shadow: 0 0 0 2px #fcd9d6, 0 1px 3px rgba(31, 28, 26, .05); }
.pn-esp-lista { display: grid; gap: 10px; margin-top: 4px; }
.pn-esp { display: grid; grid-template-columns: minmax(0, 1.6fr) auto auto auto; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 10px; background: #f8fafc; }
.pn-esp-quem { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pn-esp-quem b { font-size: 14.5px; color: var(--tinta); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pn-esp-quem small { font-size: 12.5px; color: #8a95a1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pn-esp-quem .pn-esp-mot { color: #6b7681; font-style: italic; }
.pn-esp-prom { font-size: 12.5px; font-weight: 700; padding: 5px 10px; border-radius: 6px; background: #eef2f7; color: #4a5560; white-space: nowrap; }
.pn-esp-prom.liga { background: #fff4e5; color: #9a5b00; }
.pn-esp-ha { font-size: 12.5px; color: #6b7681; white-space: nowrap; }
.pn-esp-ha.atrasado { color: #b42318; } .pn-esp-ha.atrasado b { color: #b42318; }
.pn-esp-ac { display: flex; gap: 8px; }
.pn-bt { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 6px; border: 0; background: #eef2f7; color: #3d4752; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; transition: background .15s, transform .1s; }
.pn-bt svg { width: 15px; height: 15px; }
.pn-bt:hover { background: #e2e8f0; } .pn-bt:active { transform: scale(.97); } .pn-bt:disabled { opacity: .6; cursor: default; }
.pn-bt.verde { background: var(--accent); color: #fff; } .pn-bt.verde:hover { background: #17864a; }
.pn-vazio { margin: 6px 0 0; padding: 18px; border-radius: 10px; background: #f6fbf8; color: #3d6b52; font-weight: 600; text-align: center; }

/* ---- Painel: alertas ---- */
.pn-alertas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 4px; }
.pn-al { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 10px; background: #f8fafc; min-width: 0; }
.pn-al.ruim { background: #fff3f2; } .pn-al.medio { background: #fff8eb; }
.pn-al-ic { font-size: 22px; line-height: 1; margin-top: 2px; }
.pn-al > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pn-al b { font-size: 24px; line-height: 1.1; color: var(--tinta); font-variant-numeric: tabular-nums; }
.pn-al.ruim b { color: #b42318; }
.pn-al span:not(.pn-al-ic) { font-size: 13.5px; font-weight: 700; color: #3d4752; }
.pn-al small { font-size: 12px; color: #8a95a1; line-height: 1.4; }
.pn-al-nomes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.pn-al-nomes button { border: 0; border-radius: 6px; padding: 4px 10px; background: #fff; box-shadow: 0 0 0 1px #f3c7c3; color: #7a271a; font-size: 12px; font-weight: 700; cursor: pointer; }
.pn-al-nomes button i { font-style: normal; font-weight: 600; color: #b9877f; margin-left: 2px; }
.pn-al-nomes button:hover { background: #fde7e7; }
.pn-al .pn-al-nomes span { font-size: 12px; font-weight: 700; color: #8a95a1; align-self: center; }

/* ---- Painel: ranking de aberturas ---- */
#painelBox .pn-ab-wrap { overflow: visible; }
.pn-ab thead th:first-child { border-top-left-radius: 14px; } .pn-ab thead th:last-child { border-top-right-radius: 14px; }
.pn-ab td:first-child { white-space: normal; min-width: 300px; max-width: 470px; }
.pn-ab-msg b { display: block; font-size: 13.5px; line-height: 1.4; color: var(--tinta); }
.pn-ab-msg small { display: block; font-size: 12px; color: #8a95a1; margin-top: 2px; }
.pn-ab-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; }
.pn-ab-tags .ab-ver { margin-top: 0; }
.pn-tag { font-style: normal; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 6px; }
.pn-tag.verde { background: #EFEEE8; color: #2D2926; } .pn-tag.azul { background: #e5efff; color: #1d4ed8; } .pn-tag.cinza { background: #eef0f2; color: #6b7681; }
.pn-ab tr.venc td { background: #f6fcf8; }
.pn-n { color: #8a95a1; font-weight: 600; }
.pn-ab .ab-pop .wa-msg { white-space: normal; }

/* ---- Painel: melhor horário ---- */
.pn-horas { height: 200px; }
.pn-horas .cp-h em { font-style: normal; font-size: 10.5px; font-weight: 800; color: #8a95a1; min-height: 14px; }
.pn-horas .cp-h.melhor em, .pn-horas .cp-h.melhor small { color: var(--accent); }
.pn-horas .cp-h.melhor .cp-h-b { background: #eef9f2; }
.pn-funil-ia .pn-f { grid-template-columns: 150px minmax(0, 1fr) 34px 38px; }

@media (max-width: 1100px) { .pn-alertas { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pn-esp { grid-template-columns: minmax(0, 1fr) auto; } .pn-esp-ac { grid-column: 1 / -1; } }
@media (max-width: 900px) { #painelBox .pn-ab-wrap { overflow-x: auto; } .pn-ab .ab-pop { position: static; width: auto; max-width: none; margin-top: 8px; box-shadow: none; } }
@media (max-width: 560px) { .pn-alertas { grid-template-columns: 1fr; } .pn-esp { grid-template-columns: 1fr; gap: 8px; } .pn-esp-ac .pn-bt { flex: 1; justify-content: center; } .pn-funil-ia .pn-f { grid-template-columns: 118px minmax(0, 1fr) 30px 34px; } .pn-horas .cp-h em { display: none; } }
.pn-filtros .pn-sel { flex: 1 1 0; max-width: 220px; } .pn-sel select { width: 100%; max-width: none; }
#painelBox .dcard > header .pn-leg { display: flex; flex-direction: row; flex-wrap: wrap; width: auto; flex: none; }
.pn-leg span { width: auto; }
@media (max-width: 1100px) { .pn-filtros { flex-wrap: wrap; } .pn-filtros .pn-sel { flex: 1 1 180px; max-width: none; } }
@media (max-width: 560px) { .pn-filtros { flex-direction: column; flex-wrap: nowrap; } .pn-filtros .pn-sel { flex: none; height: 44px; width: 100%; max-width: none; } }

/* ---------- bate-papo: lista, conversa estilo WhatsApp e painel do lead ---------- */
#v-conversas .cartao-chat { border-radius: 10px; box-shadow: 0 1px 3px rgba(31, 28, 26, .05); }
#v-conversas .wa-layout { border-top: 0; grid-template-columns: 330px minmax(0, 1fr) 290px; }
#v-conversas .wa-col { border-right: 1px solid #eef1f5; }
#v-conversas .wa-busca { border-bottom: 0; padding: 14px 14px 10px; }
.cv-busca { flex: 1; display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: 8px; background: #f3f6f9; border: 1.5px solid transparent; color: #8a95a1; transition: border-color .15s, background .15s; }
.cv-busca:focus-within { border-color: var(--accent); background: #fff; }
.cv-busca svg { width: 17px; height: 17px; flex: none; }
.cv-busca input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 14px; color: var(--tinta); }
.cv-seg { display: flex !important; margin: 0 14px 10px; } .cv-seg button { flex: 1; padding: 7px 4px; font-size: 12.5px; }
#v-conversas .wa-item { position: relative; gap: 12px; padding: 12px 14px; border-bottom: 0; margin: 0 8px 2px; border-radius: 10px; transition: background .12s; }
#v-conversas .wa-item:hover { background: #f6f8fa; }
#v-conversas .wa-item.on { background: #EFEEE8; }
#v-conversas .wa-item.on::before { content: ""; position: absolute; left: -8px; top: 14px; bottom: 14px; width: 4px; border-radius: 0 4px 4px 0; background: var(--accent); }
#v-conversas .avatar { width: 44px; height: 44px; border-radius: 50%; font-weight: 800; font-size: 14px; display: grid; place-items: center; flex: none; }
#v-conversas .wa-it-tx .l1 b { font-size: 14.5px; color: var(--tinta); }
#v-conversas .wa-it-tx .l1 small { font-size: 11.5px; color: #98a2ad; }
#v-conversas .wa-it-tx .l2 { margin-top: 2px; font-size: 13px; color: #7b8590; }
#v-conversas .wa-item.nl .l2 span { color: var(--tinta); font-weight: 700; } #v-conversas .wa-item.nl .l1 small { color: var(--accent); font-weight: 800; }
#v-conversas .wa-nl { background: var(--accent); min-width: 20px; height: 20px; display: inline-grid; place-items: center; padding: 0 6px; font-size: 11px; }
#v-conversas .wa-it-tx .l3 { margin-top: 6px; }
.cv-etapa { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 800; color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); padding: 3px 9px; border-radius: 6px; white-space: nowrap; }
.cv-etapa::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }

#v-conversas .wa-head { gap: 12px; padding: 12px 18px; border-bottom: 1px solid #eef1f5; }
.cv-quem { min-width: 0; flex: 1; cursor: pointer; } .cv-quem b { font-size: 15.5px; color: var(--tinta); } .cv-quem:hover b { color: var(--accent); }
.cv-ficha-bt { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 6px; background: #f3f6f9; font-weight: 700; font-size: 13px; color: #4b5560; flex: none; }
.cv-ficha-bt:hover { background: #e9eef3; } .cv-ficha-bt svg { width: 16px; height: 16px; }
#v-conversas .wa-msgs { background-color: #efeae2; background-image: radial-gradient(rgba(45, 41, 38, .07) 1.3px, transparent 1.7px); background-size: 18px 18px; padding: 18px 7%; gap: 6px; }
#v-conversas .wa-dia span { border-radius: 8px; font-weight: 700; color: #6D6C6C; background: rgba(255, 255, 255, .92); }
#v-conversas .wa-msg { position: relative; border-radius: 8px; padding: 8px 11px 5px; font-size: 14.5px; box-shadow: 0 1px .5px rgba(0, 0, 0, .13); }
#v-conversas .wa-msg.in { border-top-left-radius: 3px; } #v-conversas .wa-msg.out { border-top-right-radius: 3px; }
#v-conversas .wa-msg.in::before, #v-conversas .wa-msg.out::before { content: ""; position: absolute; top: 0; width: 10px; height: 12px; }
#v-conversas .wa-msg.in::before { left: -7px; background: linear-gradient(225deg, #fff 50%, transparent 50%); }
#v-conversas .wa-msg.out::before { right: -7px; background: linear-gradient(135deg, #d9fdd3 50%, transparent 50%); }
#v-conversas .wa-msg.reaction::before { display: none; }
#v-conversas .wa-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; color: #5f8a6d; margin-bottom: 3px; }
#v-conversas .wa-tag.disparo { color: #3A3532; background: rgba(45, 41, 38, .12); padding: 2px 8px; border-radius: 6px; }
#v-conversas .wa-tag svg { width: 11px; height: 11px; }
#v-conversas .wa-comp { background: #f6f7f8; padding: 10px 14px; border-top: 1px solid #eef1f5; }
#v-conversas .wa-bar { align-items: center; gap: 8px; }
#v-conversas .wa-bar textarea { flex: 1; min-height: 44px; padding: 11px 18px; border-radius: 10px; border: 1.5px solid #e3e8ec; background: #fff; font-size: 14.5px; resize: none; outline: none; line-height: 1.4; }
#v-conversas .wa-bar textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(45, 41, 38, .12); }
#v-conversas .wa-bar .icobtn { width: 42px; height: 42px; border-radius: 50%; color: #6b7480; flex: none; display: grid; place-items: center; }
#v-conversas .wa-bar .icobtn:hover { background: #e9eef1; }
#v-conversas .wa-bar .wa-send { background: var(--accent); color: #fff; width: 46px; height: 46px; box-shadow: 0 6px 14px -6px rgba(45, 41, 38, .8); }
#v-conversas .wa-bar .wa-send:hover { background: var(--accent-dark); }
#v-conversas .wa-vazio-chat { background-color: #f6f4ef; background-image: radial-gradient(rgba(45, 41, 38, .07) 1.3px, transparent 1.7px); background-size: 18px 18px; }

#v-conversas #cvLado { border-left: 1px solid #eef1f5; overflow-y: auto; }
.cv-lado { padding: 22px 18px; display: flex; flex-direction: column; gap: 18px; }
.cv-perfil { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
#v-conversas .avatar.grande { width: 72px; height: 72px; font-size: 22px; margin-bottom: 8px; }
.cv-perfil b { font-size: 16px; color: var(--tinta); line-height: 1.3; } .cv-perfil small { color: #7b8590; font-size: 13px; }
.cv-tel { margin-top: 4px; font-size: 12.5px; font-weight: 700; color: #4b5560; background: #f3f6f9; padding: 4px 10px; border-radius: 6px; }
.cv-info { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cv-info > div { background: #f6f8fa; border-radius: 8px; padding: 10px 12px; min-width: 0; }
.cv-info span, .cv-rot { display: block; font-size: 11.5px; font-weight: 700; color: #8a95a1; text-transform: uppercase; letter-spacing: .04em; }
.cv-info b { display: block; font-size: 13.5px; color: var(--tinta); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-etapas { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cv-etapas button { padding: 6px 11px; border-radius: 6px; font-size: 12.5px; font-weight: 700; color: #66717d; background: #f3f6f9; border: 1.5px solid transparent; transition: all .15s; }
.cv-etapas button:hover { border-color: color-mix(in srgb, var(--c) 40%, #fff); color: var(--c); }
.cv-etapas button.on { background: var(--c); color: #fff; box-shadow: 0 6px 14px -8px var(--c); }
.cv-dica { display: block; margin-top: 8px; font-size: 12px; color: #98a2ad; line-height: 1.4; }
.cv-bloco > b { display: block; margin-top: 4px; color: var(--tinta); }
.cv-ficha { justify-content: center; height: 42px; border-radius: 8px; font-size: 14px; border: 1.5px solid #D9D9D6; color: var(--accent); background: #F3F2EE; }
.cv-ficha:hover { background: #EFEEE8; border-color: var(--accent); } .cv-ficha svg { width: 16px; height: 16px; }
@media (max-width: 1200px) { #v-conversas .wa-layout { grid-template-columns: 300px minmax(0, 1fr); } #v-conversas #cvLado { display: none; } }
@media (max-width: 760px) { #v-conversas .wa-layout { grid-template-columns: 1fr; } .cv-ficha-bt span { display: none; } .cv-ficha-bt { padding: 0 10px; } #v-conversas .wa-head .cv-etapa { display: none; } #v-conversas .wa-msgs { padding: 14px 12px; } }

/* ---------- agenda: mês, semana, lista e janela de tarefa ---------- */
.ag-barra { gap: 14px; }
.ag-nav { display: flex; align-items: center; gap: 6px; }
.ag-seta { width: 36px; height: 36px; border-radius: 50%; background: #f3f6f9; display: grid; place-items: center; color: #4b5560; }
.ag-seta:hover { background: #EFEEE8; color: var(--accent); } .ag-seta i { display: contents; } .ag-seta svg { width: 18px; height: 18px; }
.ag-seta.prox svg { transform: rotate(180deg); }
.ag-hoje { height: 36px; padding: 0 14px; border-radius: 6px; background: #f3f6f9; font-weight: 700; font-size: 13.5px; color: #4b5560; } .ag-hoje:hover { background: #EFEEE8; color: var(--accent); }
.ag-tit { font-size: 18px; font-weight: 800; color: var(--tinta); margin-left: 6px; white-space: nowrap; }
.ag-leg { display: flex; gap: 12px; flex-wrap: wrap; margin-left: auto; font-size: 12px; font-weight: 700; color: #7b8590; }
.ag-leg span { display: inline-flex; align-items: center; gap: 5px; } .ag-leg i { width: 8px; height: 8px; border-radius: 50%; }
/* mês */
.ag-mes { background: #fff; border-radius: 10px; padding: 10px; box-shadow: 0 1px 3px rgba(31, 28, 26, .05); }
.ag-sem-cab { display: grid; grid-template-columns: repeat(7, 1fr); padding: 6px 0 8px; } .ag-sem-cab span { text-align: center; font-size: 12px; font-weight: 800; color: #8a95a1; text-transform: uppercase; letter-spacing: .06em; }
.ag-grade { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.ag-dia { min-height: 112px; border-radius: 8px; background: #fafbfc; padding: 6px; display: flex; flex-direction: column; gap: 3px; cursor: pointer; transition: background .12s, box-shadow .12s; min-width: 0; }
.ag-dia:hover { background: #f2f8f4; box-shadow: inset 0 0 0 1.5px #d6eedf; }
.ag-dia.fora { opacity: .45; }
.ag-n { align-self: flex-end; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #4b5560; }
.ag-dia.hoje { background: #f0faf4; box-shadow: inset 0 0 0 1.5px #bfe6cd; } .ag-dia.hoje .ag-n { background: var(--accent); color: #fff; }
.ag-ch { display: flex; align-items: center; gap: 5px; width: 100%; text-align: left; font-size: 11.5px; font-weight: 600; color: var(--tinta); background: color-mix(in srgb, var(--c) 12%, #fff); border-left: 3px solid var(--c); border-radius: 6px; padding: 3px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-ch b { color: var(--c); font-weight: 800; flex: none; } .ag-ch:hover { background: color-mix(in srgb, var(--c) 20%, #fff); }
.ag-ch.feita { opacity: .5; text-decoration: line-through; } .ag-ch.atrasada { background: #fdecec; border-left-color: var(--red); } .ag-ch.atrasada b { color: var(--red); }
.ag-mais { font-size: 11.5px; font-weight: 700; color: var(--link); text-align: left; padding: 1px 6px; }
/* semana */
.ag-semana { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.ag-col { background: #fff; border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 420px; box-shadow: 0 1px 3px rgba(31, 28, 26, .05); min-width: 0; }
.ag-col header { display: flex; flex-direction: column; align-items: center; padding: 4px 0 8px; border-bottom: 1px solid #f0f3f6; }
.ag-col header span { font-size: 12px; font-weight: 800; color: #8a95a1; text-transform: uppercase; letter-spacing: .06em; }
.ag-col header b { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 17px; color: var(--tinta); margin-top: 2px; }
.ag-col.hoje header b { background: var(--accent); color: #fff; } .ag-col.hoje { box-shadow: 0 0 0 1.5px #bfe6cd; }
.ag-col-l { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.ag-livre { color: #b0b8c1; font-size: 13px; text-align: center; padding: 14px 0; }
.ag-add { display: inline-flex; align-items: center; justify-content: center; gap: 4px; height: 32px; border-radius: 10px; border: 1.5px dashed #d6dde5; color: #7b8590; font-weight: 700; font-size: 12.5px; }
.ag-add:hover { border-color: var(--accent); color: var(--accent); background: #F3F2EE; } .ag-add svg { width: 14px; height: 14px; }
/* cartão de tarefa (semana e lista) */
.ag-t { position: relative; display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 8px; background: #fff; border: 1.5px solid #eef1f5; border-left: 4px solid var(--c); cursor: pointer; transition: box-shadow .12s, border-color .12s; min-width: 0; }
.ag-t:hover { box-shadow: 0 8px 20px -14px rgba(31, 28, 26, .4); border-color: #dfe6ee; border-left-color: var(--c); }
.ag-t.feita { opacity: .55; } .ag-t.feita .ag-t-2 { text-decoration: line-through; }
.ag-t.atrasada { background: #fff8f8; border-left-color: var(--red); } .ag-t.atrasada .ag-t-1 b { color: var(--red); }
.ag-check { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #cfd7df; display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 800; margin-top: 1px; transition: all .12s; background: #fff; }
.ag-check:hover { border-color: var(--accent); background: #EFEEE8; } .ag-t.feita .ag-check { background: var(--accent); border-color: var(--accent); }
.ag-t-tx { flex: 1; min-width: 0; }
.ag-t-1 { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; } .ag-t-1 b { font-size: 12.5px; color: var(--tinta); }
.ag-tipo { font-size: 11px; font-weight: 800; color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); padding: 1px 8px; border-radius: 6px; }
.ag-auto { font-size: 10.5px; font-weight: 800; color: #4A4542; background: #f1ebfe; padding: 1px 7px; border-radius: 6px; vertical-align: middle; }
.ag-t-2 { font-size: 14px; font-weight: 700; color: var(--tinta); margin-top: 3px; word-break: break-word; }
.ag-t-3 { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 5px; font-size: 12.5px; color: #7b8590; }
.ag-t-3 span, .ag-lead { display: inline-flex; align-items: center; gap: 4px; } .ag-t-3 svg { width: 13px; height: 13px; }
.ag-lead { color: var(--link); font-weight: 700; } .ag-lead:hover { text-decoration: underline; }
.ag-semana .ag-t { padding: 8px 9px; gap: 7px; } .ag-semana .ag-t-2 { font-size: 13px; } .ag-semana .ag-check { width: 18px; height: 18px; } .ag-semana .ag-tipo { display: none; }
/* lista */
.ag-lista { display: flex; flex-direction: column; gap: 14px; max-width: 860px; }
.ag-grupo { background: #fff; border-radius: 10px; padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 1px 3px rgba(31, 28, 26, .05); }
.ag-grupo h3 { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 800; color: var(--tinta); margin-bottom: 4px; }
.ag-grupo h3 span { font-size: 12px; background: #eef2f6; color: #66717d; padding: 2px 9px; border-radius: 6px; }
.ag-grupo.verm h3 { color: var(--red); } .ag-grupo.verm h3 span { background: #fde4e4; color: var(--red); }
.ag-feitas { align-self: flex-start; font-weight: 700; color: var(--link); font-size: 13.5px; padding: 6px 4px; }
/* janela de tarefa */
.tf .lb { margin-top: 14px; } .tf .lb:first-child { margin-top: 0; }
.tf-tipos { margin: 0 !important; } .tf-tipos button.on { background: var(--c); border-color: var(--c); color: #fff; }
.tf-quando { display: grid; grid-template-columns: 1fr 130px; gap: 8px; }
.tf-rapido { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tf-rapido button { font-size: 12.5px; font-weight: 700; color: #4b5560; background: #f3f6f9; padding: 5px 11px; border-radius: 6px; } .tf-rapido button:hover { background: #EFEEE8; color: var(--accent); }
.tf-lead { position: relative; }
.tf-res { display: flex; flex-direction: column; max-height: 200px; overflow-y: auto; border-radius: 10px; margin-top: 4px; }
.tf-res:not(:empty) { border: 1px solid #e6ecf3; }
.tf-res button { text-align: left; padding: 8px 12px; border-bottom: 1px solid #f1f4f8; } .tf-res button:hover { background: #f5faf7; }
.tf-res b { display: block; font-size: 13.5px; color: var(--tinta); } .tf-res small { color: #8a95a1; font-size: 12px; }
.tf-lead-sel { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; background: #F3F2EE; border: 1.5px solid #D9D9D6; }
.tf-lead-sel .avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; flex: none; }
.tf-lead-sel b { flex: 1; min-width: 0; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .tf-lead-sel button { color: #8a95a1; font-size: 14px; padding: 2px 6px; }
/* no bate-papo */
.cv-tf { display: flex; align-items: flex-start; gap: 10px; margin-top: 8px; padding: 10px; border-radius: 8px; background: #fff; border: 1.5px solid #eef1f5; border-left: 4px solid var(--c); }
.cv-tf.atrasada { background: #fff8f8; border-left-color: var(--red); }
.cv-tf > div { flex: 1; min-width: 0; cursor: pointer; } .cv-tf b { display: block; font-size: 13px; color: var(--tinta); } .cv-tf small { font-size: 12px; color: #7b8590; }
.cv-tf .ag-check { width: 20px; height: 20px; }
.cv-ret { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; align-items: center; } .cv-ret small { width: 100%; font-size: 12px; font-weight: 700; color: #7b8590; }
.cv-ret button { font-size: 12px; font-weight: 700; color: var(--accent); background: #EFEEE8; padding: 5px 10px; border-radius: 6px; } .cv-ret button:hover { background: var(--accent); color: #fff; }
#badgeAg { color: #fff; }
@media (max-width: 1100px) { .ag-leg { display: none; } }
@media (max-width: 860px) { .ag-semana { grid-template-columns: 1fr; } .ag-col { min-height: 0; } .ag-col header { flex-direction: row; gap: 8px; justify-content: flex-start; } }
@media (max-width: 640px) { .ag-dia { min-height: 64px; padding: 4px; } .ag-ch { font-size: 0; padding: 0; height: 6px; border-left-width: 0; background: var(--c); } .ag-ch b { display: none; } .ag-grade { gap: 3px; } .ag-tit { font-size: 15px; } .tf-quando { grid-template-columns: 1fr 1fr; } }
.ag-leg { justify-content: flex-end; margin: -8px 4px 10px auto; }
.ag-barra .pn-sel { margin-left: auto; min-width: 170px; }
@media (max-width: 1100px) { .ag-leg { display: flex; justify-content: flex-start; } }
@media (max-width: 640px) { .ag-barra .pn-sel { margin-left: 0; width: 100%; } .ag-nav { width: 100%; } }

/* ---------- perfil do lead (página inteira) ---------- */
.lp { display: flex; flex-direction: column; gap: 16px; }
.lp-cab { background: #fff; border-radius: 10px; padding: 22px 24px; box-shadow: 0 1px 3px rgba(31, 28, 26, .05); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 20px; align-items: start; }
.lp-cab-l { display: flex; gap: 16px; align-items: center; min-width: 0; }
.lp .lp-av { width: 64px; height: 64px; border-radius: 50%; font-size: 21px; font-weight: 800; display: grid; place-items: center; flex: none; }
.lp-nome { min-width: 0; } .lp-nome h1 { font-size: 24px; font-weight: 800; color: var(--tinta); letter-spacing: -.01em; line-height: 1.2; word-break: break-word; }
.lp-nome p { color: #7b8590; font-size: 14px; margin-top: 3px; }
.lp-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; align-items: center; }
.lp-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: #55606b; background: #f1f4f7; padding: 3px 10px; border-radius: 6px; }
.lp-tag.verm { background: #fde4e4; color: #b42318; } .lp-tag .pst-ic { width: 15px; height: 13px; }
.lp-acoes { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.lp-bt { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; border-radius: 8px; background: #f3f6f9; font-weight: 700; font-size: 13.5px; color: #3d4752; text-decoration: none; transition: background .15s, color .15s; }
.lp-bt:hover { background: #e9eef3; } .lp-bt svg { width: 16px; height: 16px; }
.lp-bt.verde { background: var(--accent); color: #fff; box-shadow: 0 6px 14px -8px rgba(45, 41, 38, .9); } .lp-bt.verde:hover { background: var(--accent-dark); }
.lp-bt.so-ic { padding: 0 12px; color: #b42318; } .lp-bt.so-ic:hover { background: #fde4e4; }
#lpPerda:hover { background: #fde4e4; color: #b42318; }
.lp-steps { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.lp-step { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 10px; background: #f3f6f9; color: #8a95a1; font-weight: 700; font-size: 13.5px; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%, 12px 50%); transition: background .15s, color .15s; white-space: nowrap; }
.lp-step:first-child { clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%); border-radius: 12px 0 0 12px; }
.lp-step:last-child { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 12px 50%); border-radius: 0 12px 12px 0; }
.lp-step i { width: 22px; height: 22px; border-radius: 50%; background: rgba(0, 0, 0, .06); display: grid; place-items: center; font-style: normal; font-size: 11.5px; font-weight: 800; flex: none; }
.lp-step:hover { background: #e9eef3; color: #3d4752; }
.lp-step.feito { background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--c); } .lp-step.feito i { background: var(--c); color: #fff; }
.lp-step.atual { background: var(--c); color: #fff; } .lp-step.atual i { background: rgba(255, 255, 255, .25); }
.lp-perdido { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 10px; background: #f6f7f9; color: #55606b; } .lp-perdido svg { width: 18px; height: 18px; color: #9aa3ab; } .lp-perdido span { flex: 1; }
.lp-prox { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; border-radius: 10px; background: color-mix(in srgb, var(--c) 9%, #fff); border: 1.5px solid color-mix(in srgb, var(--c) 30%, #fff); font-size: 14px; color: #2d3b33; }
.lp-prox > svg { width: 18px; height: 18px; color: var(--c); flex: none; } .lp-prox span { flex: 1; min-width: 200px; }
.lp-prox.atrasada { background: #fff4f4; border-color: #f7c6c6; } .lp-prox.atrasada > svg { color: var(--red); }
.lp-prox.sem { --c: #f59e0b; background: #fffbf0; border-color: #fbe3b0; }
.lp-rapido { display: flex; gap: 6px; flex-wrap: wrap; } .lp-rapido button { font-size: 12.5px; font-weight: 700; color: var(--accent); background: #fff; border: 1.5px solid #D9D9D6; padding: 5px 11px; border-radius: 6px; } .lp-rapido button:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.lp-corpo { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 16px; align-items: start; }
.lp-lado { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.lp-card { background: #fff; border-radius: 10px; padding: 18px 20px; box-shadow: 0 1px 3px rgba(31, 28, 26, .05); min-width: 0; }
.lp-card > header { font-size: 12px; font-weight: 800; color: #8a95a1; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.lp-kv { margin-bottom: 12px; min-width: 0; } .lp-kv:last-child { margin-bottom: 0; }
.lp-kv > span { display: block; font-size: 12px; font-weight: 700; color: #8a95a1; margin-bottom: 3px; }
.lp-kv > b { display: block; font-size: 14px; color: var(--tinta); word-break: break-word; } .lp-kv b small { color: #8a95a1; font-weight: 500; }
.lp-kv a { color: var(--link); } .lp-vazio { color: #b0b8c1; font-weight: 500; font-style: normal; }
.lp-kv .field { height: 40px; border-radius: 10px; }
.lp-kv2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lp-tel { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .lp-tel b { font-size: 15px; color: var(--tinta); }
.lp-mini { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: #7b8590; } .lp-mini:hover { background: #f1f4f7; color: var(--accent); } .lp-mini svg { width: 15px; height: 15px; }
.lp-extras { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 14px; font-size: 13px; }
.lp-extras span { color: #8a95a1; } .lp-extras b { color: var(--tinta); word-break: break-word; font-weight: 700; }
.lp-main { padding: 0; overflow: hidden; }
.lp-abas { display: flex; gap: 4px; padding: 10px 12px 0; border-bottom: 1px solid #eef1f5; }
.lp-abas button { display: inline-flex; align-items: center; gap: 7px; padding: 11px 16px; font-weight: 700; font-size: 14px; color: #7b8590; border-bottom: 2.5px solid transparent; margin-bottom: -1px; }
.lp-abas button svg { width: 16px; height: 16px; } .lp-abas button:hover { color: var(--tinta); }
.lp-abas button.on { color: var(--accent); border-bottom-color: var(--accent); }
.lp-abas em { font-style: normal; font-size: 11.5px; background: var(--accent); color: #fff; padding: 1px 7px; border-radius: 6px; }
.lp-pane { padding: 18px 20px; }
.lp-chat { height: clamp(460px, calc(100vh - 420px), 680px); margin: -18px -20px; display: flex; }
.lp-chat .wa-chat { flex: 1; }
.lp-chat .wa-msgs { background-color: #efeae2; background-image: radial-gradient(rgba(45, 41, 38, .07) 1.3px, transparent 1.7px); background-size: 18px 18px; padding: 18px 6%; gap: 6px; }
.lp-chat .wa-msg { position: relative; border-radius: 8px; padding: 8px 11px 5px; font-size: 14.5px; box-shadow: 0 1px .5px rgba(0, 0, 0, .13); }
.lp-chat .wa-msg.in { border-top-left-radius: 3px; } .lp-chat .wa-msg.out { border-top-right-radius: 3px; }
.lp-chat .wa-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; color: #5f8a6d; margin-bottom: 3px; }
.lp-chat .wa-tag.disparo { color: #3A3532; background: rgba(45, 41, 38, .12); padding: 2px 8px; border-radius: 6px; } .lp-chat .wa-tag svg { width: 11px; height: 11px; }
.lp-chat .wa-dia span { border-radius: 8px; font-weight: 700; color: #6D6C6C; background: rgba(255, 255, 255, .92); }
.lp-chat .wa-comp { background: #f6f7f8; padding: 10px 14px; border-top: 1px solid #eef1f5; }
.lp-chat .wa-bar { align-items: center; gap: 8px; }
.lp-chat .wa-bar textarea { flex: 1; min-height: 44px; padding: 11px 18px; border-radius: 10px; border: 1.5px solid #e3e8ec; background: #fff; font-size: 14.5px; resize: none; outline: none; }
.lp-chat .wa-bar textarea:focus { border-color: var(--accent); }
.lp-chat .wa-bar .icobtn { width: 42px; height: 42px; border-radius: 50%; color: #6b7480; display: grid; place-items: center; } .lp-chat .wa-bar .icobtn:hover { background: #e9eef1; }
.lp-chat .wa-bar .wa-send { background: var(--accent); color: #fff; width: 46px; height: 46px; }
.lp-tf-nova { background: #f7faf8; border: 1.5px solid #e2f1e8; border-radius: 10px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.lp-tf-nova h4, .lp-tf-lista h4 { font-size: 15px; font-weight: 800; color: var(--tinta); display: flex; align-items: center; gap: 8px; }
.lp-tf-lista h4 span { font-size: 12px; background: #eef2f6; color: #66717d; padding: 2px 9px; border-radius: 6px; }
.lp-tf-q { display: grid; grid-template-columns: 170px 120px minmax(0, 1fr); gap: 8px; align-items: center; } .lp-tf-q .tf-rapido { margin: 0; }
.lp-tf-pe { display: flex; justify-content: flex-end; }
.lp-tf-lista { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; } .lp-tf-lista h4 { margin-top: 6px; }
.lp-nota { display: flex; gap: 8px; align-items: flex-end; } .lp-nota textarea { flex: 1; border-radius: 8px; resize: vertical; } .lp-nota .btn { height: 42px; }
.lp-filtros { margin: 14px 0 6px; }
.lp-linha { display: flex; flex-direction: column; }
.lp-ev { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f1f4f7; } .lp-ev:last-child { border-bottom: 0; }
.lp-ev > i { width: 32px; height: 32px; border-radius: 50%; background: #f1f4f7; color: #7b8590; display: grid; place-items: center; flex: none; } .lp-ev > i svg { width: 15px; height: 15px; }
.lp-ev.etapa > i { background: #eef4ff; color: #3b82f6; } .lp-ev.nota > i { background: #fff6e0; color: #b7791f; } .lp-ev.tarefa > i { background: #EFEEE8; color: var(--accent); } .lp-ev.sair > i { background: #fde4e4; color: var(--red); }
.lp-ev p { font-size: 14px; color: var(--tinta); line-height: 1.45; } .lp-ev small { font-size: 12px; color: #98a2ad; }
@media (max-width: 1100px) { .lp-corpo { grid-template-columns: 1fr; } .lp-steps { grid-template-columns: repeat(3, 1fr); } .lp-step, .lp-step:first-child, .lp-step:last-child { clip-path: none; border-radius: 10px; } }
@media (max-width: 760px) { .lp-cab { grid-template-columns: 1fr; padding: 18px 16px; } .lp-acoes { justify-content: flex-start; } .lp-bt span { display: none; } .lp-bt { padding: 0 12px; } .lp-nome h1 { font-size: 20px; } .lp-steps { grid-template-columns: repeat(2, 1fr); } .lp-tf-q { grid-template-columns: 1fr 1fr; } .lp-tf-q .tf-rapido { grid-column: 1 / -1; } .lp-chat { height: 70vh; } .lp-abas button { padding: 10px; font-size: 13px; } }
/* perfil cabendo numa tela só: cabeçalho compacto e as colunas rolam por dentro */
#v-lead .lp { height: calc(100vh - var(--topo) - 64px); min-height: 540px; gap: 12px; }
#v-lead .lp-cab { padding: 14px 18px; gap: 10px 16px; border-radius: 10px; flex: none; }
#v-lead .lp-cab-l { gap: 12px; }
.lp-volta { height: 40px; padding: 0 12px 0 5px; flex: none; } .lp-volta span { font-size: 13.5px; }
#v-lead .lp-av { width: 46px; height: 46px; font-size: 16px; }
#v-lead .lp-nome h1 { font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#v-lead .lp-nome p { font-size: 13px; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#v-lead .lp-tags { margin-top: 5px; } #v-lead .lp-tag, #v-lead .cv-etapa { font-size: 11.5px; padding: 2px 9px; }
#v-lead .lp-bt { height: 38px; padding: 0 13px; font-size: 13px; }
#v-lead .lp-step { height: 36px; font-size: 13px; } #v-lead .lp-step i { width: 20px; height: 20px; font-size: 11px; }
#v-lead .lp-prox, #v-lead .lp-perdido { padding: 8px 12px; font-size: 13.5px; border-radius: 8px; } #v-lead .lp-prox .btn { height: 30px; padding: 0 10px; }
#v-lead .lp-corpo { flex: 1; min-height: 0; grid-template-columns: 300px minmax(0, 1fr); gap: 12px; align-items: stretch; }
#v-lead .lp-lado { min-height: 0; overflow-y: auto; gap: 12px; padding-right: 2px; }
#v-lead .lp-card { padding: 14px 16px; border-radius: 10px; }
#v-lead .lp-card > header { margin-bottom: 10px; }
#v-lead .lp-kv { margin-bottom: 9px; } #v-lead .lp-kv > span { font-size: 11.5px; margin-bottom: 2px; } #v-lead .lp-kv > b { font-size: 13.5px; }
#v-lead .lp-kv .field { height: 36px; font-size: 13.5px; }
.lp-base summary { cursor: pointer; font-size: 12px; font-weight: 800; color: #8a95a1; text-transform: uppercase; letter-spacing: .06em; list-style: none; display: flex; align-items: center; gap: 8px; }
.lp-base summary::-webkit-details-marker { display: none; }
.lp-base summary::after { content: "›"; margin-left: auto; font-size: 18px; transition: transform .15s; } .lp-base[open] summary::after { transform: rotate(90deg); }
.lp-base summary small { text-transform: none; letter-spacing: 0; font-weight: 600; color: #b0b8c1; }
.lp-base[open] .lp-extras { margin-top: 12px; }
#v-lead .lp-main { display: flex; flex-direction: column; min-height: 0; }
#v-lead .lp-abas { flex: none; padding: 6px 10px 0; } #v-lead .lp-abas button { padding: 10px 14px; font-size: 13.5px; }
#v-lead .lp-pane { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 16px; }
#v-lead .lp-pane:has(.lp-chat) { padding: 0; overflow: hidden; display: flex; }
#v-lead .lp-chat { height: auto; flex: 1; margin: 0; min-height: 0; }
#v-lead .lp-tf-nova { padding: 12px 14px; gap: 8px; } #v-lead .lp-tf-lista { margin-top: 12px; }
@media (max-width: 1100px) { #v-lead .lp { height: auto; min-height: 0; } #v-lead .lp-corpo { grid-template-columns: 1fr; } #v-lead .lp-lado { overflow: visible; } #v-lead .lp-main { min-height: 70vh; } }
@media (max-width: 760px) { .lp-volta span { display: none; } .lp-volta { padding: 0 5px; } #v-lead .lp-nome h1 { white-space: normal; } }

/* conectar número: contas e números que a chave enxerga */
.nm-con .sub { line-height: 1.5; }
.nm-contas { display: flex; flex-direction: column; gap: 10px; margin: 12px 0 16px; }
.nm-conta { border: 1.5px solid #e8edf3; border-radius: 10px; overflow: hidden; }
.nm-conta header { display: flex; align-items: baseline; gap: 8px; padding: 10px 14px; background: #f7f9fb; border-bottom: 1px solid #eef1f5; }
.nm-conta header b { font-size: 14px; color: var(--tinta); } .nm-conta header small { color: #98a2ad; font-size: 11.5px; }
.nm-conta .sub { padding: 10px 14px; margin: 0; }
.nm-linha { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid #f1f4f7; } .nm-linha:first-of-type { border-top: 0; }
.nm-linha > div { flex: 1; min-width: 0; } .nm-linha b { display: block; font-size: 14px; color: var(--tinta); } .nm-linha small { color: #8a95a1; font-size: 12px; }
.nm-st { font-size: 11.5px; font-weight: 800; padding: 3px 9px; border-radius: 6px; } .nm-st.on { background: #EFEEE8; color: #2D2926; } .nm-st.off { background: #fde4e4; color: #b42318; }
.nm-ja { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; color: #7b8590; } .nm-ja svg { width: 14px; height: 14px; }
.nm-dica { display: flex; gap: 6px; align-items: flex-start; font-size: 12.5px; color: #7b8590; } .nm-dica svg { width: 15px; height: 15px; flex: none; margin-top: 1px; }
.nm-manual { border-top: 1px solid #eef1f5; padding-top: 12px; } .nm-manual summary { cursor: pointer; font-weight: 700; color: var(--link); font-size: 13.5px; margin-bottom: 10px; }
.wz-ritmo-pontas { display: flex; justify-content: space-between; font-size: 11.5px; font-weight: 700; color: #98a2ad; margin: -2px 0 4px; }

/* etiquetas no lead: chip colorido, pôr/tirar/criar */
.et-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 800; color: var(--c); background: color-mix(in srgb, var(--c) 13%, #fff); border: 1px solid color-mix(in srgb, var(--c) 28%, #fff); padding: 2px 9px; border-radius: 6px; white-space: nowrap; line-height: 1.5; }
.et-chip button { color: inherit; opacity: .6; font-size: 10px; padding: 0 0 0 2px; } .et-chip button:hover { opacity: 1; }
.et-lista { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.et-add { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: #66717d; border: 1.5px dashed #cfd7df; padding: 2px 10px; border-radius: 6px; } .et-add:hover { color: var(--accent); border-color: var(--accent); background: #F3F2EE; } .et-add svg { width: 12px; height: 12px; }
.et-pop { position: fixed; z-index: 200; width: 260px; background: #fff; border-radius: 10px; padding: 10px; box-shadow: 0 18px 40px -12px rgba(31, 28, 26, .35), 0 0 0 1px #e8edf3; }
.et-pop .field { height: 38px; border-radius: 10px; font-size: 13.5px; }
.et-pop-l { display: flex; flex-direction: column; max-height: 220px; overflow-y: auto; margin-top: 6px; }
.et-pop-l button { text-align: left; padding: 6px 6px; border-radius: 8px; } .et-pop-l button:hover { background: #f5f8fa; }
.et-criar { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--accent); } .et-criar svg { width: 14px; height: 14px; }
.lp-ets { margin-top: 6px; }
.card-ets { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 2px; } .card-ets .et-chip { font-size: 10.5px; padding: 1px 7px; }
#v-conversas .wa-it-tx .l3 { flex-wrap: wrap; } #v-conversas .wa-it-tx .l3 .et-chip { font-size: 10.5px; padding: 1px 7px; }

/* disparo: em qual conta o modelo está e aviso quando o número não tem o modelo */
.dp-contas { display: flex; align-items: center; gap: 5px; font-style: normal; font-size: 11.5px !important; font-weight: 700; color: #3A3532 !important; margin-top: 2px; }
.dp-contas svg { width: 13px; height: 13px; flex: none; }
.dp-fora { font-style: normal; font-size: 11.5px !important; font-weight: 700; color: #b45309 !important; } .dp-fora:empty { display: none; }
.dp-num.sem-modelo { border-color: #f5c27a; background: #fffaf0; }
.dp-num-aviso { display: block; font-style: normal; font-size: 12px; font-weight: 700; color: #b45309; margin-top: 2px; } .dp-num-aviso:empty { display: none; }
/* disparo com 5 passos: número primeiro */
.wz-trilha { grid-template-columns: repeat(5, 1fr); }
.dp-mod[hidden], .wz-nenhum[hidden] { display: none !important; }
.wz-nenhum { padding: 16px; border-radius: 10px; background: #fffaf0; border: 1.5px solid #f5d9a6; color: #8a5a00; font-size: 14px; line-height: 1.5; }
.wz-nums .dp-num { min-width: 300px; padding: 16px 18px; }

/* disparos: ações e "mandar de novo" */
#cpTabela td.acoes { width: 48px; text-align: right; }
.wz-repetir { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: 8px; background: #f7f9fb; border: 1.5px solid #eef1f5; cursor: pointer; }
.wz-repetir input { width: 18px; height: 18px; accent-color: var(--accent); margin-top: 2px; flex: none; }
.wz-repetir b { display: block; font-size: 13.5px; color: var(--tinta); } .wz-repetir small { color: #8a95a1; font-size: 12px; }
.wz-repetir:has(input:checked) { background: #F3F2EE; border-color: #D9D9D6; }
.wz-ja { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; padding: 10px 12px; border-radius: 8px; background: #fffaf0; border: 1.5px solid #f5d9a6; color: #7a5200; font-size: 13px; line-height: 1.45; }
.wz-ja[hidden] { display: none; } .wz-ja svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.wa-tag .wa-num { font-weight: 600; opacity: .8; text-transform: none; letter-spacing: 0; margin-left: 2px; }
#v-conversas .wa-tag.disparo, .lp-chat .wa-tag.disparo { text-transform: none; letter-spacing: 0; font-size: 11px; max-width: 100%; white-space: normal; }

/* janela de 24h: selo no topo, selinho na lista e aviso no campo de digitar */
.wa-janela { display: inline-flex; align-items: center; gap: 5px; margin-left: 0; flex: none; }
.wa-janela svg { width: 13px; height: 13px; }
#v-conversas .wa-head .wa-janela { margin-left: auto; }
.lp-janela { display: flex; justify-content: flex-end; padding: 8px 12px; background: #f6f7f8; border-bottom: 1px solid #eef1f5; flex: none; }
.lp-chat .wa-chat { display: flex; flex-direction: column; }
.wa-cd[hidden] { display: none; }
.wa-fechada { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 8px; padding: 10px 12px; border-radius: 8px; background: #f1f3f6; color: #4b5560; font-size: 13px; line-height: 1.45; }
.wa-fechada[hidden] { display: none; } .wa-fechada svg { width: 16px; height: 16px; flex: none; margin-top: 1px; color: #7b8590; }

/* modelo no chat: igual ao WhatsApp (imagem no topo, rodapé e botões) */
.wa-msg.template .wa-img { margin: -4px -7px 6px; max-width: calc(100% + 14px); border-radius: 8px; }
.wa-cab { font-weight: 800; margin-bottom: 4px; }
.wa-rod { font-size: 12.5px; color: #667781; margin-top: 4px; }
.wa-bts { display: flex; flex-direction: column; margin: 6px -11px -5px; border-top: 1px solid rgba(0, 0, 0, .08); }
.wa-bts span { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 10px; color: #027eb5; font-weight: 600; font-size: 14px; border-top: 1px solid rgba(0, 0, 0, .06); }
.wa-bts span:first-child { border-top: 0; } .wa-bts svg { width: 14px; height: 14px; }

/* novo modelo: em qual número/conta vai ser criado */
.md-contas { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid #eef1f5; }
.md-contas-l { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.md-conta { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1.5px solid #e3e9f1; border-radius: 10px; cursor: pointer; min-width: 240px; background: #fff; }
.md-conta input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.md-conta b { display: block; font-size: 14px; color: var(--tinta); } .md-conta small { color: #7b8590; font-size: 12px; }
.md-conta:has(input:checked) { border-color: var(--accent); background: #F3F2EE; box-shadow: 0 0 0 3px rgba(45, 41, 38, .1); }

/* ---------- acompanhamento do disparo ---------- */
.cp-topo { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; } .cp-topo h2 { font-size: 21px; font-weight: 800; color: var(--tinta); }
.cp-acoes { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; } .cp-acoes .btn svg { width: 15px; height: 15px; }
.cp-sub { color: #6b7480; font-size: 13.5px; margin: 0 0 14px; } .cp-sub b { color: var(--tinta); }
.cp-sit { background: #fff; border-radius: 10px; padding: 16px 20px; margin-bottom: 14px; border-left: 5px solid #94a3b8; box-shadow: 0 1px 3px rgba(31, 28, 26, .05); }
.cp-sit.verde { border-left-color: var(--accent); } .cp-sit.azul { border-left-color: #3b82f6; } .cp-sit.laranja { border-left-color: #f59e0b; }
.cp-sit b { font-size: 16px; color: var(--tinta); display: block; }
.cp-barra { height: 10px; border-radius: 6px; background: #eef2f6; margin: 10px 0 6px; overflow: hidden; } .cp-barra i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #4A4542, #7be0a4); transition: width .4s; }
.cp-sit small { color: #6b7480; font-size: 12.5px; }
.cp-kpis { margin-bottom: 14px; }
.cp-grade { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.cp-c4 { grid-column: span 4; } .cp-c5 { grid-column: span 5; } .cp-c7 { grid-column: span 7; } .cp-c8 { grid-column: span 8; } .cp-c12 { grid-column: span 12; }
.cp-grade .dcard { border-radius: 10px; padding: 20px 22px; min-width: 0; }
.cp-f { display: grid; grid-template-columns: 105px minmax(0, 1fr) 46px 42px; align-items: center; gap: 10px; padding: 5px 0; font-size: 13.5px; }
.cp-f span { color: #4b5560; font-weight: 600; } .cp-f b { text-align: right; color: var(--tinta); } .cp-f small { text-align: right; color: #8a95a1; font-weight: 700; font-size: 12px; }
.cp-f-trk { height: 12px; border-radius: 6px; background: #f0f3f7; overflow: hidden; } .cp-f-trk i { display: block; height: 100%; border-radius: inherit; }
.cp-custos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed #e3e8ee; }
.cp-custos div { background: #f7f9fb; border-radius: 8px; padding: 10px 12px; } .cp-custos span { display: block; font-size: 11.5px; font-weight: 700; color: #8a95a1; } .cp-custos b { font-size: 17px; color: var(--tinta); }
.cp-bt { display: grid; grid-template-columns: minmax(0, 1fr) 46px 42px; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 8px; background: #f3f8fd; margin-bottom: 6px; font-size: 13.5px; }
.cp-bt span { font-weight: 700; color: #027eb5; } .cp-bt b { text-align: right; color: var(--tinta); font-size: 15px; } .cp-bt small { text-align: right; color: #8a95a1; font-weight: 700; }
.cp-bt.sair { background: #fdf2f2; } .cp-bt.sair span { color: #b42318; }
.cp-outras { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; font-size: 13px; color: #4b5560; } .cp-outras small { font-weight: 800; color: #8a95a1; text-transform: uppercase; font-size: 11px; letter-spacing: .05em; }
.cp-horas { display: flex; gap: 6px; align-items: flex-end; height: 170px; padding-top: 6px; }
.cp-h { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; min-width: 0; }
.cp-h-b { flex: 1; width: 100%; display: flex; gap: 2px; align-items: flex-end; justify-content: center; background: #fafbfc; border-radius: 6px; padding: 0 2px; }
.cp-h-b i { flex: 1; max-width: 14px; border-radius: 4px 4px 0 0; min-height: 0; }
.cp-h small { font-size: 11px; color: #8a95a1; font-weight: 700; }
.cp-prev { position: static; max-width: 100%; }
.cp-var { display: flex; align-items: center; gap: 16px; padding: 10px 14px; border-radius: 8px; background: #f7f9fb; margin-bottom: 6px; font-size: 13.5px; flex-wrap: wrap; }
.cp-var b { flex: 1; min-width: 140px; color: var(--tinta); } .cp-var span { color: #6b7480; } .cp-var strong { font-size: 16px; color: var(--tinta); }
.cp-var.melhor { background: #EFEEE8; box-shadow: inset 0 0 0 1.5px #D9D9D6; } .cp-var em { font-style: normal; font-size: 11.5px; font-weight: 800; color: #3A3532; background: #E6E5E1; padding: 2px 8px; border-radius: 6px; }
.cp-busca { max-width: 260px; height: 38px; flex: 1; }
.cp-filtros { margin-bottom: 12px; flex-wrap: wrap; } .cp-filtros em { font-style: normal; font-size: 11px; background: rgba(0,0,0,.06); padding: 1px 6px; border-radius: 6px; margin-left: 2px; }
.cp-tab td { vertical-align: middle; } .cp-erro { color: #b42318; font-size: 11.5px; }
@media (max-width: 1100px) { .cp-c4, .cp-c5, .cp-c7, .cp-c8 { grid-column: span 12; } }
@media (max-width: 640px) { .cp-custos { grid-template-columns: 1fr; } .cp-busca { max-width: none; width: 100%; } }
.cp-grade .dcard > header .pn-leg { display: flex; flex-direction: row; flex-wrap: wrap; width: auto; flex: none; }
.cp-grade .cp-c8 { display: flex; flex-direction: column; } .cp-c8 .cp-horas { flex: 1; min-height: 190px; height: auto; }

/* celular: o iPhone dá zoom sozinho em campo com letra menor que 16, e a página não pode andar de lado */
@media (max-width: 760px) {
  html { overflow-x: hidden; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; touch-action: pan-x pan-y; }
  body { overflow-x: clip; }
  input:not([type=checkbox]):not([type=radio]):not([type=range]), textarea, select { font-size: 16px !important; }
  /* conversa aberta ocupa a tela toda, igual WhatsApp: só voltar, nome, mensagens e a caixa */
  #v-conversas.chat-aberto { position: fixed; left: 0; right: 0; top: var(--vvt, 0px); height: var(--vvh, 100dvh); z-index: 48; background: #fff; margin: 0; padding: 0; }
  #v-conversas.chat-aberto .pg-cab { display: none; }
  #v-conversas.chat-aberto .wa-layout { flex: 1; min-height: 0; border-radius: 0; box-shadow: none; }
  #v-conversas.chat-aberto .wa-head { padding: 10px 12px; }
  #v-conversas.chat-aberto .wa-bar { padding-bottom: max(10px, env(safe-area-inset-bottom)); }
}
@media (max-width: 760px) { #v-conversas .wa-head .jt-x { display: none; } #v-conversas .wa-head .wa-janela { padding: 5px 9px; font-size: 12.5px; } }

/* faixa de notificação no topo do Bate-papo */
.cv-avisos { display: flex; align-items: center; gap: 10px; margin: 10px 12px 0; padding: 10px 12px; border-radius: 8px; background: #F3F2EE; border: 1px solid #D9D9D6; color: #1d4d33; font-size: 13px; line-height: 1.35; }
.cv-avisos[hidden] { display: none; }
.cv-avisos > svg { width: 18px; height: 18px; flex: none; color: var(--accent); }
.cv-avisos span { flex: 1; min-width: 0; }
.cv-av-bt { flex: none; height: 32px; padding: 0 14px; border-radius: 6px; border: 0; background: var(--accent); color: #fff; font-weight: 700; font-size: 13px; cursor: pointer; }
.cv-av-x { flex: none; width: 26px; height: 26px; border: 0; background: transparent; color: #7c8b84; cursor: pointer; border-radius: 50%; }
.cv-av-x:hover { background: #e3f3e9; }

/* ===== Pipeline ===== */
/* filtros em pílula (só no Pipeline) */
#v-leads.modo-quadro .pg-abas { margin-bottom: 16px; }
#v-leads.modo-quadro .pg-busca, #v-leads.modo-quadro .pg-busca.com-pasta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
#v-leads.modo-quadro .pg-pesq { order: -1; flex: 1 1 260px; max-width: 380px; min-width: 200px; height: 40px; padding: 0 16px; gap: 10px; border-radius: 8px; box-shadow: none; border: 1.5px solid #e3e9f0; }
#v-leads.modo-quadro .pg-pesq:focus-within { border-color: var(--accent); }
#v-leads.modo-quadro .pg-pesq svg { width: 17px; height: 17px; color: #8a95a1; }
#v-leads.modo-quadro .pg-pesq input { font-size: 14px; }
#v-leads.modo-quadro .pg-status { flex-direction: row; align-items: center; gap: 0; height: 40px; padding-left: 13px; border-radius: 8px; background: #fff; border: 1.5px solid #e3e9f0; transition: border-color .15s, background .15s; }
#v-leads.modo-quadro .pg-status:hover { border-color: #cfd8e3; }
#v-leads.modo-quadro .pg-status > span { font-size: 12.5px; font-weight: 600; color: #8a95a1; white-space: nowrap; }
#v-leads.modo-quadro .pg-status select { appearance: none; -webkit-appearance: none; height: 100%; min-width: 0; width: auto; max-width: 170px; border: 0; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238a95a1' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 11px center; padding: 0 32px 0 7px; font-size: 13.5px; font-weight: 700; color: var(--tinta); cursor: pointer; text-overflow: ellipsis; outline: none; }
#v-leads.modo-quadro .pg-status.on { background: #EFEEE8; border-color: #D9D9D6; }
#v-leads.modo-quadro .pg-status.on > span, #v-leads.modo-quadro .pg-status.on select { color: #2D2926; }
#v-leads.modo-quadro .pg-status.hidden { display: none; }

/* funil: etapas em fila, com a conversão entre elas */
.pp-funil { display: flex; align-items: center; gap: 4px; padding: 8px; margin-bottom: 14px; background: #fff; border-radius: 10px; box-shadow: 0 1px 3px rgba(31, 28, 26, .05); overflow-x: auto; scrollbar-width: none; }
.pp-funil::-webkit-scrollbar { display: none; }
.pp-f { flex: 1 1 0; min-width: 104px; display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 11px; background: color-mix(in srgb, var(--c) 7%, #fff); cursor: pointer; transition: background .15s, transform .15s; text-align: left; }
.pp-f:hover { background: color-mix(in srgb, var(--c) 14%, #fff); }
.pp-f i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }
.pp-f span { font-size: 12.5px; font-weight: 600; color: #5d6873; white-space: nowrap; }
.pp-f b { margin-left: auto; font-size: 17px; font-weight: 800; color: var(--tinta); font-variant-numeric: tabular-nums; }
.pp-f.perdido { flex: 0 1 auto; min-width: 0; margin-left: 10px; opacity: .8; }
.pp-seta { flex: none; display: flex; flex-direction: column; align-items: center; color: #b3bcc6; width: 38px; }
.pp-seta svg { width: 15px; height: 15px; transform: rotate(-90deg); }
.pp-seta small { font-size: 10.5px; font-weight: 700; color: #7c8792; margin-top: -1px; }

/* colunas */
.pp-board { display: flex; gap: 12px; overflow-x: auto; height: calc(100vh - var(--topo) - 330px); min-height: 440px; padding-bottom: 6px; scroll-snap-type: x proximity; }
.pp-board::-webkit-scrollbar { height: 9px; } .pp-board::-webkit-scrollbar-thumb { background: #cdd5df; border-radius: 9px; } .pp-board::-webkit-scrollbar-track { background: transparent; }
.pp-col { flex: 0 0 272px; width: 272px; display: flex; flex-direction: column; min-height: 0; background: #f4f7fa; border-radius: 10px; border-top: 3px solid var(--c); scroll-snap-align: start; transition: background .15s, box-shadow .15s; }
.pp-col > header { display: flex; align-items: center; gap: 8px; padding: 12px 12px 10px 14px; }
.pp-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex: none; }
.pp-col > header b { font-size: 14.5px; font-weight: 800; color: var(--tinta); }
.pp-n { font-size: 12px; font-weight: 800; color: var(--c); background: color-mix(in srgb, var(--c) 13%, #fff); padding: 2px 9px; border-radius: 6px; font-variant-numeric: tabular-nums; }
.pp-min { margin-left: auto; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: #8a95a1; } .pp-min:hover { background: #e6ebf1; } .pp-min svg { width: 14px; height: 14px; }
.pp-sub { font-size: 11.5px; color: #8a95a1; padding: 0 14px 8px; margin-top: -4px; }
.pp-body { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 2px 8px 10px; display: flex; flex-direction: column; gap: 8px; }
.pp-body::-webkit-scrollbar { width: 6px; } .pp-body::-webkit-scrollbar-thumb { background: #cdd5df; border-radius: 6px; }
.pp-vazio { flex: 1; min-height: 96px; display: grid; place-items: center; border: 1.5px dashed #d5dde6; border-radius: 8px; color: #9aa4ae; font-size: 12.5px; font-weight: 600; text-align: center; padding: 12px; }
.pp-col.over { background: color-mix(in srgb, var(--c) 10%, #fff); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c) 45%, transparent); }
.pp-col.over .pp-vazio { border-color: var(--c); color: var(--c); }
.pp-board.arrastando .pp-col:not(.over) .pp-vazio { border-color: #c3ccd7; }
@keyframes ppPisca { 0%, 100% { box-shadow: none; } 40% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 40%, transparent); } }
.pp-col.pisca { animation: ppPisca .9s ease; }
/* Perdido recolhido: uma faixa fina que abre ao clicar (e recebe o lead arrastado) */
.pp-col.fechada { flex: 0 0 58px; width: 58px; background: #f4f7fa; }
.pp-col.fechada > header { padding: 12px 0; height: 100%; align-items: flex-start; justify-content: center; }
.pp-abrir { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; height: 100%; padding-top: 2px; }
.pp-abrir b { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 13.5px; color: #66717d; }
.pp-col.fechada.over { background: color-mix(in srgb, var(--c) 18%, #fff); }

/* cartão */
.pp-card { background: #fff; border-radius: 13px; padding: 11px 12px 10px; cursor: grab; box-shadow: 0 1px 2px rgba(31, 28, 26, .06), 0 0 0 1px #e9eef3; display: flex; flex-direction: column; gap: 8px; flex: none; transition: box-shadow .15s, transform .15s; position: relative; }
.pp-card:hover { box-shadow: 0 8px 20px -10px rgba(31, 28, 26, .28), 0 0 0 1px color-mix(in srgb, var(--c) 40%, #e9eef3); transform: translateY(-1px); }
.pp-card.arrastando { opacity: .45; transform: rotate(2deg); }
.pp-card.nl::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.pp-c1 { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pp-av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; flex: none; }
.pp-nm { flex: 1; min-width: 0; }
.pp-nm b { display: block; font-size: 14px; font-weight: 700; color: var(--tinta); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-nm small { display: block; font-size: 12px; color: #8a95a1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.pp-dir { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; align-self: flex-start; }
.pp-dir time { font-size: 11px; color: #9aa4ae; font-weight: 600; }
.pp-card.nl .pp-dir time { color: var(--accent); }
.pp-nl { font-style: normal; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 6px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.pp-msg { display: flex; gap: 6px; align-items: flex-start; font-size: 12.5px; line-height: 1.4; color: #4a5560; background: #f5f7f9; border-radius: 4px 10px 10px 10px; padding: 7px 10px; min-height: 48px; }
.pp-msg span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.pp-msg.nosso { background: #eef8f1; border-radius: 10px 4px 10px 10px; color: #3e5a49; }
.pp-msg.nosso svg { width: 12px; height: 12px; flex: none; margin-top: 3px; color: #5fae7f; }
.pp-msg.vazia { background: transparent; border: 1px dashed #dde3ea; color: #9aa4ae; font-style: italic; align-items: center; }
.pp-card.nl .pp-msg:not(.nosso) { color: var(--tinta); font-weight: 600; }
.pp-c3 { display: flex; align-items: center; gap: 5px; height: 22px; overflow: hidden; flex-wrap: nowrap; }
.pp-c3:not(:has(> :not([hidden]))) { display: none; }
.pp-c3 > * { flex: none; }
.pp-c3 .et-chip { font-size: 10.5px; padding: 2px 8px; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-tf { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 800; color: #4a5a6a; background: #eef2f6; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.pp-tf svg { width: 11px; height: 11px; }
.pp-tf.hoje { color: #a05a00; background: #fff4e0; } .pp-tf.atrasada { color: #c0392b; background: #fdecea; }
.pp-resp { margin-left: auto; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 9.5px; font-weight: 800; }

@media (max-width: 760px) {
  #v-leads.modo-quadro .pg-pesq { max-width: none; flex-basis: 100%; }
  #v-leads.modo-quadro .pg-busca { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  #v-leads.modo-quadro .pg-busca .pg-pesq { flex: 0 0 82vw; }
  .pp-f { min-width: 96px; padding: 8px 10px; }
  .pp-board { height: calc(100dvh - var(--topo) - 290px); min-height: 380px; scroll-snap-type: x mandatory; gap: 10px; }
  .pp-col { flex-basis: 84vw; width: 84vw; }
}
#v-leads.modo-quadro .pg-busca, #v-leads.modo-quadro .pg-busca.com-pasta { flex-wrap: nowrap; }
#v-leads.modo-quadro .pg-status { flex: 0 1 auto; min-width: 0; }
#v-leads.modo-quadro .pg-status select { max-width: 130px; }
#v-leads.modo-quadro .pg-pesq { flex: 1 1 200px; min-width: 160px; }
@media (max-width: 1250px) { #v-leads.modo-quadro .pg-busca, #v-leads.modo-quadro .pg-busca.com-pasta { flex-wrap: wrap; } #v-leads.modo-quadro .pg-status { flex: none; } }
@media (max-width: 760px) { #v-leads.modo-quadro .pg-busca, #v-leads.modo-quadro .pg-busca.com-pasta { flex-wrap: nowrap; } .pp-f { flex: none; } .pp-seta { width: 34px; } }
/* resposta automática do WhatsApp do lead */
.wa-msg.auto { opacity: .78; }
.wa-msg.auto .bub, .wa-msg.auto > div:not(.wa-tag) { font-style: italic; }
.wa-tag.auto { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; color: #5f6f7f; background: #eef2f6; padding: 2px 8px; border-radius: 6px; margin-bottom: 4px; }
.cp-bt.auto { background: #f2f4f7; } .cp-bt.auto span { color: #5f6f7f; }
/* filtros do Bate-papo: cabem 5, rolando pro lado se faltar espaço */
.cv-seg { overflow-x: auto; scrollbar-width: none; } .cv-seg::-webkit-scrollbar { display: none; }
#cvFiltro.cv-seg button { flex: 1 0 auto; min-width: auto; padding: 7px 9px; white-space: nowrap; }
#cvFiltro.cv-seg { flex-wrap: wrap; overflow: visible; }
/* transcrição do áudio do lead */
.wa-transc { margin-top: 6px; padding: 7px 10px; border-radius: 8px; background: rgba(31, 28, 26, .05); font-size: 13.5px; line-height: 1.45; color: var(--tinta); max-width: 320px; }
.wa-transc small { display: flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; color: #7c8792; margin-bottom: 2px; }
.wa-transc small svg { width: 11px; height: 11px; }
.wa-transc.carregando small { margin: 0; animation: transcPisca 1.2s ease-in-out infinite; }
.wa-transc.vazia { font-size: 12px; color: #8a95a1; font-style: italic; }
@keyframes transcPisca { 50% { opacity: .45; } }

/* ===== IA vendedora ===== */
/* no chat: sugestão pronta, faixa do modo e o botão de pedir sugestão */
.ia-sug { margin: 0 0 8px; padding: 12px 14px; border-radius: 10px; background: #F3F2EE; border: 1.5px solid #ddd6fe; }
.ia-sug-t { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12.5px; color: #2D2926; margin-bottom: 6px; }
.ia-sug-t svg { width: 14px; height: 14px; }
.ia-alerta { font-weight: 700; color: #b45309; background: #fff7e6; padding: 2px 8px; border-radius: 6px; font-size: 11.5px; }
.ia-sug p { margin: 0 0 6px; padding: 8px 11px; background: #fff; border-radius: 4px 12px 12px 12px; font-size: 14px; line-height: 1.45; color: var(--tinta); box-shadow: 0 1px 1px rgba(0,0,0,.04); white-space: pre-wrap; }
.ia-sug p.ia-sug-audio { background: transparent; box-shadow: none; padding: 0 2px; font-size: 12.5px; color: #6d28d9; }
.ia-sug-bts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.ia-sug-bts .btn.primary { background: #4A4542; border-color: #4A4542; }
.ia-faixa { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; padding: 7px 8px 7px 12px; border-radius: 8px; background: #F3F2EE; font-size: 12.5px; color: #4c1d95; }
.ia-faixa span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ia-faixa.pausada { background: #fff7e6; color: #92400e; }
.ia-faixa button { flex: none; font-size: 12px; font-weight: 800; color: inherit; padding: 5px 10px; border-radius: 8px; background: rgba(255,255,255,.7); }
.ia-faixa button:hover { background: #fff; }
.wa-bar .wa-ia { color: #4A4542; } .wa-bar .wa-ia:hover { background: #F3F2EE; }
.wa-bar .wa-ia.pensando svg { animation: iaGira 1s linear infinite; }
@keyframes iaGira { to { transform: rotate(360deg); } }
/* escolher o modo (chat e Novo disparo) */
.ia-ops, .wz-ia-ops { display: grid; gap: 8px; }
.wz-ia-ops { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ia-ops button, .wz-ia-ops button, .ia-obj button { text-align: left; padding: 11px 13px; border-radius: 8px; border: 1.5px solid #e3e9f0; background: #fff; display: flex; flex-direction: column; gap: 2px; transition: border-color .15s, background .15s; }
.ia-ops button b, .wz-ia-ops button b, .ia-obj button b { font-size: 13.5px; color: var(--tinta); }
.ia-ops button small, .wz-ia-ops button small, .ia-obj button small { font-size: 12px; color: #7c8792; line-height: 1.35; }
.ia-ops button.on, .wz-ia-ops button.on, .ia-obj button.on { border-color: #4A4542; background: #F3F2EE; }
.ia-ops button.on b, .wz-ia-ops button.on b, .ia-obj button.on b { color: #2D2926; }
.wz-ia-ops button:disabled { opacity: .5; cursor: not-allowed; }
.wz-ia { margin-top: 18px; padding-top: 14px; border-top: 1px solid #edf1f5; }
.wz-ia-of { display: flex; align-items: center; gap: 10px; margin-top: 10px; } .wz-ia-of span { font-size: 13px; font-weight: 700; color: #5d6873; } .wz-ia-of select { max-width: 280px; }
.wz-ia-of.hidden { display: none; }
@media (max-width: 760px) { .wz-ia-ops { grid-template-columns: 1fr; } }

/* página */
.ia-cerebro { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 10px; margin-bottom: 14px; background: #fff; box-shadow: 0 1px 3px rgba(31, 28, 26, .05); }
.ia-cerebro > div > b { display: block; font-size: 14px; color: var(--tinta); } .ia-cerebro small b { color: var(--tinta); } .ia-cerebro small { font-size: 12.5px; color: #66717d; }
.ia-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: #f59e0b; box-shadow: 0 0 0 4px #fff4e0; }
.ia-cerebro.claude .ia-dot { background: #2D2926; box-shadow: 0 0 0 4px #EFEEE8; }
.ia-grade { display: grid; grid-template-columns: 230px minmax(0, 1.1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.ia-lista { display: flex; flex-direction: column; gap: 8px; }
.ia-of { text-align: left; padding: 12px 14px; border-radius: 10px; background: #fff; border: 1.5px solid transparent; box-shadow: 0 1px 3px rgba(31, 28, 26, .05); display: flex; flex-direction: column; gap: 2px; }
.ia-of b { font-size: 14px; color: var(--tinta); } .ia-of small { font-size: 12px; color: #8a95a1; }
.ia-of.on { border-color: #4A4542; background: #faf8ff; }
.ia-of.nova { flex-direction: row; align-items: center; gap: 8px; color: #4A4542; border: 1.5px dashed #c4b5fd; box-shadow: none; background: transparent; } .ia-of.nova b { color: #4A4542; } .ia-of.nova svg { width: 16px; height: 16px; }
.ia-ed, .ia-treino { padding: 18px; }
.ia-ed header, .ia-treino header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.ia-ed h3, .ia-treino h3 { font-size: 16px; margin: 0; } .ia-ed header p, .ia-treino header p { font-size: 12.5px; color: #7c8792; margin: 3px 0 0; }
.ia-ed .lb { margin-top: 12px; }
.ia-obj { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ia-txt { min-height: 300px; resize: vertical; font-size: 13.5px; line-height: 1.5; font-family: inherit; }
.ia-ed-pe { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.ia-ed-pe .btn.primary { background: #4A4542; border-color: #4A4542; min-width: 130px; }
.ia-audios { margin-top: 18px; padding-top: 14px; border-top: 1px solid #edf1f5; }
.ia-audios h4 { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 14px; } .ia-audios h4 svg { width: 16px; height: 16px; color: #4A4542; }
.ia-au { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; background: #f6f8fa; margin-top: 8px; }
.ia-au > div { flex: 1; min-width: 0; } .ia-au b { display: block; font-size: 13px; margin-bottom: 4px; } .ia-au audio { width: 100%; height: 34px; }
.ia-vazio { font-size: 12.5px; color: #9aa4ae; margin: 8px 0 0; }
.ia-au-novo { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; } .ia-au-novo .field { flex: 1 1 200px; }
.ia-au-novo .btn svg { width: 15px; height: 15px; }
#auGravar.gravando { background: #fdecea; border-color: #f5b5ae; color: #c0392b; animation: transcPisca 1.2s ease-in-out infinite; }
.ia-tr-lead { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.ia-tr-lead .ia-tr-disp { grid-column: 1 / -1; } .ia-tr-lead .ia-tr-disp textarea { height: auto; min-height: 52px; resize: vertical; font-size: 13px; line-height: 1.4; }
.ia-tr-lead label span { display: block; font-size: 11px; font-weight: 700; color: #8a95a1; margin-bottom: 3px; } .ia-tr-lead .field { height: 34px; font-size: 13px; }
.ia-tr-msgs { height: 420px; overflow-y: auto; padding: 12px; border-radius: 10px; background: #efeae2; display: flex; flex-direction: column; gap: 6px; }
.ia-tr-msgs .wa-msg { max-width: 85%; }
.ia-tr-info { align-self: center; font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 6px; background: #fff; color: #5d6873; text-align: center; }
.ia-tr-info.passar { background: #fff4e0; color: #a05a00; } .ia-tr-info.fim { background: #eef2f6; } .ia-tr-info.audio { background: #F3F2EE; color: #6d28d9; }
.ia-tr-info.pensando { align-self: flex-start; background: #fff; color: #8a95a1; font-style: italic; animation: transcPisca 1.2s ease-in-out infinite; }
.ia-tr-bar { display: flex; gap: 8px; align-items: flex-end; margin-top: 10px; } .ia-tr-bar textarea { flex: 1; resize: none; min-height: 42px; border-radius: 10px; padding: 10px 16px; }
@media (max-width: 1250px) { .ia-grade { grid-template-columns: 200px minmax(0, 1fr); } .ia-treino { grid-column: 1 / -1; } }
@media (max-width: 760px) { .ia-grade { grid-template-columns: 1fr; } .ia-lista { flex-direction: row; overflow-x: auto; } .ia-of { flex: none; min-width: 180px; } .ia-obj { grid-template-columns: 1fr; } .ia-tr-msgs { height: 55vh; } }

/* voz da IA (ElevenLabs): escolha na oferta e áudio no treino */
.ia-voz { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ia-voz .field { flex: 1 1 220px; }
.ia-voz .btn svg { width: 14px; height: 14px; }
.ia-fala { display: flex; gap: 8px; align-items: flex-start; }
.ia-fala .icobtn { flex: none; width: 30px; height: 30px; border-radius: 50%; background: #4A4542; color: #fff; }
.ia-fala .icobtn svg { width: 13px; height: 13px; fill: currentColor; stroke: none; }
.ia-fala .wa-tx { font-style: italic; }
.ia-fala-sem { display: block; color: var(--muted); font-size: 11.5px; margin-top: 4px; }
.carregando { opacity: .55; pointer-events: none; }

/* teste A/B do disparo: uma coluna por mensagem */
.ab-grade { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.ab-col { border-radius: 10px; background: #f7f9fb; padding: 14px; display: flex; flex-direction: column; gap: 8px; box-shadow: inset 0 0 0 1px #e6eaef; }
.ab-col.melhor { background: #EFEEE8; box-shadow: inset 0 0 0 1.5px #bfe8cf; }
.ab-top { display: flex; gap: 10px; align-items: flex-start; }
.ab-top > div { flex: 1; min-width: 0; }
.ab-top b { display: block; font-size: 14px; color: var(--tinta); }
.ab-top small { display: block; color: #6b7480; font-size: 12px; line-height: 1.4; margin-top: 2px; }
.ab-letra { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; color: #fff; background: #3b82f6; }
.ab-col.melhor .ab-letra { background: #2D2926; }
.ab-top em { flex: none; font-style: normal; font-size: 11.5px; font-weight: 800; color: #3A3532; background: #E6E5E1; padding: 3px 9px; border-radius: 6px; }
.ab-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ab-kpis > div { background: #fff; border-radius: 10px; padding: 10px 6px; text-align: center; display: flex; flex-direction: column; gap: 1px; box-shadow: 0 1px 1px rgba(0,0,0,.04); }
.ab-kpis strong { font-size: 22px; font-weight: 800; line-height: 1.15; color: var(--tinta); }
.ab-kpis span { font-size: 12px; font-weight: 700; color: #4b5563; }
.ab-kpis small { font-size: 11.5px; color: #8a929c; }
.ab-kpis .destaque strong { color: #b45309; }
.ab-kpis .neg strong { color: #6b7480; }
.ab-msg { position: relative; outline: none; }
.ab-ver { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 12px; font-weight: 700; color: #3b82f6; cursor: default; }
.ab-ver svg { width: 13px; height: 13px; }
.ab-pop { display: none; position: absolute; top: calc(100% + 6px); left: 0; z-index: 40; width: 330px; max-width: 80vw; border-radius: 8px; box-shadow: 0 12px 32px rgba(31, 28, 26,.22); }
.ab-msg:hover .ab-pop, .ab-msg:focus-within .ab-pop { display: block; }
.ab-pop .md-prev { border-radius: 8px; }
.ab-pop .md-prev img { max-height: 170px; }
.ab-pe { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: #8a929c; }
.ab-venda { color: #3A3532; font-weight: 700; }

/* Bate-papo: botão "Filtros" do lado da busca, painel e etiquetas dos filtros ligados */
.cv-busca-l { display: flex; gap: 8px; align-items: center; }
.cv-busca-l .cv-busca { flex: 1; min-width: 0; }
.cv-fbt { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 13px; font-weight: 700; color: #4b5563; cursor: pointer; }
.cv-fbt svg { width: 15px; height: 15px; }
.cv-fbt.on { border-color: #2D2926; color: #3A3532; background: #EFEEE8; }
.cv-fbt i { font-style: normal; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 6px; background: #2D2926; color: #fff; font-size: 11px; display: grid; place-items: center; }
.cv-fp { flex: none; margin: 0 14px 10px; padding: 12px; border-radius: 8px; background: #f7f9fb; box-shadow: inset 0 0 0 1px #e6eaef; }
.cv-fp-grade { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cv-fp-grade label { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cv-fp-grade label > span { font-size: 11.5px; font-weight: 700; color: #6b7480; }
.cv-fp-grade .field { height: 36px; padding: 0 8px; font-size: 13px; }
.cv-fp-pe { display: flex; justify-content: space-between; margin-top: 10px; }
.cv-chips[hidden], .cv-fp[hidden], .cv-fbt i[hidden] { display: none; }
.cv-chips { flex: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 14px 10px; }
.cv-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 10px; border-radius: 6px; background: #EFEEE8; color: #3A3532; font-size: 12px; font-weight: 700; max-width: 100%; }
.cv-chip button { border: 0; background: transparent; color: inherit; font-size: 15px; line-height: 1; padding: 0 5px; cursor: pointer; }
.cv-chip-limpar { border: 0; background: transparent; color: #6b7480; font-size: 12px; font-weight: 700; text-decoration: underline; cursor: pointer; }
@media (max-width: 760px) { .cv-fp-grade { grid-template-columns: 1fr; } }

/* chaves de API (tela de Usuários) */
.api-card { margin-top: 22px; }
.api-card code { font-size: 12.5px; background: #f1f4f7; padding: 2px 6px; border-radius: 6px; }
.api-chave { display: flex; gap: 8px; align-items: center; background: #f7f9fb; border-radius: 10px; padding: 10px 12px; box-shadow: inset 0 0 0 1px #e6eaef; }
.api-chave code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 13px; background: none; padding: 0; }
.api-passos { margin: 4px 0 10px; padding: 12px; border-radius: 10px; background: #0f172a; color: #e2e8f0; font-size: 12px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }

/* materiais da IA vendedora: PDF/imagem com o áudio que vai junto */
.ia-au.mat > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.ia-mat-ver { font-size: 13px; font-weight: 700; color: #3b82f6; }
.ia-mat-img { max-width: 160px; max-height: 110px; border-radius: 8px; object-fit: cover; }
.ia-junto { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 10px; border-radius: 10px; background: #F3F2EE; font-size: 12.5px; color: #2D2926; }
.ia-junto audio { height: 32px; max-width: 220px; }
.ia-junto .btn svg { width: 13px; height: 13px; }

/* painel: linha do dinheiro · ficha: valor da venda */
.kpis-grana { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 14px; }
@media (max-width: 760px) { .kpis-grana { grid-template-columns: 1fr; } }
.lp-venda { box-shadow: inset 0 0 0 1.5px #bfe8cf; background: #F3F2EE; }
.lp-valor { display: flex; align-items: center; gap: 6px; }
.lp-valor span { font-weight: 800; color: #3A3532; }
.lp-valor .field { max-width: 140px; font-weight: 800; font-size: 16px; }
.lp-valor-bts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.lp-valor-bts button { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 7px 8px; text-align: left; cursor: pointer; font: inherit; display: flex; flex-direction: column; gap: 1px; }
.lp-valor-bts button b { font-size: 13.5px; color: var(--tinta); }
.lp-valor-bts button small { font-size: 11px; color: #6b7480; }
.lp-valor-bts button.on { border-color: #2D2926; background: #EFEEE8; }

/* funil acumulado do painel: conversão entre os passos */
.pn-f-passo { font-size: 11.5px; color: #8a929c; padding: 0 0 2px 18px; margin-top: -2px; }
.pn-f-perd { margin-top: 8px; font-size: 12px; color: #a61b1f; }

/* Bate-papo: resumo do período no topo */
.cv-resumo { display: flex; flex-direction: column; gap: 10px; margin: 0 0 14px; }
.cv-rs-per { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.cv-rs-per button { border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 6px 14px; font: inherit; font-size: 13px; font-weight: 700; color: #4b5563; cursor: pointer; }
.cv-rs-per button.on { background: var(--tinta); border-color: var(--tinta); color: #fff; }
.cv-rs-per input[type=date] { height: 34px; width: auto; padding: 0 10px; font-size: 13px; border-radius: 6px; }
.cv-rs-per input[type=date].on { border-color: var(--tinta); box-shadow: inset 0 0 0 1px var(--tinta); }
.cv-rs-grade { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.cv-rs { text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 12px 14px; cursor: pointer; font: inherit; display: flex; flex-direction: column; gap: 2px; transition: border-color .15s, box-shadow .15s; }
.cv-rs:hover { border-color: #c9d2db; }
.cv-rs span { font-size: 12.5px; font-weight: 700; color: #6b7480; }
.cv-rs b { font-size: 26px; font-weight: 800; color: var(--tinta); line-height: 1.1; }
.cv-rs small { font-size: 12px; color: #8a929c; }
.cv-rs small em { font-style: normal; font-weight: 800; color: #3A3532; }
.cv-rs.on { border-color: #2D2926; box-shadow: inset 0 0 0 1.5px #2D2926; background: #F3F2EE; }
.cv-rs[data-rs="aguardando"] b { color: #b45309; }
@media (max-width: 1100px) { .cv-rs-grade { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .cv-rs-grade { display: flex; overflow-x: auto; scrollbar-width: none; }
  .cv-rs-grade::-webkit-scrollbar { display: none; }
  .cv-rs { flex: 0 0 140px; padding: 10px 12px; } .cv-rs b { font-size: 22px; }
  #v-conversas.chat-aberto .cv-resumo { display: none; }
}

/* agenda (mês): painel do dia escolhido */
.ag-mes-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; align-items: start; }
.ag-dia { cursor: pointer; }
.ag-dia.sel { box-shadow: inset 0 0 0 2px #2D2926; background: #F3F2EE; }
.ag-lado { position: sticky; top: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 14px; display: flex; flex-direction: column; gap: 10px; max-height: calc(100vh - 140px); }
.ag-lado header b { display: block; font-size: 15px; color: var(--tinta); }
.ag-lado header small { color: #6b7480; font-size: 12.5px; }
.ag-lado-l { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; min-height: 0; }
.ag-lado-add { justify-content: center; }
@media (max-width: 1100px) { .ag-mes-wrap { grid-template-columns: 1fr; } .ag-lado { position: static; max-height: none; } }

/* ficha do lead: abrir a conversa no Bate-papo */
.lp-abas { align-items: center; }
.lp-abas .lp-conv-inteira { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; border: 0; border-bottom: 0; background: #25d366; color: #fff; font: inherit; font-size: 13px; font-weight: 700; padding: 7px 14px; border-radius: 6px; margin-bottom: 0; cursor: pointer; white-space: nowrap; }
.lp-abas .lp-conv-inteira:hover { background: #1fb457; color: #fff; }
.lp-abas .lp-conv-inteira svg { width: 15px; height: 15px; }
@media (max-width: 760px) { .lp-abas .lp-conv-inteira span { display: none; } .lp-abas .lp-conv-inteira { padding: 7px 10px; } }

/* Bate-papo no celular: só as conversas, igual WhatsApp (os números do topo ficam no computador e no Painel) */
@media (max-width: 760px) {
  #v-conversas .cv-resumo { display: none; }
  #v-conversas .pg-cab { margin-bottom: 10px; }
  #v-conversas .pg-cab .pg-desc, #v-conversas .pg-cab .pg-dir { display: none; }
  #v-conversas .cartao-chat { border-radius: 10px; }
  #v-conversas .wa-busca { padding: 10px 10px 8px; }
  #v-conversas .cv-busca { height: 40px; }
  #cvFiltro.cv-seg { display: flex !important; flex-wrap: nowrap; overflow-x: auto; gap: 6px; margin: 0 10px 8px; padding: 0; background: none; border-radius: 0; width: auto; }
  #cvFiltro.cv-seg button { flex: 0 0 auto; padding: 6px 12px; border-radius: 6px; border: 1px solid #e3e8ee; background: #fff; font-size: 13px; box-shadow: none; }
  #cvFiltro.cv-seg button.on { background: #EFEEE8; border-color: #bfe6cc; color: #2D2926; }
  #v-conversas .wa-item { margin: 0; border-radius: 0; padding: 10px 12px; gap: 10px; }
  #v-conversas .wa-it-tx .l3 { margin-top: 4px; flex-wrap: nowrap; overflow: hidden; white-space: nowrap; }
  #v-conversas .wa-it-tx .l3 > * { flex: none; }
  #v-conversas .cv-avisos { margin: 8px 10px 0; }
}

/* Bate-papo no computador: os números do topo viram um botão "Métricas" (aparecem ao passar o mouse) e o chat ganha a altura */
#v-conversas .pg-cab { margin-bottom: 14px; }
.cv-met { position: relative; display: inline-flex; }
.cv-met-bt { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 6px; border: 1px solid var(--line); background: #fff; font: inherit; font-weight: 700; font-size: 13.5px; color: #4b5563; cursor: pointer; }
.cv-met-bt svg { width: 16px; height: 16px; }
.cv-met-bt i { font-style: normal; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 6px; background: #f59e0b; color: #fff; font-size: 11.5px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.cv-met-bt i[hidden] { display: none; }
.cv-met:hover .cv-met-bt, .cv-met:focus-within .cv-met-bt { border-color: var(--tinta); color: var(--tinta); }
.cv-met .cv-resumo { display: none; position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; width: min(880px, calc(100vw - 120px)); margin: 0; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 14px 34px rgba(31, 28, 26, .16); }
.cv-met::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; } /* ponte: o mouse não perde o hover entre o botão e os números */
.cv-met:hover .cv-resumo, .cv-met:focus-within .cv-resumo { display: flex; }

/* janela de 24h fechada: a caixa de digitar trava e aparecem os modelos aprovados pela Meta pra escolher */
.wa-comp.fechada .wa-bar { display: none; }
.wa-fechada { flex-direction: column; align-items: stretch !important; gap: 10px; }
.wa-f-top { display: flex; align-items: flex-start; gap: 8px; }
.wa-f-top svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.wa-mods-l { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.wa-mod { flex: 0 0 230px; text-align: left; border: 1px solid #e3e8ee; background: #fff; border-radius: 8px; padding: 9px 11px; font: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 3px; color: var(--tinta); }
.wa-mod:hover { border-color: #c9d2db; }
.wa-mod.on { border-color: #2D2926; box-shadow: inset 0 0 0 1.5px #2D2926; background: #F3F2EE; }
.wa-mod b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wa-mod small { font-size: 12px; color: #6b7480; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wa-mod em { font-style: normal; font-size: 11.5px; color: #8a929c; }
.wa-mod-ed { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 260px); gap: 12px; align-items: start; background: #fff; border: 1px solid #e3e8ee; border-radius: 8px; padding: 10px; }
.wa-mod-ed[hidden] { display: none; }
.wa-mod-ed .md-prev { margin: 0; max-height: 260px; overflow: auto; }
.wa-mod-lado { display: flex; flex-direction: column; gap: 8px; }
.wa-mod-lado label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; font-weight: 700; color: #6b7480; }
.wa-mod-lado .sub { font-size: 12px; margin: 0; }
.wa-mod-acoes { display: flex; gap: 8px; justify-content: flex-end; }
@media (max-width: 760px) { .wa-mod-ed { grid-template-columns: 1fr; } .wa-mod { flex-basis: 200px; } .wa-mod-ed .md-prev { max-height: 180px; } }
.wa-fechada .wa-mod-acoes svg { color: inherit; margin-top: 0; width: 15px; height: 15px; }

/* grupo do cliente no WhatsApp (card Venda da ficha) */
.lp-grupo { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 12px; border-radius: 8px; background: #F3F2EE; border: 1px solid #D9D9D6; }
.lp-grupo > svg { width: 20px; height: 20px; color: #2D2926; flex: none; }
.lp-grupo > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lp-grupo span { font-size: 11.5px; font-weight: 700; color: #4b6b58; text-transform: uppercase; letter-spacing: .03em; }
.lp-grupo b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-grupo-bt { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 12px; padding: 11px 12px; border-radius: 8px; border: 1.5px dashed #9fd8b5; background: #fff; font: inherit; text-align: left; cursor: pointer; color: var(--tinta); }
.lp-grupo-bt:hover { background: #F3F2EE; border-color: #2D2926; }
.lp-grupo-bt:disabled { opacity: .6; cursor: wait; }
.lp-grupo-bt > svg { width: 20px; height: 20px; color: #2D2926; flex: none; }
.lp-grupo-bt span { display: flex; flex-direction: column; min-width: 0; }
.lp-grupo-bt b { font-size: 13.5px; }
.lp-grupo-bt small { font-size: 11.5px; color: #6b7480; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.cv-ficha-bt { text-decoration: none; }

/* Grupos dos clientes (WhatsApp pela Z-API): mesmo jeitão do Bate-papo, sem a coluna da ficha */
#v-grupos { height: calc(100vh - var(--topo) - 60px); display: flex; flex-direction: column; }
#v-grupos .pg-cab { margin-bottom: 14px; }
#v-grupos .cartao-chat { border-radius: 10px; box-shadow: 0 1px 3px rgba(31, 28, 26, .05); }
#v-grupos .wa-layout { border-top: 0; grid-template-columns: 330px minmax(0, 1fr); }
#v-grupos .wa-col { border-right: 1px solid #eef1f5; display: flex; flex-direction: column; min-height: 0; }
#gpLista { flex: 1; min-height: 0; overflow-y: auto; padding-bottom: 8px; }
#v-grupos .wa-busca { border-bottom: 0; padding: 14px 14px 10px; }
#v-grupos .wa-item { position: relative; gap: 12px; padding: 12px 14px; border-bottom: 0; margin: 0 8px 2px; border-radius: 10px; cursor: pointer; transition: background .12s; }
#v-grupos .wa-item:hover { background: #f6f8fa; }
#v-grupos .wa-item.on { background: #EFEEE8; }
#v-grupos .wa-it-tx .l3 { margin-top: 6px; gap: 6px; }
#gpChat { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
#v-grupos .wa-msgs { background-color: #efeae2; background-image: radial-gradient(rgba(45, 41, 38, .07) 1.3px, transparent 1.7px); background-size: 18px 18px; padding: 18px 7%; gap: 6px; }
#v-grupos .wa-bar { align-items: center; gap: 8px; }
#v-grupos .wa-bar textarea { flex: 1; min-height: 44px; padding: 11px 18px; border-radius: 10px; border: 1.5px solid #e3e8ec; background: #fff; font-size: 14.5px; resize: none; outline: none; line-height: 1.4; }
#v-grupos .wa-bar textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(45, 41, 38, .12); }
#v-grupos .wa-bar .wa-send { background: var(--accent); color: #fff; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: none; box-shadow: 0 6px 14px -6px rgba(45, 41, 38, .8); }
.gp-av { background: #EFEEE8 !important; color: #2D2926 !important; display: grid; place-items: center; }
.gp-av svg { width: 20px; height: 20px; }
.gp-cli { font-size: 12px; color: #8a929c; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.gp-autor { font-size: 12.5px; font-weight: 800; margin-bottom: 2px; }
.gp-img { max-width: min(280px, 100%); max-height: 320px; border-radius: 8px; display: block; margin-bottom: 4px; }
.gp-msg audio { max-width: 260px; display: block; margin-bottom: 4px; }
.gp-doc { display: flex; gap: 8px; align-items: center; padding: 9px 11px; background: rgba(0, 0, 0, .05); border-radius: 8px; color: inherit; text-decoration: none; font-weight: 600; margin-bottom: 4px; }
.gp-doc svg { width: 16px; height: 16px; flex: none; }
@media (max-width: 760px) {
  #v-grupos { height: calc(100vh - var(--topo) - 30px); }
  #v-grupos .pg-cab .pg-desc { display: none; }
  #v-grupos .wa-layout { grid-template-columns: 1fr; }
  #v-grupos.chat-aberto .wa-col { display: none; }
  #v-grupos:not(.chat-aberto) #gpChat { display: none; }
  #v-grupos.chat-aberto { position: fixed; left: 0; right: 0; top: var(--vvt, 0px); height: var(--vvh, 100dvh); z-index: 48; background: #fff; margin: 0; padding: 0; }
  #v-grupos.chat-aberto .pg-cab { display: none; }
  #v-grupos.chat-aberto .wa-layout { flex: 1; min-height: 0; border-radius: 0; box-shadow: none; }
  #v-grupos .wa-msgs { padding: 14px 12px; }
  #v-grupos .wa-item { margin: 0; border-radius: 0; padding: 10px 12px; }
  #v-grupos .cv-ficha-bt span { display: none; }
  #v-grupos.chat-aberto .wa-bar { padding-bottom: max(10px, env(safe-area-inset-bottom)); }
}
.gp-av { position: relative; overflow: hidden; }
.gp-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.gp-autor { display: flex; align-items: center; gap: 6px; }
.gp-foto { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; flex: none; }
/* membros do grupo: painel que abre embaixo do topo da conversa */
#gpChat .wa-head { position: relative; }
.gp-membros { position: absolute; right: 12px; top: calc(100% + 6px); z-index: 30; width: min(340px, calc(100vw - 24px)); max-height: 60vh; overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 14px 34px rgba(31, 28, 26, .16); }
.gp-membros[hidden] { display: none; }
.gp-mb-cab { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 8px 14px; border-bottom: 1px solid #eef1f5; position: sticky; top: 0; background: #fff; }
.gp-mb-cab .icobtn { width: 30px; height: 30px; }
.gp-mb { display: flex; align-items: center; gap: 10px; padding: 9px 14px; }
.gp-mb.link { cursor: pointer; } .gp-mb.link:hover { background: #f6f8fa; }
.gp-mb-av { width: 36px; height: 36px; font-size: 13px; position: relative; overflow: hidden; flex: none; }
.gp-mb-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gp-mb-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.gp-mb-tx b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gp-mb-tx small { font-size: 12px; color: #8a929c; }
.gp-mb-tags { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.gp-mb-tags .t { font-size: 10.5px; font-weight: 800; padding: 2px 7px; border-radius: 6px; }
.gp-mb-tags .cli { background: #EFEEE8; color: #2D2926; } .gp-mb-tags .eq { background: #e0ecff; color: #1d4ed8; } .gp-mb-tags .adm { background: #f1f3f6; color: #4b5563; }
/* foto de perfil do WhatsApp do lead por cima das iniciais */
.avatar { position: relative; overflow: hidden; }
.avatar .av-foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
/* Bate-papo, painel da direita: botão de criar tarefa completa ao lado de "Agenda" */
.cv-tf-cab { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.cv-tf-nova { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 800; color: #fff; background: var(--accent); padding: 6px 12px; border-radius: 6px; }
.cv-tf-nova:hover { background: var(--accent-dark); }
.cv-tf-nova svg { width: 14px; height: 14px; }
/* Painel: "Por dia" e "Funil" lado a lado com a mesma altura (o gráfico redesenha pra ocupar o card) */
#painelBox .dash-grid > .pn-par { align-self: stretch; }
/* contagem de não lidas no filtro do Bate-papo */
.cv-nl-n { font-style: normal; display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 4px; border-radius: 6px; background: var(--whats, #25d366); color: #fff; font-size: 11px; font-weight: 800; vertical-align: 1px; }
.cv-nl-n[hidden] { display: none; }
/* Painel: meta de vendas do mês */
#painelBox .pn-meta { margin-bottom: 16px; }
.pn-meta.vazia { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pn-meta.vazia h3 { margin: 0 0 4px; } .pn-meta.vazia p { margin: 0; color: #6b7480; }
.pn-meta header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.pn-meta header p b { color: var(--tinta); }
.pn-meta-num { display: flex; align-items: baseline; gap: 10px; margin: 10px 0 8px; flex-wrap: wrap; }
.pn-meta-num b { font-size: 32px; font-weight: 800; color: var(--tinta); line-height: 1; }
.pn-meta-num span { font-size: 15px; color: #6b7480; font-weight: 600; }
.pn-meta-num em { font-style: normal; margin-left: auto; font-size: 22px; font-weight: 800; color: #2D2926; }
.pn-meta-barra { height: 14px; border-radius: 6px; background: #eef1f5; overflow: hidden; }
.pn-meta-barra i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #2D2926, #4ade80); transition: width .6s; }
.pn-meta-vendas { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.pn-meta-vendas span { font-size: 12.5px; font-weight: 700; background: #F3F2EE; color: #2D2926; border: 1px solid #D9D9D6; padding: 4px 10px; border-radius: 6px; }
.pn-meta-vendas small { font-weight: 600; color: #4b6b58; margin-left: 2px; }
/* pipeline da meta (dentro do card da meta) */
.pn-pipe { margin-top: 18px; padding-top: 16px; border-top: 1px solid #eef1f5; }
.pn-pipe-cab { display: flex; flex-direction: column; gap: 3px; margin-bottom: 12px; }
.pn-pipe-cab b { font-size: 15px; } .pn-pipe-cab small { color: #6b7480; font-size: 12.5px; line-height: 1.4; } .pn-pipe-cab small b { font-size: 12.5px; color: var(--tinta); }
.pn-pipe-grade { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pn-pipe-et { border: 1px solid #eef1f5; border-top: 3px solid var(--c); border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.pn-pipe-et > span { font-size: 12.5px; font-weight: 800; color: #4b5563; display: flex; justify-content: space-between; } .pn-pipe-et > span i { font-style: normal; color: #c3cad3; }
.pn-pipe-et > b { font-size: 26px; font-weight: 800; color: var(--tinta); line-height: 1.1; } .pn-pipe-et > b small { font-size: 12px; color: #8a929c; font-weight: 700; margin-left: 2px; }
.pn-pipe-hoje > div { height: 6px; border-radius: 6px; background: #eef1f5; overflow: hidden; } .pn-pipe-hoje > div i { display: block; height: 100%; background: var(--c); border-radius: 6px; }
.pn-pipe-hoje small { font-size: 11.5px; color: #6b7480; } .pn-pipe-hoje small b { color: var(--tinta); }
.pn-pipe-et em { font-style: normal; font-size: 11.5px; color: #8a929c; } .pn-pipe-tot { font-size: 11px; color: #a0a8b1; }
@media (max-width: 760px) { .pn-pipe-grade { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* tela Metas */
#metasBox .dcard { border-radius: 10px; padding: 22px 24px; }
.mt-hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: center; margin-bottom: 16px; }
.mt-mes { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #8a929c; }
.mt-hero .pn-meta-num b { font-size: 40px; }
.mt-hero .pn-meta-barra { height: 18px; }
.mt-frase { margin: 12px 0 0; color: #4b5563; font-size: 15px; } .mt-frase b { color: var(--tinta); }
.mt-hero-r { display: grid; gap: 10px; }
.mt-kpi { display: flex; flex-direction: column; gap: 2px; }
.mt-hero-r .mt-kpi { border: 1px solid #eef1f5; border-radius: 8px; padding: 10px 14px; }
.mt-kpi span { font-size: 12.5px; font-weight: 700; color: #6b7480; }
.mt-kpi b { font-size: 26px; font-weight: 800; color: var(--tinta); line-height: 1.15; } .mt-kpi b small { font-size: 13px; color: #8a929c; margin-left: 2px; }
.mt-kpi small { font-size: 12px; color: #8a929c; }
.mt-kpi.verde b { color: #2D2926; } .mt-kpi.laranja b { color: #d97706; } .mt-kpi.vermelho b { color: #dc2626; }
#metasBox .dash-grid { gap: 16px; }
.mt-vendas { display: flex; flex-direction: column; gap: 6px; max-height: 280px; overflow-y: auto; }
.mt-venda { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 10px; text-align: left; padding: 9px 12px; border-radius: 10px; background: #f6f8fa; font: inherit; cursor: pointer; }
.mt-venda:hover { background: #EFEEE8; } .mt-venda b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-venda small { grid-column: 1; font-size: 12px; color: #8a929c; } .mt-venda em { grid-row: 1 / 3; grid-column: 2; align-self: center; font-style: normal; font-weight: 800; color: #2D2926; }
.mt-sim label { display: flex; justify-content: space-between; font-weight: 700; color: #4b5563; } .mt-sim label b { color: var(--tinta); font-size: 18px; }
.mt-sim input[type=range] { width: 100%; accent-color: #2D2926; margin: 8px 0 14px; }
.mt-sim-g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mt-sim-g > div { border: 1px solid #eef1f5; border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; }
.mt-sim-g span { font-size: 11.5px; font-weight: 700; color: #8a929c; } .mt-sim-g b { font-size: 18px; color: var(--tinta); } .mt-sim-g small { font-size: 11px; color: #8a929c; }
.mt-sim-g .ok { background: #F3F2EE; border-color: #D9D9D6; } .mt-sim-g .ok b { color: #2D2926; } .mt-sim-g .nao b { color: #dc2626; }
.mt-alerta { margin: 10px 0 0; font-size: 12.5px; color: #92400e; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 10px; padding: 8px 10px; }
.mt-lim { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mt-lim > div { display: flex; flex-direction: column; gap: 2px; border: 1px solid #eef1f5; border-radius: 8px; padding: 12px 14px; }
.mt-lim span { font-size: 12.5px; font-weight: 700; color: #6b7480; } .mt-lim b { font-size: 26px; color: var(--tinta); margin-bottom: 4px; } .mt-lim small { font-size: 12.5px; color: #6b7480; }
.pn-meta-ir { margin-top: 12px; font-size: 13px; font-weight: 800; color: var(--accent); background: none; padding: 0; }
@media (max-width: 900px) { .mt-hero { grid-template-columns: 1fr; } .mt-sim-g { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mt-lim { grid-template-columns: 1fr; } .mt-hero .pn-meta-num b { font-size: 30px; } }
#metasBox .dash-grid > .pn-par { align-self: stretch; }
.pn-meta-lucro { margin: 10px 0 0; font-size: 14px; color: #4b5563; } .pn-meta-lucro b { color: #2D2926; font-size: 16px; } .pn-meta-lucro small { color: #8a929c; }
.mt-conta { display: grid; grid-template-columns: 1fr auto; gap: 3px 12px; margin-top: 8px; font-size: 13px; }
.mt-conta span { color: #6b7480; } .mt-conta em { font-style: normal; font-weight: 700; color: var(--tinta); text-align: right; }
.mt-conta em.neg { color: #dc2626; }
.mt-conta .tot { border-top: 1px solid #eef1f5; padding-top: 4px; font-weight: 800; color: var(--tinta); } .mt-conta em.tot { color: #2D2926; }

/* ---------- briefing do site (ficha do lead) ---------- */
.lp-brief .bf-st { margin-bottom: 12px; }
.lp-brief .bf-bts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.lp-brief .bf-bts .btn svg { width: 15px; height: 15px; }
.lp-brief .bf-drive { margin-bottom: 0; }
.bf-resp section + section { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.bf-resp h4 { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #8a95a1; margin-bottom: 10px; }
.bf-item + .bf-item { margin-top: 12px; }
.bf-item > span { display: block; font-size: 12.5px; font-weight: 700; color: #6b7480; margin-bottom: 3px; }
.bf-item p { white-space: pre-wrap; word-break: break-word; line-height: 1.5; color: var(--tinta); }
.bf-item ol { padding-left: 20px; display: grid; gap: 4px; }
.bf-obs { margin-top: 12px; font-size: 13px; color: #8a6200; background: #fff8ea; border-radius: 8px; padding: 8px 12px; }
#bfTxt { line-height: 1.5; }
.bf-drive-l { display: flex; gap: 6px; align-items: center; } .bf-drive-l .field { flex: 1; min-width: 0; }

/* ---------- metas: meta do dia + vendas por dia ---------- */
.mt-hero-r { grid-template-columns: 1fr 1fr; }
.mt-hoje { grid-column: 1 / -1; background: #f6faf8; border-color: #dcefe4 !important; }
.mt-hoje b { font-size: 30px; }
.mt-hoje-barra { height: 8px; border-radius: 6px; background: #e3ece7; margin: 8px 0 4px; overflow: hidden; }
.mt-hoje-barra i { display: block; height: 100%; border-radius: inherit; background: #2D2926; transition: width .5s cubic-bezier(.2, .8, .2, 1); }
.mt-hoje .mt-hoje-st { font-size: 12.5px; color: #4b5563; } .mt-hoje .mt-hoje-st b { font-size: inherit; color: var(--tinta); } .mt-hoje .mt-hoje-st b.ok { color: #2D2926; }
.mt-hero-r .mt-kpi b { font-size: 22px; }
.mt-hero-r .mt-hoje b { font-size: 30px; }

.md { --alt: 220px; padding-top: 6px; }
.md-plot { display: grid; grid-template-columns: 44px minmax(0, 1fr); height: var(--alt); }
.md-y { position: relative; }
.md-y span { position: absolute; right: 8px; transform: translateY(50%); font-size: 11.5px; color: #8a929c; font-variant-numeric: tabular-nums; white-space: nowrap; }
.md-area { position: relative; }
.md-grid { position: absolute; left: 0; right: 0; height: 1px; background: #eef1f5; }
.md-meta { position: absolute; left: 0; right: 0; height: 0; border-top: 2px dashed #4b5563; z-index: 2; pointer-events: none; }
.md-cols { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); z-index: 1; }
.md-col { position: relative; display: flex; align-items: flex-end; justify-content: center; height: 100%; padding: 0 1px; border-radius: 6px; cursor: default; }
.md-col:hover, .md-col:focus-visible { background: rgba(31, 28, 26, .035); }
.md-col:focus-visible { outline: 2px solid #2D2926; outline-offset: -2px; }
.md-col i { display: block; width: 100%; max-width: 22px; border-radius: 4px 4px 0 0; background: #8593a3; transition: filter .15s; }
.md-col.ok i { background: #2D2926; }
.md-col.zero i, .md-col.off i { height: 3px !important; background: #dfe4ea; border-radius: 2px; }
.md-col.off i { background: transparent; }
.md-col.fut i { height: 0 !important; }
.md-col:hover i { filter: brightness(1.08); }
.md-col.hoje { background: rgba(45, 41, 38, .06); }
.md-x { display: grid; grid-template-columns: 44px repeat(var(--n), minmax(0, 1fr)); margin-top: 6px; }
.md-x::before { content: ""; }
.md-x span { text-align: center; font-size: 11px; color: #6b7480; font-variant-numeric: tabular-nums; }
.md-x span.off { color: #b8c0c8; }
.md-x span.hoje { color: #2D2926; font-weight: 800; }
.md-leg { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; font-size: 12.5px; color: #4b5563; }
.md-leg span { display: inline-flex; align-items: center; gap: 7px; }
.md-leg i { width: 12px; height: 12px; border-radius: 3px; background: #8593a3; }
.md-leg i.ok { background: #2D2926; }
.md-leg i.linha { width: 18px; height: 0; border-radius: 0; background: none; border-top: 2px dashed #4b5563; }
.md-tip { position: absolute; top: 4px; z-index: 5; min-width: 150px; background: #fff; border: 1px solid #e3e8ee; border-radius: 10px; box-shadow: 0 12px 28px -12px rgba(31, 28, 26, .35); padding: 9px 12px; display: flex; flex-direction: column; gap: 1px; pointer-events: none; font-size: 12.5px; color: #4b5563; }
.md-tip[hidden] { display: none; }
.md-tip b { font-size: 17px; color: var(--tinta); font-variant-numeric: tabular-nums; }
.md-tip .md-tip-d { font-weight: 700; color: #6b7480; }
.md-tip .md-tip-ok { color: #1F1C1A; font-weight: 700; } .md-tip .md-tip-falta { color: #6b7480; }
@media (max-width: 700px) {
  .md { --alt: 180px; }
  .md-plot, .md-x { grid-template-columns: 36px minmax(0, 1fr); }
  .md-x { grid-template-columns: 36px repeat(var(--n), minmax(0, 1fr)); }
  .md-x span { font-size: 9.5px; }
  .md-x span:not(.hoje):nth-child(even) { visibility: hidden; }
  .mt-hero-r { grid-template-columns: 1fr; }
}
.mt-hoje .mt-hoje-rec { margin-top: 6px; padding-top: 6px; border-top: 1px solid #dcefe4; font-size: 12.5px; color: #4b5563; } .mt-hoje .mt-hoje-rec b { font-size: inherit; color: var(--tinta); }

/* ---------- aba Follow-ups ---------- */
#v-followups .kpis { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.fu-sub { display: block; font-size: 12.5px; color: #8a929c; font-weight: 500; margin-top: 2px; }
.fu-obs { display: block; font-size: 12px; color: #a16207; margin-top: 3px; }
.fu-quando { font-weight: 700; white-space: nowrap; }
.fu-cad { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; background: #fff; border-radius: 8px; padding: 14px 18px; margin-bottom: 22px; box-shadow: 0 1px 3px rgba(31, 28, 26, .05); font-size: 13px; color: #4b5563; }
.fu-cad > b { color: var(--tinta); }
.fu-cad span { display: inline-flex; align-items: center; gap: 6px; }
.fu-cad i { font-style: normal; font-size: 11px; font-weight: 800; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 6px; background: #EFEEE8; color: #1F1C1A; display: inline-grid; place-items: center; }
.fu-cad small { flex-basis: 100%; color: #8a929c; font-size: 12px; }
.fu-motivos { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.fu-motivos span { background: #fff; border: 1px solid #e3e9f1; border-radius: 6px; padding: 6px 12px; font-size: 13px; color: #4b5563; }
.fu-motivos b { color: var(--tinta); margin-right: 3px; }
