/* VOGA Creators | navegação por jornada (public/navegacao.js).
   5 itens no topo (Início, Creators, Vender, Entregar, Receber); a partir de 1100 px o mesmo nav vira barra lateral com os
   subitens da jornada ativa; sub-abas numa linha só abaixo disso, barra inferior no celular, chips de filtro dentro do
   conteúdo e o modal único "Enviar ao cliente?" (public/confirmar-envio.js, prefixo .ce-). Cores vêm dos tokens --v-*. */
.nv-topo { margin-top: 16px; }
.nv { display: none; gap: 4px; padding: 4px; border-radius: var(--v-r-3); background: var(--v-sup-0); border: 1px solid var(--v-fio); width: max-content; max-width: 100%; }
.nv-marca, .nv-subs { display: none; }
.nv-i { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 0; border-radius: var(--v-r-2); background: none; color: var(--v-tx-2); font: 500 15px var(--sans); cursor: pointer; transition: color var(--v-t-rapido) ease, background-color var(--v-t-rapido) ease; }
.nv-i:hover { color: var(--v-tx); background: rgba(242,245,251,.06); }
.nv-i[aria-current="page"] { background: var(--v-ativo); color: #fff; }
.nv-i:focus-visible, .nv-s:focus-visible, .nv-marca:focus-visible { outline: 2px solid var(--v-foco); outline-offset: 2px; }
.nv-ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.nv-n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--v-r-pilula); display: inline-grid; place-items: center; background: var(--v-azul-fundo); color: #fff; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.nv-i[aria-current="page"] .nv-n { background: rgba(255,255,255,.2); }
.nv-topo .nv { display: inline-flex; }

