/* Cobranca por Email — sub-aba dentro de Boletos.
   Usa os tokens de styles/tokens.css para casar com a identidade do portal.
   NOTA: todo <button> custom DEFINE background no :hover — senao herda o
   button:hover{background:var(--brand-600)} global e fica navy ilegivel. */

/* Acento da Cobrança: azul leve (substitui o indigo→violeta "roxo" do portal,
   a pedido). Centralizado aqui — todo o resto referencia estas variáveis. */
:root {
  --cob-accent: #2f6fd6;
  --cob-grad: linear-gradient(135deg, #2f6fd6, #5aa0e8);
}

.cob-pane { display: block; }

/* Anti-overflow horizontal (mobile): o container da pane é grid-item de
   .workspace-main; sem min-width:0 o conteúdo (tabelas/grids) empurra a
   largura além da viewport. Mesma cura usada em #consultasTab/#adminAuditTab. */
#bolCobrancaPane, #boletosTab { min-width: 0; max-width: 100%; }
#bolCobrancaPane { overflow-x: hidden; }

/* ── Aviso de worker parado ── */
.cob-warn {
  display: flex; align-items: flex-start; gap: 10px;
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-4);
  background: rgba(138, 97, 0, 0.08);
  border: 1px solid rgba(138, 97, 0, 0.28);
  border-radius: var(--radius-md);
  color: #7a5600; font-size: 0.86rem; line-height: 1.45;
}
.cob-warn-ico svg { width: 20px; height: 20px; display: block; flex: 0 0 auto; }

/* ── KPIs ── */
.cob-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.cob-kpi {
  --kpi-accent: var(--line-strong);
  min-width: 0;
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-4) var(--space-4) var(--space-4) calc(var(--space-4) + 2px);
  background: var(--bg-surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  box-shadow: inset 4px 0 0 var(--kpi-accent), var(--shadow-1);
  transition: box-shadow 160ms ease, transform 160ms ease;
}
.cob-kpi:hover { box-shadow: inset 4px 0 0 var(--kpi-accent), var(--shadow-2); transform: translateY(-3px); }
.cob-kpi-ico {
  flex: 0 0 auto;
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
}
.cob-kpi-ico svg { width: 21px; height: 21px; }
.cob-kpi-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.cob-kpi-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--text-secondary); font-weight: 600; }
.cob-kpi-value { font-size: 1.78rem; font-weight: 800; color: var(--text-primary); line-height: 1.05; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.cob-kpi-sub { font-size: 0.74rem; color: var(--text-secondary); }
.cob-kpi--danger { --kpi-accent: var(--danger-500); }
.cob-kpi--ok     { --kpi-accent: var(--success-500); }
.cob-kpi--brand  { --kpi-accent: var(--cob-accent); }
.cob-kpi--mut    { --kpi-accent: var(--line-strong); }
.cob-kpi--danger .cob-kpi-ico { background: var(--danger-500); color: #fff; }
.cob-kpi--ok     .cob-kpi-ico { background: var(--success-500); color: #fff; }
.cob-kpi--brand  .cob-kpi-ico { background: var(--cob-grad); color: #fff; }
.cob-kpi--mut    .cob-kpi-ico { background: var(--text-secondary); color: #fff; }

/* ── Painel-resumo (hero) — faixa única, viva, com barra de atraso ──
   Substitui os 5 KPI cards + a linha de aging por UM bloco com gradiente da
   marca: número-foco grande, chips discretos e um mini-gráfico colorido. A
   "vida" vem da cor + da barra (visual), não de mais números. */
.cob-hero {
  position: relative; overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg, 16px);
  box-shadow: var(--shadow-1);
  padding: 18px 22px;
  margin-bottom: var(--space-5);
}
/* leve toque de cor no canto — vida sem peso */
.cob-hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 130% at 100% 0%, rgba(47, 111, 214, 0.06), transparent 62%);
}
.cob-hero-top {
  position: relative; display: flex; align-items: flex-start;
  justify-content: space-between; gap: var(--space-4); flex-wrap: wrap;
}
.cob-hero-headline { display: flex; align-items: center; gap: 14px; min-width: 0; }
/* o ícone é o único acento saturado — concentra a cor da marca num ponto só */
.cob-hero-ico {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 13px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--cob-grad); color: #fff;
  box-shadow: 0 6px 14px -7px rgba(47, 111, 214, 0.55);
}
.cob-hero-ico svg { width: 24px; height: 24px; color: #fff; }
.cob-hero-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; color: var(--text-secondary); }
.cob-hero-value { font-size: 2rem; font-weight: 800; line-height: 1.05; color: var(--text-primary); font-variant-numeric: tabular-nums; letter-spacing: -0.015em; }
.cob-hero-sub { font-size: 0.84rem; color: var(--text-secondary); margin-top: 1px; }
.cob-hero-sub strong { color: var(--text-primary); font-weight: 700; }
.cob-hero-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.cob-hero-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px;
  border-radius: 999px; background: var(--bg-muted);
  border: 1px solid var(--line-soft);
  font-size: 0.76rem; color: var(--text-secondary); white-space: nowrap;
}
.cob-hero-chip svg { width: 14px; height: 14px; opacity: 0.6; }
.cob-hero-chip strong { color: var(--text-primary); font-size: 0.92rem; font-variant-numeric: tabular-nums; font-weight: 700; }

