/* =========================================
   1. VARIÁVEIS E RESET GERAL
   ========================================= */
:root {
  --bg-app: #0f172a; 
  --bg-card: #1e293b; 
  --bg-input: #334155; 
  --border: #475569;
  --text-main: #f1f5f9; 
  --text-muted: #94a3b8;
  --primary: #3b82f6; 
  --primary-hover: #2563eb;
  --success: #10b981; 
  --warning: #f59e0b; 
  --danger: #ef4444; 
  --whatsapp: #25D366;
  --radius: 8px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.12);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.2);
  --font-title-lg: 18px;
  --font-title-md: 15px;
  --font-value-lg: 16px;
  --font-value-md: 14px;
  --font-body: 14px;
  --font-label: 11px;
  --font-micro: 10px;
}

* { box-sizing: border-box; }

body { 
  margin: 0; 
  padding: 0; 
  font-family: 'Segoe UI', system-ui, sans-serif; 
  background: var(--bg-app); 
  color: var(--text-main); 
  font-size: var(--font-body); 
  overflow: hidden; 
  min-width: 598px;
}

.app { 
  display: flex; 
  flex-direction: column; 
  height: 100vh; 
  position: relative; 
  min-width: 598px;
}

/* --- SCROLLBARS --- */
::-webkit-scrollbar { width: 6px; height: 6px; } 
::-webkit-scrollbar-track { background: var(--bg-app); } 
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* --- ANIMAÇÃO DE LOADING --- */
.spin > span { 
  animation: spinIcon 1s linear infinite; 
  display: inline-block; 
}
@keyframes spinIcon { 
  100% { transform: rotate(360deg); } 
}

/* =========================================
   2. TELA DE LOGIN
   ========================================= */
.login-container { 
  position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
  background: var(--bg-app); z-index: 2000; 
  display: flex; align-items: center; justify-content: center; padding: 20px; 
}
.login-box { 
  background: var(--bg-card); border: 1px solid var(--border); 
  padding: 40px; border-radius: 16px; width: 100%; max-width: 340px; 
  text-align: center; box-shadow: 0 10px 40px rgba(0,0,0,0.6); 
}
.login-box h2 { margin: 0 0 15px; color: var(--primary); font-size: 20px; }
.login-box input { margin-bottom: 15px; }
.status-error { color: var(--danger); margin-top: 10px; }

.login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.login-logo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(14,165,233,0.3);
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
}
.login-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.login-subtitle {
  color: #94a3b8;
  font-size: 13px;
  letter-spacing: 0.02em;
}

/* =========================================
   3. NAVEGAÇÃO E BARRA DE USUÁRIO
   ========================================= */
