/* Gerado por split de app/static/css/estilo_ph3a.css (fundação da reorganização de CSS, 03/08/2026). Ver app/utils/css_manifest.py pra ordem de carregamento. */

/* ============================================================
   HUBSPOT-INSPIRED REDESIGN v2  —  PH3A DataCRM
   Aplicado sobre o design system existente para elevar
   a UX/UI ao nível do HubSpot.
   ============================================================ */

/* ── 1. TOKENS REFINADOS ───────────────────────────────────── */
:root {
  --ph3a-bg:         #F5F8FA;   /* azul-cinza do HubSpot */
  --ph3a-text:       #2D3748;   /* texto mais escuro e legível */
  --ph3a-text-light: #718096;
  --ph3a-border:     #E2E8F0;   /* borda mais suave */
  --ph3a-shadow-sm:  0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.04);
  --ph3a-shadow-md:  0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
  --ph3a-shadow-lg:  0 10px 30px rgba(0,0,0,.10), 0 4px 8px rgba(0,0,0,.05);
  --ph3a-radius:     10px;
  --ph3a-radius-lg:  14px;
  --ph3a-radius-xl:  18px;
  --sidebar-width:   240px;  /* 20px mais estreito → mais conteúdo */
  --topbar-height:   56px;   /* 8px mais baixo → HubSpot pattern */
}

/* ── 2. TIPOGRAFIA BASE ─────────────────────────────────────── */
body {
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}

h1, h2, h3, h4, h5, h6 {
  letter-spacing: -0.025em;
}

/* ── 3. SIDEBAR — HubSpot Active State ─────────────────────── */
/* Active: fundo distintivo, sem barra lateral (removida 22/09/2026 — o item
   ativo virou uma pílula arredondada com respiro nas laterais, ver
   `.nav-item-link` em components/sidebar.css; a pílula já comunica "selecionado"
   sozinha). Paulo 27/05/2026 item 42 farol v72: bump 0.07 → 0.18 pra item ativo
   ficar visualmente inconfundível do vizinho. Hierarquia visual
   normal(0)/hover(0.10)/active(0.18). */
.nav-item-link.active {
  background: rgba(255,255,255,0.18);
  color: #ffffff;
  font-weight: 700;
}
.nav-item-link:hover {
  background: rgba(255,255,255,0.10);
  color: #ffffff;
}
/* Nav section labels — destaque laranja forte com separadores visíveis
   (Paulo 22/05/2026: pedido pra cada seção ficar bem expressiva, mais
   fácil de identificar onde começa cada bloco do menu).
   !important garante override de qualquer outra regra herdada da sidebar. */
.ph3a-sidebar .nav-section-label,
.nav-section-label {
  color: #ef5929 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  letter-spacing: 1.8px !important;
  text-transform: uppercase !important;
  padding: 18px 20px 8px !important;
  margin-top: 10px !important;
  border-top: 1.5px solid rgba(239, 89, 41, 0.3) !important;
}
/* Primeira section label não tem border-top (fica no topo do menu) */
.ph3a-nav > .nav-section-label:first-of-type {
  border-top: none !important;
  margin-top: 0 !important;
}
/* Sidebar: itens mais compactos */
.nav-item-link {
  padding: 9px 20px;
  font-size: 13.5px;
}
.nav-icon { font-size: 14px; }

/* Botão colapsar sidebar (novo) */
.sidebar-collapse-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: none;
  color: rgba(255,255,255,.5);
  cursor: pointer;
  font-size: 11px;
  transition: all .2s;
  flex-shrink: 0;
}
.sidebar-collapse-btn:hover {
  background: rgba(255,255,255,.18);
  color: #fff;
}
.sidebar-logo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 0 15px;
  min-height: var(--topbar-height);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* Link da logo: logo em cima, legenda embaixo numa linha só. Lado a lado, a
   legenda ficava com ~57px entre a logo e o botão « e quebrava em 3 linhas
   ("DataCRM / & / Marketing") — 28/09/2026. */
.sidebar-logo-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  text-decoration: none;
  flex: 1;
  min-width: 0;
}
.sidebar-logo-link .sidebar-logo-text .tagline {
  white-space: nowrap;
  line-height: 1;
  font-size: 10.5px !important;
  margin-top: 0;
}
/* Busca do menu: no desktop a fonte volta a ser pequena (o 16px do
   responsive.css evita o zoom do iOS e continua valendo no celular). */
