/* EscalaX, painel v7: módulos por conta (GET /api/session → modulos). A API continua sendo a autoridade; aqui o rail só
   esconde o que está bloqueado. O <html> recebe data-escalax-modulos="<ids separados por espaço>" (escalax-modulos-v1.js)
   e, enquanto não há lista nenhuma (primeira visita sem cache), só as três áreas reservadas ficam escondidas, como na v1. */
html:not([data-escalax-modulos]) .funnel-module-rail__intelligence-row,
html:not([data-escalax-modulos]) .funnel-module-rail__meta-row,
html:not([data-escalax-modulos]) .funnel-module-rail__item-row:has(> a[href="#funnel/creatives"]),
html:not([data-escalax-modulos]) a[href^="#funnel/intelligence"],
html:not([data-escalax-modulos]) a[href^="#funnel/creatives"],
html[data-escalax-modulos]:not([data-escalax-modulos~="painel"]) .funnel-module-rail__item-row:has(> a[href="#funnel"]),
html[data-escalax-modulos]:not([data-escalax-modulos~="caixa-de-entrada"]) .funnel-module-rail__item-row:has(> a[href="#funnel/inbox"]),
html[data-escalax-modulos]:not([data-escalax-modulos~="contatos"]) .funnel-module-rail__item-row:has(> a[href="#funnel/contacts"]),
html[data-escalax-modulos]:not([data-escalax-modulos~="agentes-ia"]) .funnel-module-rail__item-row:has(> a[href="#funnel/agents"]),
html[data-escalax-modulos]:not([data-escalax-modulos~="transmissoes"]) .funnel-module-rail__item-row:has(> a[href="#funnel/broadcasts"]),
html[data-escalax-modulos]:not([data-escalax-modulos~="fluxos"]) .funnel-module-rail__item-row:has(> a[href="#funnel/workflows"]),
html[data-escalax-modulos]:not([data-escalax-modulos~="relatorios"]) .funnel-module-rail__item-row:has(> a[href="#funnel/reports"]),
html[data-escalax-modulos]:not([data-escalax-modulos~="configuracoes"]) .funnel-module-rail__item-row.is-settings-row,
html[data-escalax-modulos]:not([data-escalax-modulos~="inteligencia"]) .funnel-module-rail__intelligence-row,
html[data-escalax-modulos]:not([data-escalax-modulos~="inteligencia"]) a[href="#funnel/intelligence"],
html[data-escalax-modulos]:not([data-escalax-modulos~="inteligencia"]) a[href^="#funnel/intelligence/"]:not([href^="#funnel/intelligence/creatives"]):not([href^="#funnel/intelligence/acquisition"]):not([href^="#funnel/intelligence/tracking"]),
html[data-escalax-modulos]:not([data-escalax-modulos~="meta-ads"]) .funnel-module-rail__meta-row,
html[data-escalax-modulos]:not([data-escalax-modulos~="meta-ads"]) a[href^="#funnel/intelligence/creatives"],
html[data-escalax-modulos]:not([data-escalax-modulos~="meta-ads"]) a[href^="#funnel/intelligence/acquisition"],
html[data-escalax-modulos]:not([data-escalax-modulos~="meta-ads"]) a[href^="#funnel/intelligence/tracking"],
html[data-escalax-modulos]:not([data-escalax-modulos~="fabrica"]) .funnel-module-rail__item-row:has(> a[href="#funnel/creatives"]),
html[data-escalax-modulos]:not([data-escalax-modulos~="fabrica"]) a[href^="#funnel/creatives"] {
  display: none !important;
}
