/* ===== Tokens =====
   Visual novo: menu lateral e cartões de destaque ESCUROS, área de conteúdo
   CLARA, lime como cor de marca. Os nomes --mint/--coral/--amber ficaram como
   estavam de propósito (são usados em centenas de lugares como
   "positivo/negativo/alerta") — só o valor mudou. --accent é o lime "de
   destaque" (fundos de botão, pílula ativa); --mint é o verde de TEXTO
   positivo, escuro o bastante pra ler em cima do branco. */
:root {
  --bg: #F3F4F0;
  --surface: #FFFFFF;
  --row-alt: #F6F7F3;
  --ink: #0F1410;
  --muted: #667066;
  --line: #E3E6DE;

  --accent: #A3E635;
  --accent-hover: #B7F04F;
  --accent-ink: #0E1408;

  --mint: #3F7A17;
  --mint-soft: rgba(132, 204, 22, 0.16);
  --coral: #C62D4A;
  --coral-soft: rgba(198, 45, 74, 0.09);
  --amber: #B7791F;
  --amber-soft: rgba(217, 142, 4, 0.14);
  --slate-soft: rgba(15, 20, 16, 0.05);

  --field-bg: #FFFFFF;
  --hover: rgba(15, 20, 16, 0.045);
  --shadow: 0 1px 2px rgba(15, 20, 16, 0.05), 0 8px 22px -10px rgba(15, 20, 16, 0.14);

  --radius: 12px;
  --font-display: 'Sora', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

/* Escopo escuro: menu lateral, login, cartão de destaque da home, barra do
   vendedor — e o app inteiro quando o tema escuro estiver ligado. */
:root[data-theme="dark"],
.sidebar, .login-screen, .hero, .vendor-topbar {
  --bg: #0B0F0C;
  --surface: #131914;
  --row-alt: #182019;
  --ink: #E9EEE6;
  --muted: #8A948A;
  --line: #1F2921;

  --mint: #A3E635;
  --mint-soft: rgba(163, 230, 53, 0.14);
  --coral: #F0627E;
  --coral-soft: rgba(240, 98, 126, 0.13);
  --amber: #F2B24A;
  --amber-soft: rgba(242, 178, 74, 0.14);
  --slate-soft: rgba(255, 255, 255, 0.06);

  --field-bg: rgba(255, 255, 255, 0.04);
  --hover: rgba(255, 255, 255, 0.06);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 26px -12px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

/* Não existia NENHUMA regra de cor pra links no sistema inteiro — todo <a>
   caía no azul padrão do navegador, que não lê bem em cima do fundo escuro
   (foi isso que ficou "estranho" nos links de "editar plano"/"ver por dia").
   Usa o dourado da marca (--mint) no escuro, e o azul do tema claro quando
   estiver em .dash-light-theme. */
a { color: var(--mint); text-decoration: none; }
a:hover { text-decoration: underline; }

.shell {
  display: grid;
  grid-template-columns: 264px 1fr;
  min-height: 100vh;
}

/* ===== Sidebar ===== */
.sidebar {
  background: #0B0F0C;
  color: var(--ink);
  padding: 22px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: #1F2921 transparent;
}

.brand { display: flex; align-items: center; gap: 11px; padding: 0 6px 14px; }
.brand-mark { width: 38px; height: 38px; object-fit: contain; flex-shrink: 0; }
.brand-text { min-width: 0; flex: 1; }
.brand-title { font-family: var(--font-display); font-size: 17px; font-weight: 700; line-height: 1.1; color: #fff; letter-spacing: -0.01em; }
.brand-sub { font-size: 11px; color: var(--muted); margin-top: 3px; letter-spacing: 0.01em; }

.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-section { margin-top: 4px; }
.side-label {
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em;
  color: #5F6B60; padding: 12px 12px 5px;
}

.filters { display: flex; flex-direction: column; gap: 1px; }
.filter-divider { height: 1px; background: var(--line); margin: 8px 6px; }

/* botão de navegação do menu */
.filter-btn {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  background: transparent; border: none; color: #A9B4A9;
  font-family: var(--font-body); font-size: 13.5px; font-weight: 500;
  padding: 9px 12px; border-radius: 10px; cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  text-align: left;
}
.filter-btn:hover { background: var(--hover); color: #fff; }
.filter-btn.active { background: var(--mint-soft); color: var(--accent); font-weight: 700; }
.filter-btn .count {
  font-family: var(--font-mono); font-size: 11px; color: #94A094;
  background: var(--hover); padding: 1px 7px; border-radius: 20px; flex-shrink: 0;
}
.filter-btn.active .count { color: var(--accent); background: rgba(163, 230, 53, 0.16); }

/* itens principais do menu (com ícone) — o ativo vira a pílula lime cheia */
.side-item { font-size: 14px; padding: 8px 12px; border-radius: 12px; justify-content: flex-start; width: 100%; }
.side-item .ico { width: 18px; height: 18px; flex-shrink: 0; opacity: 0.9; }
.side-item .side-text { flex: 1; min-width: 0; text-align: left; }
.side-item .count { margin-left: auto; }
.side-item.active { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.side-item.active .ico { opacity: 1; }
.side-item.active .count { background: rgba(14, 20, 8, 0.16); color: var(--accent-ink); }

.sidebar-group { margin-top: 0; }
.sidebar-group-toggle {
  width: 100%; display: flex; align-items: center; gap: 10px; text-align: left;
  background: none; border: none; color: #A9B4A9; font-family: var(--font-body);
  font-size: 14px; font-weight: 500; padding: 10px 12px; cursor: pointer; border-radius: 12px;
}
.sidebar-group-toggle:hover { background: var(--hover); color: #fff; }
.sidebar-group-chevron { font-size: 11px; color: #5F6B60; transition: transform 0.15s; margin-left: auto; }
.sidebar-group-chevron.collapsed { transform: rotate(-90deg); }
.sidebar-group-content {
  padding: 4px 0 6px 6px; border-left: 1px solid var(--line); margin-left: 21px;
  max-height: 2000px; overflow: hidden; transition: max-height 0.2s ease;
}
.sidebar-group-content .filter-btn { font-size: 13px; padding: 7px 10px; border-radius: 8px; width: 100%; }
.sidebar-group-content.collapsed { max-height: 0; padding-top: 0; padding-bottom: 0; }
.sidebar-subsection-label {
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: #5F6B60; margin: 14px 0 8px 4px;
}

/* rodapé do menu: avatar + nome + tema + sair */
.side-foot { margin-top: auto; padding-top: 14px; }
.side-user {
  display: flex; align-items: center; gap: 10px; padding: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
}
.side-avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent); color: var(--accent-ink);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 14px;
}
.side-user-info { min-width: 0; flex: 1; }
.side-user .user-name { font-size: 13px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user .user-role { font-size: 11px; color: var(--muted); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-icon-btn {
  width: 30px; height: 30px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  background: transparent; border: none; border-radius: 8px; color: var(--muted); cursor: pointer;
}
.side-icon-btn:hover { background: var(--hover); color: #fff; }
.side-icon-btn .ico { width: 17px; height: 17px; }

.operation-select {
  width: 100%; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font-family: var(--font-body); font-size: 13px;
  font-weight: 600; margin: 0 0 6px;
}
.mini-label { display: block; font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.dash-tabs { display: flex; gap: 8px; margin-bottom: 18px; border-bottom: 1px solid var(--line); padding-bottom: 0; align-items: center; }
.dash-theme-toggle {
  margin-left: auto; background: var(--surface); border: 1px solid var(--line); color: var(--ink);
  font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 20px; cursor: pointer;
  margin-bottom: 8px;
}
.dash-theme-toggle:hover { background: var(--row-alt); }
.dash-tab-btn {
  background: none; border: none; color: var(--muted); font-family: var(--font-display);
  font-size: 14px; font-weight: 600; padding: 10px 4px; cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.dash-tab-btn:hover { color: var(--ink); }
.dash-tab-btn.active { color: var(--mint); border-bottom-color: var(--mint); }
.daily-goal {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 12px;
  margin-bottom: 20px; border: 1px solid var(--line);
}
.daily-goal-icon { font-size: 30px; line-height: 1; flex-shrink: 0; }
.daily-goal-title { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--ink); }
.daily-goal-sub { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.daily-goal-pending { background: var(--coral-soft); border-color: var(--coral); }
.daily-goal-done { background: var(--mint-soft); border-color: var(--mint); }

.step-queue {
  border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin-bottom: 10px;
  background: var(--surface);
}
.step-queue-pending { border-left: 3px solid var(--coral); }
.step-queue-done { border-left: 3px solid var(--mint); opacity: 0.7; }
.step-queue-info { border-left: 3px solid var(--line-strong, #C9D1C8); }
.step-queue-info .step-queue-number { background: var(--line, #E3E8E1); color: var(--muted, #5F6B62); }
.step-queue-info .step-queue-count { color: var(--muted, #5F6B62); }
.step-queue-urgent { border: 1px solid var(--coral); background: var(--coral-soft); margin-bottom: 14px; }
.step-queue-header { display: flex; align-items: center; gap: 12px; }
.step-queue-number {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--slate-soft);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display);
  font-weight: 700; font-size: 13px; color: var(--ink);
}
.step-queue-done .step-queue-number { background: var(--accent); color: var(--accent-ink); }
.step-queue-urgent .step-queue-number { background: var(--coral); font-size: 15px; }
.step-queue-title { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--ink); }
.step-queue-count { font-size: 12px; font-weight: 700; color: var(--coral); margin-left: 4px; }
.step-queue-done .step-queue-count { color: var(--mint); }
.step-queue-hint { font-size: 12px; color: var(--muted); margin-top: 2px; }
.step-queue-table { margin-top: 10px; max-height: 220px; overflow-y: auto; }
.step-queue-table-with-action.dash-table .dash-table-row { grid-template-columns: 1.2fr 1fr 0.9fr 1fr 1fr 0.6fr 1fr; }
.step-action-btn {
  background: var(--accent); color: var(--accent-ink); border: none; padding: 5px 10px; border-radius: 6px;
  font-size: 11px; font-weight: 700; cursor: pointer; font-family: var(--font-body); white-space: nowrap;
}
.step-action-btn:hover { background: var(--accent-hover); }
.step-action-btn-icon { padding: 5px 8px; font-size: 12px; }
.step-action-btn-neutral { background: var(--slate-soft); color: var(--ink); }
.step-action-btn-neutral:hover { background: var(--row-alt); }
.step-action-btn-danger { background: var(--coral-soft); color: var(--coral); }
.step-action-btn-danger:hover { background: var(--coral); color: #fff; }
.situacao-select-mini { padding: 4px 5px; font-size: 11px; border-radius: 5px; }
.expected-date-mini {
  width: 100%; padding: 4px 5px; font-size: 11px; border-radius: 5px; border: 1px solid var(--line);
  background: var(--field-bg); color: var(--ink); font-family: var(--font-body);
  
}
.dash-month-input {
  padding: 7px 9px; font-size: 13px; border-radius: 6px; border: 1px solid var(--line);
  background: var(--field-bg); color: var(--ink); font-family: var(--font-body);
  
}
.copyable-cell { display: inline-flex; align-items: center; gap: 5px; }
.copy-btn-mini {
  background: none; border: none; cursor: pointer; opacity: 0.55; font-size: 11px; padding: 0;
  line-height: 1;
}
.copy-btn-mini:hover { opacity: 1; }
.copy-btn-mini.copied { opacity: 1; }
.toggle-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink); cursor: pointer; }
.toggle-row input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--mint); cursor: pointer; }
#automation-url-input, #automation-test-phone-input {
  width: 100%; background: var(--bg); color: var(--ink); border: 1px solid var(--line);
  border-radius: 7px; padding: 9px 12px; font-size: 13px; font-family: var(--font-mono);
}
#mark-paid-amount, #mark-paid-date, #mark-paid-advance, #settle-partial-advance, #settle-partial-date, #settle-partial-expected-date, #cancel-lead-reason, #cancel-lead-reason-custom, #uf-nome, #uf-email, #uf-senha, #uf-role {
  width: 100%; background: var(--bg); color: var(--ink); border: 1px solid var(--line);
  border-radius: 7px; padding: 9px 12px; font-size: 13px; font-family: var(--font-body);
}
#admin-group-content input {
  width: 100%; padding: 7px 9px; border-radius: 6px; border: 1px solid var(--line);
  background: var(--field-bg); color: var(--ink); font-family: var(--font-mono); margin-bottom: 8px;
}
.ghost-btn {
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
  padding: 8px 13px; border-radius: 7px; font-size: 13px; cursor: pointer;
  font-family: var(--font-body); font-weight: 500;
}
.ghost-btn:hover { background: var(--row-alt); }
#admin-group-content .ghost-btn { width: 100%; background: transparent; border: 1px solid var(--line); color: var(--ink); }
#admin-group-content .ghost-btn:hover { background: var(--slate-soft); }

.accent-btn { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }
.accent-btn:hover { background: var(--accent-hover); }

/* ===== Content ===== */
.content { padding: 30px 36px 48px; min-width: 0; }
/* a busca/ordenação/importar só faz sentido na lista de pedidos */
.content:not([data-view="orders"]) .topbar { display: none; }
.shell.sidebar-collapsed .content { padding-top: 68px; }

.topbar { display: flex; gap: 10px; margin-bottom: 18px; }
.search { flex: 1; }
.search input {
  width: 100%; padding: 10px 13px; border-radius: 7px; border: 1px solid var(--line);
  background: var(--surface); font-family: var(--font-body); font-size: 13.5px; color: var(--ink);
}
.search input::placeholder { color: var(--muted); }
.sort-select {
  padding: 10px 12px; border-radius: 7px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font-family: var(--font-body); font-size: 13px;
}

.empty { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty p:first-child { font-family: var(--font-display); font-size: 19px; color: var(--ink); margin-bottom: 6px; }
.empty-sub { font-size: 13.5px; max-width: 400px; margin: 0 auto; }
.hidden { display: none !important; }

/* ===== Table ===== */
.table-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.orders-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.orders-table thead th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 600;
  padding: 11px 14px;
  background: var(--row-alt);
  border-bottom: 1px solid var(--line);
}

.order-row {
  border-left: 3px solid transparent;
}
.order-row td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.order-row:nth-child(even) { background: var(--row-alt); }
.order-row:hover { background: var(--slate-soft); }
.order-row:last-child td { border-bottom: none; }

.row-frustrado { border-left-color: var(--coral); }
.row-retirada { border-left-color: var(--amber); }
.row-pago { border-left-color: var(--mint); }
.row-entregar { border-left-color: #4C7A9E; }
.row-aguardando { border-left-color: #8B7EC8; }
.row-devolvido { border-left-color: #6B7280; }

.col-code { width: 130px; }
.order-code { font-family: var(--font-mono); font-size: 11px; color: var(--muted); white-space: nowrap; }
.pickup-badge {
  display: inline-block;
  margin-top: 3px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--amber);
  background: var(--amber-soft);
  padding: 2px 6px;
  border-radius: 4px;
}

.customer-name { font-family: var(--font-display); font-size: 14.5px; font-weight: 600; color: var(--ink); }
.product-line { font-size: 11.5px; color: var(--muted); margin-top: 1px; }

.col-phone { min-width: 150px; }
.copy-field { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.copy-field:last-child { margin-bottom: 0; }
.phone-value, .tracking-value { font-family: var(--font-mono); font-size: 12px; color: var(--ink); }
.tracking-field { display: flex; align-items: center; gap: 6px; }
.tracking-value { color: var(--muted); font-size: 10.5px; }
.copy-btn {
  background: var(--slate-soft); border: 1px solid var(--line); color: var(--muted);
  width: 20px; height: 20px; border-radius: 5px; font-size: 11px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: all 0.15s ease;
}
.copy-btn:hover { background: var(--mint-soft); color: var(--mint); border-color: var(--mint); }
.copy-btn.copied { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.col-status { min-width: 190px; }
.pills { display: flex; gap: 5px; flex-wrap: wrap; }
.pill {
  font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: 0.02em; white-space: nowrap;
}
.pill-shipping { background: var(--slate-soft); color: var(--muted); }
.pill-charge.status-paid { background: var(--mint-soft); color: var(--mint); }
.pill-charge.status-pending { background: var(--amber-soft); color: var(--amber); }
.pill-charge.status-other { background: var(--coral-soft); color: var(--coral); }
.pill-advance { background: var(--amber-soft); color: var(--amber); text-transform: none; letter-spacing: normal; }

.stamp {
  display: inline-block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
}
.stamp.stamp-frustrado { color: var(--coral); border: 1.3px dashed var(--coral); }
.stamp.stamp-aguardando { color: var(--amber); border: 1.3px dashed var(--amber); }

.col-value { font-family: var(--font-mono); font-weight: 600; white-space: nowrap; color: var(--ink); }
.remaining-balance { font-size: 10.5px; font-weight: 600; color: var(--coral); margin-top: 2px; }
.partial-amount-row { display: flex; gap: 5px; align-items: center; margin-top: 6px; }
.partial-amount-input {
  width: 92px; padding: 5px 7px; border-radius: 5px; border: 1px solid var(--line);
  background: var(--field-bg); color: var(--ink); font-family: var(--font-mono); font-size: 11.5px;
}
.partial-amount-save {
  background: var(--accent); color: var(--accent-ink); border: none; width: 22px; height: 22px; border-radius: 5px;
  font-size: 12px; cursor: pointer; flex-shrink: 0;
}
.col-delivered { white-space: nowrap; }
.delivered-date { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); }

.col-date input[type="date"] {
  width: 128px; padding: 5px 6px; border-radius: 5px; border: 1px solid var(--line);
  background: var(--field-bg); font-family: var(--font-mono); font-size: 11.5px; color: var(--ink);
  
}

.col-situacao { min-width: 150px; }
.situacao-select {
  width: 100%; padding: 6px 7px; border-radius: 6px; border: 1px solid var(--line);
  background: var(--field-bg); color: var(--ink); font-family: var(--font-body); font-size: 12px;
}
.situacao-select:disabled { color: var(--muted); opacity: 0.6; }
.situacao-select option, .sort-select option, .operation-select option, #cancel-lead-reason option, .vendor-card select option {
  background-color: var(--surface);
  color: var(--ink);
}
.pickup-note { font-size: 11.5px; color: var(--amber); line-height: 1.4; }

.col-updated { white-space: nowrap; }
.updated-at { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); }

/* ===== Menu de ações da linha ===== */
.action-row { display: flex; align-items: center; gap: 6px; justify-content: flex-end; }
.actions-menu-wrap { position: relative; }
.actions-menu-btn {
  background: var(--slate-soft); border: 1px solid var(--line); color: var(--ink);
  width: 26px; height: 26px; border-radius: 6px; font-size: 14px; cursor: pointer;
}
.actions-menu-btn:hover { background: var(--mint-soft); color: var(--mint); }
.actions-menu {
  position: fixed; z-index: 200;
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  min-width: 190px; overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.actions-menu-item {
  display: block; width: 100%; text-align: left; padding: 9px 12px; background: none; border: none;
  color: var(--ink); font-family: var(--font-body); font-size: 12.5px; cursor: pointer;
}
.actions-menu-item:hover { background: var(--slate-soft); }

/* ===== Modal de detalhes ===== */
.details-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 8px; }
.details-card { background: var(--row-alt); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }
.details-value { font-size: 13px; color: var(--ink); margin-top: 2px; }
.details-link { font-size: 12px; color: var(--mint); display: inline-block; margin-top: 6px; }
.receipt-list { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.receipt-list-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.receipt-delete-btn { background: none; border: none; cursor: pointer; opacity: 0.6; font-size: 13px; }
.receipt-delete-btn:hover { opacity: 1; }
.modal-body h4 { font-family: var(--font-display); font-size: 13.5px; color: var(--ink); margin: 20px 0 10px; }
.modal-body h4:first-child { margin-top: 0; }
.proof-image { max-width: 100%; border-radius: 8px; border: 1px solid var(--line); }

#notes-textarea {
  width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--row-alt); color: var(--ink); font-family: var(--font-body); font-size: 13px;
  resize: vertical;
}

.paste-zone {
  border: 2px dashed var(--line); border-radius: 10px; padding: 36px 20px;
  text-align: center; cursor: pointer; outline: none;
}
.paste-zone:focus { border-color: var(--mint); background: var(--mint-soft); }
.paste-zone p { margin: 4px 0; color: var(--ink); font-size: 13.5px; }
.paste-zone .modal-hint { margin: 8px 0; }

/* ===== Barra lateral recolhível ===== */
.sidebar-toggle-btn {
  margin-left: auto; background: var(--hover); border: 1px solid var(--line); color: var(--ink);
  width: 24px; height: 24px; border-radius: 6px; font-size: 13px; cursor: pointer; flex-shrink: 0;
}
.sidebar-toggle-btn:hover { background: var(--mint-soft); color: var(--mint); }
.shell.sidebar-collapsed { grid-template-columns: 0 1fr; }
.shell.sidebar-collapsed .sidebar { width: 0; padding: 0; overflow: hidden; border: none; }
.sidebar-reopen-btn {
  position: fixed; top: 18px; left: 18px; z-index: 60;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
  width: 36px; height: 36px; border-radius: 8px; font-size: 15px; cursor: pointer;
}
.sidebar-reopen-btn:hover { background: var(--mint-soft); color: var(--mint); }

.col-collection { white-space: nowrap; }
.collection-header { font-family: var(--font-mono); font-weight: 700; font-size: 12.5px; color: var(--ink); margin-bottom: 3px; }
.collection-list { max-height: 96px; overflow-y: auto; display: flex; flex-direction: column; gap: 1px; }
.collection-item { font-size: 10.5px; color: var(--muted); font-family: var(--font-mono); white-space: nowrap; }
.collection-count { font-family: var(--font-mono); font-weight: 700; font-size: 13px; margin-right: 6px; color: var(--ink); }
.last-collection { font-size: 10.5px; color: var(--muted); display: block; margin-top: 2px; }
.dash { color: var(--muted); font-family: var(--font-mono); }

.col-action { text-align: right; white-space: nowrap; }
.mark-collection {
  background: var(--accent); color: var(--accent-ink); border: none; padding: 6px 11px; border-radius: 6px;
  font-size: 12px; font-weight: 700; cursor: pointer; font-family: var(--font-body);
}
.mark-collection:hover { background: var(--accent-hover); }
.mark-collection:disabled { opacity: 0.6; cursor: default; }

/* ===== Modal (importação) ===== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(3, 8, 6, 0.7);
  display: flex; align-items: center; justify-content: center; z-index: 100;
  padding: 20px;
}
.modal {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; width: 100%; max-width: 640px;
  max-height: 85vh; display: flex; flex-direction: column; overflow: hidden;
}
.modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 22px; border-bottom: 1px solid var(--line);
}
.modal-header h2 { font-family: var(--font-display); font-size: 18px; margin: 0; color: var(--ink); }
.modal-close { background: none; border: none; font-size: 22px; cursor: pointer; color: var(--muted); line-height: 1; }
.modal-body { padding: 18px 22px; overflow-y: auto; }
.modal-hint { font-size: 13px; color: var(--muted); margin: 0 0 16px; }
.modal-footer {
  display: flex; align-items: center; gap: 10px; justify-content: flex-end;
  padding: 14px 22px; border-top: 1px solid var(--line);
}
.modal-progress { font-size: 12px; color: var(--muted); margin-right: auto; }
.primary-btn {
  background: var(--accent); color: var(--accent-ink); border: none; padding: 9px 16px; border-radius: 7px;
  font-size: 13.5px; font-weight: 700; cursor: pointer; font-family: var(--font-body);
}
.primary-btn:hover { background: var(--accent-hover); }
.secondary-btn {
  background: var(--slate-soft); color: var(--ink); border: 1px solid var(--line); padding: 8px 14px; border-radius: 7px;
  font-size: 12.5px; font-weight: 600; cursor: pointer; font-family: var(--font-body);
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
  text-transform: none; letter-spacing: normal;
}
.secondary-btn:hover { background: var(--mint-soft); border-color: var(--mint); color: var(--mint); }

.map-grid, .status-grid { display: flex; flex-direction: column; gap: 12px; }
.map-row, .status-row {
  display: grid; grid-template-columns: 160px 1fr; align-items: center; gap: 12px;
}
.map-row label, .status-row label {
  font-size: 13px; font-weight: 500; color: var(--ink);
}
.status-row label { font-family: var(--font-mono); font-size: 12px; background: var(--row-alt); padding: 6px 8px; border-radius: 5px; display: flex; flex-direction: column; gap: 2px; }
.status-translation { font-family: var(--font-body); font-size: 11px; color: var(--muted); font-weight: 500; }
.map-row select, .status-row select {
  padding: 7px 9px; border-radius: 6px; border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 13px;
}

.webhook-url-row { display: flex; gap: 8px; align-items: center; }
.webhook-url-row input {
  flex: 1; padding: 9px 11px; border-radius: 7px; border: 1px solid var(--line);
  background: var(--bg); color: var(--mint); font-family: var(--font-mono); font-size: 12.5px;
}
.webhook-url-row .copy-btn { width: 34px; height: 34px; font-size: 14px; }

/* ===== Login ===== */
.login-screen {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(60% 55% at 85% 0%, rgba(163, 230, 53, 0.13), transparent 65%),
              radial-gradient(45% 40% at 5% 100%, rgba(163, 230, 53, 0.06), transparent 70%), var(--bg);
}
.login-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 34px 30px; width: 100%; max-width: 380px;
  display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.login-card input {
  width: 100%; padding: 9px 11px; border-radius: 7px; border: 1px solid var(--line);
  background: var(--field-bg); color: var(--ink); font-family: var(--font-body);
  font-size: 13.5px; margin-bottom: 12px;
}
.login-error { color: var(--coral); font-size: 12.5px; margin: 10px 0 0; text-align: center; }

/* ===== Dashboard ===== */
.dash-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px;
  margin-bottom: 8px;
}
.dash-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px;
}
.dash-label { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 6px; display: flex; align-items: center; gap: 5px; }
.dash-value { font-family: var(--font-display); font-size: 26px; font-weight: 600; color: var(--ink); }
.dash-value.dash-mint, .dash-mint { color: var(--mint); }
.dash-value.dash-coral, .dash-coral { color: var(--coral); }
.dash-value.dash-amber, .dash-amber { color: var(--amber); }
.dash-sublabel { font-size: 11px; color: var(--muted); margin-top: 4px; }

.info-icon {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 14px; height: 14px; font-size: 12px; line-height: 1; color: var(--muted);
  cursor: help; text-transform: none; letter-spacing: normal; flex-shrink: 0;
}
.info-icon:hover, .info-icon:focus { color: var(--mint); outline: none; }
.info-icon::after {
  content: attr(data-tooltip);
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  width: max-content; max-width: 240px;
  background: #0F1512; color: #E9EEE6; border: 1px solid #1F2921;
  border-radius: 8px; padding: 8px 10px; font-size: 11.5px; font-weight: 400;
  text-transform: none; letter-spacing: normal; line-height: 1.4;
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
  opacity: 0; pointer-events: none; transition: opacity 0.12s ease;
  z-index: 20;
}
.info-icon:hover::after, .info-icon:focus::after { opacity: 1; }

.dash-section { margin-top: 26px; }
.dash-section h3 { font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--ink); margin: 0 0 14px; display: flex; align-items: center; gap: 6px; }
.dash-subhead { font-size: 12.5px; color: var(--muted); margin: 18px 0 10px; text-transform: uppercase; letter-spacing: 0.03em; display: flex; align-items: center; gap: 6px; }
.dash-subhead:first-of-type { margin-top: 0; }

.dash-bars { display: flex; flex-direction: column; gap: 10px; }
.dash-bar-row { display: grid; grid-template-columns: 170px 1fr 150px; align-items: center; gap: 12px; }
.dash-bar-label { font-size: 12.5px; color: var(--ink); }
.dash-bar-track { height: 10px; background: var(--hover); border-radius: 6px; overflow: hidden; }
.dash-bar-fill { height: 100%; background: var(--accent); border-radius: 6px; }
.dash-bar-fill.dash-bar-coral { background: var(--coral); }
.dash-bar-count { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); text-align: right; }

.dash-table { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.dash-table-row {
  display: grid; grid-template-columns: 1fr 1.2fr 1.4fr 1.2fr 1.2fr;
  gap: 10px; padding: 10px 14px; font-size: 12.5px; color: var(--ink);
  border-bottom: 1px solid var(--line); font-family: var(--font-mono);
}
.dash-table-row:last-child { border-bottom: none; }
.dash-table-head {
  background: var(--row-alt); font-family: var(--font-body); font-weight: 600;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted);
}

.dash-chart-wrap { position: relative; height: 240px; width: 100%; }
.dash-category-layout { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.dash-chart-donut { height: 190px; width: 190px; flex-shrink: 0; }
.dash-category-layout .dash-grid { flex: 1; min-width: 260px; margin-bottom: 0; }
@media (max-width: 700px) {
  .dash-category-layout { flex-direction: column; align-items: stretch; }
}

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .table-wrap { overflow-x: auto; }
  .orders-table { min-width: 860px; }
}

/* ===================== DASHBOARD NO CELULAR =====================
   Foco pedido: Financeiro/Monitoramento/Fechamento/Folha de Pagamento
   ficarem usáveis no celular, que é como o admin mais acessa. Os dash-card
   (números grandes, resumo do Fechamento/Folha) já eram responsivos sozinhos
   (repeat(auto-fit, minmax(...))) — o que faltava era: menu lateral comendo a
   tela toda antes do conteúdo aparecer, abas não cabendo numa linha, tabelas
   dunderline cortando (overflow:hidden) em vez de rolar, e padding grande
   demais sobrando espaço que faz falta numa tela pequena. */
@media (max-width: 700px) {
  .content { padding: 16px 14px; }

  .dash-tabs { flex-wrap: wrap; gap: 4px 10px; }
  .dash-tab-btn { font-size: 12.5px; padding: 8px 2px; }
  .dash-theme-toggle { margin-left: 0; }

  /* .dash-table usava overflow:hidden — no celular isso CORTA a tabela em
     vez de deixar rolar. min-width na linha garante que sempre sobra algo
     legível pra rolar até, em vez de espremer as colunas até ficar ilegível.
     Isso também cobre o Painel do dia (step-queue-table carrega a classe
     dash-table junto) e a Fila de Pedidos, de graça. */
  .dash-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .dash-table-row { min-width: 620px; }

  /* grid de números (dashCard) — 1 coluna só, mais fácil de ler que 2
     colunas espremidas numa tela de ~375px */
  .dash-grid { grid-template-columns: 1fr !important; }

  .modal-overlay { padding: 10px; }
  .modal-body { padding: 14px 16px; }
  .modal-header { padding: 14px 16px; }
  .modal-footer { padding: 12px 16px; flex-wrap: wrap; }

  /* Barra de busca/ordenar/importar do topo (tela de Pedidos) — não tinha
     wrap nenhum, a busca (flex:1) mais os botões estouravam a tela. */
  .topbar { flex-wrap: wrap; }
  .search { flex-basis: 100%; }

  /* Abas do vendedor (Novo Pedido/Registrar Lead/Meus Pedidos/Time) */
  .vendor-tabs { flex-wrap: wrap; padding: 10px 14px 0; }
  .vendor-content { padding: 16px 14px; }
  .vendor-topbar { padding: 12px 14px; flex-wrap: wrap; gap: 8px; }

  /* Botões de ação mais tocados (Marcar cobrança, ⋯) — alvo de toque um
     pouco maior, sem quebrar a densidade da tabela em si */
  .step-action-btn, .mark-collection { padding: 8px 12px; font-size: 12px; }
  .actions-menu-btn { width: 32px; height: 32px; font-size: 16px; }
}

/* ===================== SHELL DO VENDEDOR ===================== */
.vendor-shell { min-height: 100vh; background: var(--bg); }
.vendor-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px; border-bottom: 1px solid var(--line); background: var(--surface);
}
.vendor-user-box { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--muted); }
.vendor-tabs { display: flex; gap: 4px; padding: 14px 28px 0; border-bottom: 1px solid var(--line); background: var(--surface); }
.vendor-tab-btn {
  background: none; border: none; color: var(--muted); font-family: var(--font-display);
  font-size: 14px; font-weight: 600; padding: 10px 16px; cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.vendor-tab-btn:hover { color: var(--ink); }
.vendor-tab-btn.active { color: var(--mint); border-bottom-color: var(--mint); }
.vendor-content { padding: 28px; max-width: 1100px; margin: 0 auto; }
.vendor-page-title { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--ink); margin: 0; }
.vendor-page-subtitle { font-size: 13px; color: var(--muted); margin: 4px 0 20px; }

.vendor-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.vendor-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.vendor-card-title { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.vendor-card input[type="text"], .vendor-card input[type="email"], .vendor-card select, .vendor-card textarea {
  width: 100%; background: var(--bg); color: var(--ink); border: 1px solid var(--line);
  border-radius: 7px; padding: 9px 12px; font-size: 13px; font-family: var(--font-body);
}
.vendor-card textarea { resize: vertical; }
.vendor-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.vendor-total-box {
  display: flex; align-items: center; justify-content: space-between; margin-top: 14px;
  padding: 12px 14px; background: var(--mint-soft); border-radius: 8px;
}
.vendor-total-value { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--mint); }
.vendor-carrier-badge {
  margin-top: 12px; padding: 9px 12px; border-radius: 8px; font-size: 12.5px; font-weight: 600;
  background: var(--mint-soft); color: var(--mint); border: 1px solid var(--mint);
}
.vendor-carrier-badge-unknown {
  background: var(--amber-soft); color: var(--amber); border-color: var(--amber);
}

.vendor-attach-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 10px 0 14px; }
.vendor-attach-tab-btn {
  background: none; border: none; color: var(--muted); font-size: 13px; font-weight: 600;
  padding: 8px 4px; margin-right: 18px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.vendor-attach-tab-btn.active { color: var(--ink); border-bottom-color: var(--mint); }
.vendor-dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  border: 1.5px dashed var(--line); border-radius: 10px; padding: 36px 20px; cursor: pointer;
  text-align: center; font-size: 13px; color: var(--ink); transition: border-color 0.15s, background 0.15s;
}
.vendor-dropzone:hover, .vendor-dropzone.dragover { border-color: var(--mint); background: var(--mint-soft); }
.vendor-dropzone-icon { font-size: 22px; color: var(--muted); }
.vendor-dropzone-hint { font-size: 11px; color: var(--muted); }
.vendor-dropzone-filename { font-size: 12px; color: var(--mint); font-weight: 600; margin-top: 4px; }