@media (min-width: 992px) {
  .ph3a-sidebar .sidebar-busca-input { font-size: 12.5px !important; }
}

/* Sidebar colapsada (ícones apenas) */
.ph3a-sidebar.collapsed {
  width: 60px;
}
.ph3a-sidebar.collapsed .nav-item-link span:not(.nav-icon),
.ph3a-sidebar.collapsed .nav-item-link .nav-chevron,
.ph3a-sidebar.collapsed .nav-section-label,
.ph3a-sidebar.collapsed .nav-group-toggle span:not(.nav-icon):not(.nav-chevron),
.ph3a-sidebar.collapsed .sidebar-logo-text,
.ph3a-sidebar.collapsed .sidebar-user-info,
.ph3a-sidebar.collapsed .nav-sub-items,
.ph3a-sidebar.collapsed .nav-dropdown-menu,
.ph3a-sidebar.collapsed #btnViewMode span,
.ph3a-sidebar.collapsed .sidebar-user .user-name,
.ph3a-sidebar.collapsed .sidebar-user .user-role {
  display: none;
}
.ph3a-sidebar.collapsed {
  overflow-x: hidden;
}
/* Rótulo de seção com ícone ("Meus atalhos", "Recentes"). O `display:flex`
   mora numa CLASSE, nunca no `style=` do elemento: escrito no `style=` ele
   vencia o `display:none` da barra recolhida logo acima, e o rótulo vazava
   espremido na coluna de 60px (28/09/2026). */
.nav-section-label--icone {
  display: flex;
  align-items: center;
  gap: 6px;
}
/* Recolhida: o texto do separador "↓ não vai pro tabbar" e a busca do menu
   não cabem em 60px — fica só a linha tracejada; a busca continua no Cmd+K. */
.ph3a-sidebar.collapsed .ph3a-atalho-divider-texto,
.ph3a-sidebar.collapsed .sidebar-busca,
.ph3a-sidebar.collapsed .sidebar-busca-vazio {
  display: none !important;
}
/* Recolhida: logo e botão de expandir empilhados, em vez de o botão
   sobrepor a logo na linha de 60px. */
.ph3a-sidebar.collapsed .sidebar-logo {
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 8px 0;
}
.ph3a-sidebar.collapsed .sidebar-logo > a {
  flex: none !important;
  justify-content: center;
  align-items: center;
}
.ph3a-sidebar.collapsed .sidebar-logo img {
  max-width: 36px;
}
/* Esconde text nodes (ex.: "Dashboard" direto no <a>) e centraliza o ícone. */
.ph3a-sidebar.collapsed .nav-item-link,
.ph3a-sidebar.collapsed .nav-group-toggle {
  padding: 11px 0;
  gap: 0;
  justify-content: center;
  font-size: 0;
  white-space: nowrap;
}
/* Chevron do grupo também precisa sumir no colapsado. */
.ph3a-sidebar.collapsed .nav-chevron { display: none !important; }
.ph3a-sidebar.collapsed .nav-icon {
  width: auto;
  height: auto;
  font-size: 16px;
  margin: 0;
}
.ph3a-sidebar.collapsed .nav-item-link .nav-badge { display: none; }
/* Ícones extras nos links (ex.: "abrir em nova aba" do GitHub) também somem. */
.ph3a-sidebar.collapsed .nav-item-link > i:not(.nav-icon i):not(.nav-chevron) { display: none; }
/* Rodapé: centraliza avatar e esconde nome/perfil/botão sair/toggle view. */
.ph3a-sidebar.collapsed .sidebar-user { gap: 0; justify-content: center; }
.ph3a-sidebar.collapsed .sidebar-user > a,
.ph3a-sidebar.collapsed #btnViewMode { display: none; }
.ph3a-sidebar.collapsed .sidebar-user {
  justify-content: center;
}
.ph3a-sidebar.collapsed .sidebar-footer {
  padding: 12px 8px;
}
.ph3a-main.sidebar-collapsed {
  margin-left: 60px;
}
.ph3a-topbar.sidebar-collapsed {
  left: 60px;
}