/* sub-abas: uma linha, rolagem horizontal com máscara, nunca quebra em duas linhas */
.sub-wrap { margin: 14px -16px 0; padding: 0 16px; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 90%, transparent); mask-image: linear-gradient(90deg, #000 90%, transparent); }
.sub-wrap::-webkit-scrollbar { display: none; }
.sub { display: flex; gap: 6px; width: max-content; padding: 0 24px 16px 0; }
.sub-i { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--v-r-pilula); border: 1px solid var(--v-fio-2); background: var(--v-sup-0); color: var(--v-tx-2); font: 500 14px var(--sans); cursor: pointer; white-space: nowrap; transition: background-color var(--v-t-rapido) ease, color var(--v-t-rapido) ease; }
.sub-i:hover { color: var(--v-tx); background: var(--v-sup-2); }
.sub-i[aria-selected="true"] { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.sub-i:focus-visible { outline: 2px solid var(--v-foco); outline-offset: 2px; }
.sub-n { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; opacity: .8; }
.sub-novo { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding: 2px 7px; border-radius: var(--v-r-1); background: var(--v-info-bg); color: var(--v-acento); }
.sub-i[aria-selected="true"] .sub-novo { background: var(--v-azul-fundo); color: #fff; }
/* ícone de cada sub-aba (só CSS: o HTML das sub-abas não muda) */
.sub-i::before, .nv-s::before { content: ""; flex: none; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--sub-ico) center / contain no-repeat; mask: var(--sub-ico) center / contain no-repeat; }
.sub-i[data-s="voga"], .nv-s[data-s="voga"] { --sub-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='3.5'/%3E%3Cpath d='M5 20c.7-3.6 3.4-5.5 7-5.5s6.3 1.9 7 5.5'/%3E%3C/svg%3E"); }
.sub-i[data-s="candidaturas"], .nv-s[data-s="candidaturas"] { --sub-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h9l4 4v14H6z'/%3E%3Cpath d='M9 12h7M9 16h5'/%3E%3C/svg%3E"); }
.sub-i[data-s="prospeccao"], .nv-s[data-s="prospeccao"] { --sub-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='6'/%3E%3Cpath d='m20 20-4.2-4.2'/%3E%3C/svg%3E"); }
.sub-i[data-s="contratos"], .nv-s[data-s="contratos"] { --sub-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h11l3 3v13H5z'/%3E%3Cpath d='M8 15c1.5-2 2.5 1 4 0s2-1.5 3-.5'/%3E%3C/svg%3E"); }
.sub-i[data-s="orcamentos"], .nv-s[data-s="orcamentos"] { --sub-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='16' height='16' rx='3'/%3E%3Cpath d='M8 9h8M8 13h8M8 17h5'/%3E%3C/svg%3E"); }
.sub-i[data-s="materiais"], .nv-s[data-s="materiais"] { --sub-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5' width='17' height='14' rx='2.5'/%3E%3Cpath d='m4 16 5-5 4 4 2-2 5 5'/%3E%3C/svg%3E"); }
.sub-i[data-s="empresas"], .nv-s[data-s="empresas"] { --sub-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20V8l8-4 8 4v12'/%3E%3Cpath d='M9 20v-5h6v5M9 11h.01M15 11h.01'/%3E%3C/svg%3E"); }
.sub-i[data-s="marketplace"], .nv-s[data-s="marketplace"] { --sub-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9 5.5 4h13L20 9'/%3E%3Cpath d='M4 9a2.7 2.7 0 0 0 5.3 0 2.7 2.7 0 0 0 5.4 0A2.7 2.7 0 0 0 20 9v11H4z'/%3E%3C/svg%3E"); }
.sub-i[data-s="campanhas"], .nv-s[data-s="campanhas"] { --sub-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 13v-3l12-5v13L4 13z'/%3E%3Cpath d='M7 14v5h3v-4'/%3E%3C/svg%3E"); }
.sub-i[data-s="trabalhos"], .nv-s[data-s="trabalhos"] { --sub-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='7' width='17' height='12' rx='2.5'/%3E%3Cpath d='M9 7V5h6v2M3.5 12.5h17'/%3E%3C/svg%3E"); }
.sub-i[data-s="pagamentos"], .nv-s[data-s="pagamentos"] { --sub-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='6' width='18' height='12' rx='3'/%3E%3Ccircle cx='12' cy='12' r='2.6'/%3E%3C/svg%3E"); }

/* filtro de etapa/grupo: chips dentro do conteúdo (antes eram uma terceira linha de abas no topo) */
.filtro-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.chip-f { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: var(--v-r-pilula); border: 1px solid var(--v-fio-2); background: var(--v-sup-1); color: var(--v-tx); font: 500 14px var(--sans); cursor: pointer; transition: background-color var(--v-t-rapido) ease; }
.chip-f:hover { background: var(--v-sup-2); }
.chip-f[aria-pressed="true"] { background: var(--v-ativo); color: #fff; border-color: var(--v-ativo); }
.chip-f b { font-variant-numeric: tabular-nums; font-size: 12px; color: var(--v-tx-2); }
.chip-f[aria-pressed="true"] b { color: var(--v-acento-forte); }

/* barra inferior do celular: 5 itens, ícone + texto, ativo claro com ícone azul */
.nv-baixo { display: none; }
@media (max-width: 759px) {
  .nv-topo { display: none; }
  .nv-baixo { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: rgba(5,11,30,.97); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); border-top: 1px solid var(--v-fio); }
  .nv-baixo .nv-i { flex-direction: column; justify-content: center; gap: 2px; min-height: 56px; padding: 6px 2px; font-size: 11.5px; border-radius: var(--v-r-2); }
  .nv-baixo .nv-n { position: absolute; top: 0; left: 50%; margin-left: 10px; min-width: 18px; height: 18px; font-size: 11px; box-shadow: 0 0 0 2px var(--ink); }
  .nv-baixo .nv-i[aria-current="page"] { background: var(--cream); color: var(--ink); }
  .nv-baixo .nv-i[aria-current="page"] .nv-ico { stroke: var(--azul-fundo); }
  .nv-baixo .nv-i[aria-current="page"] .nv-n { background: var(--azul-fundo); color: #fff; }
  .sub { padding-bottom: 20px; }
  .sub-i, .chip-f { min-height: 44px; }
  .sub-wrap { margin-top: 12px; }
  .miolo { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  .faixa-in { padding-top: 14px; }
  .faixa-titulo { font-size: 26px; }
}

/* barra lateral (desktop largo): marca, as cinco jornadas e, sob a ativa, os subitens dela. A sub-linha some porque os
   mesmos destinos já estão na lateral. Alvos de 44 px, ativo com ícone e texto, sem tarja lateral. */
@media (min-width: 1100px) {
  .nv-topo { position: fixed; top: 0; bottom: 0; left: 0; z-index: 25; width: 264px; margin: 0; padding: 20px 14px 24px; overflow-y: auto; background: var(--v-coal); border-right: 1px solid var(--v-fio); scrollbar-width: thin; }
  .nv-topo .nv { display: flex; flex-direction: column; gap: 2px; width: auto; padding: 0; border: 0; background: none; border-radius: 0; }
  .nv-marca { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 0 6px 22px; color: var(--v-tx); text-decoration: none; border-radius: var(--v-r-1); }
  .nv-logo { display: block; width: 84px; height: 21px; background: url("logo.webp") left center / contain no-repeat; }
  .nv-produto { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--v-tx-2); padding-left: 10px; border-left: 1px solid var(--v-fio-2); line-height: 1.6; }
  .nv-topo .nv-i { width: 100%; justify-content: flex-start; padding: 0 12px; }
  .nv-topo .nv-i .nv-n { margin-left: auto; }
  .nv-topo .nv-i[aria-current="page"] { background: var(--v-info-bg); color: #fff; box-shadow: inset 0 0 0 1px var(--v-info-bd); }
  .nv-topo .nv-i[aria-current="page"] .nv-ico { stroke: var(--v-acento); }
  .nv-subs { display: flex; flex-direction: column; gap: 2px; margin: 2px 0 10px 18px; }
  .nv-s { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-radius: var(--v-r-2); background: none; color: var(--v-tx-2); font: 500 14px var(--sans); text-align: left; cursor: pointer; transition: color var(--v-t-rapido) ease, background-color var(--v-t-rapido) ease; }
  .nv-s:hover { color: var(--v-tx); background: rgba(242,245,251,.06); }
  .nv-s[aria-current="true"] { background: var(--v-ativo); color: #fff; }
  .nv-st { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nv-sn { min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--v-r-pilula); display: inline-grid; place-items: center; background: var(--v-azul-fundo); color: #fff; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
  .nv-s[aria-current="true"] .nv-sn { background: rgba(255,255,255,.2); }
  .nv-sr { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 2px 7px; border-radius: var(--v-r-1); background: var(--v-info-bg); color: var(--v-acento); }
  .nv-s[aria-current="true"] .nv-sr { background: rgba(255,255,255,.2); color: #fff; }
  #sub-linha, .sub-wrap { display: none; }
  .painel { padding-left: 264px; }
  .topo-marca { display: none; }
  .topo-in { justify-content: flex-end; height: 48px; }
  .faixa { background: var(--v-ink); }
  .faixa-in { padding-top: 16px; padding-bottom: 16px; }
  .faixa-cabeca { padding-bottom: 0; min-height: 32px; }
  .sobretitulo { display: none; }
  .faixa-titulo { font-family: var(--sans); font-size: 25px; line-height: 32px; margin: 0; }
}

#sub-linha[hidden], .sub-wrap[hidden] { display: none; }
.nv-t { white-space: nowrap; }

/* ---------- componente de confirmação de envio ao cliente (.ce-) ---------- */
.ce-dialog { width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); margin: auto; padding: 0; border: 1px solid rgba(255,255,255,.08); border-radius: 16px; background: var(--v-coal); color: var(--v-tx); box-shadow: 0 30px 80px -20px rgba(5,11,30,.7); overflow: auto; }
.ce-dialog::backdrop { background: rgba(5,11,30,.72); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.ce-form { display: flex; flex-direction: column; gap: 12px; padding: 20px; }
.ce-tit { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.25; color: var(--cream); }
.ce-dest { margin: 0; padding: 12px 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; }
.ce-dest > div { min-width: 0; }
.ce-dest dt { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim-escuro); }
.ce-dest dd { margin: 2px 0 0; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.ce-det { margin: 0; padding: 10px 14px 10px 30px; display: grid; gap: 4px; font-size: 14px; color: var(--cream); background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; }
.ce-rot { font-size: 14px; font-weight: 600; }
.ce-dica { font-weight: 400; color: var(--dim-escuro); }
.ce-texto { width: 100%; min-height: 160px; max-height: 40dvh; resize: vertical; padding: 12px 14px; border-radius: 16px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.03); color: var(--cream); font: 400 16px/1.5 var(--sans); box-sizing: border-box; }
.ce-texto:focus { outline: 2px solid var(--v-foco); outline-offset: 2px; }
.ce-texto:disabled { opacity: .6; }
.ce-cont { margin: -6px 0 0; text-align: right; font-size: 12px; color: var(--dim-escuro); font-variant-numeric: tabular-nums; }
.ce-erro { padding: 10px 12px; border-radius: 12px; background: rgba(252,232,232,.1); border: 1px solid rgba(242,194,194,.5); color: #FFD6D6; font-size: 14px; }
.ce-erro[hidden] { display: none; }
.ce-acoes { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.ce-acoes .btn { min-height: 44px; min-width: 120px; }
@media (max-width: 480px) {
  .ce-dialog { width: calc(100vw - 16px); }
  .ce-form { padding: 16px; }
  .ce-dest { grid-template-columns: 1fr; gap: 8px; }
  .ce-acoes { flex-direction: column-reverse; }
  .ce-acoes .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .nv-i, .sub-i, .chip-f { transition: none; }
  .sub-wrap { scroll-behavior: auto; }
  .ce-dialog, .ce-dialog::backdrop { animation: none; transition: none; }
}

.sub-i[data-s="indicar"], .nv-s[data-s="indicar"] { --sub-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-6.5-5.6-6.5-11a6.5 6.5 0 0 1 13 0c0 5.4-6.5 11-6.5 11z'/%3E%3Ccircle cx='12' cy='10' r='2.4'/%3E%3C/svg%3E"); }