.vendor-form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.vendor-submit-btn { padding: 11px 22px; font-size: 14px; }

.vendor-period-tabs { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.vendor-period-btn {
  background: var(--slate-soft); color: var(--muted); border: 1px solid var(--line); border-radius: 20px;
  padding: 7px 16px; font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.vendor-period-btn:hover { color: var(--ink); }
.vendor-period-btn.active { background: var(--mint-soft); color: var(--mint); border-color: var(--mint); }

@media (max-width: 900px) {
  .vendor-form-grid { grid-template-columns: 1fr; }
  .vendor-field-row { grid-template-columns: 1fr; }
}
.vendor-card label.mini-label:has(+ input[required])::after,
.vendor-card label.mini-label:has(+ select[required])::after,
.vendor-card label.mini-label:has(+ textarea[required])::after {
  content: " *"; color: var(--coral);
}
#vp-cep-status { min-height: 14px; }
.uf-checkbox-list {
  border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px;
  display: flex; flex-direction: column; gap: 8px; max-height: 160px; overflow-y: auto;
}
.uf-checkbox-list .toggle-row { justify-content: space-between; font-size: 13px; }
.uf-permission-block {
  margin-top: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--row-alt);
}

.team-rank-card {
  display: flex; align-items: center; gap: 16px; padding: 14px 18px; margin-bottom: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
}
.team-rank-card-voce { border-color: var(--mint); background: var(--mint-soft); }
.team-rank-medal {
  flex-shrink: 0; width: 40px; text-align: center; font-size: 22px; font-family: var(--font-display);
  font-weight: 700; color: var(--muted);
}
.team-rank-card:nth-child(1) .team-rank-medal,
.team-rank-card:nth-child(2) .team-rank-medal,
.team-rank-card:nth-child(3) .team-rank-medal { font-size: 26px; }
.team-rank-body { flex: 1; min-width: 0; }
.team-rank-name { font-family: var(--font-display); font-size: 14.5px; font-weight: 700; color: var(--ink); }
.team-rank-you {
  font-size: 10px; font-weight: 700; color: var(--mint); background: var(--hover);
  padding: 2px 7px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.03em; margin-left: 4px;
}
.team-rank-bar-track { height: 7px; background: var(--hover); border-radius: 4px; margin-top: 7px; overflow: hidden; }
.team-rank-bar-fill { height: 100%; background: linear-gradient(90deg, #4C9A1A, var(--accent)); border-radius: 4px; }
.team-rank-breakdown { font-size: 11.5px; color: var(--muted); margin-top: 5px; }
.team-rank-total {
  flex-shrink: 0; font-family: var(--font-display); font-size: 24px; font-weight: 800; color: var(--ink);
  min-width: 44px; text-align: right;
}


/* ===================== TELA INICIAL ===================== */
.home { max-width: 1280px; }
.home-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.home-greet { font-family: var(--font-display); font-size: 27px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); margin: 0; }
.home-sub { margin-top: 5px; font-size: 13.5px; color: var(--muted); }
.op-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--ink);
}
.op-chip::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #84CC16; box-shadow: 0 0 0 3px rgba(132, 204, 22, 0.25); }