.main-nav { 
  display: flex; background: var(--bg-card); 
  border-bottom: 1px solid var(--border); 
  overflow-x: auto; flex-shrink: 0; padding-bottom: 0; 
}
.main-nav::-webkit-scrollbar { height: 12px; }
.main-nav::-webkit-scrollbar-track { background: #0b1120; border-radius: 6px; }
.main-nav::-webkit-scrollbar-thumb { background: #475569; border-radius: 6px; }
.main-nav::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
.nav-btn { 
  background: none; border: none; padding: 16px 16px; 
  color: var(--text-muted); font-weight: 600; font-size: var(--font-body); 
  cursor: pointer; border-bottom: 3px solid transparent; 
  white-space: nowrap; transition: color 0.2s; 
}
.nav-btn:hover { color: white; }
.nav-btn.active { 
  color: var(--primary); border-bottom-color: var(--primary); 
  background: rgba(59, 130, 246, 0.05); 
}

.user-bar { 
  background: #0b1120; padding: 10px 20px; 
  display: flex; justify-content: space-between; align-items: center; 
  font-size: 12px; border-bottom: 1px solid var(--border); flex-shrink: 0; 
}
.user-info-group { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.user-name { color: #34d399; font-weight:bold; }
.user-role { color: #64748b; font-size:10px; border:1px solid #334155; padding:2px 6px; border-radius:4px; }
.user-version {
  color: #93c5fd;
  border-color: #1d4ed8;
  background: rgba(37, 99, 235, 0.12);
}
.tag-separator { color: #475569; font-weight: 700; }
.btn-global-refresh { 
  background: none; border: 1px solid #334155; color: #94a3b8; 
  cursor: pointer; border-radius: 4px; padding: 4px 8px; 
  font-size: 16px; transition: 0.2s; display: flex; align-items: center; 
}
.btn-global-refresh:hover { 
  color: white; border-color: white; background: rgba(255,255,255,0.1); 
}
.logout-link { 
  background: none; border: none; color: var(--danger); 
  cursor: pointer; text-decoration: underline; font-size: 11px; 
}
.user-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.msg-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  border: 1px solid #2563eb;
  color: #ffffff;
  padding: 5px 11px;
  border-radius: 9px;
  font-weight: 700;
  font-size: 11px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28);
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}
.msg-toggle:hover {
  filter: brightness(1.05);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.34);
  transform: translateY(-1px);
}
.msg-toggle:active { transform: translateY(0); }
.msg-toggle .material-symbols-outlined { font-size: 16px; }
.msg-toggle-label { text-transform: none; letter-spacing: 0; }

.tag-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tag-controls.subtle {
  gap: 4px;
  opacity: 0.75;
}
.tag-controls.subtle:hover {
  opacity: 1;
}
.tag-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tag-inline-label {
  color: #94a3b8;
  font-weight: 700;
  font-size: 11px;
}
.toggle-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: #94a3b8;
  font-size: 11px;
  user-select: none;
}
.toggle-pill input { display: none; }
.pill-slider {
  width: 32px;
  height: 18px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 999px;
  position: relative;
  transition: 0.2s;
}
.pill-slider::after {
  content: "";
  width: 12px;
  height: 12px;
  background: #94a3b8;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: 0.2s;
}
.toggle-pill input:checked + .pill-slider {
  background: #0ea5e9;
  border-color: #0ea5e9;
  box-shadow: 0 0 0 4px rgba(14,165,233,0.15);
}
.toggle-pill input:checked + .pill-slider::after {
  transform: translateX(14px);
  background: #0b1120;
}
.pill-label {
  font-weight: 700;
  letter-spacing: 0.02em;
}
.btn-tag-apply {
  background: #1e293b;
  color: #cbd5e1;
  border: 1px solid #334155;
  border-radius: 6px;
  padding: 6px 10px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
  transition: transform 0.1s, box-shadow 0.1s, background 0.1s;
}
.btn-tag-apply:hover { background: #0f172a; }
.btn-tag-apply.subtle {
  padding: 4px 8px;
  font-weight: 600;
}

/* =========================================
   4. LAYOUT GERAL, CARDS E INPUTS
   ========================================= */
.tab-content { 
  display: none; flex: 1; overflow-y: auto; 
  padding: 20px; padding-bottom: 90px; 
  min-width: 598px;
}
.tab-content.active { display: block; }

.app-header { 
    margin-bottom: 20px; border-bottom: 1px solid var(--border); 
    padding-bottom: 10px; display: flex; justify-content: space-between; align-items: center; 
    gap: 10px; flex-wrap: wrap;
}
.app-header h1 { font-size: var(--font-title-lg); margin: 0; color: white; white-space: nowrap; }

.card { 
  background: var(--bg-card); border: 1px solid var(--border); 
  border-radius: 12px; padding: 20px; margin-bottom: 20px; 
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); 
  width: 100%; max-width: 100%; box-sizing: border-box;
}
.card h2 { 
  margin: 0 0 15px; font-size: var(--font-label); text-transform: uppercase; 
  color: var(--text-muted); letter-spacing: 0.8px; font-weight: 700; 
}

.section-header { display:flex; justify-content:space-between; align-items:center; gap:8px; margin-bottom:8px; }
.section-title {
  margin: 0;
  font-size: var(--font-label);
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  font-weight: 800;
}
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.full-width { grid-column: span 2; }
.full-col { grid-template-columns: 1fr; }

.dash-select {
  width: auto;
  min-width: 160px;
  height: 36px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: white;
  font-size: 12px;
}
.dash-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(59,130,246,0.2);
  outline: none;
}

input, select, textarea, .calc-input { 
  width: 100%; background: var(--bg-input); border: 1px solid var(--border); 
  color: white; padding: 10px 12px; border-radius: var(--radius); 
  font-size: 13px; outline: none; transition: border-color 0.2s; height: 42px; 
}
textarea { height: auto; font-family: inherit; }
input:focus, select:focus, textarea:focus { 
  border-color: var(--primary); box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2); 
}
.input-readonly { background: #0f172a; border: none; color: #64748b; }

.client-suggestions {
  position: absolute;
  left: 0; right: 0; top: calc(100% + 4px);
  background: #0b1224;
  border: 1px solid #334155;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  max-height: 240px;
  overflow-y: auto;
  z-index: 80;
}
.client-suggestions.hidden { display: none; }
.client-suggestion-item {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: white;
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.client-suggestion-item:last-child { border-bottom: none; }
.client-suggestion-item:hover { background: rgba(59, 130, 246, 0.12); }
.client-suggestion-title { font-weight: 700; font-size: 13px; }
.client-suggestion-meta { font-size: 12px; color: #94a3b8; line-height: 1.3; }
.client-suggestion-meta.muted { color: #64748b; }

.primary-btn { 
  background: var(--primary); color: white; border: none; width: 100%; 
  padding: 14px; border-radius: var(--radius); font-weight: 600; 
  cursor: pointer; transition: background 0.2s; font-size: 14px; 
}
.primary-btn:hover { background: var(--primary-hover); }
.primary-btn:disabled { opacity: 0.7; cursor: not-allowed; }

.secondary-btn { 
  background: transparent; color: var(--primary); border: 1px solid var(--border); 
  padding: 8px 14px; border-radius: var(--radius); cursor: pointer; 
  font-size: 12px; transition: all 0.2s; display: flex; 
  align-items: center; justify-content: center; gap: 5px; 
}
.secondary-btn:hover { border-color: var(--primary); background: rgba(59, 130, 246, 0.1); }

.dashed-btn { 
  border-style: dashed; width: 100%; margin-bottom: 20px; 
  padding: 12px; color: var(--text-muted); 
}
.dashed-btn:hover { color: white; border-color: white; }

.small { padding: 5px 10px; font-size: 11px; height: auto; }
.icon-only { 
  display: flex; align-items: center; justify-content: center; 
  width: 32px; height: 32px; padding: 0; 
}

.checkbox-row {
    display: flex; align-items: center; gap: 10px;
    background: #0f172a; border: 1px solid var(--border);
    padding: 10px; border-radius: 6px; cursor: pointer;
}
.checkbox-row input[type="checkbox"] {
    width: 18px; height: 18px; accent-color: var(--primary); cursor: pointer;
}
.checkbox-row label { font-size: 13px; color: #cbd5e1; cursor: pointer; }

/* CHECKLIST VISUAL (SEM INPUT) */
.checklist-item {
    display: flex; align-items: center; gap: 10px;
    background: #0f172a; border: 1px solid var(--border);
    padding: 10px; border-radius: 6px;
    color: #cbd5e1; font-size: 13px;
}

/* =========================================
   13. GERADOR DE IMAGEM (IMG)
   ========================================= */
.img-subnav { display:flex; gap:6px; flex-wrap:wrap; }
.img-sub-content.hidden { display:none; }
.img-preview-wrapper {
  background: #0b1120;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  overflow-x: auto;
}
.img-render-board {
  width: 1400px;
  max-width: 100%;
  margin: 0 auto;
  background: #0b0b0f;
  color: #0f172a;
  border-radius: 0;
  padding: 22px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
  position: relative;
}
.img-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  gap: 10px;
}
.img-top-right { display:flex; align-items:center; gap:10px; max-width: 280px; }
.img-title {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #f8fafc;
}
.img-subtitle {
  font-size: 16px;
  color: #e2e8f0;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.img-logo { width: 68px; height: 68px; object-fit: contain; }
.img-contact {
  font-size: 13px;
  color: #f8fafc;
  margin-bottom: 6px;
  font-weight: 600;
  text-align: right;
  white-space: normal;
  line-height: 1.2;
}
.img-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}
.img-grid.layout-three { grid-template-columns: repeat(3, minmax(320px, 1fr)); }
.img-grid.layout-four { grid-template-columns: repeat(2, minmax(360px, 1fr)); }
.img-grid.layout-many { grid-template-columns: repeat(3, minmax(320px, 1fr)); }
.img-card {
  background: #ffffff;
  border: 2px solid var(--img-accent, var(--primary));
  border-radius: 12px;
  padding: 18px;
  position: relative;
  overflow: hidden;
  color: #0f172a;
  min-height: 460px;
}
.img-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  border: 2px solid var(--img-accent, var(--primary));
  opacity: 0.12;
  pointer-events: none;
}
.img-card-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
  position: relative;
}
.img-card-title { font-weight: 800; color: #0f172a; text-align:center; margin-bottom: 4px; padding: 0 6px; }
.img-card-material { font-size: 12px; color: #7c2d12; font-weight: 800; }
.img-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  margin-bottom: 8px;
}
.img-card-body { font-size: 12px; color: #1f2937; line-height: 1.5; padding: 0 4px; min-height: 48px; }
.img-card-list { margin: 6px 0 8px 0; padding-left: 0; list-style: none; }
.img-card-list div { margin-bottom: 6px; }
.img-price-row { color: #0f172a; font-weight: 800; font-size: 14px; display:flex; gap:6px; align-items:center; justify-content:center; text-align:center; margin: 6px 0; white-space: nowrap; flex-wrap: nowrap; padding: 0 10px; }
.img-price-row span { color: #475569; font-weight: 500; font-size: 11px; white-space: nowrap; }
.img-footer {
  margin-top: 14px;
  text-align: center;
  font-size: 11px;
  color: #94a3b8;
}
.img-prod-form {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 12px;
  background: #0f172a;
}
.triad-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 4px;
  max-height: 220px;
  overflow: auto;
}
.img-prod-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.img-prod-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
  color: #94a3b8;
  font-size: 11px;
}
.img-preview-status { font-size: 12px; color: #94a3b8; }
.img-cat-board {
  width: 1122px;
  min-height: 1587px;
  background: #ffffff;
  color: #0f172a;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  margin: 0 auto;
}
.cat-topbar { display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:12px; }
.cat-title { font-size: 22px; font-weight: 800; }
.cat-date { font-size: 12px; color:#475569; }
.cat-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap:12px; }
.cat-card { border:1px solid #e2e8f0; border-radius:10px; padding:10px; background:#fff; display:flex; flex-direction:column; gap:6px; }
.cat-card img { width:100%; aspect-ratio: 4/3; object-fit: cover; border-radius:8px; background:#f8fafc; }
.cat-card-title { font-weight:700; font-size:13px; color:#0f172a; }
.cat-card-price { font-weight:800; color: var(--cat-accent, #16a34a); font-size:13px; }
.cat-footer { margin-top:12px; text-align:center; font-size:12px; color:#475569; }

/* =========================================
   5. HUB & DASHBOARD
   ========================================= */
.kpi-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; margin-bottom: 25px; }
.kpi-grid.responsive { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.kpi-metagrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}
.kpi-meta-card {
  background: var(--bg-card);
  border:1px solid var(--border);
  border-radius:12px;
  padding:10px;
  display:flex;
  flex-direction:column;
  gap:4px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
  overflow: visible;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 74px;
}
.kpi-meta-header {
  display:flex;
  justify-content:center;
  align-items:center;
  min-width:0;
  width: 100%;
}
.kpi-meta-title {
  font-size: 10px;
  text-transform: none;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
  width: 100%;
}
.kpi-meta-value {
  font-size: clamp(13px, 2.2vw, 16px);
  font-weight: 800;
  color: white;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  line-height: 1.15;
  white-space: nowrap;
  word-break: keep-all;
  width: 100%;
}
.kpi-meta-sub { display:flex; gap:6px; font-size:10px; color: var(--text-muted); align-items:center; flex-wrap:wrap; }
.badge-meta { padding:3px 7px; border-radius:999px; font-weight:700; font-size:9px; background: rgba(148,163,184,0.12); color:#e2e8f0; border:1px solid rgba(148,163,184,0.2); }
.insights-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap:12px; margin-bottom:12px; }
.insights-grid-3x2 { grid-template-columns: repeat(4, 1fr); column-gap:10px; row-gap:10px; }
.fixed-grid-3x2 { grid-auto-rows: 1fr; align-items: stretch; }
.kpi-card { 
  background: var(--bg-card); border: 1px solid var(--border); 
  border-radius: 12px; padding: 14px; display: flex; align-items: center; gap: 10px; 
}
.kpi-card.full-span { grid-column: span 2; }
.kpi-icon { 
  width: 42px; height: 42px; border-radius: 10px; display: flex; 
  align-items: center; justify-content: center; flex-shrink: 0; 
}
.icon-yellow { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.icon-green { background: rgba(16, 185, 129, 0.15); color: var(--success); }
.icon-blue { background: rgba(59, 130, 246, 0.15); color: var(--primary); }
.icon-purple { background: rgba(139, 92, 246, 0.15); color: #a78bfa; }
.kpi-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kpi-info strong { display:block; }
.kpi-label { font-size: 10px; text-transform: uppercase; color: var(--text-muted); font-weight: 800; letter-spacing: 0.08em; }
.kpi-value { font-size: 17px; font-weight: 800; color: white; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.1; }
.kpi-card-sub { white-space: nowrap; font-size: 13px; line-height: 1.2; }

/* Funil */
.funnel-section { margin-top: 20px; margin-bottom: 20px; }
.funnel-header { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom:12px; }
.funnel-sub { color: var(--text-muted); font-size: 11px; letter-spacing: 0.02em; }
.funnel-container { display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap:10px; align-items:stretch; }
.fin-funnel { 
  grid-template-columns: repeat(4, minmax(120px, 1fr)); 
  gap: 8px;
}
.funnel-step { 
  background: #0f172a; border: 1px solid var(--border); border-radius: 14px; 
  padding: 12px; display: flex; flex-direction: column; 
  align-items: center; justify-content: center; gap: 6px; 
  text-align: center; box-shadow: 0 6px 18px rgba(0,0,0,0.25); 
}
.fin-kpi-grid { 
  grid-template-columns: repeat(2, minmax(200px, 1fr)); 
  gap: 12px; 
  width: 100%;
}
.fin-kpi-card { 
  padding: 8px; 
  border-radius: 12px; 
  box-shadow: 0 6px 18px rgba(0,0,0,0.22); 
  min-height: 70px;
}
.fin-kpi-card .kpi-meta-title { font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase; }
.fin-kpi-card .kpi-meta-value { font-size: 15px; line-height: 1.2; white-space: nowrap; }
.fin-badge { 
  background: rgba(59,130,246,0.16); 
  color: #bfdbfe; 
  font-size: 10px; 
  font-weight: 800; 
  padding: 4px 8px; 
  border-radius: 999px; 
  border: 1px solid rgba(59,130,246,0.35); 
  margin-top: 4px;
}
.fin-vendido { 
  background: linear-gradient(140deg, rgba(34,197,94,0.16), rgba(21,128,61,0.08)); 
  border-color: rgba(34,197,94,0.28); 
}
.fin-recebido { 
  background: linear-gradient(140deg, rgba(16,185,129,0.16), rgba(4,120,87,0.08)); 
  border-color: rgba(16,185,129,0.28); 
}
.fin-sinal { 
  background: linear-gradient(140deg, rgba(245,158,11,0.16), rgba(234,179,8,0.08)); 
  border-color: rgba(245,158,11,0.28); 
}
.fin-receber { 
  background: linear-gradient(140deg, rgba(249,115,22,0.16), rgba(239,68,68,0.08)); 
  border-color: rgba(249,115,22,0.3); 
}
.funnel-leads { 
  background: linear-gradient(135deg, rgba(59,130,246,0.16), rgba(59,130,246,0.04)); 
  border-color: rgba(59,130,246,0.35); 
}
.funnel-orc { 
  background: linear-gradient(135deg, rgba(234,179,8,0.18), rgba(234,179,8,0.06)); 
  border-color: rgba(234,179,8,0.38); 
}
.funnel-vendas { 
  background: linear-gradient(135deg, rgba(34,197,94,0.16), rgba(34,197,94,0.05)); 
  border-color: rgba(34,197,94,0.35); 
}
.funnel-label { font-size: var(--font-label); text-transform: uppercase; color: var(--text-muted); font-weight: 800; letter-spacing: 0.05em; }
.funnel-value { font-size: var(--font-value-lg); font-weight: 800; color: white; }
.funnel-rate-badge { 
  background: rgba(59, 130, 246, 0.18); color: #bfdbfe; font-size: 11px; 
  font-weight: 800; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(59, 130, 246, 0.35); 
}
.funnel-vendas .funnel-rate-badge { background: rgba(16,185,129,0.15); color: #bbf7d0; border-color: rgba(16,185,129,0.35); }

.hub-subnav { display:flex; gap:8px; margin-bottom:14px; flex-wrap:wrap; }
.hub-sub-btn { background:#0f172a; border:1px solid var(--border); color:#cbd5e1; padding:8px 12px; border-radius:10px; cursor:pointer; font-weight:700; font-size:12px; }
.hub-sub-btn.active { border-color: var(--primary); color:white; box-shadow:0 0 0 1px rgba(59,130,246,0.25); }
.follow-alert { display:inline-flex; width:8px; height:8px; background: var(--danger); border-radius:50%; margin-left:6px; vertical-align:middle; }
.follow-alert.hidden { display:none; }
.follow-summary-bar { background: var(--bg-app); padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); box-shadow: 0 4px 12px rgba(0,0,0,0.2); margin-bottom: 12px; display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.follow-grid { display:grid; grid-template-columns:1fr; gap:14px; }
.follow-grid > div { min-width:0; }
.follow-block-header { font-size:11px; text-transform:uppercase; color: var(--text-muted); letter-spacing:0.05em; margin-bottom:6px; }
.follow-grid .task-row { background: rgba(15,23,42,0.8); border:1px solid var(--border); border-radius:12px; }
.follow-summary { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin: 8px 0 14px; }
.summary-label { font-size:11px; text-transform:uppercase; color: var(--text-muted); letter-spacing:0.05em; font-weight:700; }
.summary-pills { display:flex; gap:6px; flex-wrap:wrap; }
.summary-pill { padding:6px 10px; border-radius:999px; background:#0f172a; border:1px solid var(--border); color:#cbd5e1; font-weight:700; font-size:11px; }
.summary-pill.t1 { background:#3b82f6; color:#e0ecff; border-color: rgba(59,130,246,0.4); }
.summary-pill.t2 { background:#22c55e; color:#e7ffe8; border-color: rgba(34,197,94,0.4); }
.summary-pill.t3 { background:#f59e0b; color:#0b1224; border-color: rgba(245,158,11,0.4); }
.summary-pill.t4 { background:#a855f7; color:#f5e8ff; border-color: rgba(168,85,247,0.4); }
.summary-pill.t5 { background:#ef4444; color:#ffe4e6; border-color: rgba(239,68,68,0.4); }
.follow-card { background: rgba(15,23,42,0.9); border:1px solid rgba(148,163,184,0.2); border-radius:12px; padding:14px; display:grid; grid-template-columns:1fr auto; gap:12px; align-items:center; box-shadow:0 8px 24px rgba(0,0,0,0.2); margin-bottom:16px; }
.follow-card:hover { border-color: var(--primary); }
.follow-card-title { font-weight:800; color:white; font-size:13px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.follow-card-meta { font-size:11px; color:#94a3b8; display:flex; gap:8px; white-space:nowrap; }
.follow-card-desc { font-size:11px; color:#cbd5e1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.badge-attempt { padding:4px 8px; border-radius:999px; font-size:10px; font-weight:800; color:white; }
.att-1 { background:#3b82f6; }
.att-2 { background:#22c55e; }
.att-3 { background:#f59e0b; color:#0b1224; }
.att-4 { background:#a855f7; }
.att-5 { background:#ef4444; }
.follow-card-actions { display:flex; gap:6px; align-items:center; }

/* Hub - Equipe */
.hub-team-cardwrap { margin-top: 6px; }
.hub-team-grid { 
  display:grid; 
  grid-template-columns: 1fr; 
  gap:12px; 
  align-items:stretch; 
  max-width: 1100px; 
  margin: 0 auto; 
}
.hub-team-card { 
  background: linear-gradient(145deg, rgba(15,23,42,0.95), rgba(15,23,42,0.8));
  border: 1px solid var(--border); border-radius: 14px; padding: 16px; 
  box-shadow: 0 8px 26px rgba(0,0,0,0.18); display:flex; flex-direction:column; gap:12px; height:100%;
  max-width: 100%;
}
.hub-team-header { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.hub-team-name { font-weight:800; color:white; font-size:var(--font-title-md); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.hub-team-period { font-size:10px; text-transform:uppercase; letter-spacing:0.06em; color: var(--text-muted); padding:4px 8px; border-radius:999px; border:1px solid var(--border); background:#0f172a; }
.hub-team-metric-grid { display:grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap:8px; }
.hub-team-pill { 
  background:#0f172a; border:1px solid var(--border); border-radius:10px; padding:9px 10px; 
  display:flex; flex-direction:column; gap:4px; min-height:68px; box-shadow:0 4px 12px rgba(0,0,0,0.16);
  position: relative; overflow:hidden;
}
.hub-team-pill-label { font-size:var(--font-micro); color: var(--text-muted); font-weight:700; text-transform:uppercase; letter-spacing:0.04em; }
.hub-team-pill-value { font-size:var(--font-value-md); color:white; font-weight:800; line-height:1.05; word-break:keep-all; }
.hub-team-pill.badge-top::after {
  content: attr(data-badge);
  position:absolute;
  right:8px; bottom:8px;
  background: rgba(255,255,255,0.08);
  color: #e2e8f0;
  padding:2px 6px;
  border-radius:999px;
  font-size:10px;
  font-weight:700;
  border:1px solid rgba(255,255,255,0.12);
}
.hub-team-pill.tone-yellow { background: linear-gradient(135deg, rgba(234,179,8,0.16), rgba(234,179,8,0.04)); border-color: rgba(234,179,8,0.35); }
.hub-team-pill.tone-green { background: linear-gradient(135deg, rgba(34,197,94,0.16), rgba(34,197,94,0.04)); border-color: rgba(34,197,94,0.35); }
.hub-team-pill.tone-blue { background: linear-gradient(135deg, rgba(59,130,246,0.16), rgba(59,130,246,0.04)); border-color: rgba(59,130,246,0.35); }
.hub-team-pill.tone-slate { background: rgba(15,23,42,0.8); }
.hub-team-empty { color: #94a3b8; padding: 6px 0; }

/* Pills / tags (padronização) */
.pill {
  --pill-color: #cbd5e1;
  --pill-bg: rgba(148,163,184,0.12);
  --pill-border: rgba(148,163,184,0.25);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  color: var(--pill-color);
  background: var(--pill-bg);
  border: 1px solid var(--pill-border);
  white-space: nowrap;
}

/* Metas */
.meta-block { margin-bottom: 20px; }
.meta-header { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 12px; font-weight: 500; }
.progress-bg { background: #0f172a; height: 10px; border-radius: 5px; border: 1px solid var(--border); overflow:hidden; }
.progress-bar { height: 100%; transition: width 0.5s ease; }
.bar-purple { background: linear-gradient(90deg, #8b5cf6, #d946ef); }
.bar-green { background: linear-gradient(90deg, #10b981, #34d399); }
.meta-footer { display: flex; justify-content: space-between; font-size: 11px; margin-top: 6px; color: var(--text-muted); }
.config-box { 
  background: #0f172a; padding: 15px; border-radius: 8px; margin-top: 10px; 
  border: 1px dashed var(--border); display: flex; flex-direction: column; gap: 10px; 
}

/* =========================================
   6. CALCULADORA
   ========================================= */
.calc-row { 
  background: #162032; border: 1px solid var(--border); border-radius: 10px; 
  padding: 15px; margin-bottom: 15px; position: relative; box-shadow: 0 2px 4px rgba(0,0,0,0.2); 
}
.btn-remove-calc { 
  position: absolute; top: -10px; right: -10px; background: var(--danger); 
  color: white; width: 24px; height: 24px; border-radius: 50%; 
  border: 2px solid var(--bg-card); cursor: pointer; display: flex; 
  align-items: center; justify-content: center; z-index: 10; 
}
.calc-grid-top { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.calc-grid-math { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.span-2 { grid-column: span 2; }
.mini-label { font-size: var(--font-label); color: var(--text-muted); display: block; margin-bottom: 4px; }
.calc-input[readonly] { background: #0f172a; color: var(--success); border-color: transparent; font-weight: bold; text-align: center; }
.msg-preview-box { 
  background: #0f172a; border: 1px dashed var(--border); padding: 12px; 
  border-radius: 6px; color: #cbd5e1; font-family: monospace; font-size: 11px; 
  white-space: pre-wrap; margin: 12px 0; line-height: 1.4; 
}
.calc-actions { display: flex; gap: 10px; }
.btn-msg-action { 
  flex: 1; background: #334155; color: white; border: 1px solid var(--border); 
  border-radius: 6px; padding: 10px; cursor: pointer; display: flex; 
  align-items: center; justify-content: center; font-weight: 600; font-size: 12px; gap: 5px; height: 42px; 
}
.edit-mode-banner { 
  background: rgba(245, 158, 11, 0.1); border: 1px dashed #f59e0b; 
  color: #f59e0b; padding: 10px; border-radius: 6px; margin-bottom: 15px; 
  text-align: center; font-weight: bold; font-size: 12px; 
  display: flex; justify-content: space-between; align-items: center; 
}
.btn-cancel-edit { background: none; border: none; color: #f59e0b; text-decoration: underline; cursor: pointer; font-size: 11px; }

/* =========================================
   7. LEADS (PROSPECÇÃO)
   ========================================= */
.lead-card { 
  background: var(--bg-card); border: 1px solid var(--border); 
  border-radius: 10px; padding: 15px; margin-bottom: 12px; 
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.lead-card.contatado { opacity: 0.6; background: #0f172a; border-style: dashed; }
.lead-left { 
  display: flex; flex-direction: column; gap: 4px; 
  flex: 1 1 auto; min-width: 0; max-width: calc(100% - 120px);
}
.lead-nicho { 
  font-size: 10px; text-transform: uppercase; color: var(--primary); font-weight: 700; 
  background: rgba(59, 130, 246, 0.1); padding: 2px 6px; border-radius: 4px; align-self: flex-start; 
}
.lead-empresa { font-weight: bold; color: white; font-size: 14px; }
.lead-address { 
  font-size: 11px; color: #64748b; line-height: 1.35; 
  word-break: break-word; overflow-wrap: break-word;
}
.btn-prospect { 
  background: #334155; border: 1px solid var(--border); color: var(--success); 
  border-radius: 8px; padding: 8px 12px; cursor: pointer; font-size: 16px; 
  transition: 0.2s; display:flex; align-items:center; justify-content:center; 
}
.btn-prospect:hover { background: var(--success); color: white; border-color: var(--success); transform: scale(1.05); }

.lead-filter-bar { margin-bottom: 15px; }
.lead-filter-bar .checkbox-row {
  background: transparent; border: 1px solid var(--border); padding: 8px 12px;
  border-radius: 8px; display: flex; align-items: center; gap: 8px; cursor: pointer; transition: all 0.2s;
}
.lead-filter-bar .checkbox-row:hover { background: #1e293b; border-color: var(--primary); }
.lead-filter-bar input[type="checkbox"] {
  width: 16px; height: 16px; margin: 0; cursor: pointer; accent-color: var(--primary);
}

.lead-nav { 
  display:flex; gap:8px; margin-bottom:12px; padding-bottom:8px; 
  border-bottom:1px solid var(--border); flex-wrap:wrap; 
}
.lead-nav-btn {
  background: transparent; border: 1px solid var(--border); color: var(--text-muted);
  padding: 8px 14px; border-radius: 8px; cursor: pointer; font-size: 12px; font-weight: 600;
  display: flex; align-items: center; gap: 6px; transition: all 0.2s;
}
.lead-nav-btn.active { background: #334155; color: white; border-color: #475569; }
.leads-sub-content.hidden { display: none; }

.lead-scrape-note { 
  display:flex; gap:8px; align-items:flex-start; 
  background: #0f172a; border: 1px dashed var(--border); 
  padding: 10px; border-radius: 8px; color: #cbd5e1;
}
.lead-scrape-status { font-size: 11px; color: #9ca3af; margin: 0; min-height: 14px; }
.lead-scrape-log {
  background: #0b1120; border: 1px solid #334155; border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: #cbd5e1; font-size: 11px; padding: 10px; min-height: 60px;
  max-height: 200px; overflow-y: auto; white-space: pre-wrap;
}

/* =========================================
   8. LISTAS (PIPELINE & VENDAS)
   ========================================= */
.pipeline-header h1 { margin-bottom: 0; }
.pipeline-header { flex-direction: column; align-items: flex-start; gap: 10px; width: 100%; }
.pipeline-toolbar { 
  display: flex; 
  gap: 12px; 
  align-items: flex-end; 
  width: 100%; 
  flex-wrap: nowrap; 
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 4px;
}
.pipeline-toolbar > * { min-width: 180px; flex: 0 0 auto; }
.filter-stack { display: flex; flex-direction: column; gap: 6px; min-width: 180px; flex:1 1 0; }
.filter-label { font-size: var(--font-micro); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; }
.filter-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.compact-select { width: auto; min-width: 160px; height: 36px; padding: 8px 10px; border-radius: 10px; background: var(--bg-input); border: 1px solid var(--border); color: white; font-size: 12px; }
.compact-select:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(59,130,246,0.2); outline: none; }
.date-range { display: flex; align-items: center; gap: 6px; }
.date-input-dark { background: var(--bg-input); border: 1px solid var(--border); color: white; border-radius: 10px; padding: 8px 10px; height: 36px; font-size: 12px; }
.date-input-dark:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(59,130,246,0.2); outline: none; }
.date-sep { color: var(--text-muted); font-size: var(--font-micro); letter-spacing: 0.02em; }
.followup-chip-row { display: flex; gap: 8px; align-items: center; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
.chip-toggle { cursor: pointer; display: inline-block; }
.chip-toggle input { display: none; }
.chip-toggle .chip-text { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 12px; background: rgba(148,163,184,0.12); border: 1px solid var(--border); color: #e2e8f0; font-weight: 700; font-size: 11px; letter-spacing: 0.01em; transition: all 0.15s ease; white-space: nowrap; }
.chip-toggle:hover .chip-text { border-color: var(--primary); }
.chip-toggle input:checked + .chip-text { background: var(--primary); border-color: var(--primary); color: white; box-shadow: 0 0 0 1px rgba(59,130,246,0.25); }
.pipeline-actions { display: flex; gap: 6px; align-items: center; justify-content: flex-end; flex-wrap: wrap; flex: 0 0 auto; justify-self: end; }
.pipeline-actions .secondary-btn { min-width: 36px; }
@media (max-width: 980px) {
  .pipeline-toolbar { flex-wrap: nowrap; }
  .filter-stack { min-width: 160px; }
  .followup-chip-row { flex-wrap: nowrap; }
}
.followup-line { display:flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; padding-top: 2px; }
.btn-followup-cta { background: var(--primary); color: white; border: 1px solid var(--primary); padding: 10px 18px; border-radius: 999px; font-size: 11px; font-weight: 800; cursor: pointer; transition: all 0.2s ease; margin-left: auto; letter-spacing:0.02em; box-shadow:none; }
.btn-followup-cta:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.modal-card.followup-modal { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 12px 30px rgba(0,0,0,0.45); max-width: 520px; }
.followup-header-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.followup-title { margin: 0; font-size: 18px; color: white; }
.followup-meta { margin: 4px 0 0; color: var(--text-muted); font-size: 12px; }
.followup-pill { padding: 6px 12px; border-radius: 999px; background: linear-gradient(120deg, rgba(59,130,246,0.4), rgba(14,165,233,0.3)); color: white; font-weight: 800; font-size: 11px; border: 1px solid rgba(59,130,246,0.35); }
.followup-card { background: #0f172a; border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.followup-textarea { width: 100%; background: #0b1224; border: 1px solid #334155; border-radius: 10px; color: white; font-size: 13px; min-height: 120px; padding: 10px; resize: vertical; outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
.followup-textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(59,130,246,0.25); }
.followup-hint { margin: 10px 0 6px; color: var(--text-muted); font-size: 12px; }
.followup-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.followup-actions-left, .followup-actions-right { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.followup-modal .primary-btn, .followup-modal .secondary-btn { width: auto; border-radius: 10px; padding: 10px 14px; }
.followup-modal .primary-btn { min-width: 130px; }
.followup-modal .secondary-btn.small { padding: 8px 12px; }
.followup-modal .danger-outline { color: #fca5a5; border-color: rgba(239,68,68,0.4); }
.followup-modal .danger-outline:hover { background: rgba(239,68,68,0.12); }
.follow-template-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap:10px; margin:10px 0; }
.follow-template-grid textarea { min-height: 110px; resize: vertical; }
.followup-line.cad-orcamento_enviado .btn-followup-cta { background: #3b82f6; border-color: #3b82f6; }
.followup-line.cad-aguardando_arte .btn-followup-cta { background: #a855f7; border-color: #a855f7; }
.followup-line.cad-negociacao .btn-followup-cta { background: #f59e0b; border-color: #f59e0b; color:#0b1224; }
.followup-line.cad-novo_lead .btn-followup-cta { background: #10b981; border-color: #10b981; }
.client-name { 
  max-width: 180px; 
  width: min(45%, 180px); 
  white-space: nowrap; 
  overflow: hidden; 
  text-overflow: ellipsis; 
  flex-shrink: 1; 
}
@media (max-width: 900px) {
  .client-name { max-width: 160px; width: min(50%, 160px); }
}
@media (max-width: 640px) {
  .client-name { max-width: 140px; width: 55vw; }
}
.search-row { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin: 6px 0 12px; }
.search-row .search-bar-local { flex:1 1 320px; max-width: 560px; margin: 0; }
.search-row .search-input { height: 42px; }
.search-actions { display:none; }
 
.list-card { 
  background: var(--bg-card); border: 1px solid var(--border); 
  border-radius: 10px; padding: 15px; margin-bottom: 12px; position: relative; 
  width: 100%; box-sizing: border-box;
}
.list-card.warning-followup { border-left: 3px solid #f59e0b; background: rgba(245, 158, 11, 0.05); }

.btn-del-absolute {
  position: absolute; top: 10px; right: 10px; background: transparent; 
  border: none; color: #ef4444; cursor: pointer; opacity: 0.6; padding: 4px; border-radius: 4px; z-index: 5;
}
.btn-del-absolute:hover { opacity: 1; background: rgba(239, 68, 68, 0.1); }

.card-header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.card-title { font-size: 15px; font-weight: 700; color: var(--text-main); flex-grow: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 10px; margin: 0; }
.card-date-vendedor { font-size: 10px; color: var(--text-muted); font-weight: 500; white-space: nowrap; }

.card-highlight { 
  background: #0f172a; padding: 10px; border-radius: 6px; 
  font-size: 12px; color: #cbd5e1; border: 1px solid var(--border); margin-bottom: 10px;
}

.card-actions-row { 
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px; 
    margin-top: 5px; justify-content: space-between;
    border-top: 1px solid rgba(255,255,255,0.05); padding-top: 10px;
}

.pipeline-select { 
  padding: 0 8px; font-size: 11px; border-radius: 6px; background: #334155; 
  color: white; border: 1px solid var(--border); height: 32px; max-width: 120px; 
}

.icon-btn-group { display: flex; gap: 8px; align-items: center; }
.icon-btn {
    width: 32px; height: 32px; border-radius: 6px; 
    display: flex; align-items: center; justify-content: center;
    background: #334155; color: #94a3b8; cursor: pointer; border: 1px solid var(--border);
}
.icon-btn:hover { background: #475569; color: white; }
.btn-whatsapp { color: var(--whatsapp); border-color: rgba(37, 211, 102, 0.3); }

.comissao-tag { 
  font-size: 11px; font-weight: 800; color: var(--success); 
  background: rgba(16, 185, 129, 0.1); padding: 3px 8px; border-radius: 4px; 
  white-space: nowrap; border: 1px solid rgba(16, 185, 129, 0.2);
}

.btn-fechar-venda {
    background: var(--success); color: white; border: none;
    border-radius: 6px; padding: 0 12px; height: 32px;
    font-size: 12px; font-weight: 600; cursor: pointer; margin-left: auto; 
}
.btn-fechar-venda:hover { opacity: 0.9; }

.btn-pdf-action { color: #f87171 !important; border-color: rgba(248, 113, 113, 0.3); }
.btn-pdf-action:hover { background: #f87171; color: white !important; }

/* =========================================
   9. KANBAN BOARD
   ========================================= */
.kanban-container {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  overflow-y: auto; overflow-x: hidden; 
  height: calc(100vh - 110px); min-height: 420px;
  padding-bottom: 120px; align-items: flex-start;
}

.kanban-col {
  width: 100%; background: #1e293b; border-radius: 8px;
  display: flex; flex-direction: column; border: 1px solid var(--border);
  flex-shrink: 0;
}

.kanban-header {
  padding: 8px 10px; border-bottom: 1px solid var(--border);
  font-weight: 700; font-size: 11px; text-transform: uppercase;
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(0,0,0,0.2); border-radius: 8px 8px 0 0;
}

.kanban-body {
  padding: 8px; overflow-y: auto; flex: 1; min-height: 50px; 
  display: flex; flex-direction: column; gap: 8px;
}

.kanban-col.drag-over { background: #334155; border-color: var(--primary); }

.kanban-card {
  background: var(--bg-input); border: 1px solid var(--border); border-radius: 6px;
  padding: 8px; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; position: relative;
}
.kanban-card:hover { border-color: var(--text-muted); transform: translateY(-1px); }
.kanban-card:active { cursor: grabbing; }
.kanban-card.dragging { opacity: 0.5; border: 2px dashed var(--primary); }

.k-client { font-weight: bold; color: white; font-size: 12px; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-desc { font-size: 10px; color: #cbd5e1; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3; }
.k-meta { font-size: 9px; color: #94a3b8; display: flex; justify-content: space-between; }

.col-aguardando .kanban-header { color: #fca5a5; border-top: 2px solid #ef4444; }
.col-fazendo .kanban-header { color: #bfdbfe; border-top: 2px solid #3b82f6; }
.col-producao .kanban-header { color: #fde047; border-top: 2px solid #eab308; }
.col-pronto .kanban-header { color: #d8b4fe; border-top: 2px solid #a855f7; }
.col-entrega .kanban-header { color: #86efac; border-top: 2px solid #22c55e; }

/* =========================================
   10. MENSAGENS E SCRIPTS
   ========================================= */
.msg-panel-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1200;
}
.msg-panel-backdrop.show { opacity: 1; pointer-events: auto; }
.msg-panel {
  position: fixed;
  right: 18px;
  top: 70px;
  width: min(420px, calc(100vw - 32px));
  max-height: calc(100vh - 90px);
  background: #0f172a;
  border: 1px solid #1f2937;
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(0,0,0,0.35);
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 1210;
}
.msg-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.msg-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: #111827;
}
.msg-panel-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.msg-panel-title .material-symbols-outlined { color: #bfdbfe; font-size: 22px; }
.msg-panel-label { color: #e2e8f0; font-weight: 700; font-size: 14px; }
.msg-panel-sub { color: #94a3b8; font-size: 11px; }
.msg-panel-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.icon-sm { font-size: 16px; }
.icon-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.1);
  color: #cbd5e1;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.icon-btn:hover { border-color: #e2e8f0; color: white; background: rgba(255,255,255,0.06); }
.msg-panel-content {
  padding: 0 12px 14px 12px;
  overflow-y: auto;
  max-height: calc(100vh - 140px);
  scrollbar-width: thin;
  scrollbar-color: #334155 #0f172a;
}
.msg-panel-content::-webkit-scrollbar { width: 8px; }
.msg-panel-content::-webkit-scrollbar-thumb { background: #334155; border-radius: 8px; }
.msg-panel-empty { color: #94a3b8; text-align: center; padding: 20px 10px; font-size: 12px; }
.msg-panel-actions .secondary-btn.small {
  padding: 4px 8px;
  font-size: 10px;
  gap: 4px;
  min-height: 30px;
}

.msg-cat-bar {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 10px 12px 10px 12px;
  margin: 0 -12px 8px -12px;
  background: #0f172a;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  z-index: 2;
}
.msg-cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  color: #e2e8f0;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
  min-height: 38px;
  width: 100%;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.msg-cat-btn:hover { border-color: #60a5fa; color: #60a5fa; }
.msg-cat-btn.active {
  border-color: #60a5fa;
  background: rgba(96,165,250,0.12);
  color: #e0f2fe;
}
.msg-cat-emoji {
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.msg-cat-name { font-weight: 700; font-size: 10px; }
.msg-cat-content { padding: 10px 4px 12px 4px; }
.msg-cat-content > .msg-panel-empty { padding-top: 6px; }

.msg-sub-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  padding: 6px 0 10px 0;
  margin-bottom: 6px;
}
.msg-sub-btn {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  color: #cbd5e1;
  cursor: pointer;
  font-size: 10px;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.msg-sub-btn:hover { border-color: #60a5fa; color: #e0f2fe; }
.msg-sub-btn.active {
  border-color: #60a5fa;
  background: rgba(96,165,250,0.12);
  color: #e0f2fe;
}
.msg-subgroup {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 10px;
  background: rgba(255,255,255,0.02);
}
.msg-subgroup-title {
  color: #a5b4fc;
  font-weight: 700;
  font-size: 12px;
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.msg-list { display: grid; gap: 8px; }
.msg-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 10px 8px 10px;
  background: rgba(255,255,255,0.02);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.msg-item:hover {
  transform: translateY(-1px);
  border-color: #38bdf8;
  box-shadow: 0 10px 20px rgba(56,189,248,0.18);
}
.msg-item.copied {
  border-color: #22c55e;
  box-shadow: 0 8px 18px rgba(34,197,94,0.2);
}
.msg-item:active { transform: translateY(0); }
.msg-item-title { color: #e0f2fe; font-weight: 700; font-size: 12px; margin-bottom: 4px; }
.msg-item-text { color: #cbd5e1; font-size: 11px; line-height: 1.5; white-space: pre-wrap; }
.msg-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(59,130,246,0.14);
  color: #bfdbfe;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.2px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.cat-block { margin-bottom: 12px; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: #162032; }
.cat-header { background: #1e293b; padding: 12px; cursor: pointer; font-size: 13px; font-weight: 700; color: white; display: flex; justify-content: space-between; align-items: center; }
.cat-content { display: none; padding: 0; background: #0f172a; }
.cat-content.open { display: block; border-top: 1px solid var(--border); }
.sub-block { padding: 10px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.msg-card { background: #1e293b; border: 1px solid var(--border); padding: 10px; border-radius: 6px; margin-bottom: 8px; cursor: pointer; transition: all 0.2s; }
.msg-card:hover { border-color: var(--primary); transform: translateX(2px); }
.msg-titulo { color: var(--primary); font-weight: bold; font-size: 12px; margin-bottom: 4px; }
.msg-texto { font-size: 11px; color: var(--text-muted); line-height: 1.5; white-space: pre-wrap; font-family: 'Segoe UI', sans-serif; }

/* =========================================
   11. GUIA (FLUXO) - estilo flip chart
   ========================================= */
.flow-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}
@media (max-width: 820px) {
  .flow-container { grid-template-columns: 1fr; }
}
.guide-card {
  position: relative;
  background: linear-gradient(145deg, #0f172a, #131c2f);
  border: 1px solid #1f2937;
  border-radius: 10px;
  padding: 14px 14px 12px 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  min-height: 140px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.guide-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,0.32); }
.guide-pin {
  position: absolute;
  top: 10px; right: 10px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #e5e7eb, #9ca3af);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.05);
}
.guide-header {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px;
}
.guide-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(59,130,246,0.15);
  color: #60a5fa;
  font-weight: 700;
  font-size: 11px;
  border: 1px solid rgba(59,130,246,0.3);
}
.guide-title {
  font-weight: 800;
  color: #e2e8f0;
  font-size: 13px;
  line-height: 1.3;
}
.guide-body {
  font-size: 12px;
  color: #cbd5e1;
  white-space: pre-wrap;
  line-height: 1.5;
}

/* =========================================
   12. MODALS & UTILITÁRIOS
   ========================================= */
.hidden { display: none !important; }
.modal-overlay { 
  position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
  background: rgba(0,0,0,0.85); z-index: 10000; display: flex; 
  align-items: center; justify-content: center; backdrop-filter: blur(2px); 
}
.modal-card { 
  background: var(--bg-card); border: 1px solid var(--border); 
  padding: 25px; border-radius: 16px; width: 90%; max-width: 380px; 
  max-height: 90vh; overflow-y: auto; position: relative;
}
.modal-actions { display: flex; gap: 10px; margin-top: 20px; }
.modal-actions button { flex: 1; }

.btn-close-modal {
    position: absolute; top: 10px; right: 10px;
    background: transparent; border: none; color: #94a3b8;
    cursor: pointer; padding: 5px;
}
.btn-close-modal:hover { color: white; }

.text-success { color: var(--success); font-weight: bold; }
.text-success-lg { color: var(--success); font-weight: bold; font-size: 18px; }
.text-muted-sm { font-size: 12px; color: #94a3b8; margin-bottom: 15px; }

/* Calc sub-tabs */
.calc-nav { display:flex; gap:8px; margin-bottom:12px; border-bottom:1px solid var(--border); padding-bottom:8px; flex-wrap:wrap; }
.calc-nav-btn {
  background: transparent; border: 1px solid var(--border); color: var(--text-muted);
  padding: 8px 14px; border-radius: 8px; cursor: pointer; font-size: 12px; font-weight: 600;
  transition: all 0.2s;
}
.calc-nav-btn.active { background: #334155; color: white; border-color: #475569; }
.calc-sub.hidden { display: none; }
.banner-form-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap:10px; margin-top:8px; }
.banner-form-row { grid-template-columns: 2fr 1fr; }
.banner-size-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.banner-field select, .banner-field input { width: 100%; }
.banner-fixed-pill { display:flex; flex-direction:column; gap:6px; justify-content:flex-end; }
.banner-fixed-chip { background:#0f172a; border:1px solid #334155; border-radius:8px; padding:10px 12px; color:white; font-weight:700; font-size:12px; width:fit-content; min-width:120px; text-align:center; }
.banner-summary {
  display:grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap:8px;
}
.banner-pill { background:#0f172a; border:1px solid #334155; border-radius:10px; padding:12px; box-shadow: 0 4px 12px rgba(0,0,0,0.12); }
.banner-pill-label { font-size:var(--font-label); color: var(--text-muted); text-transform: uppercase; letter-spacing:0.04em; font-weight:700; }
.banner-pill-value { font-size:var(--font-value-md); color:white; font-weight:700; line-height:1.15; }
.banner-triad-card { margin-top:16px; background:#0f172a; border:1px solid #334155; border-radius:12px; padding:14px; }
.banner-triad-header { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:10px; }
.banner-triad-grid { display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap:10px; }
.banner-triad-actions { display:flex; justify-content:flex-end; margin-top:10px; }

.clientes-filters {
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:nowrap;
  overflow:hidden;
}
.clientes-filters select,
.clientes-filters input {
  min-width: 140px;
}
.clientes-filters .secondary-btn.icon-only.small {
  flex-shrink: 0;
}

.clientes-kpi-grid { 
  display:grid; 
  grid-template-columns: repeat(3, minmax(0, 1fr)); 
  gap:10px; 
  margin-bottom:10px; 
  max-width:1100px; 
  margin-left:auto; 
  margin-right:auto;
}
.cliente-kpi-card {
  border-radius:12px;
  padding:12px;
  border:1px solid var(--border);
  box-shadow:0 4px 12px rgba(0,0,0,0.18);
}
.cliente-kpi-label { font-size:var(--font-label); color: var(--text-muted); text-transform: uppercase; letter-spacing:0.05em; font-weight:700; margin-bottom:4px; }
.cliente-kpi-value { font-size:var(--font-value-lg); font-weight:800; color:white; }
.cliente-kpi-blue { background: linear-gradient(135deg, rgba(59,130,246,0.18), rgba(59,130,246,0.05)); border-color: rgba(59,130,246,0.35); }
.cliente-kpi-yellow { background: linear-gradient(135deg, rgba(234,179,8,0.2), rgba(234,179,8,0.06)); border-color: rgba(234,179,8,0.38); }
.cliente-kpi-green { background: linear-gradient(135deg, rgba(34,197,94,0.18), rgba(34,197,94,0.06)); border-color: rgba(34,197,94,0.35); }

.combo-rows { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }
.combo-row {
  background: #0f172a; border: 1px solid #334155; padding: 12px; border-radius: 10px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; position: relative;
}
.btn-remove-combo { position:absolute; top:6px; right:6px; background:none; border:none; color:#ef4444; cursor:pointer; }
.combo-summary {
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 12px 0;
  background:#0f172a;
  border:1px solid #334155;
  border-radius:10px;
  padding:12px;
}
.combo-summary > div {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(148,163,184,0.14);
  border-radius: 10px;
  padding: 8px 10px;
  min-height: 54px;
}
.combo-summary strong { color:white; font-size:14px; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Status pills em cards (manter em linha única) */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .status-pill {
    font-size: 8px;
    padding: 3px 7px;
  }
}

.status-line {
  display: flex;
  gap: 6px;
  align-items: center;
  white-space: nowrap;
  overflow-x: auto;
  padding: 2px 0;
  -webkit-overflow-scrolling: touch;
}

/* Usuários */
.user-table-wrapper { overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; }
.user-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.user-table thead th { text-align: left; padding: 10px; background: #0f172a; color: #94a3b8; text-transform: uppercase; font-size: 10px; letter-spacing: 0.04em; }
.user-table tbody td { padding: 10px; color: #e5e7eb; border-top: 1px solid rgba(255,255,255,0.04); }
.user-table tbody tr:nth-child(even) { background: rgba(255,255,255,0.02); }
.user-badge { display:inline-flex; align-items:center; gap:5px; padding:4px 8px; border-radius:999px; font-weight:700; font-size:10px; }
.badge-admin { background: rgba(59,130,246,0.12); color:#60a5fa; }
.badge-vend { background: rgba(16,185,129,0.12); color:#22c55e; }
.badge-off { background: rgba(148,163,184,0.12); color:#cbd5e1; }
.badge-on { background: rgba(34,197,94,0.12); color:#4ade80; }

/* =========================================
   13. PDF
   ========================================= */
.pdf-item-row {
    background: #0f172a; border: 1px solid #334155; padding: 10px;
    border-radius: 6px; margin-bottom: 10px; position: relative;
    display: flex; flex-wrap: wrap; gap: 10px;
}
.btn-remove-item {
    position: absolute; top: -8px; right: -8px; background: #ef4444;
    color: white; border: 2px solid #1e293b; border-radius: 50%;
    width: 20px; height: 20px; font-size: 14px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 5;
}
.pdf-item-row input { height: 36px; font-size: 12px; }
.pi-desc { flex: 100%; } 
.pi-qtd { flex: 1; min-width: 60px; }
.pi-val { flex: 2; min-width: 80px; }

/* =========================================
   Metas & Ritmo
   ========================================= */
.meta-toolbar { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; }
.meta-filters { display:flex; gap:12px; flex-wrap:wrap; align-items:flex-end; }
.meta-filter { display:flex; flex-direction:column; gap:4px; }
.segmented { display:inline-flex; background:#0f172a; border:1px solid #334155; border-radius:8px; overflow:hidden; }
.segmented-btn { background:transparent; color:#e5e7eb; border:0; padding:8px 10px; font-size:12px; cursor:pointer; }
.segmented-btn.active { background:#1f2937; color:#fff; }
.meta-actions { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.meta-workday { color:#94a3b8; font-size:12px; display:none; }
.ghost-btn { background:transparent; border:1px solid #334155; color:#e5e7eb; padding:6px 10px; border-radius:8px; cursor:pointer; }
.ghost-btn.small { font-size:12px; padding:5px 8px; }
.meta-actions.hidden { display:none; }
.meta-admin { display:flex; gap:6px; align-items:center; flex-wrap:nowrap; }
.meta-admin.hidden { display:none; }
.dash-select.mini { height:32px; padding:4px 8px; font-size:12px; min-width:120px; }
.secondary-btn.icon-only { padding:6px 8px; }
.hub-subnav { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.hub-subnav .meta-admin { margin-left:auto; }

.kpi-progress-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:12px; }
.kpi-progress-card { background:#0f172a; border:1px solid #1f2937; border-radius:10px; padding:12px; display:flex; flex-direction:column; gap:6px; position:relative; }
.kpi-progress-grid.compact .kpi-progress-card { padding:14px; gap:6px; min-height:134px; }
.kpi-card-head { display:flex; justify-content:space-between; align-items:flex-start; gap:6px; }
.kpi-card-head > div { display:flex; flex-direction:column; gap:2px; min-width:0; }
.kpi-card-title { font-size:12px; }
.kpi-card-sub { font-size:15px; }
.kpi-card-meta { font-size:11px; }
.kpi-progress-grid.compact .kpi-card-sub { font-size:14px; }
.kpi-progress-grid.compact .kpi-card-meta { font-size:10px; }
.kpi-card-head { display:flex; justify-content:space-between; align-items:flex-start; gap:10px; }
.kpi-card-head > div { display:flex; flex-direction:column; gap:15px; min-width:0; }
.kpi-card-title { font-size:9px; color:#cbd5e1; }
.kpi-card-sub { font-size:18px; font-weight:700; color:#e5e7eb; }
.status-chip { padding:4px 10px; border-radius:999px; font-size:10px; font-weight:700; text-transform:uppercase; }
.status-chip { position:absolute; right:10px; top:10px; transform:scale(0.88); }
.chip-ok { background:rgba(34,197,94,0.16); color:#4ade80; }
.chip-warn { background:rgba(245,158,11,0.16); color:#fbbf24; }
.chip-late { background:rgba(239,68,68,0.16); color:#f87171; }
.progress-bg.sm { height:8px; }
.kpi-card-meta { display:flex; flex-direction:column; gap:2px; font-size:11px; color:#94a3b8; }

.timeline-bar { position:relative; background:#0f172a; border:1px solid #1f2937; border-radius:10px; height:20px; margin-bottom:10px; }
.timeline-expected { position:absolute; left:0; top:0; bottom:0; background:rgba(59,130,246,0.35); border-radius:10px 0 0 10px; }
.timeline-real { position:absolute; left:0; top:0; bottom:0; background:rgba(34,197,94,0.45); border-radius:10px 0 0 10px; }
.timeline-marker { position:absolute; top:50%; transform:translate(-50%, -50%); background:#1f2937; color:#cbd5e1; padding:3px 6px; border-radius:8px; font-size:11px; white-space:nowrap; border:1px solid #334155; }
.timeline-metrics { display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:8px; }
.timeline-pill { border:1px solid #1f2937; border-radius:10px; padding:8px; background:#0f172a; }
.pill-label { font-size:11px; color:#94a3b8; }
.pill-values { display:flex; justify-content:space-between; font-weight:700; color:#e5e7eb; }

.funil-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:10px; }
.funil-box { background:#0f172a; border:1px solid #1f2937; border-radius:10px; padding:10px; }
.funil-title { font-size:12px; color:#94a3b8; }
.funil-value { font-size:18px; font-weight:700; color:#e5e7eb; }
.funil-desc { font-size:11px; color:#94a3b8; }

.acao-list { list-style:none; padding-left:0; margin:0; display:flex; flex-direction:column; gap:6px; }
.acao-list.compact .acao-item { font-size:12px; padding:8px; }
.acao-item { background:#0f172a; border:1px dashed #334155; border-radius:10px; padding:10px; color:#e5e7eb; font-size:13px; }

.meta-config-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:8px; }