/* atraso: barra empilhada colorida + legenda enxuta — a cor vive aqui */
.cob-hero-aging { position: relative; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.cob-agebar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--bg-muted); box-shadow: inset 0 0 0 1px var(--line-soft); }
.cob-ageseg { display: block; min-width: 4px; }
.cob-agelegend { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 11px; font-size: 0.76rem; color: var(--text-secondary); }
.cob-agelg { display: inline-flex; align-items: center; gap: 6px; }
.cob-agelg i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; flex: 0 0 auto; }
.cob-agelg strong { color: var(--text-primary); font-variant-numeric: tabular-nums; }
.cob-agelg--extra { margin-left: auto; }

/* ── Sub-navegacao ── */
.cob-subnav {
  display: flex; align-items: center; gap: 2px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
}
.cob-subnav-sep {
  margin: 0 6px 0 14px; padding-left: 12px;
  border-left: 1px solid var(--line-soft);
  font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-secondary); font-weight: 700; align-self: center;
}
.cob-subnav-btn {
  border: 0; background: transparent; color: var(--text-secondary);
  font: 600 0.9rem/1 inherit; padding: 11px 14px; cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px; border-radius: 8px 8px 0 0;
  transition: color 140ms ease, background 140ms ease;
}
.cob-subnav-btn:hover { color: var(--text-primary); background: var(--bg-muted); }
.cob-subnav-btn.is-active { color: var(--cob-accent); border-bottom-color: var(--cob-accent); background: transparent; }

/* ── Alternador Boletos | Cobrança (segmented control claro) ──
   Antes herdava o button:hover navy global e ficava pesado/ilegível.
   Trilho cinza-claro + pílula ativa branca com leve sombra. */
.cob-modeswitch {
  display: inline-flex; gap: 3px; padding: 3px;
  background: var(--bg-muted); border: 1px solid var(--line-soft);
  border-radius: var(--radius-full, 999px);
}
.cob-modeswitch-btn {
  border: 0; background: transparent; color: var(--text-secondary);
  font: 600 0.85rem/1 inherit; padding: 7px 18px; cursor: pointer;
  border-radius: var(--radius-full, 999px);
  transition: background 140ms ease, color 140ms ease, box-shadow 140ms ease;
}
.cob-modeswitch-btn:hover { background: rgba(0, 0, 0, 0.045); color: var(--text-primary); }
.cob-modeswitch-btn.is-active,
.cob-modeswitch-btn.is-active:hover {
  background: var(--bg-surface); color: var(--cob-accent); box-shadow: var(--shadow-1);
}

/* ── Sub-navegação do módulo Financeiro (só aparece com 2+ painéis) ── */
.fin-subnav {
  display: flex; align-items: center; gap: 2px; flex-wrap: wrap;
  border-bottom: 1px solid var(--line-soft); margin-bottom: var(--space-5);
}
.fin-subnav-btn {
  border: 0; background: transparent; color: var(--text-secondary);
  font: 600 0.95rem/1 inherit; padding: 12px 16px; cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px; border-radius: 8px 8px 0 0;
  transition: color 140ms ease, background 140ms ease;
}
.fin-subnav-btn:hover { color: var(--text-primary); background: var(--bg-muted); }
.fin-subnav-btn.is-active { color: var(--cob-accent); border-bottom-color: var(--cob-accent); background: transparent; }

/* ── Cards ── */
.cob-card {
  background: var(--bg-surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  padding: var(--space-5);
  margin-bottom: var(--space-4);
}
.cob-card-title { margin: 0 0 6px; font-size: 1.05rem; font-weight: 800; color: var(--text-primary); }
.cob-card-desc { margin: 0 0 var(--space-4); font-size: 0.86rem; color: var(--text-secondary); line-height: 1.5; max-width: 70ch; }
.cob-card-desc code { background: var(--bg-muted); padding: 1px 6px; border-radius: 6px; font-size: 0.85em; color: var(--brand-600); }
.cob-card-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: 6px; flex-wrap: wrap; }
.cob-card-head .cob-card-title { margin: 0; }

/* ── Wizard ── */
.cob-wizard { padding: var(--space-6); overflow: hidden; }
.cob-wiz-head {
  margin: 0 0 var(--space-5);
  padding: 0 0 var(--space-4);
  border-bottom: 1px solid var(--line-soft);
}
.cob-wiz-head .cob-card-title { color: var(--text-primary); font-size: 1.2rem; margin: 0 0 5px; }
.cob-wiz-head .cob-card-desc { color: var(--text-secondary); margin: 0; max-width: none; }