/* cartão de destaque (sempre escuro) */
.hero {
  position: relative; overflow: hidden; background: #0B0F0C; color: var(--ink);
  border-radius: 24px; padding: 34px 36px; margin-bottom: 20px;
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 32px; align-items: center;
  box-shadow: var(--shadow);
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(55% 100% at 100% 0%, rgba(163, 230, 53, 0.17), transparent 62%),
              radial-gradient(40% 70% at 0% 100%, rgba(163, 230, 53, 0.06), transparent 70%);
}
.hero > * { position: relative; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 9px; font-size: 11px; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent);
}
.hero-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(163, 230, 53, 0.22); }
.hero-title { font-family: var(--font-display); font-size: 44px; line-height: 1.05; font-weight: 800; letter-spacing: -0.035em; margin: 16px 0 12px; color: #fff; }
.hero-title small { display: block; font-size: 16px; font-weight: 600; letter-spacing: -0.005em; color: #B4BFB3; margin-top: 10px; line-height: 1.35; }
.hero-sub { color: #93A093; font-size: 14px; max-width: 540px; line-height: 1.55; margin: 0 0 22px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-lime {
  background: var(--accent); color: var(--accent-ink); border: none; padding: 13px 22px; border-radius: 13px;
  font-weight: 700; font-size: 14px; font-family: var(--font-body); cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; transition: background 0.15s ease, transform 0.1s ease;
}
.btn-lime:hover { background: var(--accent-hover); }
.btn-lime:active { transform: translateY(1px); }
.btn-ghost-dark {
  background: rgba(255, 255, 255, 0.06); color: #E9EEE6; border: 1px solid rgba(255, 255, 255, 0.13);
  padding: 13px 20px; border-radius: 13px; font-weight: 600; font-size: 14px; font-family: var(--font-body); cursor: pointer;
}
.btn-ghost-dark:hover { background: rgba(255, 255, 255, 0.1); }
.hero-stats { display: grid; gap: 10px; }
.hero-stat {
  background: rgba(255, 255, 255, 0.045); border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 15px;
  padding: 15px 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.hero-stat-label { font-size: 12.5px; color: #8C988C; }
.hero-stat-value { font-family: var(--font-display); font-size: 23px; font-weight: 700; color: #fff; letter-spacing: -0.02em; }

/* indicadores */
.kpi-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.kpi {
  --kpi-color: #A3E635; --kpi-soft: rgba(163, 230, 53, 0.2); --kpi-ink: #3F7A17;
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 20px 20px 18px; box-shadow: var(--shadow); overflow: hidden;
}
.kpi::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--kpi-color); }
.kpi.t-teal  { --kpi-color: #2DD4BF; --kpi-soft: rgba(45, 212, 191, 0.18); --kpi-ink: #0F766E; }
.kpi.t-amber { --kpi-color: #F5B23B; --kpi-soft: rgba(245, 178, 59, 0.2);  --kpi-ink: #A16207; }
.kpi.t-coral { --kpi-color: #F0627E; --kpi-soft: rgba(240, 98, 126, 0.16); --kpi-ink: #C62D4A; }
:root[data-theme="dark"] .kpi.t-lime  { --kpi-ink: #A3E635; }
:root[data-theme="dark"] .kpi.t-teal  { --kpi-ink: #5EEAD4; }
:root[data-theme="dark"] .kpi.t-amber { --kpi-ink: #FBBF24; }
:root[data-theme="dark"] .kpi.t-coral { --kpi-ink: #F0627E; }
.kpi-click { cursor: pointer; transition: transform 0.12s ease, box-shadow 0.12s ease; }
.kpi-click:hover { transform: translateY(-2px); }
.kpi-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; min-height: 40px; }
.kpi-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--kpi-soft); color: var(--kpi-ink); display: flex; align-items: center; justify-content: center; }
.kpi-icon .ico { width: 20px; height: 20px; }
.kpi-delta { font-size: 11.5px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: var(--mint-soft); color: var(--mint); white-space: nowrap; }
.kpi-delta.bad { background: var(--coral-soft); color: var(--coral); }
.kpi-delta.neutral { background: var(--slate-soft); color: var(--muted); }
.kpi-value { font-family: var(--font-display); font-size: 34px; font-weight: 800; letter-spacing: -0.035em; color: var(--ink); line-height: 1; }
.kpi-label { margin-top: 9px; font-size: 13.5px; color: var(--muted); font-weight: 500; }
.kpi-sub { margin-top: 3px; font-size: 12px; color: var(--muted); opacity: 0.8; }

/* cartões da parte de baixo */
.home-cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; }
.home-cols-3 { grid-template-columns: 1.2fr 1fr; }
.home-cols-3 > :first-child { grid-row: span 2; }
.home-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: var(--shadow); min-width: 0; }
.home-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.home-card h3 { margin: 0; font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--ink); }
.home-card-link { font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.todo-list { display: flex; flex-direction: column; }
.todo-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.todo-row:first-child { border-top: none; padding-top: 2px; }
.todo-name { font-weight: 600; font-size: 13.5px; color: var(--ink); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.todo-days { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); min-width: 26px; text-align: right; }
.chip { font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--slate-soft); color: var(--muted); white-space: nowrap; max-width: 48%; overflow: hidden; text-overflow: ellipsis; flex-shrink: 1; }
.todo-row .chip { flex-shrink: 0; max-width: 44%; }
.chip.bad { background: var(--coral-soft); color: var(--coral); }
.chip.warn { background: var(--amber-soft); color: var(--amber); }
.chip.ok { background: var(--mint-soft); color: var(--mint); }

/* gráfico de barras dos últimos 14 dias */
.days-chart { display: flex; align-items: flex-end; gap: 7px; height: 150px; }
.days-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; height: 100%; justify-content: flex-end; min-width: 0; }
.days-col-bars { display: flex; align-items: flex-end; gap: 2px; flex: 1; width: 100%; justify-content: center; }
.days-bar { width: 27%; max-width: 9px; border-radius: 5px 5px 2px 2px; min-height: 3px; }
.days-bar.created { background: var(--line); }
:root[data-theme="dark"] .days-bar.created { background: #2A362D; }
.days-bar.delivered { background: var(--amber); }
.days-bar.paid { background: var(--accent); }
.days-label { font-size: 10.5px; color: var(--muted); font-family: var(--font-mono); }
.days-legend { display: flex; gap: 18px; margin-top: 14px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.days-legend-total { margin-left: auto; font-weight: 600; color: var(--ink); }
.days-legend .lg { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 7px; vertical-align: -0.5px; }
.days-legend .lg.created { background: var(--line); border: 1px solid rgba(15, 20, 16, 0.12); }
.days-legend .lg.delivered { background: var(--amber); }
.days-legend .lg.paid { background: var(--accent); }

@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; padding: 28px; }
  .home-cols, .home-cols-3 { grid-template-columns: 1fr; }
  .home-cols-3 > :first-child { grid-row: auto; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .hero-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .hero-stat { flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px; }
  .hero-stat-label { font-size: 11px; line-height: 1.25; }
  .hero-stat-value { font-size: 19px; }
  .hero-actions .btn-lime, .hero-actions .btn-ghost-dark { flex: 1 1 100%; justify-content: center; }
  .home-greet { font-size: 22px; }
  .hero { padding: 24px 20px; border-radius: 20px; }
  .hero-title { font-size: 34px; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .kpi { padding: 16px 14px; }
  .kpi-value { font-size: 26px; }
  .kpi-top { margin-bottom: 12px; }
}

/* Layout de campo igual ao formulário do Five Delivery — Dados do Cliente /
   Endereço Completo, cada campo com rótulo visível, mesma ordem de lá. */
.five-form-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 12px;
  padding-top: 12px; border-top: 1px solid var(--line);
}
.five-form-group-title {
  font-family: var(--font-display); font-size: 12px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 8px;
}
.five-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.labeled-field { margin-bottom: 8px; font-size: 13px; }
.labeled-field-label { display: block; font-size: 10.5px; color: var(--muted); margin-bottom: 2px; }
@media (max-width: 700px) {
  .five-form-layout { grid-template-columns: 1fr; }
}

/* links de ação dentro de cartões (ver por dia · comprovante · editar plano...) */
.dash-card a, .home-card a:not(.home-card-link) { font-size: 12.5px; font-weight: 600; }
/* "Marcar cobrança" + "⋯" sempre lado a lado, sem quebrar linha */
.step-actions { display: flex; align-items: center; gap: 6px; white-space: nowrap; }

/* ===================== METAS DO VENDEDOR ===================== */
.ladder + .ladder { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.ladder-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 9px; }
.ladder-title { font-family: var(--font-display); font-weight: 700; font-size: 13.5px; color: var(--ink); }
.ladder-now { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.ladder-bar { height: 10px; background: var(--slate-soft); border-radius: 999px; overflow: hidden; }
.ladder-bar-fill { height: 100%; background: var(--accent); border-radius: 999px; transition: width 0.4s ease; }
.ladder-note { margin-top: 9px; font-size: 12.5px; color: var(--muted); }
.ladder-note b { color: var(--ink); }
.ladder-tiers { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.tier {
  font-size: 11.5px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--muted); background: transparent; white-space: nowrap;
}
.tier b { color: var(--ink); font-weight: 700; margin-left: 2px; }
.tier.hit { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.tier.hit b { color: var(--accent-ink); }

/* campos de formulário dentro de modais: mesmo visual em todos */
.modal-body input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.modal-body select, .modal-body textarea {
  width: 100%; background: var(--field-bg); color: var(--ink); border: 1px solid var(--line);
  border-radius: 9px; padding: 9px 12px; font-size: 13px; font-family: var(--font-body);
}
.modal-body input:focus, .modal-body select:focus, .modal-body textarea:focus,
.login-card input:focus, .topbar input:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(163, 230, 53, 0.28);
}
.tier-row a { font-size: 12px; color: var(--coral); font-weight: 600; white-space: nowrap; }

:root[data-theme="dark"] .hero { border: 1px solid #1F2921; }

/* ===================== CPA · RANKING · METAS ===================== */
.kpi-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cpa-sub { font-size: 11.5px; color: var(--muted); }
.seg-toggle { display: inline-flex; background: var(--slate-soft); border-radius: 999px; padding: 3px; gap: 2px; }
.seg-toggle button { border: none; background: transparent; padding: 7px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--muted); cursor: pointer; font-family: var(--font-body); }
.seg-toggle button.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.setup-card { border-color: var(--amber); margin-bottom: 16px; }
.setup-steps { margin: 6px 0 0; padding-left: 20px; font-size: 13px; line-height: 1.7; color: var(--ink); }
.setup-steps code { background: var(--slate-soft); padding: 1px 6px; border-radius: 5px; font-family: var(--font-mono); font-size: 12px; }
.setup-row { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.setup-row label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.setup-row label input { font-weight: 400; }
.setup-field-label { min-height: 32px; display: flex; align-items: flex-end; }
.rank-list { display: flex; flex-direction: column; gap: 4px; }
.rank-row { display: flex; align-items: center; gap: 14px; padding: 12px 10px; border-radius: 14px; }
.rank-row.first { background: var(--mint-soft); }
.rank-pos { width: 30px; height: 30px; border-radius: 50%; background: var(--slate-soft); color: var(--ink); font-family: var(--font-display); font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rank-row.first .rank-pos { background: var(--accent); color: var(--accent-ink); }
.rank-main { flex: 1; min-width: 0; }
.rank-name { font-weight: 700; font-size: 14px; color: var(--ink); }
.rank-bar { height: 6px; background: var(--slate-soft); border-radius: 999px; margin: 7px 0 5px; overflow: hidden; }
.rank-bar i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.rank-sub { font-size: 11.5px; color: var(--muted); }
.rank-val { font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: -0.02em; color: var(--ink); white-space: nowrap; }
.rank-val small { font-size: 11px; font-weight: 600; color: var(--muted); margin-left: 3px; letter-spacing: 0; }
.goal-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.goal-form label { font-size: 12px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.goal-form input { width: 100%; }
@media (max-width: 1100px) { .kpi-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .goal-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .home-cols[style] { grid-template-columns: 1fr !important; } }

.webhook-security { margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: var(--slate-soft); }
.webhook-security-status { font-size: 13px; color: var(--ink); line-height: 1.5; }

/* ===================== AJUDA · TOUR ===================== */
.help-list { display: flex; flex-direction: column; gap: 10px; max-width: 860px; }
.help-item { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.help-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 16px 20px; font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--ink); }
.help-item summary::-webkit-details-marker { display: none; }
.help-item summary::after { content: '▾'; margin-left: auto; color: var(--muted); font-size: 12px; transition: transform 0.15s; }
.help-item[open] summary::after { transform: rotate(180deg); }
.help-ico { width: 34px; height: 34px; border-radius: 10px; background: var(--mint-soft); display: inline-flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }
.help-body { padding: 0 22px 20px 66px; font-size: 13.5px; line-height: 1.65; color: var(--ink); }
.help-body p { margin: 0 0 10px; }
.help-body ol, .help-body ul { margin: 0 0 8px; padding-left: 20px; }
.help-body li { margin-bottom: 8px; }
.help-body i { color: var(--muted); font-style: normal; font-weight: 600; }
.tour-card { max-width: 480px; text-align: center; overflow: hidden; }
.tour-dots { display: flex; justify-content: center; gap: 7px; padding-top: 22px; }
.tour-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.tour-dots i.on { width: 22px; border-radius: 4px; background: var(--accent); }
.tour-body { padding: 22px 34px 8px; }
.tour-icon { font-size: 46px; line-height: 1; margin-bottom: 14px; }
.tour-body h2 { font-family: var(--font-display); font-size: 21px; margin: 0 0 10px; color: var(--ink); letter-spacing: -0.02em; }
.tour-body p { font-size: 14px; line-height: 1.65; color: var(--muted); margin: 0; }
.tour-body p b { color: var(--ink); }
.tour-footer { border-top: none; }
@media (max-width: 700px) { .help-body { padding-left: 22px; } }

.welcome-empty { display: flex; align-items: center; gap: 18px; padding: 20px 24px; margin-bottom: 20px; border-radius: 20px; background: var(--mint-soft); border: 1px dashed var(--accent); }
.welcome-empty-ico { font-size: 34px; }
.welcome-empty-text { flex: 1; min-width: 0; }
.welcome-empty-text h3 { margin: 0 0 4px; font-family: var(--font-display); font-size: 16px; color: var(--ink); }
.welcome-empty-text p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--ink); }
@media (max-width: 700px) { .welcome-empty { flex-direction: column; align-items: flex-start; } }

/* "Registrar Pedido" embutido no menu lateral (admin/cobrança) — esconde o
   topo próprio do vendor-shell (logo, nome, sair) porque o menu lateral já
   mostra tudo isso; mantém só as abas e o conteúdo. */
.vendor-shell[data-embedded="1"] .vendor-topbar { display: none; }
.vendor-shell[data-embedded="1"] .vendor-tabs { padding-top: 0; }

/* caixinha "sem o código do criativo" nos formulários do vendedor */
.sem-criativo-row { display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; font-size: 13px; color: var(--muted); cursor: pointer; line-height: 1.35; }
.sem-criativo-row input { margin-top: 2px; width: auto; flex: none; }
input:disabled { opacity: .55; cursor: not-allowed; }

/* Auditoria da cobrança (Monitoramento) */
.audit-controls { display: flex; align-items: center; gap: 8px; margin: 4px 0 14px; flex-wrap: wrap; }
.audit-seg-btn { border: 1px solid var(--line); background: var(--surface, #fff); color: var(--muted, #5F6B62); padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; cursor: pointer; }
.audit-seg-btn.active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink, #0F1410); }
.dash-amber { color: var(--amber, #B26A00); font-weight: 600; }

/* Resumo do dia pro grupo (Monitoramento) */
.resumo-textarea { width: 100%; min-height: 200px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface, #fff); color: var(--ink, #0F1410); font: inherit; font-size: 14px; line-height: 1.55; resize: vertical; box-sizing: border-box; }
.resumo-actions { display: flex; gap: 10px; align-items: center; margin-top: 10px; flex-wrap: wrap; }

/* ===================== Chat WhatsApp ===================== */
.chat-shell { display: grid; grid-template-columns: 340px 1fr; height: calc(100vh - 190px); min-height: 520px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--surface, #fff); }
.chat-list { display: flex; flex-direction: column; border-right: 1px solid var(--line); min-height: 0; }
.chat-list-head { padding: 12px; border-bottom: 1px solid var(--line); }
.chat-search { width: 100%; box-sizing: border-box; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 14px; background: transparent; color: inherit; }
.chat-filters { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.chat-filters .audit-seg-btn { padding: 4px 10px; font-size: 12px; }
.chat-items { overflow-y: auto; flex: 1; }
.chat-item { display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left; padding: 11px 12px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: inherit; cursor: pointer; font: inherit; }
.chat-item:hover { background: rgba(0,0,0,.03); }
.chat-item.active { background: var(--accent-soft, rgba(168,230,60,.18)); }
.chat-avatar { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--line); font-weight: 700; color: var(--muted, #5F6B62); }
.chat-item-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.chat-item-top { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.chat-item-top b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-item-time { flex: none; font-size: 11px; color: var(--muted, #5F6B62); }
.chat-item-prev { font-size: 13px; color: var(--muted, #5F6B62); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-item-tags { display: flex; gap: 6px; margin-top: 2px; }
.chat-tag { font-size: 11px; padding: 1px 8px; border-radius: 999px; background: var(--line); color: var(--muted, #5F6B62); }
.chat-tag.warn { background: rgba(245,158,11,.16); color: #9A5B00; }
.chat-badge { flex: none; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: var(--accent-ink, #0F1410); font-size: 12px; font-weight: 700; display: grid; place-items: center; align-self: center; }

.chat-thread { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.chat-thread-head { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.chat-head-main { flex: 1; min-width: 160px; display: flex; flex-direction: column; }
.chat-assign { display: flex; flex-direction: column; font-size: 11px; color: var(--muted, #5F6B62); gap: 2px; }
.chat-assign select { font: inherit; font-size: 13px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: inherit; }
.chat-back { display: none; }
.chat-window { font-size: 12px; padding: 6px 14px; }
.chat-window.open { background: rgba(168,230,60,.14); color: #3F6B0F; }
.chat-window.closed { background: rgba(245,158,11,.15); color: #9A5B00; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 6px; background: rgba(0,0,0,.02); }
.chat-empty { margin: auto; color: var(--muted, #5F6B62); font-size: 14px; }
.chat-row { display: flex; }
.chat-row.out { justify-content: flex-end; }
.chat-bubble { max-width: min(560px, 80%); padding: 7px 10px 5px; border-radius: 12px; background: var(--surface, #fff); border: 1px solid var(--line); }
.chat-row.out .chat-bubble { background: var(--accent-soft, rgba(168,230,60,.28)); border-color: transparent; }
.chat-who { font-size: 11px; font-weight: 700; color: var(--muted, #5F6B62); margin-bottom: 2px; }
.chat-body { white-space: pre-wrap; word-break: break-word; font-size: 14px; line-height: 1.4; }
.chat-meta { text-align: right; font-size: 10.5px; color: var(--muted, #5F6B62); margin-top: 2px; }
.chat-tick.read { color: #2A8BF2; }
.chat-tick.failed { color: #C0392B; font-weight: 700; }
.chat-event { align-self: center; font-size: 12px; color: var(--muted, #5F6B62); background: var(--line); padding: 3px 12px; border-radius: 999px; }
.chat-composer { display: flex; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--line); flex-wrap: wrap; align-items: flex-end; }
.chat-composer textarea { flex: 1; min-width: 200px; resize: none; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; font: inherit; font-size: 14px; background: transparent; color: inherit; }
.chat-status { flex-basis: 100%; font-size: 12px; color: var(--muted, #5F6B62); min-height: 0; }
.chat-status.err { color: #C0392B; }
.chat-steps { margin: 6px 0 0 18px; padding: 0; line-height: 1.6; font-size: 14px; }
.chat-steps code { background: var(--line); padding: 1px 6px; border-radius: 6px; font-size: 12.5px; word-break: break-all; }
.chat-sql { background: #0F1410; color: #D8F5A2; padding: 10px 12px; border-radius: 10px; font-size: 12px; overflow-x: auto; white-space: pre; }

@media (max-width: 900px) {
  .chat-shell { grid-template-columns: 1fr; height: calc(100vh - 150px); }
  .chat-shell[data-open="0"] .chat-thread { display: none; }
  .chat-shell[data-open="1"] .chat-list { display: none; }
  .chat-back { display: inline-block; }
}

/* mídia no chat e aba do vendedor */
.chat-media-img { display: block; max-width: 260px; max-height: 260px; border-radius: 8px; cursor: zoom-in; margin-bottom: 4px; }
.chat-media-audio { display: block; width: 250px; max-width: 100%; margin-bottom: 4px; }
.chat-media-video { display: block; max-width: 280px; border-radius: 8px; margin-bottom: 4px; }
.chat-media-btn { margin-bottom: 4px; }
.chat-media-link { display: inline-block; margin-bottom: 4px; font-weight: 600; }
.chat-embedded .chat-shell { height: calc(100vh - 200px); min-height: 440px; }
.vendor-tab-btn .chat-badge { display: inline-grid; margin-left: 6px; vertical-align: middle; }
.vendor-tab-btn .chat-badge.hidden { display: none; }

/* ===================== Robô do funil ===================== */
.flow-counts { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.flow-counts span { background: var(--surface, #fff); border: 1px solid var(--line); border-radius: 12px; padding: 8px 14px; font-size: 13px; color: var(--muted, #5F6B62); }
.flow-counts b { font-size: 18px; color: var(--ink, #0F1410); margin-right: 4px; }
.flow-tabs { margin-bottom: 12px; }
.flow-editor { display: flex; flex-direction: column; gap: 6px; }
.flow-row { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.flow-field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted, #5F6B62); font-weight: 600; }
.flow-field input[type=text], .flow-field input[type=number] { font: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: inherit; }
.flow-switch { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.flow-switch span { display: flex; flex-direction: column; font-size: 14px; }
.flow-switch small { font-size: 12px; color: var(--muted, #5F6B62); }
.flow-step { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; margin-bottom: 8px; display: flex; flex-direction: column; gap: 8px; background: var(--surface, #fff); }
.flow-step-head { display: flex; align-items: center; gap: 8px; }
.flow-step-n { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--accent-ink, #0F1410); font-weight: 700; font-size: 12px; display: grid; place-items: center; }
.flow-step-head select { flex: 1; font: inherit; font-size: 14px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: inherit; }
.flow-step-actions { display: flex; gap: 4px; }
.flow-step-actions .ghost-btn { padding: 2px 9px; }
.flow-step textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: inherit; resize: vertical; }
.flow-add select { font: inherit; font-size: 14px; padding: 8px 10px; border: 1px dashed var(--line); border-radius: 10px; background: transparent; color: inherit; cursor: pointer; }
.flow-pool { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.flow-pool-item { display: flex; gap: 6px; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 13px; cursor: pointer; }
.flow-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.flow-msg { font-size: 13px; color: #3F6B0F; }
.flow-msg.err { color: #C0392B; }
.flow-help { margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: rgba(0,0,0,.03); font-size: 13px; color: var(--muted, #5F6B62); }
.flow-help ul { margin: 6px 0 0 18px; padding: 0; line-height: 1.6; }
.flow-help code { background: var(--line); padding: 1px 6px; border-radius: 6px; font-size: 12px; }
.chat-bot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; padding: 6px 14px; background: rgba(42,139,242,.10); color: #1B5FA8; }
.chat-bot .ghost-btn { padding: 2px 10px; font-size: 12px; }

.flow-conn { margin-bottom: 12px; }
.flow-conn select { min-width: 280px; }
.flow-conn select, .flow-dup { font: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: inherit; }
.flow-conn-info { margin: 8px 0 0; line-height: 1.5; }
.flow-dup { margin-left: auto; font-size: 13px; padding: 7px 9px; }
.chat-tag.conn { background: rgba(42,139,242,.12); color: #1B5FA8; }

/* ===================== Conexões ===================== */
.conn-license { margin-bottom: 14px; }
.conn-license.full { border-color: #E0A100; }
.conn-license.blocked { border-color: #C0392B; }
.conn-license-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.conn-actions { display: flex; gap: 8px; }
.conn-bar { height: 8px; border-radius: 999px; background: var(--line); margin-top: 12px; overflow: hidden; }
.conn-bar i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.conn-license.full .conn-bar i { background: #E0A100; }
.conn-license.blocked .conn-bar i { background: #C0392B; }
.conn-warn { margin: 10px 0 0; font-size: 13px; color: #9A5B00; }
.conn-license.blocked .conn-warn { color: #C0392B; }
.conn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.conn-card { border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; background: var(--surface, #fff); display: flex; flex-direction: column; gap: 6px; }
.conn-card.off { opacity: .62; }
.conn-card h4 { margin: 4px 0 0; font-size: 16px; }
.conn-card-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.conn-provider { color: var(--muted, #5F6B62); }
.conn-meta { margin: 0; font-size: 13px; color: var(--muted, #5F6B62); }
.conn-card-foot { display: flex; align-items: center; gap: 8px; margin-top: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
.conn-card-foot .ghost-btn { padding: 4px 12px; font-size: 13px; }
.conn-chip { font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px; }
.conn-chip.idle { background: var(--line); color: var(--muted, #5F6B62); }
.conn-chip.ok { background: rgba(168,230,60,.25); color: #3F6B0F; }
.conn-chip.bad { background: rgba(192,57,43,.14); color: #C0392B; }
.conn-switch { margin-left: auto; position: relative; width: 42px; height: 24px; cursor: pointer; }
.conn-switch input { opacity: 0; position: absolute; inset: 0; cursor: pointer; z-index: 1; margin: 0; }
.conn-switch span { position: absolute; inset: 0; background: var(--line); border-radius: 999px; transition: background .15s; }
.conn-switch span::after { content: ''; position: absolute; width: 18px; height: 18px; top: 3px; left: 3px; background: #fff; border-radius: 50%; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.conn-switch input:checked + span { background: var(--accent); }
.conn-switch input:checked + span::after { transform: translateX(18px); }
.conn-modal-back { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: grid; place-items: center; z-index: 60; padding: 16px; }
.conn-modal { background: var(--surface, #fff); color: var(--ink, #0F1410); border-radius: 18px; padding: 20px 22px; width: min(480px, 100%); display: flex; flex-direction: column; gap: 12px; max-height: 92vh; overflow-y: auto; }
.conn-modal h3 { margin: 0; }

/* ===================== Plataforma ===================== */
.plat-list { display: flex; flex-direction: column; gap: 12px; }
.plat-org-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.plat-meter { height: 8px; border-radius: 999px; background: var(--line); margin: 10px 0 8px; overflow: hidden; }
.plat-meter-bar { height: 100%; background: var(--accent); border-radius: 999px; }
.plat-meter-bar.full { background: #E0A100; }
.plat-org-info { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--muted, #5F6B62); }
.plat-warn { color: #C0392B; }
.plat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 10px 0; }
.plat-grid select, .plat-grid input { width: 100%; box-sizing: border-box; font: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: inherit; }
.plat-created { border: 1px solid var(--accent); margin-bottom: 12px; }
.plat-cred { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 6px 0; }
.plat-cred span { min-width: 120px; font-size: 12px; color: var(--muted, #5F6B62); font-weight: 600; }
.plat-cred code { background: var(--line); padding: 4px 10px; border-radius: 8px; font-size: 14px; word-break: break-all; }


/* =====================================================================================
   NOVIDADES (menu novo, áreas, gaveta no celular, fonte) — SÓ PRA QUEM TEM O INTERRUPTOR (só texto, títulos de seção, contador só quando
   tem algo). Tudo aqui está dentro de html.ui-beta: quem NÃO tem o interruptor vê o menu e a fonte de antes. As
   cores são as originais (verde-escuro + lime); aqui só muda a estrutura. Pra liberar pra todo mundo,
   é só tirar o prefixo html.ui-beta (ou ligar a classe pra todos).
   ===================================================================================== */
/* ---- base: o que é preciso existir ANTES de ligar o interruptor ---- */
.beta-hidden { display: none !important; }             /* itens de menu novos: escondidos até o JS liberar */
.brand-short { display: none; }                        /* "P7 · sistema" só aparece no menu novo */
.module-switch { display: none; }                      /* seletor de áreas só no menu novo */
html.ui-beta { --font-display: 'Hanken Grotesk', system-ui, sans-serif; --font-body: 'Hanken Grotesk', system-ui, sans-serif; }
html.ui-beta .brand-full { display: none; }
html.ui-beta .brand-short { display: inline; }

html.ui-beta .sidebar { padding: 24px 12px 14px; gap: 0; }
html.ui-beta .brand { padding: 0 8px 16px; gap: 8px; align-items: center; }
html.ui-beta .brand-mark { display: none; }
html.ui-beta .brand-text { display: flex; align-items: baseline; gap: 9px; }
html.ui-beta .brand-title { font-size: 25px; font-weight: 600; letter-spacing: 0.14em; }
html.ui-beta .brand-sub { font-size: 12.5px; margin-top: 0; letter-spacing: 0; }
html.ui-beta .sidebar-toggle-btn { border-radius: 999px; width: 26px; height: 26px; font-size: 14px; line-height: 1; }

html.ui-beta .side-nav { gap: 3px; }
html.ui-beta .side-label { font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; padding: 18px 12px 6px; }
html.ui-beta .filter-btn,html.ui-beta .sidebar-group-toggle { font-size: 15px; padding: 9px 12px; border-radius: 10px; }
html.ui-beta .side-item { font-size: 15px; padding: 9px 12px; border-radius: 10px; }
html.ui-beta .side-item .ico { display: none; }                     /* só texto, como no DOMM */
html.ui-beta .sidebar-group-content { padding-left: 4px; margin-left: 16px; }
html.ui-beta .sidebar-group-content .filter-btn { font-size: 14px; padding: 7px 10px; border-radius: 8px; }
html.ui-beta .filter-btn .count.zero,html.ui-beta .side-item .count.zero { display: none; }   /* contador "0" some (o JS marca) */

/* ---- computador: coluna do menu mais estreita ---- */
@media (min-width: 901px) {
  html.ui-beta .shell { grid-template-columns: 232px 1fr; }
  html.ui-beta .shell.sidebar-collapsed { grid-template-columns: 0 1fr; }
}
@supports (height: 100dvh) {          /* celular: a barra do navegador sobe/desce e o 100vh "pula" */
  html.ui-beta .shell { min-height: 100dvh; }
}

/* ---- celular/tablet: o menu vira uma GAVETA por cima do conteúdo ----
   Antes ele empurrava ou empilhava o conteúdo (a página ficava mais larga que a tela e "balançava"
   ao arrastar). Agora o conteúdo fica parado e a gaveta desliza por cima, com fundo escuro atrás. */
@media (max-width: 900px) {
  html.ui-beta .shell,html.ui-beta .shell.sidebar-collapsed { grid-template-columns: 1fr; }
  html.ui-beta .sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; height: 100dvh; width: min(86vw, 320px); z-index: 80;
    transform: translateX(0); transition: transform 0.22s ease, visibility 0s;
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.35);
    overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  }
  html.ui-beta .shell.sidebar-collapsed .sidebar {
    width: min(86vw, 320px); padding: 24px 12px 14px; overflow-y: auto; border: none;
    transform: translateX(-104%); box-shadow: none; visibility: hidden;
    transition: transform 0.22s ease, visibility 0s linear 0.22s;
  }
  html.ui-beta .shell:not(.sidebar-collapsed)::after {            /* fundo escuro; tocar nele fecha o menu */
    content: ''; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5); z-index: 70;
  }
  /* menu aberto: a página de trás não rola (senão arrastar o menu mexe no conteúdo) */
  html.ui-beta:has(#app-shell:not(.hidden):not(.sidebar-collapsed)) { overflow: hidden; }
  /* puxar a tela pra baixo no topo não atualiza/"estica" a página */
  html.ui-beta,html.ui-beta body { overscroll-behavior-y: none; }
}

/* ---- áreas do sistema (CRM · Vendas · Financeiro · Configurações) ---- */
html.ui-beta .module-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 0 2px 8px; }
html.ui-beta .module-tab {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font: inherit; font-size: 12px; font-weight: 600; padding: 8px 2px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--line); background: transparent; color: #A9B4A9;
  transition: background 0.15s ease, color 0.15s ease;
}
html.ui-beta .module-tab:hover { background: var(--hover); color: #fff; }
html.ui-beta .module-tab.active { background: var(--mint-soft); border-color: transparent; color: var(--accent); }
html.ui-beta .module-tab.hidden { display: none; }
.module-hidden { display: none !important; }

/* ===================== Importar do DataCrazy ===================== */
html.ui-beta .dci-table { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
html.ui-beta .dci-row,html.ui-beta .dci-fluxo { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; background: var(--surface, #fff); }
html.ui-beta .dci-row.apagada { opacity: 0.5; }
html.ui-beta .dci-who { flex: 1; min-width: 190px; display: flex; flex-direction: column; }
html.ui-beta .dci-who small { color: var(--muted, #5F6B62); font-size: 12px; }
html.ui-beta .dci-row select,html.ui-beta .dci-fluxo select { flex: 1.2; min-width: 200px; font: inherit; font-size: 14px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: inherit; }
html.ui-beta .dci-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
html.ui-beta .dci-tag { border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px; font-size: 12.5px; }
html.ui-beta .dci-tag.existe { opacity: 0.55; }
html.ui-beta .dci-rel { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin-top: 10px; background: var(--surface, #fff); }
html.ui-beta .dci-rel.erro { border-color: #C0392B; color: #C0392B; }
html.ui-beta .dci-num { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 6px; font-size: 13px; color: var(--muted, #5F6B62); }
html.ui-beta .dci-num b { color: var(--ink, #0F1410); }
html.ui-beta .dci-avisos { margin: 8px 0 0 18px; padding: 0; font-size: 13px; line-height: 1.55; color: #9A5B00; }
html.ui-beta .dci-fluxo { margin-bottom: 8px; }

/* ===================== Tipos de conexão (oficial · coexistência · Uazapi) ===================== */
.conn-types { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.conn-type { text-align: left; font: inherit; display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: transparent; color: inherit; cursor: pointer; }
.conn-type:hover:not(:disabled) { border-color: var(--accent); background: var(--mint-soft, rgba(163, 230, 53, 0.1)); }
.conn-type > b { font-size: 15px; }
.conn-type span b { font-size: inherit; color: var(--ink, #0F1410); }
.conn-type span { font-size: 13px; line-height: 1.5; color: var(--muted, #5F6B62); }
.conn-type em { font-size: 12.5px; color: #9A5B00; font-style: normal; }
.conn-type.bloqueado { opacity: 0.6; cursor: not-allowed; }
.tag-reco, .tag-risco { font-style: normal; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; margin-left: 6px; }
.tag-reco { background: var(--mint-soft, #e7f5c6); color: #3F6B0F; }
.tag-risco { background: #FDECC8; color: #9A5B00; }
.conn-warnbox, .conn-infobox, .conn-okbox { font-size: 13px; line-height: 1.55; padding: 10px 12px; border-radius: 10px; margin-bottom: 10px; }
.conn-warnbox { background: #FDECC8; color: #7A4700; }
.conn-warnbox input[type=text] { width: 100%; margin: 6px 0; font: inherit; font-size: 12px; padding: 6px 8px; border: 1px solid #E0B867; border-radius: 8px; }
.conn-infobox { background: var(--mint-soft, #eef6dc); color: var(--ink, #1c2a14); }
.conn-okbox { background: #DCF5D8; color: #1F5E1A; }
.conn-qr { display: flex; justify-content: center; align-items: center; min-height: 250px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.conn-risk { font-size: 12px; color: #9A5B00; margin: 0 0 8px; }
.conn-provider.nao-oficial { color: #9A5B00; }

/* ===================== CANVAS DO FLUXO ===================== */
.fc-section { padding: 0 !important; overflow: hidden; }
.fc-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.fc-nome { font: inherit; font-weight: 600; font-size: 15px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: inherit; min-width: 180px; max-width: 280px; }
.fc-add-grupo, .fc-zoom { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.fc-toolbar .ghost-btn { padding: 6px 10px; font-size: 13px; }
.fc-status { margin-left: auto; font-size: 12.5px; }
.fc-sujo { color: #B45309; font-weight: 600; } .fc-limpo { color: var(--muted, #5F6B62); }
.fc-aviso-btn { color: #B45309; border-color: #E0B867; }
.fc-liga { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--line); background: var(--surface-2, rgba(0,0,0,0.02)); }
.fc-liga select { font: inherit; font-size: 13px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: inherit; max-width: 300px; }
.fc-estado { font-size: 13px; color: var(--muted, #5F6B62); } .fc-estado.on { color: #3F6B0F; font-weight: 600; }
.fc-lista-msg { margin: 4px 0 0 18px; padding: 0; font-size: 12.5px; font-weight: 400; }
.fc-corpo { display: flex; height: calc(100vh - 250px); min-height: 520px; }
.fc-vp { position: relative; flex: 1; overflow: hidden; background-color: #F4F6F1; background-image: radial-gradient(#C9D1C3 1px, transparent 1px); background-size: 22px 22px; cursor: grab; touch-action: none; outline: none; }
.fc-vp.fc-pan { cursor: grabbing; }
.fc-stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.fc-edges { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.fc-ehit { fill: none; stroke: transparent; stroke-width: 14; pointer-events: stroke; }
.fc-edge { fill: none; stroke: #64748B; stroke-width: 2; pointer-events: none; }
.fc-e-tempo { stroke: #B45309; stroke-dasharray: 6 4; } .fc-e-senao { stroke: #94A3B8; stroke-dasharray: 2 4; }
.fc-eg:hover .fc-edge { stroke: #1D4ED8; stroke-width: 3; }
.fc-ex { opacity: 0; cursor: pointer; pointer-events: all; } .fc-ex circle { fill: #fff; stroke: #B91C1C; stroke-width: 1.5; } .fc-ex text { fill: #B91C1C; font-size: 11px; font-weight: 700; }
.fc-eg:hover .fc-ex, .fc-ex:hover { opacity: 1; }
.fc-temp { fill: none; stroke: #1D4ED8; stroke-width: 2.5; stroke-dasharray: 5 4; pointer-events: none; }
.fc-node { position: absolute; background: #fff; border: 1.5px solid var(--cor, #94A3B8); border-radius: 12px; box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12); font-size: 13px; cursor: default; user-select: none; }
.fc-node.fc-sel { box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.35), 0 4px 14px rgba(15, 23, 42, 0.2); }
.fc-node.fc-alvo { box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.5); }
.fc-node.fc-orfao { border-style: dashed; opacity: 0.8; }
.fc-solto { display: none; margin-left: auto; font-size: 10.5px; background: #FDECC8; color: #7A4700; padding: 1px 7px; border-radius: 999px; }
.fc-orfao .fc-solto { display: inline; }
.fc-head { display: flex; align-items: center; gap: 6px; padding: 7px 10px; background: var(--cor, #94A3B8); color: #fff; border-radius: 10px 10px 0 0; cursor: move; }
.fc-head b { font-size: 13px; } .fc-head .fc-del { margin-left: auto; background: transparent; border: 0; color: #fff; cursor: pointer; opacity: 0.8; font-size: 13px; } .fc-orfao .fc-head .fc-del { margin-left: 6px; }
.fc-resumo { padding: 8px 10px; color: #1F2937; max-height: 190px; overflow: hidden; }
.fc-li { padding: 1px 0; line-height: 1.4; overflow-wrap: anywhere; } .fc-li small { color: #64748B; } .fc-aviso { color: #B45309; }
.fc-portas { border-top: 1px solid #E5E7EB; padding: 4px 0; }
.fc-porta { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 3px 16px 3px 10px; font-size: 12px; color: #475569; position: relative; min-height: 22px; }
.fc-port { position: absolute; right: -8px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2.5px solid var(--cor, #64748B); cursor: crosshair; }
.fc-port:hover { background: var(--cor, #64748B); transform: scale(1.2); }
.fc-in { position: absolute; left: -8px; top: 16px; width: 14px; height: 14px; border-radius: 50%; background: var(--cor, #64748B); border: 2.5px solid #fff; box-shadow: 0 0 0 1px var(--cor, #64748B); }
.fc-dica { position: absolute; left: 12px; bottom: 10px; font-size: 12px; color: #64748B; background: rgba(255,255,255,0.85); padding: 5px 10px; border-radius: 8px; pointer-events: none; }
.fc-menu { position: absolute; z-index: 10; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 24px rgba(15, 23, 42, 0.2); padding: 8px; display: flex; flex-direction: column; gap: 4px; min-width: 170px; }
.fc-menu b { font-size: 12px; color: #64748B; padding: 2px 6px; } .fc-menu button { text-align: left; font: inherit; font-size: 13px; padding: 6px 8px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; } .fc-menu button:hover { background: #EEF2FF; }
.fc-painel { width: 340px; border-left: 1px solid var(--line); overflow-y: auto; background: var(--surface, #fff); }
.fc-painel-cab { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface, #fff); z-index: 2; }
.fc-painel-cab span { background: var(--cor, #64748B); color: #fff; width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; } .fc-painel-cab .ghost-btn { margin-left: auto; padding: 4px 9px; font-size: 12px; }
.fc-painel-corpo { padding: 10px 12px; display: flex; flex-direction: column; gap: 10px; }
.fc-painel select, .fc-painel input[type=text], .fc-painel input[type=number], .fc-painel textarea { font: inherit; font-size: 13px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: inherit; width: 100%; box-sizing: border-box; }
.fc-painel input[type=number] { width: 90px; } .fc-painel textarea { resize: vertical; }
.fc-campo { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted, #5F6B62); }
.fc-item { border: 1px solid var(--line); border-radius: 10px; padding: 8px; display: flex; flex-direction: column; gap: 8px; }
.fc-item-cab { display: flex; align-items: center; justify-content: space-between; gap: 6px; } .fc-item-cab button { border: 0; background: transparent; cursor: pointer; font-size: 13px; padding: 2px 6px; color: #64748B; } .fc-item-cab select { width: auto; flex: 1; }
.fc-linha { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 13px; } .fc-acoes { gap: 6px; } .fc-linha .ghost-btn { padding: 5px 9px; font-size: 12px; }
.fc-chips { display: flex; flex-wrap: wrap; gap: 5px; } .fc-chip { display: inline-flex; align-items: center; gap: 4px; border: 1.5px solid #94A3B8; border-radius: 999px; padding: 2px 4px 2px 10px; font-size: 12px; } .fc-chip button { border: 0; background: transparent; cursor: pointer; color: #64748B; font-size: 13px; }
.fc-check { display: flex; gap: 6px; align-items: flex-start; font-size: 12.5px; color: #475569; }
.fc-ajuda { margin: 0; padding-left: 18px; font-size: 12.5px; line-height: 1.7; color: #334155; }
/* cadastro de etiquetas e departamentos */
.cat-linha, .cat-nova { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 6px 0; border-bottom: 1px solid var(--line); }
.cat-nova { border-bottom: 0; padding-top: 12px; }
.cat-cor { width: 38px; height: 32px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: transparent; cursor: pointer; }
.cat-nome, .cat-nova input[type=text] { flex: 1; min-width: 160px; font: inherit; font-size: 14px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: inherit; }
.cat-uso { font-size: 12px; color: var(--muted, #5F6B62); min-width: 170px; }
@media (max-width: 900px) { .fc-corpo { flex-direction: column; height: auto; } .fc-vp { height: 60vh; } .fc-painel { width: auto; border-left: 0; border-top: 1px solid var(--line); } }

.fc-direita { margin-left: auto; display: inline-flex; gap: 8px; align-items: center; }

.home-head-acoes { display: inline-flex; gap: 12px; align-items: center; flex-wrap: wrap; }

.app-version { font-size: 11px; color: var(--muted, #8A948A); text-align: center; padding: 2px 0 8px; opacity: 0.7; }

/* ===================== LEADS ===================== */
.leads-barra { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.leads-busca { font: inherit; font-size: 14px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: inherit; min-width: 260px; }
.leads-total { font-size: 14px; color: var(--muted, #5F6B62); }
.leads-filtros { margin-left: auto; display: inline-flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.leads-filtros select, .leads-lote select { font: inherit; font-size: 13px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: inherit; max-width: 200px; }
.leads-lote { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px 12px; margin: 8px 0; border: 1px solid var(--accent); background: var(--mint-soft, rgba(163,230,53,0.12)); border-radius: 12px; }
.leads-tabela { border: 1px solid var(--line); border-radius: 14px; overflow-x: auto; background: var(--surface, #fff); }
.leads-linha { display: grid; grid-template-columns: 30px minmax(150px, 1.2fr) 92px 158px minmax(90px, 0.8fr) 262px minmax(120px, 1fr) 108px 36px; gap: 8px; align-items: center; padding: 10px 10px; border-bottom: 1px solid var(--line); font-size: 13px; min-width: 1000px; }
.leads-linha:last-child { border-bottom: 0; }
.leads-cab { font-size: 12px; font-weight: 600; color: var(--muted, #5F6B62); background: var(--surface-2, rgba(0,0,0,0.03)); position: sticky; top: 0; }
.leads-nome { display: flex; align-items: center; gap: 10px; min-width: 0; } .leads-nome > span { display: flex; flex-direction: column; min-width: 0; } .leads-nome b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.leads-nome small { color: var(--muted, #5F6B62); font-size: 11.5px; } .leads-nome small em { font-style: normal; color: #3F6B0F; font-weight: 600; }
.leads-av { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-style: normal; font-weight: 700; flex: none; }
.leads-tipo { font-style: normal; font-size: 12px; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.leads-fone { white-space: nowrap; }
.leads-tags { display: flex; flex-wrap: wrap; gap: 4px; } .leads-tag { font-style: normal; font-size: 11.5px; border: 1.5px solid #94A3B8; border-radius: 999px; padding: 1px 8px; }
.leads-dados { display: flex; gap: 10px; align-items: center; } .leads-dados > span { display: flex; flex-direction: column; line-height: 1.2; } .leads-dados small { font-size: 10.5px; color: var(--muted, #5F6B62); } .leads-dados b { font-size: 13.5px; }
.leads-bola { align-items: center; } .leads-bola b { width: 34px; height: 34px; border-radius: 50%; border: 2.5px solid #3F6B0F; display: inline-flex; align-items: center; justify-content: center; }
.leads-resp { display: flex; flex-direction: column; } .leads-resp small { color: var(--muted, #5F6B62); font-size: 11.5px; }
.leads-data { color: var(--muted, #5F6B62); }
.leads-3p { border: 0; background: transparent; cursor: pointer; font-size: 16px; letter-spacing: 1px; color: var(--muted, #5F6B62); padding: 4px 6px; border-radius: 8px; } .leads-3p:hover { background: var(--hover, rgba(0,0,0,0.06)); }
.leads-vazio { padding: 28px; text-align: center; color: var(--muted, #5F6B62); }
.leads-pag { display: flex; gap: 14px; align-items: center; justify-content: center; padding: 14px; font-size: 13px; }
.leads-menu { position: fixed; z-index: 200; width: 300px; background: var(--surface, #fff); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 30px rgba(15, 23, 42, 0.22); padding: 6px; }
.leads-menu button { display: flex; flex-direction: column; text-align: left; gap: 2px; width: 100%; font: inherit; border: 0; background: transparent; color: inherit; padding: 9px 10px; border-radius: 10px; cursor: pointer; }
.leads-menu button:hover { background: var(--hover, rgba(0,0,0,0.06)); } .leads-menu b { font-size: 14px; font-weight: 600; } .leads-menu span { font-size: 12px; color: var(--muted, #5F6B62); }
.leads-menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 6px; } .leads-menu .leads-perigo b { color: #B91C1C; }
.leads-perigo-btn { background: #B91C1C; color: #fff; }

/* ===================== Arquivos da automação ===================== */
.fc-arq-modal { max-width: 780px; width: 94vw; }
.fc-arq-resumo { font-size: 13.5px; margin: 4px 0 6px; }
.fc-arq-barra { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; margin-bottom: 10px; } .fc-arq-barra i { display: block; height: 100%; background: #3F6B0F; transition: width 0.4s; }
.fc-arq-lista { max-height: 300px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; margin: 8px 0; }
.fc-arq-linha { display: grid; grid-template-columns: 28px 1fr 70px 110px 92px; gap: 8px; align-items: center; padding: 6px 10px; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.fc-arq-nome { display: flex; flex-direction: column; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .fc-arq-nome small { color: var(--muted, #5F6B62); font-size: 11px; }
.fc-arq-flags i { font-style: normal; font-size: 10.5px; background: #FDECC8; color: #7A4700; padding: 1px 7px; border-radius: 999px; }
.fc-arq-st { font-size: 12px; text-align: right; } .fc-arq-copiado { color: #3F6B0F; font-weight: 600; } .fc-arq-erro { color: #B91C1C; font-weight: 600; } .fc-arq-pendente { color: var(--muted, #5F6B62); }
div.fc-arq-erro { grid-column: 1 / -1; padding: 0 10px 6px 46px; font-size: 11.5px; font-weight: 400; border-bottom: 1px solid var(--line); }

/* ===================================================================================================
   CHAT — visual novo (3 colunas). Só aparece pra quem tem as novidades (o JS troca o desenho).
   =================================================================================================== */
.c2-shell { display: grid; grid-template-columns: 340px minmax(0, 1fr) 320px; height: calc(100vh - 150px); min-height: 560px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; position: relative; }
.c2-shell[data-panel="0"] { grid-template-columns: 340px minmax(0, 1fr) 0; }
.c2-shell button, .c2-shell select, .c2-shell input, .c2-shell textarea { font: inherit; color: inherit; }
.c2-btn { border: 1px solid var(--line); background: transparent; border-radius: 10px; padding: 6px 12px; font-size: 13px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.c2-btn:hover { background: var(--bg); } .c2-btn.prim { background: var(--accent); border-color: var(--accent); color: #0F1410; font-weight: 600; } .c2-btn:disabled { opacity: .5; cursor: not-allowed; }
.c2-link { border: 0; background: none; color: #2563EB; cursor: pointer; text-decoration: underline; padding: 0; font-size: inherit; }
.c2-sel { border: 1px solid var(--line); background: transparent; border-radius: 10px; padding: 6px 8px; font-size: 13px; max-width: 190px; }
.c2-av { width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 16px; flex: none; position: relative; }
.c2-av.g { width: 46px; height: 46px; font-size: 18px; } .c2-av.p { width: 30px; height: 30px; font-size: 12px; align-self: flex-end; }
.c2-bot { position: absolute; right: -4px; bottom: -4px; font-style: normal; font-size: 12px; background: var(--surface); border-radius: 50%; width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); }
/* lista */
.c2-list { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.c2-list-head { padding: 14px 12px 8px; border-bottom: 1px solid var(--line); position: relative; }
.c2-searchrow { display: flex; gap: 8px; } .c2-search { flex: 1; min-width: 0; border: 1px solid var(--line); background: var(--bg); border-radius: 12px; padding: 9px 12px; font-size: 14px; }
.c2-dot { font-style: normal; background: var(--accent); color: #0F1410; border-radius: 999px; font-size: 11px; font-weight: 700; padding: 0 6px; }
.c2-tabs { display: flex; gap: 6px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.c2-tab { flex: none; display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 6px; align-items: center; border: 1px solid var(--line); background: transparent; border-radius: 12px; padding: 5px 10px; cursor: pointer; text-align: left; }
.c2-tab .c2-tab-ico { grid-row: 1 / 3; font-size: 16px; } .c2-tab b { font-size: 14px; line-height: 1.1; } .c2-tab small { font-size: 10.5px; color: var(--muted); line-height: 1.1; }
.c2-tab.on { background: var(--accent); border-color: var(--accent); color: #0F1410; } .c2-tab.on small { color: #2c3a14; }
.c2-items { overflow-y: auto; flex: 1; min-height: 0; }
.c2-item { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 10px; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 11px 12px; cursor: pointer; align-items: start; }
.c2-item:hover { background: var(--bg); } .c2-item.on { background: color-mix(in srgb, var(--accent) 18%, var(--surface)); box-shadow: inset 3px 0 0 var(--accent); }
.c2-item-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .c2-item-top { display: flex; justify-content: space-between; gap: 8px; } .c2-item-top b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; } .c2-item.nova .c2-item-top b { font-weight: 800; }
.c2-item-top time { color: var(--muted); font-size: 11.5px; flex: none; } .c2-item-prev { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .c2-item.nova .c2-item-prev { color: var(--ink); font-weight: 600; }
.c2-item-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; } .c2-chip { font-style: normal; font-size: 11px; border: 1.5px solid var(--c, #94A3B8); border-radius: 999px; padding: 0 8px; line-height: 18px; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.c2-chip.mais, .c2-chip.conn, .c2-chip.fechada { --c: var(--line); color: var(--muted); } .c2-chip.g { font-size: 12px; padding: 1px 4px 1px 10px; } .c2-chip button { border: 0; background: none; cursor: pointer; opacity: .7; font-size: 14px; }
.c2-item-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; } .c2-badge { background: #16A34A; color: #fff; font-style: normal; font-size: 11px; font-weight: 700; border-radius: 999px; min-width: 20px; height: 20px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; }
.c2-mini { width: 22px; height: 22px; border-radius: 50%; color: #fff; font-style: normal; font-size: 10.5px; display: inline-flex; align-items: center; justify-content: center; } .c2-mini.livre { background: transparent; color: var(--muted); border: 1px dashed var(--muted); }
.c2-vazio { padding: 24px 16px; color: var(--muted); text-align: center; font-size: 13.5px; }
.c2-pop { position: absolute; z-index: 30; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(15,23,42,.22); padding: 12px; display: flex; flex-direction: column; gap: 10px; min-width: 240px; left: 12px; right: 12px; top: 58px; }
.c2-pop[hidden] { display: none; } .c2-pop label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); } .c2-pop select { border: 1px solid var(--line); background: var(--bg); border-radius: 10px; padding: 7px 8px; font-size: 13px; color: var(--ink); }
/* conversa */
.c2-thread { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: color-mix(in srgb, var(--bg) 60%, var(--surface)); position: relative; }
.c2-thread.arrastando::after { content: 'Solte o arquivo aqui pra enviar'; position: absolute; inset: 10px; border: 3px dashed var(--accent); border-radius: 16px; background: color-mix(in srgb, var(--surface) 88%, transparent); display: flex; align-items: center; justify-content: center; font-weight: 700; z-index: 20; }
.c2-head { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface); flex-wrap: wrap; }
.c2-head-main { display: flex; flex-direction: column; min-width: 0; flex: 1; } .c2-head-main b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .c2-head-main > span { color: var(--muted); font-size: 12.5px; }
.c2-conn { font-style: normal; font-weight: 600; } .c2-conn.lite { color: #B45309; } .c2-conn.of { color: #166534; }
.c2-head-acoes { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .c2-quem { font-weight: 600; font-size: 13px; }
.c2-janela { font-size: 11.5px; border-radius: 999px; padding: 3px 10px; white-space: nowrap; } .c2-janela.ok { background: #DCFCE7; color: #166534; } .c2-janela.fechada { background: #FEE2E2; color: #991B1B; } .c2-janela.lite { background: #FEF3C7; color: #92400E; }
.c2-robo { padding: 7px 14px; background: #EEF2FF; color: #3730A3; font-size: 13px; border-bottom: 1px solid var(--line); }
.c2-back { display: none; }
.c2-msgs { flex: 1; overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 3px; min-height: 0; }
.c2-boas { margin: auto; text-align: center; color: var(--muted); display: flex; flex-direction: column; gap: 4px; align-items: center; } .c2-boas span { font-size: 40px; } .c2-boas b { color: var(--ink); }
.c2-dia { text-align: center; margin: 12px 0 6px; } .c2-dia span { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px 14px; font-size: 12px; color: var(--muted); }
.c2-evento { text-align: center; margin: 6px 0; } .c2-evento span { font-size: 12px; color: var(--muted); background: var(--surface); border-radius: 999px; padding: 3px 12px; }
.c2-row { display: flex; gap: 8px; max-width: 100%; } .c2-row.out { justify-content: flex-end; } .c2-row:not(.seq) { margin-top: 8px; }
.c2-bubble { max-width: min(76%, 560px); background: var(--surface); border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; padding: 7px 11px 5px; display: flex; flex-direction: column; gap: 4px; min-width: 70px; }
.c2-row.out .c2-bubble { background: #D9F99D; border-color: #BEF264; color: #14210A; border-radius: 16px 16px 4px 16px; }
:root[data-theme="dark"] .c2-row.out .c2-bubble { background: #2F4A12; border-color: #3F6212; color: #ECFCCB; }
.c2-bubble.com-midia { padding: 5px 5px 4px; } .c2-bubble.com-midia .c2-who, .c2-bubble.com-midia .c2-text, .c2-bubble.com-midia .c2-meta { padding-left: 6px; padding-right: 6px; }
.c2-who { font-size: 12px; font-weight: 700; color: #7C5A0B; } .c2-row.out .c2-who { color: #3F6212; } :root[data-theme="dark"] .c2-who { color: #FBBF24; }
.c2-text { font-size: 14.5px; line-height: 1.4; overflow-wrap: anywhere; word-break: break-word; } .c2-text a { color: #2563EB; }
.c2-meta { display: flex; justify-content: flex-end; gap: 6px; font-size: 11px; color: var(--muted); align-items: center; } .c2-row.out .c2-meta { color: #4d6a1f; }
.c2-tick { letter-spacing: -2px; } .c2-tick.read { color: #2563EB; letter-spacing: -2px; } .c2-tick.failed { color: #B91C1C; letter-spacing: 0; }
.c2-media { display: flex; } .c2-img { max-width: 100%; width: 300px; max-height: 340px; object-fit: cover; border-radius: 12px; cursor: zoom-in; display: block; background: var(--bg); } .c2-sticker { width: 140px; height: 140px; object-fit: contain; }
.c2-video { width: 300px; max-width: 100%; max-height: 340px; border-radius: 12px; background: #000; }
.c2-skel { width: 260px; max-width: 100%; height: 120px; border-radius: 12px; background: linear-gradient(90deg, var(--bg), color-mix(in srgb, var(--bg) 70%, var(--line)), var(--bg)); background-size: 200% 100%; animation: c2sk 1.3s linear infinite; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--muted); font-size: 13px; text-align: center; padding: 8px; } .c2-skel span { font-size: 26px; } .c2-skel.document { height: 56px; flex-direction: row; justify-content: flex-start; }
@keyframes c2sk { to { background-position: -200% 0; } }
.c2-midia-erro { font-size: 13px; color: #991B1B; background: #FEE2E2; border-radius: 10px; padding: 8px 10px; max-width: 280px; }
.c2-audio { display: flex; align-items: center; gap: 9px; min-width: 270px; padding: 4px 6px 2px; } .c2-audio.carregando { opacity: .7; }
.c2-play { width: 38px; height: 38px; border-radius: 50%; border: 0; background: #14210A; color: #fff; font-size: 14px; cursor: pointer; flex: none; } .c2-row.in .c2-play { background: var(--accent); color: #0F1410; } .c2-play:disabled { opacity: .5; cursor: wait; }
.c2-wave { display: flex; align-items: center; gap: 2px; height: 40px; flex: 1; cursor: pointer; min-width: 120px; } .c2-wave i { width: 3px; border-radius: 2px; background: #8a948a; opacity: .5; flex: none; } .c2-wave i.on { background: #14210A; opacity: 1; } .c2-row.in .c2-wave i.on { background: #3F6212; }
.c2-dur { font-size: 12px; font-variant-numeric: tabular-nums; min-width: 34px; } .c2-speed { border: 0; background: rgba(0,0,0,.08); border-radius: 999px; font-size: 11.5px; font-weight: 700; padding: 3px 8px; cursor: pointer; }
.c2-audio.tocando .c2-wave i { opacity: .8; }
.c2-doc { display: flex; align-items: center; gap: 10px; background: rgba(0,0,0,.05); border-radius: 12px; padding: 9px 12px; text-decoration: none; color: inherit; min-width: 240px; max-width: 320px; }
.c2-doc-ico { width: 40px; height: 44px; border-radius: 8px; background: #DC2626; color: #fff; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex: none; } .c2-doc-nome { display: flex; flex-direction: column; min-width: 0; flex: 1; } .c2-doc-nome b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; } .c2-doc-nome small { color: var(--muted); font-size: 11.5px; }
/* campo de digitar */
.c2-composer { border-top: 1px solid var(--line); background: var(--surface); padding: 10px 14px 8px; position: relative; }
.c2-inputrow { display: flex; align-items: flex-end; gap: 8px; } .c2-inputrow[hidden], .c2-rec[hidden], .c2-pending[hidden] { display: none; }
.c2-tools { display: flex; gap: 4px; } .c2-ico { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; font-size: 20px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex: none; } .c2-ico:hover { background: var(--bg); } .c2-ico:disabled { opacity: .4; cursor: not-allowed; }
.c2-field { flex: 1; display: flex; align-items: flex-end; border: 1px solid var(--line); border-radius: 22px; background: var(--bg); padding: 2px 6px 2px 14px; min-width: 0; }
.c2-field textarea { flex: 1; border: 0; outline: 0; background: transparent; resize: none; padding: 9px 4px; font-size: 14.5px; line-height: 1.35; max-height: 140px; min-width: 0; } .c2-field textarea:disabled { cursor: not-allowed; }
.c2-emoji { border: 0; background: none; font-size: 20px; cursor: pointer; padding: 6px; }
.c2-send { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--accent); color: #0F1410; font-size: 17px; font-weight: 700; cursor: pointer; flex: none; } .c2-send:disabled { opacity: .45; cursor: not-allowed; }
.c2-status { min-height: 18px; font-size: 12.5px; color: var(--muted); padding: 4px 6px 0; } .c2-status.err { color: #B91C1C; font-weight: 600; }
.c2-pop.up { top: auto; bottom: 66px; left: 14px; right: auto; min-width: 250px; } .c2-pop.up button { display: flex; gap: 10px; align-items: center; border: 0; background: transparent; padding: 8px 10px; border-radius: 10px; cursor: pointer; font-size: 20px; text-align: left; } .c2-pop.up button:hover { background: var(--bg); } .c2-pop.up button span { display: flex; flex-direction: column; font-size: 14px; } .c2-pop.up small { color: var(--muted); font-size: 11.5px; }
.c2-pop.emojis { flex-direction: row; flex-wrap: wrap; gap: 2px; width: 320px; left: auto; right: 120px; min-width: 0; } .c2-pop.emojis button { font-size: 22px; padding: 4px; width: 40px; height: 40px; justify-content: center; }
.c2-pending { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 14px; padding: 10px; margin-bottom: 8px; background: var(--bg); position: relative; }
.c2-pend-prev img, .c2-pend-prev video { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; } .c2-pend-ico { font-size: 40px; } .c2-pend-info { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; } .c2-pend-info b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .c2-pend-info small { color: var(--muted); }
.c2-leg { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 7px 10px; font-size: 13.5px; } .c2-pend-acoes { display: flex; gap: 8px; flex-wrap: wrap; } .c2-x { position: absolute; top: 6px; right: 8px; border: 0; background: none; cursor: pointer; font-size: 16px; color: var(--muted); }
.c2-rec { display: flex; align-items: center; gap: 12px; padding: 4px 4px; } .c2-rec b { font-variant-numeric: tabular-nums; min-width: 44px; } .c2-rec-dot { width: 12px; height: 12px; border-radius: 50%; background: #DC2626; animation: c2p 1s ease-in-out infinite; } @keyframes c2p { 50% { opacity: .25; } }
.c2-rec-onda { display: flex; align-items: center; gap: 3px; flex: 1; height: 30px; } .c2-rec-onda i { width: 3px; background: #DC2626; border-radius: 2px; animation: c2w 0.9s ease-in-out infinite; height: 8px; } .c2-rec-onda i:nth-child(3n) { animation-delay: .2s; } .c2-rec-onda i:nth-child(3n+1) { animation-delay: .45s; } @keyframes c2w { 50% { height: 26px; } }
.c2-rec-hint { color: var(--muted); font-size: 13px; }
/* painel do contato */
.c2-panel { border-left: 1px solid var(--line); overflow-y: auto; min-width: 0; background: var(--surface); } .c2-shell[data-panel="0"] .c2-panel { display: none; }
.c2-p-topo { display: flex; gap: 12px; align-items: center; padding: 16px 16px 8px; } .c2-p-topo small { color: var(--muted); } .c2-p-nome { border: 1px solid transparent; background: transparent; font-size: 16px; font-weight: 700; padding: 3px 6px; border-radius: 8px; width: 100%; } .c2-p-nome:hover, .c2-p-nome:focus { border-color: var(--line); background: var(--bg); outline: 0; }
.c2-p-acoes { display: flex; gap: 8px; padding: 4px 16px 12px; flex-wrap: wrap; }
.c2-p-box { padding: 12px 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; } .c2-p-box h4 { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); } .c2-p-box small { color: var(--muted); font-size: 12px; }
.c2-p-tags { display: flex; flex-wrap: wrap; gap: 6px; } .c2-notas { border: 1px solid var(--line); border-radius: 10px; background: var(--bg); padding: 8px 10px; font-size: 13.5px; resize: vertical; width: 100%; box-sizing: border-box; } #c2-p-notas-st.err { color: #B91C1C; }
.c2-p-compras { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .c2-p-compras span { display: flex; flex-direction: column; } .c2-p-compras b { font-size: 15px; }
.c2-p-dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; font-size: 13px; } .c2-p-dl dt { color: var(--muted); } .c2-p-dl dd { margin: 0; text-align: right; display: flex; flex-direction: column; } .c2-p-dl dd small { font-size: 11px; }
/* foto ampliada */
.c2-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.88); z-index: 400; display: flex; align-items: center; justify-content: center; flex-direction: column; outline: 0; } .c2-lightbox img { max-width: 92vw; max-height: 80vh; border-radius: 8px; }
.c2-lb-x { position: absolute; top: 16px; right: 20px; border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 22px; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; } .c2-lb-n { position: absolute; top: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 34px; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; transform: translateY(-50%); } .c2-lb-n.ant { left: 18px; } .c2-lb-n.prox { right: 18px; }
.c2-lb-leg { color: #fff; margin-top: 12px; display: flex; gap: 16px; align-items: center; font-size: 14px; } .c2-lb-leg a { color: #BEF264; }
@media (max-width: 1180px) { .c2-shell { grid-template-columns: 300px minmax(0, 1fr); } .c2-shell[data-panel="1"] .c2-panel { position: absolute; right: 0; top: 0; bottom: 0; width: 320px; z-index: 25; box-shadow: -10px 0 30px rgba(15,23,42,.2); } .c2-shell[data-panel="0"] { grid-template-columns: 300px minmax(0, 1fr); } }
@media (max-width: 800px) { .c2-shell, .c2-shell[data-panel="0"] { grid-template-columns: 1fr; height: calc(100vh - 110px); } .c2-shell .c2-thread { display: none; } .c2-shell[data-open="1"] .c2-thread { display: flex; } .c2-shell[data-open="1"] .c2-list { display: none; } .c2-back { display: inline-flex; } .c2-bubble { max-width: 88%; } .c2-audio { min-width: 220px; } .c2-shell[data-panel="1"] .c2-panel { width: 100%; } }

/* ajustes do cabeçalho do chat novo */
.c2-head { flex-wrap: nowrap; } .c2-subhead { display: flex; align-items: center; gap: 8px; padding: 6px 14px; border-bottom: 1px solid var(--line); background: var(--surface); flex-wrap: wrap; } .c2-espaco { flex: 1; }
.c2-subhead .c2-sel { flex: 0 1 190px; min-width: 120px; }
.c2-p-box .c2-sel { width: 100%; max-width: 100%; box-sizing: border-box; }
/* cabeçalho do chat: ações numa linha só */
.c2-subhead { flex-wrap: nowrap; } .c2-subhead .c2-sel { flex: 1 1 100px; min-width: 90px; max-width: 170px; } .c2-subhead .c2-btn { flex: none; }

/* ===================================================================================================
   CHAT no estilo do DataCrazy — tela cheia, colunas largas, balões azuis, abas de ícones, painel em seções
   =================================================================================================== */
.content[data-view="chat"] { padding: 0 !important; }
.content[data-view="chat"] .home { max-width: none; }
.content[data-view="chat"] .home-head { display: none; }
.content[data-view="chat"] .c2-shell { height: 100vh; min-height: 0; border-radius: 0; border: 0; }
.c2-shell { grid-template-columns: 400px minmax(0, 1fr) 380px; }
.c2-shell[data-panel="0"] { grid-template-columns: 400px minmax(0, 1fr) 0; }
.c2-shell[data-list="0"] { grid-template-columns: 0 minmax(0, 1fr) 380px; } .c2-shell[data-list="0"][data-panel="0"] { grid-template-columns: 0 minmax(0, 1fr) 0; }
.c2-shell[data-list="0"] .c2-list { display: none; }
.c2-edge-open { display: none; position: absolute; left: 0; top: 64px; z-index: 14; width: 24px; height: 52px; border: 1px solid var(--line); border-left: 0; border-radius: 0 12px 12px 0; background: var(--surface); cursor: pointer; font-size: 18px; align-items: center; justify-content: center; box-shadow: 2px 2px 8px rgba(15,23,42,.12); }
.c2-shell[data-list="0"] .c2-edge-open { display: flex; }
.shell.sidebar-collapsed .c2-lhead { padding-left: 54px; }
.sidebar-reopen-btn { font-size: 18px; }
.c2-grow { flex: 1; }
/* lista */
.c2-lhead { padding: 14px 14px 10px; } .c2-searchrow { display: flex; gap: 8px; align-items: center; } .c2-search { padding: 10px 14px; font-size: 15px; }
.c2-ltitle { display: flex; align-items: center; gap: 8px; margin-top: 12px; position: relative; } .c2-ltitle b { font-size: 17px; }
.c2-count { background: #DBEAFE; color: #1D4ED8; border-radius: 999px; font-size: 12.5px; font-weight: 700; padding: 1px 10px; } :root[data-theme="dark"] .c2-count { background: #1E3A8A; color: #BFDBFE; }
.c2-lhead .c2-pop { top: 100%; left: 14px; right: 14px; margin-top: 4px; }
.c2-tabs { gap: 6px; margin-top: 10px; overflow: visible; } .c2-tab { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 4px; border-radius: 10px; min-width: 0; } .c2-tab b { font-size: 13px; } .c2-tab-ico { font-size: 15px; }
.c2-item { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; padding: 13px 14px; } .c2-av { width: 48px; height: 48px; font-size: 18px; } .c2-item-top b { font-size: 15.5px; } .c2-item-prev { font-size: 13.5px; }
.c2-novo { color: #2563EB; font-style: normal; font-size: 11px; }
.c2-item-side { align-items: flex-end; min-width: 56px; } .c2-depto { font-style: normal; font-size: 11.5px; font-weight: 600; border-radius: 6px; padding: 2px 8px; color: var(--c, #64748B); background: color-mix(in srgb, var(--c, #64748B) 16%, transparent); margin-top: auto; white-space: nowrap; }
/* cabeçalho da conversa */
.c2-head { padding: 12px 18px; gap: 14px; flex-wrap: wrap; } .c2-head-main b { font-size: 17px; } .c2-sub { color: var(--muted); font-size: 13px; }
.c2-btn.azul { border-color: #3B82F6; color: #2563EB; } :root[data-theme="dark"] .c2-btn.azul { color: #93C5FD; border-color: #3B82F6; }
.c2-ico.sm { width: 34px; height: 34px; font-size: 16px; border: 1px solid var(--line); border-radius: 10px; }
.c2-back { display: none; }
/* mensagens */
.c2-msgs { padding: 18px 26px; gap: 4px; }
.c2-row { position: relative; gap: 10px; align-items: flex-end; } .c2-col { display: flex; flex-direction: column; max-width: min(78%, 680px); min-width: 0; } .c2-row.out .c2-col { align-items: flex-end; }
.c2-who { display: flex; gap: 6px; align-items: baseline; margin: 0 4px 3px; font-size: 13.5px; color: var(--muted); } .c2-who b { font-weight: 700; color: #C97B16; max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .c2-row.in .c2-who b { color: #D9558F; } .c2-who time { font-size: 12.5px; }
:root[data-theme="dark"] .c2-who b { color: #E0A03A; } :root[data-theme="dark"] .c2-row.in .c2-who b { color: #F08BB8; }
.c2-bubble { max-width: 100%; font-size: 15px; padding: 9px 13px 6px; border-radius: 14px; } .c2-text { font-size: 15px; line-height: 1.45; }
.c2-row.in .c2-bubble { background: var(--surface); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; }
:root[data-theme="dark"] .c2-row.in .c2-bubble { background: #262B27; border-color: #2F362F; }
.c2-row.out .c2-bubble { background: #7AA2F7; border-color: #7AA2F7; color: #0B1B3A; border-radius: 14px 14px 4px 14px; }
:root[data-theme="dark"] .c2-row.out .c2-bubble { background: #6F9BF4; border-color: #6F9BF4; color: #0A1530; }
.c2-row.out .c2-text a { color: #0B2A6B; } .c2-row.out .c2-meta { color: #1E3A6B; } .c2-row.out .c2-tick.read { color: #0F3FB8; } .c2-row.out .c2-wave i.on { background: #0B1B3A; } .c2-row.out .c2-play { background: #0B1B3A; color: #fff; }
.c2-av.p { width: 36px; height: 36px; font-size: 14px; }
.c2-row.destaque .c2-bubble { animation: c2dest 1.6s ease; } @keyframes c2dest { 0%, 60% { box-shadow: 0 0 0 4px rgba(37, 99, 235, .45); } 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); } }
.c2-evento { margin: 10px 0; } .c2-evento span { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 6px 16px; font-size: 13px; }
/* citação, reações e barrinha */
.c2-quote { display: flex; flex-direction: column; gap: 1px; border-left: 3px solid #1D4ED8; background: rgba(0, 0, 0, .08); border-radius: 8px; padding: 5px 10px; margin: 0 0 6px; font-size: 12.5px; cursor: pointer; max-width: 100%; overflow: hidden; } .c2-quote b { font-size: 12px; } .c2-quote span { opacity: .85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .c2-quote.sem { cursor: default; opacity: .7; }
.c2-reacoes { display: flex; gap: 4px; margin: -7px 8px 0; position: relative; z-index: 1; } .c2-reacoes:empty { display: none; } .c2-reac { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; font-size: 14px; display: inline-flex; gap: 3px; align-items: center; box-shadow: 0 1px 3px rgba(15, 23, 42, .15); } .c2-reac.minha { border-color: #3B82F6; background: #DBEAFE; } .c2-reac small { font-size: 11px; color: var(--muted); }
:root[data-theme="dark"] .c2-reac.minha { background: #1E3A8A; }
.c2-msgbar { display: flex; gap: 2px; align-self: center; opacity: 0; transition: opacity .12s; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 2px 4px; box-shadow: 0 2px 8px rgba(15, 23, 42, .12); } .c2-row.out .c2-msgbar { order: -1; } .c2-row:hover .c2-msgbar, .c2-msgbar:focus-within { opacity: 1; } .c2-msgbar:empty { display: none; }
.c2-msgbar button { border: 0; background: transparent; cursor: pointer; width: 30px; height: 30px; border-radius: 50%; font-size: 16px; } .c2-msgbar button:hover { background: var(--bg); }
@media (hover: none) { .c2-msgbar { opacity: .85; } }
.c2-react-pop { position: fixed; z-index: 300; display: flex; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 5px 8px; box-shadow: 0 8px 24px rgba(15, 23, 42, .25); } .c2-react-pop button { border: 0; background: transparent; font-size: 24px; cursor: pointer; width: 40px; height: 40px; border-radius: 50%; } .c2-react-pop button:hover { background: var(--bg); transform: scale(1.15); } .c2-react-pop button.on { background: #DBEAFE; } .c2-react-pop button.tirar { font-size: 15px; color: var(--muted); }
/* campo de digitar */
.c2-composer { padding: 10px 18px 8px; } .c2-tools { gap: 2px; } .c2-tools .c2-ico { width: 40px; height: 40px; font-size: 21px; color: var(--muted); } .c2-tools .c2-ico:hover { color: var(--ink); }
.c2-field { border-radius: 24px; border: 1.5px solid var(--line); background: var(--surface); } .c2-field:focus-within { border-color: #3B82F6; }
.c2-field textarea { font-size: 15px; padding: 11px 4px; }
.c2-inputrow .c2-send { display: none; } .c2-inputrow.tem .c2-send { display: inline-flex; align-items: center; justify-content: center; }   /* o enviar do campo só aparece com texto ou anexo (o da barra de gravação é outro) */
.c2-replybar { display: flex; align-items: center; gap: 8px; border-left: 4px solid #2563EB; background: var(--bg); border-radius: 10px; padding: 7px 36px 7px 12px; margin-bottom: 8px; position: relative; } .c2-replybar[hidden] { display: none; } .c2-reply-in { display: flex; flex-direction: column; min-width: 0; } .c2-reply-in b { font-size: 12.5px; color: #2563EB; } .c2-reply-in span { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c2-pop.tpl { width: 440px; max-width: calc(100vw - 40px); max-height: 440px; overflow-y: auto; gap: 8px; } .c2-tpl-busca { width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; background: var(--bg); font-size: 14px; }
.c2-tpl-lista { display: flex; flex-direction: column; } .c2-tpl-item { display: flex; align-items: center; gap: 2px; } .c2-pop.up .c2-tpl-usar { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; font-size: 14px; } .c2-tpl-usar b { font-size: 14px; } .c2-tpl-usar span { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.c2-tpl-form { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; } .c2-tpl-form[hidden] { display: none; } .c2-tpl-form input, .c2-tpl-form textarea { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: var(--bg); font-size: 14px; resize: vertical; } .c2-tpl-acoes { display: flex; gap: 8px; align-items: center; } .c2-tpl-acoes .err, .c2-ag .err { color: #B91C1C; font-size: 13px; }
.c2-pop.up .c2-tpl-novo { display: inline-flex; font-size: 14px; }
.c2-ag { max-width: 580px; width: 94vw; max-height: 90vh; overflow-y: auto; } .c2-ag textarea, .c2-ag input[type="datetime-local"] { width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font-size: 14px; background: var(--bg); } .c2-presets { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.c2-ag-tit { margin: 14px 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); } .c2-ag-item { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; margin-bottom: 6px; font-size: 13px; } .c2-ag-quando { font-weight: 700; min-width: 96px; } .c2-ag-corpo { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow: hidden; text-overflow: ellipsis; } .c2-ag-item.failed { border-color: #FCA5A5; background: rgba(254, 226, 226, .35); }
/* painel do contato em seções */
.c2-panel { background: var(--surface); } .c2-p-topo { align-items: flex-start; padding: 18px 18px 10px; } .c2-p-id { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; } .c2-p-nome { font-size: 17px; }
.c2-p-acoes { padding: 0; } .c2-p-aviso { margin: 0; padding: 8px 18px; font-size: 12.5px; color: #92400E; background: #FEF3C7; }
.c2-p-sec { border-top: 1px solid var(--line); } .c2-p-sec-cab { width: 100%; display: flex; justify-content: space-between; align-items: center; border: 0; background: none; padding: 14px 18px; cursor: pointer; } .c2-p-sec-cab h4 { margin: 0; font-size: 15px; text-transform: none; letter-spacing: 0; color: var(--ink); } .c2-p-sec-corpo { padding: 0 18px 14px; display: flex; flex-direction: column; gap: 2px; }
.c2-p-linha { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 4px 0; font-size: 14px; } .c2-p-linha > span { color: var(--ink); min-width: 96px; } .c2-p-linha input { flex: 1; min-width: 0; text-align: right; border: 1px solid transparent; background: transparent; padding: 5px 8px; border-radius: 8px; font-size: 14px; color: var(--muted); } .c2-p-linha input:hover, .c2-p-linha input:focus { border-color: var(--line); background: var(--bg); color: var(--ink); outline: 0; } .c2-p-fone { font-weight: 500; }
.c2-p-box { padding: 14px 18px; }
@media (max-width: 1350px) { .c2-shell { grid-template-columns: 340px minmax(0, 1fr); } .c2-shell[data-panel="0"] { grid-template-columns: 340px minmax(0, 1fr); } .c2-shell[data-list="0"], .c2-shell[data-list="0"][data-panel="0"] { grid-template-columns: 0 minmax(0, 1fr); } .c2-shell[data-panel="1"] .c2-panel { position: absolute; right: 0; top: 0; bottom: 0; width: 380px; z-index: 25; box-shadow: -10px 0 30px rgba(15, 23, 42, .2); } }
@media (max-width: 800px) { .c2-shell, .c2-shell[data-panel="0"], .c2-shell[data-list="0"] { grid-template-columns: 1fr; } .c2-edge-open { display: none !important; } .c2-back { display: inline-flex; } .c2-col { max-width: 88%; } .shell.sidebar-collapsed .c2-lhead { padding-left: 54px; } }
/* corrige: ao encolher a lista, a setinha de reabrir não pode virar uma coluna da grade (a conversa sumia) */
.c2-shell > .c2-edge-open { position: absolute; left: 0; top: 70px; z-index: 40; }
@media (min-width: 1351px) { .c2-shell > .c2-list { grid-column: 1; } .c2-shell > .c2-thread { grid-column: 2; } .c2-shell > .c2-panel { grid-column: 3; } }

/* ===================================================================================================
   CHAT — acabamento igual ao DataCrazy: cabeçalho em uma linha e TEMA ESCURO (padrão, com botão pra alternar)
   =================================================================================================== */
.c2-head { flex-wrap: nowrap; } .c2-head-main { flex: 1; min-width: 0; } .c2-head-main b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c2-sub { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .c2-sub .c2-janela { font-size: 11px; padding: 1px 8px; }
.c2-head-acoes { flex: none; flex-wrap: nowrap; } .c2-head-acoes .c2-sel { width: 150px; max-width: 150px; } .c2-proto { color: var(--muted); font-weight: 600; font-size: 14px; margin-right: 2px; }
.c2-shell[data-tema="dark"] { --surface: #1f1f21; --bg: #171718; --ink: #ececee; --muted: #a1a1a8; --line: #2e2e33; --c2-azul: #5b9bff; color: var(--ink); border-color: #2e2e33; }
.c2-shell[data-tema="dark"] .c2-thread { background: #19191b; }
.c2-shell[data-tema="dark"] .c2-bubble { background: #2b2b2f; border-color: #2b2b2f; color: #ececee; }
.c2-shell[data-tema="dark"] .c2-row.out .c2-bubble { background: #7ea6f7; border-color: #7ea6f7; color: #0b1a33; }
.c2-shell[data-tema="dark"] .c2-row.in .c2-who { color: #ea8fbd; } .c2-shell[data-tema="dark"] .c2-row.out .c2-who { color: #d4a24a; }
.c2-shell[data-tema="dark"] .c2-item.on { background: #262b36; box-shadow: inset 3px 0 0 var(--c2-azul); } .c2-shell[data-tema="dark"] .c2-item:hover { background: #242427; }
.c2-shell[data-tema="dark"] .c2-tab { background: transparent; } .c2-shell[data-tema="dark"] .c2-tab.on { background: rgba(91, 155, 255, .16); border-color: var(--c2-azul); color: var(--ink); } .c2-shell[data-tema="dark"] .c2-tab.on small { color: var(--muted); }
.c2-shell[data-tema="dark"] .c2-btn.azul { color: var(--c2-azul); border-color: var(--c2-azul); background: transparent; } .c2-shell[data-tema="dark"] .c2-btn.azul:hover { background: rgba(91, 155, 255, .12); }
.c2-shell[data-tema="dark"] .c2-doc { background: rgba(255, 255, 255, .06); } .c2-shell[data-tema="dark"] .c2-evento span, .c2-shell[data-tema="dark"] .c2-dia span { background: #26262a; color: var(--muted); border-color: #333338; }
.c2-shell[data-tema="dark"] .c2-field, .c2-shell[data-tema="dark"] .c2-search { background: #19191b; border-color: #3a3a40; } .c2-shell[data-tema="dark"] .c2-field textarea { color: var(--ink); }
.c2-shell[data-tema="dark"] .c2-pop, .c2-shell[data-tema="dark"] .c2-composer, .c2-shell[data-tema="dark"] .c2-head { background: var(--surface); }
.c2-shell[data-tema="dark"] .c2-wave i.on { background: #0b1a33; } .c2-shell[data-tema="dark"] .c2-row.in .c2-wave i { background: #8e8e96; } .c2-shell[data-tema="dark"] .c2-row.in .c2-wave i.on { background: var(--c2-azul); opacity: 1; }
.c2-shell[data-tema="dark"] .c2-row.in .c2-play { background: var(--c2-azul); color: #fff; } .c2-shell[data-tema="dark"] .c2-row.out .c2-play { background: #0b1a33; color: #fff; }
.c2-shell[data-tema="dark"] .c2-janela.ok { background: rgba(34, 197, 94, .18); color: #7be3a1; } .c2-shell[data-tema="dark"] .c2-janela.fechada { background: rgba(239, 68, 68, .18); color: #fca5a5; } .c2-shell[data-tema="dark"] .c2-janela.lite { background: rgba(245, 158, 11, .18); color: #fcd34d; }
.c2-shell[data-tema="dark"] .c2-sel, .c2-shell[data-tema="dark"] .c2-pop select, .c2-shell[data-tema="dark"] .c2-p-linha input, .c2-shell[data-tema="dark"] .c2-notas { background: #19191b; color: var(--ink); border-color: #3a3a40; }
