/* Fluxos prontos (public/js/fluxos.js): lista em Configurações, menu da conversa, janela de envio e faixa de andamento */
.fl-svg { flex: none; width: 18px; height: 18px; }
.fl-abas { margin-bottom: var(--s4); align-self: flex-start; width: max-content; }
.fl-n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--surface-raised); font-size: var(--fs-xs); color: var(--ink-muted); }
.fl-list, .fl-escolha, .fl-grupo { display: flex; flex-direction: column; gap: var(--s2); }
.fl-escolha { gap: var(--s4); }
.fl-grupo[hidden], .fl-opt[hidden] { display: none; }
.fl-item { display: flex; align-items: center; gap: var(--s3); width: 100%; padding: var(--s3); background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-md) 0 var(--r-md) 0; color: var(--ink); text-align: left; cursor: pointer; font: inherit; }
.fl-item:hover:not(:disabled), .fl-item:focus-visible { border-color: var(--line); background: var(--surface-raised); }
.fl-item:disabled { cursor: not-allowed; opacity: .6; }
.fl-item .chev { flex: none; color: var(--ink-muted); }
.fl-ic { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: var(--r-sm) 0 var(--r-sm) 0; background: var(--action); color: var(--on-action); }
.fl-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fl-tx b { font-size: var(--fs-base); line-height: 20px; }
.fl-tx small { font-size: var(--fs-sm); line-height: 18px; color: var(--ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl-bloq { color: var(--danger); }
.fl-tipos { flex: none; display: inline-flex; align-items: center; gap: 4px; color: var(--ink-muted); }
.fl-tipos svg { width: 15px; height: 15px; }
.fl-tipos em { font-style: normal; font-size: var(--fs-xs); }
@media (max-width: 520px) { .fl-tipos { display: none; } }
.fl-vazio { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s2); padding: var(--s5) var(--s3); color: var(--ink-muted); font-size: var(--fs-md); line-height: 20px; }
.fl-vazio .fl-svg { width: 28px; height: 28px; color: var(--ink-muted); }
.fl-vazio b { color: var(--ink); font-size: var(--fs-base); }
.fl-como { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s3); }
.fl-como li { display: flex; gap: var(--s3); align-items: flex-start; font-size: var(--fs-md); line-height: 20px; }
.fl-como svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--ink-muted); }
.hint.fl-warn { color: var(--danger); }
.fl-resumo { margin: var(--s4) 0 var(--s3); color: var(--ink-muted); }
/* lista dos passos (janela de envio e consulta) */
.fl-passos { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.fl-passos li { display: flex; align-items: center; gap: var(--s3); padding: 6px 0; }
.fl-passos .seq-ic svg { width: 16px; height: 16px; }
.fl-passos .fl-tx b { font-size: var(--fs-md); }
.fl-espera { flex: none; display: inline-flex; align-items: center; gap: 4px; font-style: normal; font-size: var(--fs-xs); color: var(--ink-muted); }
.fl-espera svg { width: 13px; height: 13px; }
.fl-dlg-ic { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: var(--s2); vertical-align: -6px; border-radius: var(--r-sm) 0 var(--r-sm) 0; background: var(--action); color: var(--on-action); }
.fl-dlg-ic .fl-svg { width: 16px; height: 16px; }
.fl-carro { display: flex; align-items: center; gap: var(--s2); padding: var(--s3); border-radius: var(--r-sm) 0 var(--r-sm) 0; background: var(--surface-raised); font-size: var(--fs-md); line-height: 20px; }
.fl-carro svg { flex: none; width: 18px; height: 18px; }
.fl-para { display: flex; gap: var(--s2); align-items: flex-start; margin: 0; }
.fl-para svg { flex: none; width: 15px; height: 15px; margin-top: 2px; }
/* menu "/" da conversa: fluxo com ícone próprio */
.qr-menu button.qr-fluxo b { display: flex; align-items: center; gap: 6px; }
.qr-menu button.qr-fluxo b .fl-svg { width: 15px; height: 15px; color: var(--ink-muted); }
.qr-menu button.qr-fluxo b small { font-weight: 400; font-size: var(--fs-xs); color: var(--ink-muted); }
.qr-menu button.qr-fluxo[aria-disabled="true"] { opacity: .55; }
.attach-menu .fl-svg { width: 20px; height: 20px; }
/* faixa do fluxo em andamento, acima do campo de mensagem */
#fl-faixa:empty { display: none; }
.fl-faixa { display: flex; align-items: center; gap: var(--s2); min-height: 36px; margin: 0 0 var(--s2); padding: 2px 4px 2px var(--s3); border-radius: var(--r-sm) 0 var(--r-sm) 0; background: var(--surface-raised); font-size: var(--fs-sm); line-height: 18px; }
.fl-faixa.is-bad { background: var(--danger-soft); }
.fl-faixa-nome { display: inline-flex; align-items: center; gap: 6px; min-width: 0; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; cursor: pointer; }
.fl-faixa-nome b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40vw; }
.fl-faixa-nome .fl-svg { width: 15px; height: 15px; }
.fl-sep { color: var(--ink-muted); }
.fl-faixa-st { color: var(--ink-muted); white-space: nowrap; }
.fl-faixa-st.bad { color: var(--danger); }
.fl-dots { display: inline-flex; gap: 3px; }
.fl-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.fl-dots i.on { background: var(--accent-text); }
.fl-dots i.bad { background: var(--danger); }
.fl-faixa-acoes { margin-left: auto; display: inline-flex; gap: 2px; }
.fl-faixa-acoes .btn { height: 30px; min-height: 30px; padding: 0 var(--s2); font-size: var(--fs-sm); }
.fl-faixa-acoes svg { width: 14px; height: 14px; }
@media (max-width: 420px) { .fl-dots { display: none; } }
/* janela de envio no celular: sem o Cancelar (fecha tocando fora), os dois botões dividem a largura */
@media (max-width: 480px) { .fl-foot .fl-cancel { display: none; } .fl-foot .btn { flex: 1; } }