.cob-stepper {
  display: flex; gap: 10px; list-style: none; margin: 0 0 var(--space-6); padding: 0; flex-wrap: wrap;
}
.cob-step-pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 18px 8px 8px; border-radius: var(--radius-full, 999px);
  background: var(--bg-muted); color: var(--text-secondary);
  font-size: 0.88rem; font-weight: 600; border: 1px solid transparent;
}
.cob-step-num {
  width: 26px; height: 26px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-surface); color: var(--text-secondary);
  font-size: 0.82rem; font-weight: 800; border: 1px solid var(--line-soft);
}
.cob-step-pill.is-active { background: rgba(46, 111, 214, 0.12); color: var(--cob-accent); border-color: rgba(46, 111, 214, 0.32); }
.cob-step-pill.is-active .cob-step-num { background: var(--cob-grad); color: #fff; border: 0; }
.cob-step-pill.is-done { color: var(--success-500); background: rgba(28, 127, 77, 0.10); }
.cob-step-pill.is-done .cob-step-num { background: var(--success-500); color: #fff; border: 0; }

.cob-step-title { margin: 0 0 var(--space-4); font-size: 1.15rem; font-weight: 700; color: var(--text-primary); }
.cob-step-actions {
  display: flex; gap: var(--space-2); justify-content: flex-end;
  margin-top: var(--space-5); padding-top: var(--space-4);
  border-top: 1px solid var(--line-soft); flex-wrap: wrap;
}

/* ── Cartoes de escolha (passo 1) ── */
.cob-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: var(--space-3); }
.cob-choice {
  display: flex; flex-direction: column; gap: 8px; text-align: left;
  padding: var(--space-5) var(--space-4);
  background: var(--bg-surface);
  border: 1.5px solid var(--line-soft);
  border-radius: var(--radius-md);
  cursor: pointer; transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}
.cob-choice:hover { border-color: var(--cob-accent); background: rgba(46, 111, 214, 0.06); box-shadow: var(--shadow-1); transform: translateY(-2px); }
.cob-choice.is-active { border-color: var(--cob-accent); background: rgba(46, 111, 214, 0.06); box-shadow: 0 0 0 3px rgba(46, 111, 214, 0.18); }
.cob-choice-ico {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(46, 111, 214, 0.1); color: var(--cob-accent);
  transition: background 140ms ease, color 140ms ease;
}
.cob-choice.is-active .cob-choice-ico { background: var(--cob-grad); color: #fff; }
.cob-choice-ico svg { width: 22px; height: 22px; }
.cob-choice-tt { font-size: 0.98rem; font-weight: 700; color: var(--text-primary); }
.cob-choice-sub { font-size: 0.79rem; color: var(--text-secondary); line-height: 1.4; }

.cob-target-inputs { margin-top: var(--space-4); display: flex; flex-wrap: wrap; gap: var(--space-3); }
.cob-target-inputs .cob-field { min-width: 240px; }

/* ── "Mais opções" ── */
.cob-more { margin-top: var(--space-4); }
.cob-more > summary {
  cursor: pointer; font-size: 0.85rem; font-weight: 600; color: var(--brand-600);
  padding: 6px 0; list-style: none; width: max-content;
}
.cob-more > summary::-webkit-details-marker { display: none; }
.cob-more > summary::before { content: '▸ '; }
.cob-more[open] > summary::before { content: '▾ '; }
.cob-more .cob-filters { margin-top: var(--space-3); }

/* ── Resultado do passo 1: quem será cobrado ── */
.cob-result {
  margin-top: var(--space-5); padding: var(--space-4);
  background: var(--bg-muted); border-radius: var(--radius-md);
  border: 1px solid var(--line-soft);
}
.cob-reslist-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-3);
}
.cob-result-main { display: flex; align-items: baseline; gap: 10px; }
.cob-result-big { font-size: 2.2rem; font-weight: 800; color: var(--cob-accent); line-height: 1; font-variant-numeric: tabular-nums; }
.cob-result-txt { font-size: 0.95rem; color: var(--text-primary); font-weight: 600; }
.cob-result-chips { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.cob-result-empty { margin: var(--space-3) 0 0; font-size: 0.88rem; color: var(--warning-500); }

.cob-res-search {
  width: 100%; box-sizing: border-box; margin-bottom: var(--space-3);
  padding: 9px 14px; border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  background: var(--bg-surface); color: var(--text-primary); font: inherit; font-size: 0.9rem;
}
.cob-res-search:focus { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 3px var(--focus-ring); }

.cob-res-tablewrap { max-height: 340px; overflow-y: auto; background: var(--bg-surface); }
.cob-res-tablewrap thead th { position: sticky; top: 0; z-index: 1; }
.cob-res-name { font-weight: 600; }
.cob-res-muted td { color: var(--text-secondary); }
.cob-res-muted .cob-res-name { font-weight: 500; }
.cob-atraso { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text-secondary); white-space: nowrap; }
.cob-atraso--mid { color: var(--warning-500); }
.cob-atraso--high { color: var(--danger-500); }