/* ── 4. TOPBAR — Busca Global ────────────────────────────────── */
.ph3a-topbar {
  height: var(--topbar-height);
  padding: 0 24px;
  box-shadow: var(--ph3a-shadow-sm);
  border-bottom: 1px solid var(--ph3a-border);
}
.topbar-title {
  font-size: 15px;
  font-weight: 600;
}

/* Barra de busca global */
.topbar-search {
  flex: 1;
  max-width: 560px;   /* combo de busca maior (Paulo 29/08/2026) — era 420 */
  margin: 0 24px;
  position: relative;
}
.topbar-search input {
  width: 100%;
  height: 36px;
  padding: 0 14px 0 38px;
  border: 1.5px solid var(--ph3a-border);
  border-radius: 8px;
  font-size: 13.5px;
  background: var(--ph3a-bg);
  color: var(--ph3a-text);
  transition: all .2s;
  outline: none;
}
.topbar-search input:focus {
  border-color: var(--ph3a-primary);
  background: var(--ph3a-white);
  box-shadow: 0 0 0 3px rgba(255,81,27,.10);
}
.topbar-search input::placeholder { color: #a0aec0; font-size: 13px; }
.topbar-search .ts-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #a0aec0;
  font-size: 13px;
  pointer-events: none;
}
.topbar-search .ts-shortcut {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  font-weight: 600;
  color: #a0aec0;
  background: var(--ph3a-border);
  border-radius: 4px;
  padding: 1px 5px;
}
.topbar-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  font-size: 14px;
}

/* ── 5. CARDS — Sombra Suave HubSpot ────────────────────────── */
.ph3a-form-card,
.ph3a-table-card,
.chart-card,
.detail-section,
.metric-card {
  border: 1px solid var(--ph3a-border);
  box-shadow: var(--ph3a-shadow-sm);
  border-radius: var(--ph3a-radius-lg);
}
.ph3a-form-card { padding: 24px; }
.metric-card:hover {
  box-shadow: var(--ph3a-shadow-md);
  transform: translateY(-2px);
}

/* ── 6. TABELA — Ações Inline no Hover ──────────────────────── */
.ph3a-table tbody tr {
  position: relative;
}
.ph3a-table tbody tr:hover { background: #F7FAFC; }

/* Container de ações inline */
.tr-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0;
  transition: opacity .15s;
  white-space: nowrap;
}
.ph3a-table tbody tr:hover .tr-actions { opacity: 1; }

.tr-action-btn {
  width: 28px; height: 28px;
  border-radius: 6px;
  border: 1px solid var(--ph3a-border);
  background: var(--ph3a-white);
  color: var(--ph3a-text-light);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px;
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
}
.tr-action-btn:hover {
  background: var(--ph3a-primary);
  border-color: var(--ph3a-primary);
  color: #fff;
}
.tr-action-btn.danger:hover {
  background: var(--ph3a-danger);
  border-color: var(--ph3a-danger);
  color: #fff;
}
.tr-action-btn.success:hover {
  background: var(--ph3a-success);
  border-color: var(--ph3a-success);
  color: #fff;
}

/* Header de tabela levemente mais refinado */
.ph3a-table thead th {
  font-size: 11px;
  letter-spacing: 0.6px;
  background:var(--ph3a-bg);
  color: #718096;
  padding: 10px 16px;
}

/* ── 7. BADGES — Estilo HubSpot ─────────────────────────────── */
.ph3a-badge {
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 6px;
  letter-spacing: 0;
  text-transform: none;
}
/* Estágios do funil como pills coloridas */
.stage-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.stage-pill::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.7;
}

/* ── 8. BOTÕES — Variante Ghost ─────────────────────────────── */
.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--ph3a-border);
  color: var(--ph3a-text);
  border-radius: var(--ph3a-radius);
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all .18s;
}
.btn-ghost:hover {
  border-color: var(--ph3a-primary);
  color: var(--ph3a-primary);
  background: rgba(255,81,27,.04);
}
.btn-ghost-navy {
  background: transparent;
  border: 1.5px solid var(--ph3a-border);
  color: var(--ph3a-text-light);
  border-radius: var(--ph3a-radius);
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all .18s;
  text-decoration: none;
}
.btn-ghost-navy:hover {
  border-color: var(--ph3a-accent);
  color: var(--ph3a-accent);
  background: rgba(5,31,78,.04);
  text-decoration: none;
}

