/* ============================================================
   ficha-workflow.css — funil de pré-venda por setores (prefixo fw-)
   Stepper, barra de ícones, timeline e badges no painel do produto.
   ============================================================ */

/* ---------- Barra de ícones (cabeçalho do painel) ---------- */
.fw-iconbar { display: flex; align-items: center; gap: 6px; margin: 8px 0 2px; }
.fw-icon-btn {
  width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border, #e4e4e7); border-radius: 8px; background: #fff;
  color: var(--fg2, #444); cursor: pointer; transition: background .12s, border-color .12s, color .12s;
}
.fw-icon-btn:hover { background: #f7f7f2; border-color: var(--vp-yellow, #f5c400); color: #111; }
.fw-icon-btn.danger:hover { background: #fef2f2; border-color: #fca5a5; color: #b91c1c; }
.fw-iconbar > button:last-child { margin-left: auto; }

/* ---------- Card do workflow ---------- */
.fw-card {
  border: 1px solid var(--border, #e6e6e6); border-radius: 10px;
  padding: 12px; margin: 10px 0 4px; background: #fcfcfa;
  display: flex; flex-direction: column; gap: 8px;
}
.fw-setor-badge {
  font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
  color: #fff; padding: 3px 10px; border-radius: 999px;
}

/* ---------- Stepper ---------- */
.fw-stepper { display: flex; align-items: center; margin: 2px 0; }
.fw-step { display: flex; align-items: center; flex: 1; min-width: 0; }
.fw-step:last-child { flex: 0; }
.fw-step-dot {
  width: 20px; height: 20px; flex: none; border-radius: 50%;
  border: 2px solid #d4d4d8; background: #fff; color: #a1a1aa;
  display: flex; align-items: center; justify-content: center;
  font-size: 9.5px; font-weight: 800;
}
.fw-step.done .fw-step-dot, .fw-step.current .fw-step-dot { color: #fff; }
.fw-step.current .fw-step-dot { box-shadow: 0 0 0 3px rgba(245, 196, 0, .35); }
.fw-step-bar { flex: 1; height: 2px; background: #e4e4e7; margin: 0 2px; }
.fw-step-bar.on { background: #a1a1aa; }

.fw-etapa-now { display: flex; flex-direction: column; gap: 1px; }
.fw-etapa-now b { font-size: 12.5px; }
.fw-etapa-now span { font-size: 11px; color: var(--fg3, #888); }

/* ---------- Cliente lead ---------- */
.fw-lead {
  display: flex; align-items: center; gap: 7px; font-size: 11.5px;
  border: 1px dashed var(--border, #ddd); border-radius: 8px;
  padding: 6px 9px; cursor: pointer; color: var(--fg2, #444);
}
.fw-lead:hover { border-color: var(--vp-yellow, #f5c400); background: #fffdf2; }

/* ---------- Aviso "aguardando setor" / publicado ---------- */
.fw-wait { font-size: 11px; color: var(--fg3, #888); padding: 6px 0 0; }
.fw-pub-ok { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #059669; font-weight: 700; padding-top: 4px; }

/* ---------- Banner de revisão ---------- */
.fw-revisao-banner {
  display: flex; align-items: center; gap: 8px;
  background: #fffbeb; border: 1px solid #fde68a; color: #92400e;
  border-radius: 8px; padding: 7px 10px; font-size: 11.5px;
}
.fw-rev-ok {
  margin-left: auto; flex: none; border: 1px solid #d6a700; background: #fff;
  color: #92400e; font-size: 10.5px; font-weight: 700; border-radius: 6px;
  padding: 3px 9px; cursor: pointer;
}
.fw-rev-ok:hover { background: #fef3c7; }

/* ---------- Timeline (olhinho) ---------- */
.fw-timeline { display: flex; flex-direction: column; max-height: 420px; overflow-y: auto; padding-right: 4px; }
.fw-tl-item { display: flex; gap: 10px; padding: 9px 2px; border-bottom: 1px solid #f0f0ee; }
.fw-tl-item:last-child { border-bottom: none; }
.fw-tl-ico {
  width: 26px; height: 26px; flex: none; border-radius: 50%;
  background: #f4f4f0; border: 1px solid #e6e6e0; color: #555;
  display: flex; align-items: center; justify-content: center;
}
.fw-tl-body { min-width: 0; }
.fw-tl-line { font-size: 12px; line-height: 1.4; }
.fw-tl-setor {
  font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  background: #ececec; color: #555; border-radius: 4px; padding: 1px 6px; margin-left: 5px;
}
.fw-tl-move { font-size: 11px; color: var(--fg2, #555); margin-top: 1px; }
.fw-tl-move span { color: #b8860b; font-weight: 800; }
.fw-tl-det { font-size: 11px; color: #92400e; font-style: italic; margin-top: 1px; }
.fw-tl-when { font-size: 10px; color: var(--fg3, #999); margin-top: 2px; font-variant-numeric: tabular-nums; }

/* ---------- Produto arquivado na tabela ---------- */
.fw-row-arquivado td { opacity: .45; }
.fw-arq-badge {
  font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
  background: #ececec; color: #777; border-radius: 4px; padding: 2px 7px; margin-left: 6px;
}
