/* ============================================================
   WeProspect+ — estilos específicos do produto
   (o design system base .app-*/.mc-* vem de base_sistema.css)
   ============================================================ */

/* -------- Cabeçalho de página -------- */
.app-page-kicker { font-size: .76rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--brand-primary); margin: 0 0 .15rem; }
.app-page-title { font-size: 1.45rem; font-weight: 800; margin: 0; line-height: 1.15; }
.app-page-subtitle { color: var(--mc-muted); font-size: .9rem; margin: .2rem 0 0; max-width: 60ch; }
.mc-stat-meta { display: block; font-size: .72rem; color: var(--mc-muted); margin-top: .15rem; }
.priority-dot { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px;
  border-radius: 8px; font-weight: 800; font-size: .78rem; }
.priority-A { background: #fee2e2; color: #b91c1c; }
.priority-B { background: #fef3c7; color: #92400e; }
.priority-C { background: #e0f2fe; color: #075985; }

/* -------- Auth (login / signup) -------- */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem;
  background: radial-gradient(circle at 20% 10%, color-mix(in srgb, var(--brand-primary) 18%, transparent), transparent 40%), var(--brand-gradient); }
.auth-card { background: #fff; border-radius: 20px; box-shadow: 0 24px 70px rgba(15,23,42,.24); padding: 2rem; width: 100%; max-width: 420px; }
[data-bs-theme="dark"] .auth-card { background: #111c2f; color: #e5e7eb; }
.auth-brand { font-weight: 800; color: var(--brand-primary); margin-bottom: .75rem; display: flex; align-items: center; gap: .4rem; }
.auth-title { font-size: 1.4rem; font-weight: 800; margin: 0; }
.auth-sub { margin-bottom: 1.25rem; }

/* -------- Planos (signup) -------- */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .6rem; }
.plan-card { cursor: pointer; margin: 0; }
.plan-card input { position: absolute; opacity: 0; }
.plan-card-body { border: 2px solid var(--app-border, #e6e8ee); border-radius: 14px; padding: .85rem; text-align: center; transition: all .15s; }
.plan-card input:checked + .plan-card-body { border-color: var(--brand-primary); background: var(--brand-primary-soft); }
.plan-name { font-weight: 800; }
.plan-price { font-size: 1.25rem; font-weight: 800; color: var(--brand-primary); }
.plan-price small { font-size: .7rem; color: var(--mc-muted); font-weight: 600; }
.plan-feats { list-style: none; padding: 0; margin: .5rem 0 0; font-size: .78rem; color: var(--mc-muted); }

/* -------- Landing -------- */
.landing { min-height: 100vh; display: flex; flex-direction: column; }
.landing-nav { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; }
.landing-brand { font-weight: 800; color: var(--brand-primary); font-size: 1.2rem; display: flex; align-items: center; gap: .5rem; }
.landing-hero { flex: 1; display: grid; place-items: center; text-align: center; padding: 2rem 1.5rem 4rem; }
.landing-hero-inner { max-width: 760px; }
.landing-badge { display: inline-block; background: var(--brand-primary-soft); color: var(--brand-primary); font-weight: 700;
  padding: .35rem .9rem; border-radius: 999px; font-size: .85rem; margin-bottom: 1.25rem; }
.landing-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.1; margin-bottom: 1rem; }
.landing-hero .grad { background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.landing-lead { font-size: 1.15rem; color: var(--mc-muted); margin-bottom: 1.75rem; }
.landing-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.landing-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; max-width: 1000px; margin: 2.5rem auto 0; }
.landing-feature { background: rgba(255,255,255,.7); backdrop-filter: blur(10px); border: 1px solid var(--mc-glass-border);
  border-radius: 16px; padding: 1.25rem; text-align: left; }
.landing-feature i { font-size: 1.6rem; color: var(--brand-primary); }
.landing-feature h3 { font-size: 1rem; font-weight: 700; margin: .5rem 0 .25rem; }
.landing-feature p { font-size: .9rem; color: var(--mc-muted); margin: 0; }
[data-bs-theme="dark"] .landing-feature { background: rgba(17,28,47,.7); }

/* -------- Formulário de negócio (centralizado, seções) -------- */
.negocio-form { max-width: 880px; margin-inline: auto; }
.form-section-title { font-size: .98rem; font-weight: 700; color: var(--mc-text);
  margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.form-divider { border: none; border-top: 1px solid var(--app-module-border); margin: 6px 0 22px; }
.form-actions { margin-top: 10px; }

/* -------- Detalhe do lead -------- */
.lead-hero { display: flex; flex-wrap: wrap; gap: 8px; }
/* Card de perfil do lead (foto + chips + ações rápidas) */
.lead-profile { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.lead-profile-logo { width: 72px; height: 72px; flex: 0 0 72px; border-radius: 16px; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-primary-soft); color: var(--brand-primary); font-size: 2rem; }
.lead-profile-logo img { width: 100%; height: 100%; object-fit: cover; }
.lead-profile-body { flex: 1 1 260px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.lead-profile-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lead-profile-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.lead-quick { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  font-size: .82rem; font-weight: 600; text-decoration: none; border: 1px solid var(--mc-glass-border);
  color: var(--brand-primary); background: var(--brand-primary-soft); transition: filter .15s; }
.lead-quick:hover { filter: brightness(.97); text-decoration: none; }
.lead-quick-wa { color: #128c4b; background: rgba(37,211,102,.12); border-color: rgba(37,211,102,.3); }
.lead-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px;
  background: var(--brand-primary-soft); border: 1px solid var(--mc-glass-border);
  border-radius: 999px; font-size: .82rem; font-weight: 600; color: var(--mc-text); }
.lead-chip-warn { background: rgba(217,119,6,.12); color: #b45309; border-color: rgba(217,119,6,.25); }
.lead-section-title { font-size: .98rem; font-weight: 700; color: var(--mc-text);
  margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.lead-section-head { display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.lead-fields { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px 18px; }
.lead-field { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lead-field-label { font-size: .72rem; font-weight: 600; color: var(--mc-muted);
  text-transform: uppercase; letter-spacing: .04em; display: flex; align-items: center; gap: 5px; }
.lead-field-val { font-size: .92rem; color: var(--mc-text); overflow: hidden; text-overflow: ellipsis; }
.lead-obs { margin-top: 16px; }
.lead-obs p { font-size: .9rem; color: var(--mc-text); margin-top: 4px; }
.lead-list { display: flex; flex-direction: column; gap: 6px; }
.lead-list-item { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; border: 1px solid var(--mc-glass-border); border-radius: 10px;
  text-decoration: none; color: inherit; transition: background .12s ease; }
.lead-list-item:hover { background: rgba(9,30,66,.04); }
.lead-list-main { font-weight: 600; color: var(--mc-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lead-list-meta { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.lead-contato { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--mc-glass-border); }
.lead-contato:last-child { border-bottom: none; }
.lead-contato-avatar { width: 36px; height: 36px; border-radius: 50%; flex: 0 0 36px;
  background: var(--brand-primary-soft); color: var(--brand-primary); font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; font-size: .85rem; }
.lead-contato-body { min-width: 0; }
.lead-contato-nome { font-weight: 600; color: var(--mc-text); }
.lead-contato-meta { font-size: .8rem; color: var(--mc-muted); overflow: hidden; text-overflow: ellipsis; }
.lead-contato-form { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--mc-glass-border); }
@media (max-width: 575.98px) { .lead-fields { grid-template-columns: 1fr; } }

/* Logo da empresa: na lista (mini) e no formulário (preview) */
.lead-logo { width: 30px; height: 30px; border-radius: 7px; object-fit: cover; flex: 0 0 30px; }
.lead-logo-field { display: flex; align-items: center; gap: 14px; }
.lead-logo-preview { width: 56px; height: 56px; flex: 0 0 56px; border-radius: 12px; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-primary-soft); color: var(--brand-primary); font-size: 1.4rem; }
.lead-logo-preview img { width: 100%; height: 100%; object-fit: cover; }

/* Pontuação do lead (breakdown do score) */
.lead-score-list { list-style: none; margin: 0; padding: 0; }
.lead-score-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 7px 0; border-bottom: 1px solid var(--mc-glass-border); }
.lead-score-list li:last-child { border-bottom: 0; }
.lead-score-label { font-size: .86rem; color: var(--mc-text); display: inline-flex; align-items: center; gap: 7px; }
.lead-score-pts { color: #16a34a; font-weight: 800; font-size: .85rem; }

/* -------- Anexos (leads e negócios) -------- */
.anexo-form { margin-bottom: 14px; }
.anexo-hint { font-size: .78rem; color: var(--mc-muted); margin: 6px 2px 0;
  display: flex; align-items: center; gap: 5px; }
.anexo-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.anexo-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border: 1px solid var(--mc-glass-border); border-radius: 10px; transition: background .12s ease; }
.anexo-item:hover { background: rgba(9,30,66,.04); }
.anexo-icone { font-size: 1.35rem; color: var(--brand-primary, #4f46e5); flex: 0 0 auto; }
.anexo-body { min-width: 0; flex: 1 1 auto; display: flex; flex-direction: column; gap: 1px; }
.anexo-nome { font-weight: 600; color: var(--mc-text); text-decoration: none;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.anexo-nome:hover { text-decoration: underline; }
.anexo-meta { font-size: .78rem; color: var(--mc-muted); }
.anexo-acoes { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.anexo-vazio { display: flex; align-items: center; gap: 6px; font-size: .9rem; }

/* -------- Kanban (estilo Trello) -------- */
.kanban { display: flex; gap: 12px; overflow-x: auto; padding: 2px 2px 14px; align-items: flex-start; }
.kanban-col { width: 276px; min-width: 276px; flex: 0 0 auto; background: #f1f2f4;
  border-radius: 12px; padding: 8px; display: flex; flex-direction: column;
  min-height: min(560px, calc(100vh - 240px)); max-height: calc(100vh - 170px); }
[data-bs-theme="dark"] .kanban-col { background: rgba(255,255,255,.05); }
.kanban-col-head { display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 6px 8px 10px; font-weight: 600; font-size: .92rem; color: #172b4d; }
[data-bs-theme="dark"] .kanban-col-head { color: #e2e8f0; }
.kanban-col-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.kanban-count { flex: 0 0 auto; font-size: .74rem; font-weight: 700; color: #5e6c84;
  background: rgba(9,30,66,.08); border-radius: 999px; padding: 1px 9px; }
/* Botão de minimizar a etapa (coluna) */
.kanban-col-collapse { border: 0; background: transparent; color: #5e6c84; cursor: pointer;
  padding: 2px 4px; border-radius: 6px; font-size: .9rem; line-height: 1; flex: 0 0 auto; order: -1; }
.kanban-col-collapse:hover { background: rgba(9,30,66,.08); color: #172b4d; }
/* Coluna colapsada: vira uma faixa estreita com o título na vertical */
.kanban-col--collapsed { width: 46px; min-width: 46px; cursor: pointer; min-height: 0; }
.kanban-col--collapsed .kanban-cards, .kanban-col--collapsed .kanban-add-wrap { display: none; }
.kanban-col--collapsed .kanban-col-head { flex-direction: column; gap: 10px; padding: 8px 4px; height: 100%; }
.kanban-col--collapsed .kanban-col-title { writing-mode: vertical-rl; transform: rotate(180deg);
  white-space: nowrap; overflow: visible; flex: 0 0 auto; }
.kanban-col--collapsed .kanban-col-collapse { transform: rotate(180deg); }
[data-bs-theme="dark"] .kanban-col-collapse { color: #cbd5e1; }
.kanban-cards { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; flex: 1 1 auto; min-height: 120px; padding: 2px; }
.kanban-card { position: relative; background: #fff; border-radius: 8px; padding: 9px 11px;
  box-shadow: 0 1px 1px rgba(9,30,66,.25), 0 0 1px rgba(9,30,66,.12);
  cursor: grab; transition: background .12s ease; }
.kanban-card:hover { background: #f7f8f9; }
[data-bs-theme="dark"] .kanban-card { background: #22272b; }
/* Olho de "ver negócio": sempre visível (sutil), realce no hover. */
.kanban-card-view { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center; border-radius: 7px;
  color: #5e6c84; background: rgba(9,30,66,.06); font-size: .9rem; line-height: 1;
  text-decoration: none; opacity: .6; transition: opacity .15s ease, background .15s ease, color .15s ease; z-index: 1; }
.kanban-card:hover .kanban-card-view { opacity: 1; }
.kanban-card-view:hover, .kanban-card-view:focus { background: var(--brand-primary); color: #fff; opacity: 1; }
[data-bs-theme="dark"] .kanban-card-view { background: rgba(255,255,255,.08); color: #cbd5e1; }
.kanban-label { display: block; height: 8px; width: 42px; border-radius: 4px; margin-bottom: 7px; }
.kanban-label-A { background: #eb5a46; }
.kanban-label-B { background: #f2d600; }
.kanban-label-C { background: #61bd4f; }
.kanban-card-title { font-weight: 500; font-size: .9rem; color: #172b4d; line-height: 1.3; padding-right: 24px; }
.kanban-card-title a { color: inherit; text-decoration: none; }
.kanban-card-title a:hover { text-decoration: underline; }
[data-bs-theme="dark"] .kanban-card-title { color: #e6edf3; }
.kanban-card-company { font-size: .78rem; color: #5e6c84; margin-top: 5px; display: flex; align-items: center; gap: 5px; }
.kanban-card-foot { display: flex; align-items: center; gap: 8px; margin-top: 9px; flex-wrap: wrap; }
.kanban-badge { font-size: .73rem; display: inline-flex; align-items: center; gap: 3px; color: #5e6c84; }
.kanban-valor { font-weight: 700; color: #1f845a; }
.kanban-parado { display: inline-flex; align-items: center; gap: 3px; font-size: .7rem; font-weight: 700;
  color: #b45309; background: #fef3c7; border-radius: 999px; padding: 1px 7px; }
[data-bs-theme="dark"] .kanban-parado { background: rgba(217,119,6,.22); color: #fbbf24; }
.kanban-avatar { margin-left: auto; width: 24px; height: 24px; border-radius: 50%;
  background: var(--brand-primary); color: #fff; font-size: .66rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.kanban-add-wrap { margin-top: 6px; }
.kanban-add { display: flex; align-items: center; gap: 7px; width: 100%; padding: 8px 10px;
  border: none; background: transparent; border-radius: 8px; color: #44546f; font-size: .86rem;
  font-weight: 500; font-family: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.kanban-add:hover { background: rgba(9,30,66,.08); color: #172b4d; }
[data-bs-theme="dark"] .kanban-add:hover { background: rgba(255,255,255,.08); color: #e2e8f0; }
.kanban-add-form { display: flex; flex-direction: column; gap: 6px; padding: 4px; }
.kanban-add-input { resize: none; font-size: .9rem; border-radius: 8px; }
.kanban-add-actions { display: flex; align-items: center; gap: 6px; }
.sortable-ghost { opacity: .45; }
.sortable-drag { transform: rotate(3deg); }
.sortable-chosen { box-shadow: 0 6px 16px rgba(9,30,66,.28); }

/* Cartões minimizados (só o título) — toggle "Minimizar" */
.kanban--compact .kanban-label,
.kanban--compact .kanban-card-company,
.kanban--compact .kanban-card-foot { display: none; }
.kanban--compact .kanban-card { padding: 6px 10px; }
.kanban--compact .kanban-card-title { font-size: .85rem; }

/* deixa o board respirar acima do switch flutuante */
.kanban, .funil-lista { padding-bottom: 60px; }

/* Switch flutuante Quadro / Lista / Minimizar (estilo Trello) */
.funil-view-switch {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%);
  z-index: 1030; display: inline-flex; align-items: center; gap: 4px; padding: 5px;
  background: #fff; border-radius: 999px;
  box-shadow: 0 10px 30px rgba(15,23,42,.22); border: 1px solid rgba(15,23,42,.08);
}
[data-bs-theme="dark"] .funil-view-switch { background: #1e293b; border-color: #334155; }
.funil-view-btn, .funil-compact-btn {
  border: none; background: transparent; border-radius: 999px; cursor: pointer;
  color: #5e6c84; font-weight: 600; font-size: .85rem;
  display: inline-flex; align-items: center; gap: 6px; transition: background .12s ease, color .12s ease;
}
.funil-view-btn { padding: 7px 16px; }
.funil-compact-btn { padding: 7px 11px; font-size: 1rem; }
.funil-view-btn:hover, .funil-compact-btn:hover { background: rgba(9,30,66,.06); color: #172b4d; }
.funil-view-btn.active, .funil-compact-btn.active { background: var(--brand-primary); color: #fff; }
.funil-view-sep { width: 1px; height: 20px; background: rgba(15,23,42,.12); margin: 0 2px; }
[data-bs-theme="dark"] .funil-view-btn, [data-bs-theme="dark"] .funil-compact-btn { color: #cbd5e1; }
@media (max-width: 767px) { .funil-view-switch { bottom: 76px; } }

/* Prioridade na visão de lista */
.funil-prio { display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 6px; font-size: .72rem; font-weight: 800; color: #fff; }
.funil-prio-A { background: #eb5a46; }
.funil-prio-B { background: #d9a400; }
.funil-prio-C { background: #61bd4f; }

/* Visão de lista: grupos por etapa com linhas arrastáveis */
.funil-lista-grupo { margin-bottom: 16px; }
.funil-lista-grupo-head { display: flex; align-items: center; gap: 8px; padding: 5px 10px; margin-bottom: 6px;
  border-left: 3px solid #4f46e5; font-weight: 700; font-size: .9rem; color: #172b4d; }
[data-bs-theme="dark"] .funil-lista-grupo-head { color: #e2e8f0; }
.funil-lista-grupo-title { flex: 1; }
.funil-lista-rows { display: flex; flex-direction: column; gap: 5px; min-height: 12px; }
.funil-lista-rows:has(.funil-lista-row) .funil-lista-vazio { display: none; }
.funil-lista-vazio { font-size: .8rem; color: #94a3b8; padding: 8px 12px;
  border: 1px dashed rgba(15,23,42,.14); border-radius: 8px; }
.funil-lista-row { display: grid;
  grid-template-columns: 22px minmax(0,2.2fr) minmax(0,1.6fr) 120px 30px minmax(0,1.3fr);
  align-items: center; gap: 10px; background: #fff; border: 1px solid rgba(15,23,42,.08);
  border-radius: 8px; padding: 8px 12px; box-shadow: 0 1px 2px rgba(9,30,66,.08); }
.funil-lista-row:hover { background: #f7f8f9; }
[data-bs-theme="dark"] .funil-lista-row { background: #22272b; border-color: #334155; }
.funil-lista-drag { color: #b3bac5; cursor: grab; display: inline-flex; }
.funil-lista-titulo { font-weight: 600; color: #172b4d; text-decoration: none;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.funil-lista-titulo:hover { text-decoration: underline; }
[data-bs-theme="dark"] .funil-lista-titulo { color: #e6edf3; }
.funil-lista-empresa, .funil-lista-resp { font-size: .82rem; color: #5e6c84;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; }
.funil-lista-valor { font-weight: 700; color: #1f845a; font-size: .85rem; text-align: right; white-space: nowrap; }
.funil-lista-row .funil-prio { justify-self: center; }
@media (max-width: 767px) {
  .funil-lista-row { grid-template-columns: 22px minmax(0,1fr) 92px 28px; }
  .funil-lista-empresa, .funil-lista-resp { display: none; }
}

/* -------- Inbox -------- */
.inbox { display: grid; grid-template-columns: 320px 1fr; gap: 14px; height: calc(100vh - 230px); min-height: 460px; }
.inbox-list { background: #fff; border: 1px solid rgba(15,23,42,.08); border-radius: 16px; overflow-y: auto; }
.inbox-main { background: #fff; border: 1px solid rgba(15,23,42,.08); border-radius: 16px; display: flex; flex-direction: column; overflow: hidden; }
[data-bs-theme="dark"] .inbox-list, [data-bs-theme="dark"] .inbox-main { background: #111c2f; border-color: #243149; }

/* Avatar (iniciais ou foto) */
.inbox-avatar { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-primary-soft); color: var(--brand-primary); font-weight: 800; font-size: .85rem; }
.inbox-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Lista de conversas */
.inbox-conv { display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-bottom: 1px solid rgba(15,23,42,.06); text-decoration: none; color: inherit; }
.inbox-conv:hover { background: rgba(15,23,42,.03); }
.inbox-conv.active { background: var(--brand-primary-soft); }
.inbox-conv-body { min-width: 0; flex: 1; }
.inbox-conv-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.inbox-conv-name { font-size: .9rem; color: var(--mc-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-conv-time { font-size: .7rem; color: var(--mc-muted); flex: 0 0 auto; }
.inbox-conv-bottom { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 2px; }
.inbox-conv-preview { font-size: .8rem; color: var(--mc-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Header da thread */
.inbox-header { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid rgba(15,23,42,.08); }
.inbox-header-info { min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.inbox-header-info small { font-size: .76rem; }

/* Thread (fundo estilo WhatsApp) */
.inbox-thread { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px;
  background-color: #e9e0d6;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%27160%27%20height%3D%27160%27%20viewBox%3D%270%200%20160%20160%27%3E%3Cg%20fill%3D%27none%27%20stroke%3D%27%231f3d27%27%20stroke-opacity%3D%270.05%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Crect%20x%3D%2716%27%20y%3D%2720%27%20width%3D%2740%27%20height%3D%2728%27%20rx%3D%278%27/%3E%3Cpath%20d%3D%27M28%2048%20v9%20l9%20-9%27/%3E%3Crect%20x%3D%2798%27%20y%3D%2728%27%20width%3D%2744%27%20height%3D%2730%27%20rx%3D%275%27/%3E%3Cpath%20d%3D%27M98%2033%20l22%2016%2022%20-16%27/%3E%3Ccircle%20cx%3D%2738%27%20cy%3D%27112%27%20r%3D%2714%27/%3E%3Cpath%20d%3D%27M32%20112%20l5%205%209%20-10%27/%3E%3Cpath%20d%3D%27M112%20104%20l3%208%208%200%20-6%206%202%208%20-7%20-5%20-7%205%202%20-8%20-6%20-6%208%200%20z%27/%3E%3C/g%3E%3Cg%20fill%3D%27%231f3d27%27%20fill-opacity%3D%270.05%27%3E%3Ccircle%20cx%3D%2780%27%20cy%3D%2782%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%27150%27%20cy%3D%27150%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2710%27%20cy%3D%27150%27%20r%3D%272.4%27/%3E%3C/g%3E%3C/svg%3E"), linear-gradient(165deg, #efe8df 0%, #e6ddd0 55%, #ded3c3 100%);
  background-repeat: repeat, no-repeat; background-size: 180px 180px, cover; }
[data-bs-theme="dark"] .inbox-thread { background-color: #0b141a;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%27160%27%20height%3D%27160%27%20viewBox%3D%270%200%20160%20160%27%3E%3Cg%20fill%3D%27none%27%20stroke%3D%27%23ffffff%27%20stroke-opacity%3D%270.06%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Crect%20x%3D%2716%27%20y%3D%2720%27%20width%3D%2740%27%20height%3D%2728%27%20rx%3D%278%27/%3E%3Cpath%20d%3D%27M28%2048%20v9%20l9%20-9%27/%3E%3Crect%20x%3D%2798%27%20y%3D%2728%27%20width%3D%2744%27%20height%3D%2730%27%20rx%3D%275%27/%3E%3Cpath%20d%3D%27M98%2033%20l22%2016%2022%20-16%27/%3E%3Ccircle%20cx%3D%2738%27%20cy%3D%27112%27%20r%3D%2714%27/%3E%3Cpath%20d%3D%27M32%20112%20l5%205%209%20-10%27/%3E%3Cpath%20d%3D%27M112%20104%20l3%208%208%200%20-6%206%202%208%20-7%20-5%20-7%205%202%20-8%20-6%20-6%208%200%20z%27/%3E%3C/g%3E%3Cg%20fill%3D%27%23ffffff%27%20fill-opacity%3D%270.05%27%3E%3Ccircle%20cx%3D%2780%27%20cy%3D%2782%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%27150%27%20cy%3D%27150%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2710%27%20cy%3D%27150%27%20r%3D%272.4%27/%3E%3C/g%3E%3C/svg%3E"), linear-gradient(165deg, #0f1c24 0%, #0b141a 60%, #08111a 100%);
  background-repeat: repeat, no-repeat; background-size: 180px 180px, cover; }
.inbox-thread-empty { margin: auto; }

/* Linha (avatar + bolha) */
.inbox-row { display: flex; align-items: flex-end; gap: 8px; max-width: 78%; }
.inbox-row .inbox-avatar { width: 30px; height: 30px; flex: 0 0 30px; font-size: .72rem; }
.inbox-row-in { align-self: flex-start; }
.inbox-row-out { align-self: flex-end; flex-direction: row-reverse; }

/* Bolha */
.inbox-bubble { padding: 7px 10px; border-radius: 12px; box-shadow: 0 1px 1px rgba(0,0,0,.1); min-width: 60px; }
.inbox-bubble-in { background: #fff; border-top-left-radius: 3px; }
.inbox-bubble-out { background: #d9fdd3; border-top-right-radius: 3px; }
[data-bs-theme="dark"] .inbox-bubble-in { background: #1f2c33; }
[data-bs-theme="dark"] .inbox-bubble-out { background: #005c4b; }
.inbox-bubble-text { font-size: .9rem; line-height: 1.35; white-space: pre-wrap; word-break: break-word; color: #111b21; }
[data-bs-theme="dark"] .inbox-bubble-text { color: #e9edef; }
.inbox-bubble-meta { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin-top: 3px; font-size: .66rem; color: #667781; }
.inbox-ok { color: #53bdeb; }
.inbox-falhou { color: #e11d48; font-weight: 600; display: inline-flex; align-items: center; gap: 3px; }

/* Anexos na bolha */
.inbox-anexo-img { display: block; margin-bottom: 4px; }
.inbox-anexo-img img { max-width: 220px; max-height: 220px; border-radius: 8px; display: block; }
.inbox-anexo-file { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px;
  background: rgba(0,0,0,.05); color: inherit; text-decoration: none; font-size: .82rem; margin-bottom: 4px; }
.inbox-anexo-file:hover { background: rgba(0,0,0,.1); }

/* Compositor */
.inbox-composer { border-top: 1px solid rgba(15,23,42,.08); }
.inbox-entrega-aviso { display: flex; align-items: center; gap: 8px; margin: 8px 12px 0; padding: 8px 12px;
  background: rgba(217,119,6,.10); border: 1px solid rgba(217,119,6,.30); border-radius: 10px;
  color: #b45309; font-size: .82rem; line-height: 1.3; }
.inbox-entrega-aviso i { font-size: 1rem; flex: 0 0 auto; }
.inbox-entrega-aviso a { margin-left: auto; flex: 0 0 auto; font-weight: 600; white-space: nowrap; }
[data-bs-theme="dark"] .inbox-entrega-aviso { background: rgba(217,119,6,.14); color: #fbbf24; }
/* Disparos: painel de escrita manual ("Sem modelo") */
.dispatch-manual-box { background: var(--mc-glass-bg); border: 1px solid var(--mc-glass-border);
  border-radius: 12px; padding: 14px; margin: 0; }
.inbox-quickreply-row { padding: 8px 12px 0; }
.inbox-quickreply-row .form-select { max-width: 280px; }
.inbox-compose { display: flex; gap: 8px; padding: 10px 12px; align-items: center; }
.inbox-attach { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  flex: 0 0 40px; border-radius: 50%; cursor: pointer; color: #54656f; font-size: 1.2rem; transition: background .15s; margin: 0; }
.inbox-attach:hover { background: rgba(15,23,42,.06); color: var(--brand-primary); }
.inbox-compose-input { border-radius: 999px; }
.inbox-send { border-radius: 50%; width: 42px; height: 42px; flex: 0 0 42px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.inbox-anexo-chip { display: flex; align-items: center; gap: 8px; margin: 8px 12px 0; padding: 6px 12px;
  background: var(--brand-primary-soft); border-radius: 10px; font-size: .82rem; }
.inbox-anexo-chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-anexo-chip button { margin-left: auto; border: 0; background: none; font-size: 1.1rem; line-height: 1; cursor: pointer; color: var(--mc-muted); }

/* Notas + vazio */
.inbox-notas { padding: 8px 14px; border-top: 1px solid rgba(15,23,42,.08); font-size: .85rem; }
.inbox-notas summary { cursor: pointer; font-weight: 600; }
.inbox-nota { font-size: .85rem; padding: 4px 0; }
.inbox-empty { display: grid; place-items: center; height: 100%; color: var(--mc-muted); text-align: center; }
@media (max-width: 768px) { .inbox { grid-template-columns: 1fr; height: auto; min-height: 0; }
  .inbox-list { max-height: 40vh; } .inbox-main { height: 70vh; } .inbox-row { max-width: 90%; } }

/* -------- Ações em lote (lista de leads) -------- */
.mc-col-check { width: 40px; text-align: center; }
.mc-col-check .form-check-input { margin: 0; cursor: pointer; }
.app-bulk-bar { display: flex; align-items: center; justify-content: space-between; gap: .75rem 1.25rem; flex-wrap: wrap;
  background: var(--brand-primary-soft); border: 1px solid var(--mc-glass-border); border-radius: 14px;
  padding: .65rem 1rem; margin-bottom: .75rem; }
[data-bs-theme="dark"] .app-bulk-bar { background: rgba(255,255,255,.05); }
.app-bulk-bar-info { display: flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--brand-primary); white-space: nowrap; }
.app-bulk-bar-info i { font-size: 1.05rem; }
.app-bulk-bar-info strong { font-size: 1.05rem; }
.btn-clear-sel { background: none; border: 0; color: var(--mc-muted); font-size: .8rem; text-decoration: underline;
  cursor: pointer; padding: 0 .25rem; }
.app-bulk-bar-actions { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; justify-content: flex-end; }
.app-bulk-bar-actions .btn { white-space: nowrap; }
/* par select + botão coladinho, como um input-group */
.bulk-group { display: inline-flex; align-items: stretch; }
.bulk-group .form-select-sm { max-width: 168px; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.bulk-group .btn { border-top-left-radius: 0; border-bottom-left-radius: 0; margin-left: -1px; position: relative; }
.bulk-group .btn:hover, .bulk-group .btn:focus { z-index: 2; }
.bulk-sep { width: 1px; align-self: stretch; min-height: 1.9rem; background: var(--mc-glass-border); margin: 0 .15rem; }
/* menu de classificação por linha */
.mc-row-menu { min-width: 11rem; }
.mc-row-menu .priority-dot { width: 1.4rem; height: 1.4rem; font-size: .72rem; }
@media (max-width: 768px) {
  .app-bulk-bar { flex-direction: column; align-items: stretch; }
  .app-bulk-bar-actions { justify-content: flex-start; }
  .bulk-group { flex: 1 1 auto; }
  .bulk-group .form-select-sm { flex: 1 1 auto; max-width: none; }
  .bulk-sep { display: none; }
}

/* -------- Avatar / foto de perfil -------- */
.perfil-avatar-lg { width: 72px; height: 72px; border-radius: 50%; flex: 0 0 auto; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; background: var(--brand-primary-soft);
  color: var(--brand-primary); font-size: 1.8rem; border: 1px solid var(--mc-glass-border); }
.perfil-avatar-lg img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-perfil-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.config-logo-preview { width: 96px; height: 64px; border-radius: 12px; flex: 0 0 auto; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; background: var(--brand-primary-soft);
  color: var(--brand-primary); font-size: 1.6rem; border: 1px solid var(--mc-glass-border); }
.config-logo-preview img { width: 100%; height: 100%; object-fit: contain; }
/* Marca redonda (favicon ou logo da empresa), sem cantos quadrados/fundo.
   Seletor com .sidebar-icons garante prioridade; quadrado fixo -> círculo perfeito. */
.sidebar-icons .sidebar-church-brand {
  box-sizing: border-box;
  width: 44px; height: 44px; min-width: 44px; max-width: 44px;
  flex: 0 0 44px; padding: 0;
  border-radius: 50%; overflow: hidden; background: transparent;
  display: flex; align-items: center; justify-content: center;
}
.sidebar-icons .sidebar-church-brand img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block;
}

/* -------- Marca WeProspect+ (favicon mark + logo horizontal) -------- */
.auth-brand { justify-content: center; }
.auth-logo { max-width: 280px; width: 100%; height: auto; display: block; border-radius: 12px; }
.landing-brand img { height: 42px; width: auto; display: block; border-radius: 10px; }

/* -------- MFA: códigos de backup -------- */
.mfa-codes { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .5rem; }
.mfa-code { display: block; text-align: center; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.05rem; font-weight: 700; letter-spacing: 2px; padding: .55rem .25rem;
  background: var(--brand-primary-soft); border: 1px solid var(--mc-glass-border); border-radius: 10px; color: inherit; }
[data-bs-theme="dark"] .mfa-code { background: rgba(255,255,255,.05); }

/* -------- Separador de grupo no menu lateral (ícones) -------- */
.sidebar-sep { width: 26px; height: 1px; background: rgba(128,128,128,.28); margin: .35rem auto; flex: 0 0 auto; }

/* -------- Sininho de notificações (dropdown) -------- */
.notification-bell-wrap .notification-dropdown { width: 320px; max-width: 90vw; border-radius: 14px; overflow: hidden;
  box-shadow: 0 18px 50px rgba(15,23,42,.22); border: 1px solid var(--mc-glass-border); }
.notification-dropdown-head { display: flex; align-items: center; justify-content: space-between;
  padding: .7rem .9rem; border-bottom: 1px solid var(--mc-glass-border); font-size: .92rem; }
.notification-dropdown-head a { color: var(--mc-muted); }
.notification-dropdown-body { max-height: 360px; overflow-y: auto; }
.notification-item { display: block; padding: .6rem .9rem; border-bottom: 1px solid rgba(15,23,42,.06);
  text-decoration: none; color: inherit; }
.notification-item:hover { background: rgba(15,23,42,.03); }
.notification-item.is-unread { background: var(--brand-primary-soft); }
.notification-item-title { display: block; font-weight: 600; font-size: .86rem; }
.notification-item-msg { display: block; font-size: .8rem; color: var(--mc-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notification-item-time { display: block; font-size: .72rem; color: var(--mc-muted); margin-top: .15rem; }
.notification-dropdown-foot { display: block; text-align: center; padding: .6rem; font-weight: 600; font-size: .85rem;
  text-decoration: none; color: var(--brand-primary); border-top: 1px solid var(--mc-glass-border); }
.notification-dropdown-foot:hover { background: rgba(15,23,42,.03); }
[data-bs-theme="dark"] .notification-item.is-unread { background: rgba(255,255,255,.05); }

/* -------- Página de erro -------- */
.error-page { min-height: 100vh; display: grid; place-content: center; text-align: center; gap: .75rem; }
.error-code { font-size: 4rem; font-weight: 800; color: var(--brand-primary); }
.error-msg { color: var(--mc-muted); }
