/* CineSign App - Quadro de etapas (dentro do painel) */
.filtros { display: flex; flex-wrap: wrap; gap: 8px; }
.filtro { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; border: 1px solid #1f2937; background: #0f131b; color: #9ca3af; font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; transition: all .15s; }
.filtro:hover { color: #fff; border-color: #374151; }
.filtro .qtd { font-size: 10px; opacity: .7; }
.filtro.ativo { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 6px 20px -6px var(--brand); }
.filtro.ativo .col-cor { box-shadow: 0 0 0 2px rgba(255,255,255,.6); }
.com-arrasto .filtro[data-etapa]:not([data-etapa="todos"]) { border-style: dashed; }
.filtro.alvo { border-color: var(--brand); color: #fff; transform: scale(1.06); }
.filtro.vazia:not(.ativo):not(.alvo) { opacity: .45; }
.filtro.vazia:hover { opacity: 1; }
/* Abas: "Todos" fixo e o resto numa linha que rola (setas no computador, dedo no celular) */
.filtros-abas { display: flex; align-items: center; gap: 8px; min-width: 0; }
.abas-trilho { display: flex; gap: 8px; flex: 1; min-width: 0; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding: 0 40px; scrollbar-width: none; padding: 2px 0 6px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade-esq, 0), #000 calc(100% - var(--fade-dir, 0px)), transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade-esq, 0), #000 calc(100% - var(--fade-dir, 0px)), transparent 100%); }
.abas-trilho::-webkit-scrollbar { display: none; }
.abas-trilho .filtro { scroll-snap-align: start; }
.filtros-abas.pode-voltar { --fade-esq: 36px; }
.filtros-abas.pode-ir { --fade-dir: 36px; }
.abas-seta { width: 32px; height: 32px; border-radius: 999px; border: 1px solid #1f2937; background: #0f131b; color: #9ca3af; display: none; align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer; }
.abas-seta:hover { color: #fff; border-color: #374151; }
.filtros-abas.pode-voltar .abas-seta[data-lado="-1"], .filtros-abas.pode-ir .abas-seta[data-lado="1"] { display: flex; }
/* Funil: barra proporcional + resumo + menu */
.funil-barra { display: flex; gap: 3px; height: 10px; }
.funil-seg { min-width: 10px; border-radius: 3px; cursor: pointer; transition: opacity .15s, transform .15s; }
.funil-seg:hover { transform: scaleY(1.35); }
.funil-barra.com-filtro .funil-seg:not(.ativo) { opacity: .3; }
.funil-vazio { flex: 1; border-radius: 3px; background: #1f2937; }
.funil-linha { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.funil-resumo { font-size: 12px; color: #9ca3af; font-weight: 600; min-width: 0; }
.funil-menu-btn { display: inline-flex; align-items: center; gap: 7px; max-width: 60%; padding: 8px 14px; border-radius: 999px; border: 1px solid #1f2937; background: #0f131b; color: #e5e7eb; font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; flex-shrink: 0; }
.funil-menu-btn:hover { border-color: #374151; }
.funil-menu-btn.ativo { border-color: var(--brand); }
.funil-menu-btn .qtd, .menu-etapa .qtd { font-size: 10px; color: #6b7280; }
.menu-etapa button.vazia:not(.atual) { opacity: .5; }
.funil-alvos { display: none; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; }
.com-arrasto .funil-alvos { display: flex; }
.funil-alvos-tit { font-size: 11px; color: #6b7280; font-weight: 700; margin-right: 4px; }
/* Configurações › Quadro: escolha do visual */
.opcao-visual { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 16px; border: 1px solid #1f2937; background: #0f131b; cursor: pointer; }
.opcao-visual:has(input:checked) { border-color: var(--brand); background: rgba(255,255,255,.04); }
.opcao-visual input { position: absolute; opacity: 0; pointer-events: none; }
.opcao-visual-desenho { display: flex; gap: 3px; height: 8px; }
.opcao-visual-desenho i { border-radius: 2px; }
.opcao-visual-desenho.abas { height: 14px; gap: 5px; }
.opcao-visual-desenho.abas b { width: 34px; border-radius: 999px; border: 1px solid #374151; }
.col-cor { width: 9px; height: 9px; border-radius: 999px; flex-shrink: 0; display: inline-block; }
.vista-btn { width: 36px; height: 36px; border-radius: 11px; display: flex; align-items: center; justify-content: center; color: #6b7280; cursor: pointer; }
.vista-btn.ativo { background: #1f2937; color: #fff; }
.vista-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.cartao { background: #12161f; border: 1px solid #1f2937; border-radius: 18px; padding: 16px 18px; cursor: pointer; transition: border-color .15s; }
.cartao:hover { border-color: #374151; }
.arrastando { opacity: .4; }
.lixo { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #f87171; background: rgba(127,29,29,.25); border: 1px solid rgba(248,113,113,.25); cursor: pointer; flex-shrink: 0; }
.lixo:hover { background: rgba(127,29,29,.5); }
.etapa-pilula { position: relative; display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 6px 12px; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: color-mix(in srgb, var(--cor) 18%, transparent); border: 1px solid color-mix(in srgb, var(--cor) 45%, transparent); cursor: pointer; }
.etapa-pilula:hover { background: color-mix(in srgb, var(--cor) 28%, transparent); }
.menu-etapa { position: fixed; z-index: 70; min-width: 230px; max-width: calc(100vw - 16px); max-height: min(60vh, 440px); overflow-y: auto; padding: 6px; background: #14171d; border: 1px solid #263041; border-radius: 16px; box-shadow: 0 24px 48px rgba(0,0,0,.6); scrollbar-width: thin; scrollbar-color: #374151 transparent; }
.menu-etapa-tit { padding: 6px 10px 4px; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #6b7280; }
.menu-etapa button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 10px; font-size: 13px; font-weight: 600; color: #d1d5db; text-align: left; cursor: pointer; }
.menu-etapa button:hover { background: #1f2430; color: #fff; }
.menu-etapa button.atual { color: #fff; font-weight: 800; background: rgba(255,255,255,.05); }
.menu-etapa button i { color: var(--brand); }
.infos { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: #9ca3af; }
.whats { color: #4ade80; font-weight: 600; text-decoration: none; }
.whats:hover { text-decoration: underline; }
.selo { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: #1f2937; color: #9ca3af; }
.selo.rmk { background: rgba(234,179,8,.15); color: #facc15; }
.vista-lista { display: flex; flex-direction: column; border: 1px solid #1f2937; border-radius: 18px; overflow: hidden; }
.linha { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, .8fr) 34px; gap: 12px; align-items: center; padding: 10px 14px; background: #12161f; border-top: 1px solid #1f2937; font-size: 12px; cursor: pointer; }
.linha:first-child { border-top: 0; }
.linha:hover:not(.cab) { background: #161b26; }
.linha.cab { background: #0f131b; cursor: default; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #6b7280; }
.vazio { text-align: center; padding: 48px 16px; color: #6b7280; font-size: 13px; border: 1px dashed #1f2937; border-radius: 18px; }
@media (max-width: 767px) {
    .filtros { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
    .filtros::-webkit-scrollbar { display: none; }
    .vista-cards { grid-template-columns: 1fr; gap: 10px; }
    .linha { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 34px; }
    .some-cel { display: none; }
}
.etapa-linha { display: flex; align-items: center; gap: 6px; padding: 8px; border-radius: 14px; background: #0f131b; border: 1px solid #1f2937; }
.etapa-linha .campo { padding: 7px 9px; }
.cor-btn { width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0; cursor: pointer; border: 2px solid rgba(255,255,255,.15); }
.mini-btn { width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center; color: #9ca3af; cursor: pointer; flex-shrink: 0; }
.mini-btn:hover { background: #1f2937; color: #fff; }
.mini-btn:disabled { opacity: .25; cursor: default; background: none; }
.etapa-chip { padding: 6px 10px; border-radius: 10px; border: 1px solid #1f2937; background: #0f131b; font-size: 11px; font-weight: 700; color: #9ca3af; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.etapa-chip.ativo { color: #fff; border-color: var(--brand); background: rgba(255,255,255,.05); }