/* Botão primário mais refinado */
.btn-ph3a, .btn-accent {
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 13.5px;
  letter-spacing: -0.01em;
}
.btn-ph3a:hover { transform: none; box-shadow: 0 4px 12px rgba(255,81,27,.30); }
.btn-accent:hover { transform: none; box-shadow: 0 4px 12px rgba(5,31,78,.25); }
.btn-outline-ph3a { border-radius: 8px; padding: 8px 16px; font-size: 13.5px; }

/* ── 9. PAGE HEADER — Estilo HubSpot ─────────────────────────── */
.page-header {
  margin-bottom: 22px;
}
.page-header h1 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #1A202C;
}
/* Breadcrumb no topbar */
.topbar-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ph3a-text-light);
}
.topbar-breadcrumb a {
  color: var(--ph3a-text-light);
  text-decoration: none;
  transition: color .15s;
}
.topbar-breadcrumb a:hover { color: var(--ph3a-primary); }
.topbar-breadcrumb .bc-sep {
  font-size: 11px;
  color: #CBD5E0;
}
.topbar-breadcrumb .bc-current {
  color: var(--ph3a-text);
  font-weight: 600;
}

/* ── 10. TOAST SYSTEM — Bottom-right ─────────────────────────── */
.ph3a-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.ph3a-toast {
  pointer-events: all;
  background: var(--ph3a-white);
  border: 1px solid var(--ph3a-border);
  border-radius: 12px;
  box-shadow: var(--ph3a-shadow-lg);
  padding: 14px 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 300px;
  max-width: 400px;
  transform: translateX(120%);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.ph3a-toast.show { transform: translateX(0); }
.ph3a-toast.hiding { transform: translateX(120%); transition: transform .25s ease-in; }
.ph3a-toast .toast-icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; flex-shrink: 0;
}
.ph3a-toast.success .toast-icon { background: #F0FDF4; color: #16A34A; }
.ph3a-toast.error   .toast-icon { background: #FEF2F2; color: #DC2626; }
.ph3a-toast.warning .toast-icon { background: #FFFBEB; color: #D97706; }
.ph3a-toast.info    .toast-icon { background: #EFF6FF; color: #2563EB; }
.ph3a-toast .toast-body { flex: 1; }
.ph3a-toast .toast-title {
  font-size: 13.5px; font-weight: 700; color: var(--ph3a-text); line-height: 1.2;
}
.ph3a-toast .toast-msg {
  font-size: 12.5px; color: var(--ph3a-text-light); margin-top: 2px; line-height: 1.4;
}
.ph3a-toast .toast-close {
  background: none; border: none; color: #CBD5E0; cursor: pointer;
  font-size: 14px; padding: 0; line-height: 1; margin-top: 1px; flex-shrink: 0;
  transition: color .15s;
}
.ph3a-toast .toast-close:hover { color: var(--ph3a-text); }
/* Botão de ação inline no toast (Paulo 12/05/2026 #3) — pós-criação leva
   direto pro detalhe do recém-criado, evita procurar na lista. */
.ph3a-toast .ph3a-toast-acao {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity .15s, transform .1s;
}
.ph3a-toast.success .ph3a-toast-acao { background: #16A34A; color: #fff; }
.ph3a-toast.error   .ph3a-toast-acao { background: #DC2626; color: #fff; }
.ph3a-toast.warning .ph3a-toast-acao { background: #D97706; color: #fff; }
.ph3a-toast.info    .ph3a-toast-acao { background: #2563EB; color: #fff; }
.ph3a-toast .ph3a-toast-acao:hover { opacity: .9; color: #fff; text-decoration: none; }
.ph3a-toast .ph3a-toast-acao:active { transform: translateY(1px); }

/* Notificações topbar — link clicável muda fundo no hover pra dar feedback */
.notif-link { transition: filter .12s, background-color .12s; }
.notif-link:hover { filter: brightness(.96); text-decoration: none; }

/* ── 11. FLASH MESSAGES — Converte para toasts ────────────────── */
.flash-container { display: none; } /* Oculta alerts nativos — usamos toasts */

/* ── 12. DASHBOARD — KPI Cards Estilo HubSpot ─────────────────── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.kpi-card-v2 {
  background: var(--ph3a-white);
  border: 1px solid var(--ph3a-border);
  border-radius: var(--ph3a-radius-lg);
  padding: 18px 20px;
  box-shadow: var(--ph3a-shadow-sm);
  transition: box-shadow .2s, transform .2s;
  position: relative;
  overflow: hidden;
}
.kpi-card-v2:hover {
  box-shadow: var(--ph3a-shadow-md);
  transform: translateY(-2px);
}
/* Card-link clicável: tira sublinhado padrão de <a> e mantém comportamento visual idêntico ao card. */
a.kpi-card-v2,
a.kpi-card-v2:hover,
a.kpi-card-v2:visited,
a.kpi-card-v2:focus {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
a.kpi-card-v2.kpi-link { cursor: pointer; }
a.kpi-card-v2.kpi-link:hover {
  border-color: var(--kpi-color, var(--ph3a-primary));
}
a.kpi-card-v2.kpi-link:focus-visible {
  outline: 2px solid var(--kpi-color, var(--ph3a-primary));
  outline-offset: 2px;
}
.kpi-card-v2 .kpi-icon-wrap {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  margin-bottom: 12px;
}
.kpi-card-v2 .kpi-value {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #1A202C;
  line-height: 1;
  margin-bottom: 4px;
}
.kpi-card-v2 .kpi-label {
  font-size: 12.5px;
  color: var(--ph3a-text-light);
  font-weight: 500;
}
.kpi-card-v2 .kpi-trend {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11.5px;
  font-weight: 700;
  margin-top: 8px;
  padding: 2px 7px;
  border-radius: 20px;
}
.kpi-trend-up   { background: #F0FDF4; color: #16A34A; }
.kpi-trend-down { background: #FEF2F2; color: #DC2626; }
.kpi-trend-neutral { background: #F8FAFC; color: #718096; }
/* Barra colorida topo */
.kpi-card-v2::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--kpi-color, var(--ph3a-primary));
  border-radius: var(--ph3a-radius-lg) var(--ph3a-radius-lg) 0 0;
}

/* ── 13. ACTIVITY TIMELINE — Estilo HubSpot ──────────────────── */
.hs-timeline {
  position: relative;
  padding-left: 32px;
}
.hs-timeline::before {
  content: '';
  position: absolute;
  left: 11px; top: 6px; bottom: 0;
  width: 2px;
  background: var(--ph3a-border);
}
.hs-timeline-item {
  position: relative;
  margin-bottom: 20px;
}
.hs-timeline-item .tl-dot {
  position: absolute;
  left: -32px; top: 3px;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--ph3a-border);
}
.hs-timeline-item .tl-card {
  background: var(--ph3a-white);
  border: 1px solid var(--ph3a-border);
  border-radius: 10px;
  padding: 12px 16px;
  box-shadow: var(--ph3a-shadow-sm);
  transition: box-shadow .15s;
}
.hs-timeline-item .tl-card:hover { box-shadow: var(--ph3a-shadow-md); }
.hs-timeline-item .tl-time {
  font-size: 11px;
  color: var(--ph3a-text-light);
  margin-bottom: 4px;
}
.hs-timeline-item .tl-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ph3a-text);
  margin-bottom: 3px;
}
.hs-timeline-item .tl-body {
  font-size: 13px;
  color: var(--ph3a-text-light);
  line-height: 1.4;
}

/* ── 14. KANBAN — Cards Mais Ricos ──────────────────────────── */
.kanban-card {
  border-radius: var(--ph3a-radius);
  border: 1px solid var(--ph3a-border);
  box-shadow: var(--ph3a-shadow-sm);
}
.kanban-card:hover {
  box-shadow: var(--ph3a-shadow-md);
  transform: translateY(-2px);
}
.kanban-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.kanban-card-prob {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  background: rgba(16,185,129,.1);
  color: #059669;
}

/* ── 15. CONTACT INFO CARD — Deal Page ──────────────────────── */
.contact-info-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 20px;
  background: var(--ph3a-white);
  border: 1px solid var(--ph3a-border);
  border-radius: var(--ph3a-radius-lg);
  box-shadow: var(--ph3a-shadow-sm);
  flex-wrap: wrap;
}
.contact-info-bar .cib-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--ph3a-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.contact-info-bar .cib-name {
  font-size: 14px; font-weight: 700; color: #1A202C;
}
.contact-info-bar .cib-detail {
  font-size: 12px; color: var(--ph3a-text-light); margin-top: 1px;
}
.contact-info-bar .cib-actions {
  margin-left: auto;
  display: flex; gap: 8px; align-items: center;
}
.cib-action-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: 7px;
  border: 1.5px solid var(--ph3a-border);
  background: var(--ph3a-white);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ph3a-text);
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
}
.cib-action-btn:hover {
  border-color: var(--ph3a-primary);
  color: var(--ph3a-primary);
  text-decoration: none;
}
.cib-action-btn.email:hover { border-color: #2563EB; color: #2563EB; }
.cib-action-btn.whatsapp:hover { border-color: #16A34A; color: #16A34A; }

/* ── 16. SEARCH & FILTER BAR — Refinada ──────────────────────── */
.filter-bar {
  background: var(--ph3a-white);
  border: 1px solid var(--ph3a-border);
  border-radius: var(--ph3a-radius-lg);
  padding: 16px 20px;
  box-shadow: var(--ph3a-shadow-sm);
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.filter-bar .form-control,
.filter-bar .form-select {
  height: 36px;
  padding: 0 12px;
  font-size: 13.5px;
  border-radius: 8px;
  border-width: 1.5px;
}
.filter-bar .form-control.search-input {
  padding-left: 36px;
  min-width: 200px;
}
.filter-bar .search-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
}
.filter-bar .search-wrap .si {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: #a0aec0; font-size: 13px; pointer-events: none;
}

/* ── 17. EMPTY STATE — Estilo HubSpot ─────────────────────────── */
.empty-state-v2 {
  text-align: center;
  padding: 56px 20px;
}
.empty-state-v2 .es-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--ph3a-bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px;
  color: #CBD5E0;
  margin: 0 auto 18px;
}
.empty-state-v2 .es-title {
  font-size: 17px; font-weight: 700; color: #2D3748; margin-bottom: 6px;
}
.empty-state-v2 .es-text {
  font-size: 14px; color: var(--ph3a-text-light); margin-bottom: 20px;
  max-width: 320px; margin-left: auto; margin-right: auto; line-height: 1.5;
}
/* CTA contextual no empty state — botão laranja que leva direto pra
   ação correta (ex.: "Criar primeira Tarefa" → /tarefas/novo). Reduz
   cognitive load: vendedor novo abre lista vazia e sabe o que fazer. */
.empty-state-v2 .es-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--ph3a-primary);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(239, 89, 41, .25);
  transition: background .15s, box-shadow .15s, transform .1s;
}
.empty-state-v2 .es-cta:hover {
  background: var(--ph3a-primary-dark);
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(239, 89, 41, .35);
}
.empty-state-v2 .es-cta:active { transform: translateY(1px); }
.empty-state-v2 .es-cta i { font-size: 12px; }
.empty-state-v2 .es-cta-secundario {
  display: inline-block;
  margin-left: 10px;
  font-size: 12.5px;
  color: var(--ph3a-text-light);
  text-decoration: none;
}
.empty-state-v2 .es-cta-secundario:hover { color: var(--ph3a-primary); text-decoration: underline; }

/* ── 18. PIPELINE FUNIL — Mais Visual ────────────────────────── */
.pipeline-funil {
  gap: 4px;
}
.pf-step {
  border-radius: 8px;
  transition: all .18s;
}
.pf-step:hover {
  transform: none;
  filter: brightness(1.05);
}

/* ── 19. FORMS — Inputs Refinados ────────────────────────────── */
.form-control, .form-select {
  border-radius: 8px;
  border-width: 1.5px;
  font-size: 13.5px;
  padding: 9px 13px;
  transition: border-color .18s, box-shadow .18s;
}
.form-control:focus, .form-select:focus {
  box-shadow: 0 0 0 3px rgba(255,81,27,.10);
  border-color: var(--ph3a-primary);
}
.form-label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0;
  color: #4A5568;
  margin-bottom: 5px;
}
.form-section-title {
  font-size: 13px;
  color: var(--ph3a-text-light);
  font-weight: 700;
  border-bottom: 1.5px solid var(--ph3a-border);
  padding-bottom: 10px;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.form-section-title i { color: var(--ph3a-primary); }

/* ── 20. RESPONSIVO — Ajustes ─────────────────────────────────── */
@media (max-width: 1100px) {
  .topbar-search { max-width: 280px; margin: 0 12px; }
}
@media (max-width: 900px) {
  .topbar-search { display: none; }
}