/* ── Lista de modelos (passo 2) ── */
.cob-modellist { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: var(--space-3); margin-bottom: var(--space-3); }
.cob-modelcard {
  display: flex; align-items: flex-start; gap: 12px; text-align: left;
  padding: var(--space-4); background: var(--bg-surface);
  border: 1.5px solid var(--line-soft); border-radius: var(--radius-md);
  cursor: pointer; transition: border-color 140ms ease, background 140ms ease;
}
.cob-modelcard:hover { background: var(--bg-muted); border-color: var(--line-strong); }
.cob-modelcard.is-active { border-color: var(--cob-accent); background: rgba(46, 111, 214, 0.06); }
.cob-modelcard-radio {
  flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%;
  border: 2px solid var(--line-strong); transition: border-color 140ms ease;
}
.cob-modelcard.is-active .cob-modelcard-radio { border-color: var(--cob-accent); border-width: 5px; }
.cob-modelcard-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cob-modelcard-name { font-weight: 700; color: var(--text-primary); }
.cob-modelcard-subj { font-size: 0.8rem; color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Estado vazio (caixa) ── */
.cob-emptybox {
  display: flex; flex-direction: column; align-items: center; gap: var(--space-3);
  padding: var(--space-8) var(--space-4); text-align: center;
  background: var(--bg-muted); border: 1px dashed var(--line-strong); border-radius: var(--radius-md);
  color: var(--text-secondary);
}
.cob-emptybox-ico { color: var(--brand-500); opacity: 0.7; }
.cob-emptybox-ico svg { width: 34px; height: 34px; }
.cob-emptybox p { margin: 0; font-size: 0.92rem; }

/* ── Revisar (passo 3) ── */
.cob-review { display: flex; flex-direction: column; gap: var(--space-3); }
.cob-review-row {
  display: flex; align-items: flex-start; gap: 12px;
  padding: var(--space-3) var(--space-4); background: var(--bg-muted);
  border-radius: var(--radius-md); font-size: 0.92rem; color: var(--text-primary); line-height: 1.45;
}
.cob-review-row small { color: var(--text-secondary); }
.cob-review-ico { flex: 0 0 auto; color: var(--brand-500); }
.cob-review-ico svg { width: 20px; height: 20px; }

.cob-when {
  display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap;
  margin-top: var(--space-5); padding: var(--space-4); background: var(--bg-surface);
  border: 1px solid var(--line-soft); border-radius: var(--radius-md);
}
.cob-when-label { font-weight: 700; color: var(--text-primary); }
.cob-radio { display: inline-flex; align-items: center; gap: 6px; font-size: 0.9rem; color: var(--text-primary); cursor: pointer; }
.cob-radio input { accent-color: var(--brand-500); }
.cob-when input[type="datetime-local"] {
  padding: 8px 12px; border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  font: inherit; font-size: 0.9rem; color: var(--text-primary); background: var(--bg-surface);
}

/* ── Campos / filtros ── */
.cob-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: var(--space-3); }
.cob-field { display: flex; flex-direction: column; gap: 5px; font-size: 0.82rem; color: var(--text-secondary); }
.cob-field > span { font-weight: 600; color: var(--text-primary); }
.cob-field-lbl { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text-primary); margin-top: var(--space-3); }
.cob-field input, .cob-field select, .cob-field textarea {
  padding: 9px 12px; border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  background: var(--bg-surface); color: var(--text-primary); font: inherit; font-size: 0.9rem;
}
.cob-field textarea { resize: vertical; line-height: 1.55; }
.cob-field input:focus, .cob-field select:focus, .cob-field textarea:focus {
  outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 3px var(--focus-ring);
}
.cob-field small { font-weight: 400; }
.cob-input-suffix { display: flex; align-items: center; gap: 8px; }
.cob-input-suffix input { flex: 0 1 90px; }
.cob-input-suffix em { font-style: normal; font-size: 0.85rem; color: var(--text-secondary); font-weight: 600; }

/* ── Botoes ── */
.cob-actions { display: flex; gap: var(--space-2); justify-content: flex-end; margin-top: var(--space-4); flex-wrap: wrap; }
.cob-btn {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  font: 600 0.9rem/1 inherit; padding: 10px 18px; cursor: pointer;
  transition: filter 140ms ease, background 140ms ease, box-shadow 140ms ease;
}
.cob-btn svg { width: 16px; height: 16px; }
.cob-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.cob-btn.is-loading { opacity: 0.7; cursor: progress; }
.cob-btn-primary { background: var(--cob-grad); color: #fff; box-shadow: 0 3px 12px rgba(46, 111, 214, 0.32); border: 0; }
.cob-btn-primary:not(:disabled):hover { filter: brightness(1.07); box-shadow: 0 5px 16px rgba(46, 111, 214, 0.42); }
.cob-btn-secondary { background: var(--bg-surface); color: var(--cob-accent); border-color: rgba(46, 111, 214, 0.4); }
.cob-btn-secondary:not(:disabled):hover { background: rgba(46, 111, 214, 0.08); border-color: var(--cob-accent); }
.cob-btn-ghost { background: transparent; color: var(--text-secondary); }
.cob-btn-ghost:not(:disabled):hover { color: var(--text-primary); background: var(--bg-muted); }

.cob-link { border: 0; background: transparent; color: var(--brand-600); cursor: pointer; font: 600 0.85rem/1 inherit; padding: 4px 6px; border-radius: 6px; }
.cob-link:hover { background: var(--bg-muted); text-decoration: underline; }
.cob-link-danger { color: var(--danger-500); }
.cob-link-danger:hover { background: rgba(179, 38, 30, 0.08); }

/* ── Tabela ── */
.cob-table-wrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--radius-md); }
.cob-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.cob-table thead th {
  text-align: left; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--text-secondary); background: var(--bg-muted); padding: 10px 12px;
  border-bottom: 1px solid var(--line-soft); white-space: nowrap;
}
.cob-table tbody td { padding: 10px 12px; border-bottom: 1px solid var(--line-soft); color: var(--text-primary); }
.cob-table tbody tr:last-child td { border-bottom: 0; }
.cob-table tbody tr:hover { background: var(--bg-muted); }
.cob-row-click { cursor: pointer; }
.cob-rowactions { white-space: nowrap; }
.cob-right { text-align: right; }
.cob-empty { text-align: center; color: var(--text-secondary); padding: var(--space-6); }
.cob-hint { font-size: 0.8rem; color: var(--text-secondary); margin: var(--space-3) 0 0; }
.cob-hint-inline { font-size: 0.72rem; color: var(--text-secondary); font-weight: 400; }

/* ── Chips / badges ── */
.cob-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 0.78rem; font-weight: 600; padding: 5px 11px; border-radius: var(--radius-full, 999px); background: var(--bg-surface); border: 1px solid var(--line-soft); color: var(--text-secondary); }
.cob-chip svg { width: 13px; height: 13px; }
.cob-chip-ok { background: rgba(28, 127, 77, 0.10); color: var(--success-500); border-color: transparent; }
.cob-chip-warn { background: rgba(138, 97, 0, 0.12); color: var(--warning-500); border-color: transparent; }
.cob-chip-mut { background: var(--bg-muted); color: var(--text-secondary); border-color: transparent; }

.cob-badge { display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 3px 9px; border-radius: var(--radius-full, 999px); }
.cob-badge-ok, .cob-badge-concluida { background: rgba(28, 127, 77, 0.14); color: var(--success-500); }
.cob-badge-warn, .cob-badge-agendada, .cob-badge-processando { background: rgba(138, 97, 0, 0.14); color: var(--warning-500); }
.cob-badge-mut, .cob-badge-cancelada, .cob-badge-rascunho { background: var(--bg-muted); color: var(--text-secondary); }
.cob-badge-falhada { background: rgba(179, 38, 30, 0.12); color: var(--danger-500); }

/* ── Partes automáticas do e-mail (read-only) ──
   Mostra ao financeiro o que o sistema preenche sozinho (saudação, lista de
   boletos, os dois avisos fixos e a assinatura). Substitui os antigos chips de
   variáveis/frases — sem códigos {{}} na tela, que assustavam o time. */
.cob-fixedparts {
  margin: var(--space-3) 0 0;
  background: var(--bg-muted);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}
.cob-fixedparts-tt {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 10px; font-size: 0.84rem; font-weight: 700; color: var(--text-primary);
}
.cob-fixedparts-tt svg { width: 16px; height: 16px; color: var(--success-500); flex: 0 0 auto; }
.cob-fixedparts-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.cob-fixedparts-list li { font-size: 0.82rem; line-height: 1.5; color: var(--text-secondary); }
.cob-fixedparts-list em { color: var(--text-primary); font-style: italic; }
.cob-fixedparts-tag {
  display: inline-block; margin-right: 6px; padding: 1px 8px; border-radius: 999px;
  background: rgba(46, 111, 214, 0.12); color: var(--cob-accent);
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;
  vertical-align: middle;
}

/* ── Prévia do e-mail ── */
.cob-preview-frame { margin-top: var(--space-4); border: 1px solid var(--line-soft); border-radius: var(--radius-md); overflow: hidden; }
.cob-preview-subject { padding: 10px 14px; background: var(--bg-muted); font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); border-bottom: 1px solid var(--line-soft); }
.cob-preview-frame iframe { width: 100%; height: 520px; border: 0; background: #f0f2f7; display: block; }

/* ── Dias da semana ── */
.cob-dias { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.cob-dia {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px;
  border: 1px solid var(--line-soft); border-radius: var(--radius-full, 999px);
  background: var(--bg-surface); font-size: 0.82rem; font-weight: 600; color: var(--text-secondary);
  cursor: pointer; user-select: none;
}
.cob-dia:has(input:checked) { background: rgba(69, 98, 143, 0.1); border-color: var(--brand-500); color: var(--brand-600); }
.cob-dia input { accent-color: var(--brand-500); margin: 0; }

/* ── Editor de modelo: galeria + 2 colunas + prévia ao vivo ── */
.cob-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: var(--space-3); margin: 6px 0 var(--space-4); }
.cob-presetcard {
  display: flex; flex-direction: column; gap: 3px; text-align: left;
  padding: var(--space-3) var(--space-4); background: var(--bg-surface);
  border: 1.5px solid var(--line-soft); border-radius: var(--radius-md);
  cursor: pointer; transition: border-color 140ms ease, background 140ms ease;
}
.cob-presetcard:hover { border-color: var(--cob-accent); background: rgba(46, 111, 214, 0.06); }
.cob-presetcard.is-active { border-color: var(--cob-accent); background: rgba(46, 111, 214, 0.08); box-shadow: 0 0 0 3px rgba(46, 111, 214, 0.18); }
.cob-presetcard-tt { font-weight: 700; font-size: 0.9rem; color: var(--text-primary); }
.cob-presetcard-sub { font-size: 0.76rem; color: var(--text-secondary); line-height: 1.35; }

.cob-editor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); align-items: start; }
.cob-editor-form { display: flex; flex-direction: column; gap: var(--space-3); min-width: 0; }
.cob-editor-form textarea { font-size: 0.9rem; line-height: 1.6; }
.cob-editor-preview { position: sticky; top: var(--space-3); min-width: 0; }
.cob-editor-preview iframe { height: 460px; }
.cob-preview-note { padding: 8px 14px; font-size: 0.74rem; color: var(--text-secondary); background: var(--bg-muted); border-top: 1px solid var(--line-soft); }

/* ── Linha expansível: títulos por cliente ── */
.cob-res-expandable { cursor: pointer; }
.cob-caret { display: inline-block; transition: transform 140ms ease; color: var(--text-secondary); font-size: 0.8em; }
.cob-caret.is-open { transform: rotate(90deg); }
.cob-res-detail > td { padding: 0 12px 12px; background: var(--bg-muted); }
.cob-res-detailinfo { padding: 10px 2px 8px; font-size: 0.8rem; color: var(--text-secondary); }
.cob-subtable { width: 100%; border-collapse: collapse; font-size: 0.82rem; background: var(--bg-surface); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); overflow: hidden; }
.cob-subtable th { text-align: left; font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--text-secondary); background: var(--bg-muted); padding: 7px 10px; border-bottom: 1px solid var(--line-soft); }
.cob-subtable td { padding: 7px 10px; border-bottom: 1px solid var(--line-soft); color: var(--text-primary); }
.cob-subtable tr:last-child td { border-bottom: 0; }

/* ── Aging (distribuição por atraso) ── */
.cob-aging { background: var(--bg-surface); border: 1px solid var(--line-soft); border-radius: var(--radius-md); box-shadow: var(--shadow-1); padding: var(--space-4); margin-bottom: var(--space-5); }
.cob-aging-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; margin-bottom: 10px; }
.cob-aging-title { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: var(--text-secondary); }
.cob-aging-extra { font-size: 0.82rem; color: var(--text-secondary); }
.cob-aging-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: var(--space-3); }
.cob-aging-tile { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; background: var(--bg-muted); border-left: 4px solid var(--line-strong); border-radius: var(--radius-sm); }
.cob-aging-tile-lbl { font-size: 0.74rem; font-weight: 600; color: var(--text-secondary); }
.cob-aging-tile-val { font-size: 1.05rem; font-weight: 800; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.cob-aging-tile.cob-aging--ok { border-left-color: var(--success-500); }
.cob-aging-tile.cob-aging--mid { border-left-color: #b8901f; }
.cob-aging-tile.cob-aging--warn { border-left-color: var(--warning-500); }
.cob-aging-tile.cob-aging--high { border-left-color: var(--danger-500); }

/* ══ Responsivo (mobile/tablet) ══ */
@media (max-width: 760px) {
  .cob-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: var(--space-4); }
  .cob-kpi { padding: 12px; gap: 10px; }
  .cob-kpi-ico { width: 36px; height: 36px; }
  .cob-kpi-ico svg { width: 18px; height: 18px; }
  .cob-kpi-value { font-size: 1.4rem; }
  .cob-kpi-label { font-size: 0.66rem; }

  /* Navegação em rolagem horizontal de 1 linha (em vez de quebrar feio) */
  .cob-subnav { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .cob-subnav::-webkit-scrollbar { display: none; }
  .cob-subnav-btn { white-space: nowrap; flex: 0 0 auto; }
  .cob-subnav-sep { flex: 0 0 auto; }

  /* Hero e cards com respiro menor no celular */
  .cob-wizard { padding: var(--space-4); }
  .cob-wiz-head { margin: 0 0 var(--space-4); padding: 0 0 var(--space-3); }
  .cob-wiz-head .cob-card-title { font-size: 1.1rem; }
  .cob-card { padding: var(--space-4); }

  /* Stepper: chips menores */
  .cob-stepper { gap: 6px; margin-bottom: var(--space-5); }
  .cob-step-pill { font-size: 0.8rem; padding: 6px 12px 6px 6px; }

  /* Ações em coluna, botões largura cheia (alvo de toque maior) */
  .cob-step-actions, .cob-actions { flex-direction: column-reverse; align-items: stretch; }
  .cob-step-actions .cob-btn, .cob-actions .cob-btn { width: 100%; justify-content: center; }

  .cob-reslist-head { flex-direction: column; align-items: flex-start; }

  /* Editor de modelo empilha; prévia deixa de ser sticky */
  .cob-editor-grid { grid-template-columns: 1fr; }
  .cob-editor-preview { position: static; }
  .cob-editor-preview iframe { height: 360px; }

  /* Hero: número menor, chips/legenda quebram sem forçar alinhamento à direita */
  .cob-hero { padding: 16px 16px; }
  .cob-hero-value { font-size: 1.6rem; }
  .cob-hero-stats { width: 100%; }
  .cob-agelg--extra { margin-left: 0; width: 100%; }
}

.hidden { display: none !important; }

/* ═══════════════════════════════════════════════════════════════════════
   ✨ Movimento & polimento — camada aditiva (apêndice = vence a cascata).
   Regras: só transform/opacity (fica no compositor), 150–500ms, saída ≤
   entrada, e TUDO reduzido em prefers-reduced-motion (bloco no fim).
   ═══════════════════════════════════════════════════════════════════════ */
:root {
  --cob-ease: cubic-bezier(.22, 1, .36, 1);            /* ease-out suave (≈ power2.out) */
  --cob-ease-spring: cubic-bezier(.34, 1.56, .64, 1);  /* leve overshoot p/ seleção */
}

@keyframes cob-fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes cob-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes cob-pop-in  { 0% { opacity: 0; transform: scale(.94); } 60% { opacity: 1; } 100% { opacity: 1; transform: scale(1); } }
@keyframes cob-grow-x  { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes cob-spin    { to { transform: rotate(360deg); } }
@keyframes cob-breathe { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }

/* ── Entrada da pane: hero + conteúdo sobem suave; subnav com leve atraso ── */
.cob-hero { animation: cob-fade-up .5s var(--cob-ease) both; }
.cob-hero-glow { animation: cob-breathe 8s ease-in-out infinite; }   /* vida sutil no brilho */
.cob-subnav, .fin-subnav { animation: cob-fade-up .5s var(--cob-ease) both; animation-delay: 60ms; }
.cob-sec:not(.hidden)  { animation: cob-fade-up .45s var(--cob-ease) both; }  /* re-dispara ao trocar de aba */
.cob-step:not(.hidden) { animation: cob-fade-up .4s var(--cob-ease) both; }   /* re-dispara ao trocar de passo */

/* ── Barra de atraso: cada segmento "enche" da esquerda, escalonado ── */
.cob-ageseg { transform-origin: left center; animation: cob-grow-x .7s var(--cob-ease) both; }
.cob-ageseg:nth-child(1) { animation-delay: .05s; }
.cob-ageseg:nth-child(2) { animation-delay: .13s; }
.cob-ageseg:nth-child(3) { animation-delay: .21s; }
.cob-ageseg:nth-child(4) { animation-delay: .29s; }
.cob-agelegend { animation: cob-fade-in .5s var(--cob-ease) both; animation-delay: .34s; }

/* ── Cartões (escolha/modelo/preset): hover vivo + press + seleção com pop ── */
.cob-choice, .cob-modelcard, .cob-presetcard {
  transition: border-color .16s var(--cob-ease), background .16s var(--cob-ease),
              box-shadow .2s var(--cob-ease), transform .2s var(--cob-ease);
}
.cob-choice:hover { transform: translateY(-3px) scale(1.01); }
.cob-choice:active, .cob-modelcard:active, .cob-presetcard:active { transform: scale(.985); }
.cob-choice.is-active { animation: cob-pop-in .32s var(--cob-ease-spring) both; }
.cob-choice.is-active .cob-choice-ico { animation: cob-pop-in .36s var(--cob-ease-spring) both; }
.cob-kpi:hover { transform: translateY(-3px) scale(1.005); }

/* ── Botões: toque + brilho no primário + spinner de carregamento ── */
.cob-btn { transition: filter .14s var(--cob-ease), background .14s var(--cob-ease),
                       box-shadow .2s var(--cob-ease), transform .12s var(--cob-ease); }
.cob-btn:not(:disabled):active { transform: translateY(1px) scale(.99); }
.cob-btn-primary {
  background-size: 160% 160%; background-position: 0% 50%;
  transition: box-shadow .2s var(--cob-ease), transform .12s var(--cob-ease),
              background-position .6s var(--cob-ease), filter .14s var(--cob-ease);
}
.cob-btn-primary:not(:disabled):hover { background-position: 100% 50%; transform: translateY(-1px); }
.cob-btn.is-loading { position: relative; color: transparent !important; }
.cob-btn.is-loading::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 15px; height: 15px; margin: -8px 0 0 -8px; border-radius: 50%;
  border: 2px solid currentColor; border-top-color: transparent;
  animation: cob-spin .6s linear infinite;
}
.cob-btn-primary.is-loading::after { border-color: rgba(255, 255, 255, .9); border-top-color: transparent; }

/* ── Sub-navegação: sublinhado que cresce (substitui a barra estática do ativo) ── */
.cob-subnav-btn, .fin-subnav-btn { position: relative; }
.cob-subnav-btn.is-active, .fin-subnav-btn.is-active { border-bottom-color: transparent; }
.cob-subnav-btn::after, .fin-subnav-btn::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px;
  background: var(--cob-accent); border-radius: 2px 2px 0 0;
  transform: scaleX(0); transform-origin: center; transition: transform .25s var(--cob-ease);
}
.cob-subnav-btn.is-active::after, .fin-subnav-btn.is-active::after { transform: scaleX(1); }

/* ── Pílulas ativas (Boletos|Cobrança, E-mail|WhatsApp): micro-pop ao ativar ── */
.cob-modeswitch-btn.is-active, .cob-canal-btn.is-active { animation: cob-pop-in .28s var(--cob-ease-spring); }

/* ── Stepper: nº entra com pop ao virar ativo/concluído ── */
.cob-step-pill { transition: background .25s var(--cob-ease), color .25s var(--cob-ease), border-color .25s var(--cob-ease); }
.cob-step-num  { transition: background .25s var(--cob-ease), color .25s var(--cob-ease); }
.cob-step-pill.is-active .cob-step-num,
.cob-step-pill.is-done .cob-step-num { animation: cob-pop-in .3s var(--cob-ease-spring); }

/* ── Resultado do passo 1 + linha expansível: entram suave ── */
.cob-result:not(.hidden) { animation: cob-fade-up .4s var(--cob-ease) both; }
.cob-result:not(.hidden) .cob-result-big { animation: cob-pop-in .42s var(--cob-ease-spring) both; animation-delay: .08s; }
.cob-res-detail:not(.hidden) .cob-res-detailinfo,
.cob-res-detail:not(.hidden) .cob-subtable { animation: cob-fade-up .3s var(--cob-ease) both; }

/* ── Foco visível consistente (a11y — CRÍTICO, nunca remover) ── */
.cob-btn:focus-visible, .cob-subnav-btn:focus-visible, .fin-subnav-btn:focus-visible,
.cob-modeswitch-btn:focus-visible, .cob-canal-btn:focus-visible, .cob-choice:focus-visible,
.cob-modelcard:focus-visible, .cob-presetcard:focus-visible, .cob-link:focus-visible,
.cob-dia:focus-visible, .cob-more > summary:focus-visible, .cob-res-expandable:focus-visible {
  outline: 2px solid var(--cob-accent); outline-offset: 2px;
}

/* ── Respeita quem prefere menos movimento (a11y) ── */
@media (prefers-reduced-motion: reduce) {
  .cob-pane *, .cob-pane *::before, .cob-pane *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .cob-hero-glow { animation: none !important; }
}

/* ═══════════════════════════════════════════════════════════════════════
   📐 Passo 1 "Quem cobrar" — DENSIDADE + HIERARQUIA.
   Filtros compactos à esquerda; a LISTA de quem será cobrado grande à
   direita (a estrela). Menos rolagem, menos espaço morto.
   ═══════════════════════════════════════════════════════════════════════ */
.cob-step1-grid {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: var(--space-5);
  align-items: start;
}
.cob-filters-pane { display: flex; flex-direction: column; gap: var(--space-3); min-width: 0; }
.cob-result-pane { min-width: 0; }

/* densidade: menos padding no wizard, título do passo menor e colado */
.cob-wizard { padding: var(--space-5); }
.cob-step1-grid .cob-step-title { font-size: 1rem; margin: 0 0 2px; }

/* cartões de escolha COMPACTOS (linha: ícone + texto empilhado), 1 por linha */
.cob-filters-pane .cob-choices { grid-template-columns: 1fr; gap: var(--space-2); }
.cob-choice { flex-direction: row; align-items: center; gap: var(--space-3); padding: 10px var(--space-3); }
.cob-choice-ico { width: 34px; height: 34px; border-radius: var(--radius-sm); }
.cob-choice-ico svg { width: 18px; height: 18px; }
.cob-choice-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; text-align: left; }
.cob-choice-tt { font-size: 0.9rem; }
.cob-choice-sub { font-size: 0.73rem; }

.cob-filters-pane .cob-target-inputs { margin-top: 0; }
.cob-filters-pane .cob-target-inputs .cob-field { min-width: 0; width: 100%; }
.cob-filters-pane .cob-more { margin-top: 0; }
.cob-preview-btn { width: 100%; justify-content: center; margin-top: 2px; }

/* estado vazio do painel da direita (antes de pré-visualizar) */
.cob-result-empty-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--space-2); min-height: 340px; height: 100%; padding: var(--space-6);
  text-align: center; background: var(--bg-muted);
  border: 1px dashed var(--line-soft); border-radius: var(--radius-md);
}
.cob-result-empty-ico { color: var(--cob-accent); opacity: .45; }
.cob-result-empty-ico svg { width: 40px; height: 40px; }
.cob-result-empty-tt { margin: 0; font-weight: 700; color: var(--text-primary); font-size: 0.98rem; }
.cob-result-empty-sub { margin: 0; font-size: 0.84rem; color: var(--text-secondary); max-width: 34ch; }
/* some quando a lista carrega (:has — Chromium) */
.cob-result-pane:has(#cobWizResult:not(.hidden)) #cobWizResultPlaceholder { display: none; }

/* a LISTA é a estrela: sem margem extra e MUITO mais alta */
.cob-result-pane .cob-result { margin-top: 0; padding: var(--space-4); }
.cob-result-pane .cob-reslist-head { margin-bottom: var(--space-3); }
.cob-result-pane .cob-res-tablewrap { max-height: clamp(360px, 58vh, 660px); }

/* empilha em telas médias/menores: filtros em cima (compactos), lista embaixo (grande) */
@media (max-width: 1024px) {
  .cob-step1-grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .cob-result-empty-state { min-height: 160px; }
  .cob-result-pane .cob-res-tablewrap { max-height: clamp(320px, 48vh, 560px); }
}

/* ── Linhas COMPACTAS na lista de destinatários — 1 linha por célula (texto
   trunca com reticências); números com largura fixa (nunca truncam). Assim
   cabem ~11 clientes de uma vez em vez de 4. ── */
.cob-res-tablewrap .cob-table { table-layout: fixed; }
.cob-res-tablewrap thead th { padding: 7px 10px; }
.cob-res-tablewrap .cob-res-row td {
  padding: 7px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cob-res-tablewrap .cob-res-name { font-weight: 600; }
.cob-res-tablewrap .cob-badge, .cob-res-tablewrap .cob-atraso { white-space: nowrap; }
/* colunas numéricas/situação com largura fixa legível */
.cob-res-tablewrap thead th:nth-child(4), .cob-res-tablewrap .cob-res-row td:nth-child(4) { width: 66px; }   /* Boletos */
.cob-res-tablewrap thead th:nth-child(5), .cob-res-tablewrap .cob-res-row td:nth-child(5) { width: 92px; }   /* Atraso */
.cob-res-tablewrap thead th:nth-child(6), .cob-res-tablewrap .cob-res-row td:nth-child(6) { width: 128px; }  /* Valor */
.cob-res-tablewrap thead th:nth-child(7), .cob-res-tablewrap .cob-res-row td:nth-child(7) { width: 112px; }  /* Situação */

/* ═══════════════════════════════════════════════════════════════════════
   🎯 Hero "A receber em atraso" — MAIS COMPACTO e leve (ocupava ~212px).
   Mesmas infos, menos altura: número menor, ícone/paddings menores, faixa
   de atraso justa. Fica agradável sem roubar a tela do trabalho.
   ═══════════════════════════════════════════════════════════════════════ */
.cob-hero { padding: 12px 18px; margin-bottom: var(--space-4); }
.cob-hero-headline { gap: 12px; }
.cob-hero-ico { width: 38px; height: 38px; border-radius: 11px; }
.cob-hero-ico svg { width: 20px; height: 20px; }
.cob-hero-label { font-size: 0.67rem; letter-spacing: 0.05em; }
.cob-hero-value { font-size: 1.6rem; }
.cob-hero-sub { font-size: 0.78rem; }
.cob-hero-chip { padding: 6px 11px; font-size: 0.74rem; }
.cob-hero-chip strong { font-size: 0.88rem; }
/* faixa de atraso: colada e enxuta */
.cob-hero-aging { margin-top: 9px; padding-top: 8px; }
.cob-agebar { height: 7px; }
.cob-agelegend { margin-top: 7px; gap: 6px 14px; font-size: 0.72rem; }
.cob-agelg i { width: 8px; height: 8px; }

/* ── Canal (E-mail|WhatsApp) no canto direito do cabeçalho — ganha a linha
   "Enviar por" de volta (economiza ~50px). Empilha só em tela estreita. ── */
.cob-wiz-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }
.cob-wiz-head-text { flex: 1 1 300px; }
.cob-wiz-head .cob-canal { margin-bottom: 0; flex: 0 0 auto; }
@media (max-width: 620px) {
  .cob-wiz-head { align-items: flex-start; }
  .cob-wiz-head .cob-canal { width: 100%; }
}
