/* Navegação compartilhada das telas autenticadas */
#look-global-header{position:sticky;top:0;z-index:10000;background:#050d08;border-bottom:1px solid #193827;color:#eef9f0;font:500 14px system-ui,-apple-system,sans-serif}
#look-global-header *{box-sizing:border-box}
#look-global-header .look-inner{max-width:1450px;margin:auto;min-height:72px;padding:10px 24px;display:flex;align-items:center;gap:24px}
#look-global-header .look-brand{display:flex;align-items:center;flex-shrink:0}
#look-global-header .look-brand img{display:block;width:142px;max-height:54px;object-fit:contain}
#look-global-header .look-links{display:flex;align-items:center;gap:8px;flex:1;justify-content:center;flex-wrap:wrap}
#look-global-header a,#look-global-header summary{color:#e4f3e8;text-decoration:none;padding:10px 12px;border-radius:9px;white-space:nowrap;cursor:pointer;font:inherit}
#look-global-header a:hover,#look-global-header summary:hover,#look-global-header .look-active{background:#112b1b;color:#66ef95}
#look-global-header details{position:relative}
#look-global-header summary{list-style:none}
#look-global-header summary::-webkit-details-marker{display:none}
#look-global-header summary:after{content:'⌄';margin-left:8px;color:#52d47e}
#look-global-header .look-sub{position:absolute;top:100%;left:0;min-width:190px;padding:7px;background:#0b1910;border:1px solid #28543a;border-radius:12px;box-shadow:0 18px 40px #0009;display:flex;flex-direction:column;z-index:10001}
#look-global-header .look-sub a{display:block}
#look-global-header .look-logout{border:1px solid #31533b}
body.look-unified-nav>header:not(#look-global-header),body.look-unified-nav>nav.global-nav,body.look-unified-nav>nav:not(#look-global-header),body.look-unified-nav .mobile-nav,body.look-unified-nav .mobile-nav-backdrop{display:none!important}
body.look-unified-nav .mobile-menu-btn{display:none!important}
@media(max-width:800px){#look-global-header .look-inner{align-items:flex-start;gap:10px;flex-wrap:wrap;padding:10px 14px}#look-global-header .look-brand img{width:110px}#look-global-header .look-links{order:3;width:100%;justify-content:flex-start;gap:2px}#look-global-header a,#look-global-header summary{padding:8px}#look-global-header .look-sub{left:auto;right:0}}

/* V5.18.7: layout equilibrado e alertas restaurados */
#look-global-header .look-inner{max-width:1500px;min-height:78px;gap:20px;padding:12px 26px}
#look-global-header .look-brand img{width:156px;max-height:56px}
#look-global-header .look-links{flex-wrap:nowrap;gap:6px}
#look-global-header .look-links>a,#look-global-header .look-links summary{font-size:13px;font-weight:650;padding:12px 14px}
#look-global-header .look-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-shrink:0}
#look-global-header .look-alert-button{position:relative;border:1px solid #284632;background:#0d1c13;color:#e4f3e8;border-radius:10px;padding:11px 15px;cursor:pointer;font:650 13px system-ui,sans-serif;white-space:nowrap}
#look-global-header .look-alert-button:hover{border-color:#4b9867;background:#173523}
#look-global-header .notificacao-badge{position:absolute;top:-8px;right:-8px;min-width:20px;height:20px;padding:0 5px;border-radius:20px;background:#20f20f;color:#071007;font-size:11px;display:none;align-items:center;justify-content:center}
#look-global-header .notificacao-badge.ativa{display:flex}
#look-global-header .look-logout{display:inline-flex;align-items:center;justify-content:center;border:1px solid #31533b;padding:11px 16px}
@media(max-width:1080px){#look-global-header .look-inner{flex-wrap:wrap;justify-content:space-between}#look-global-header .look-links{order:3;flex-basis:100%;justify-content:center;flex-wrap:wrap}#look-global-header .look-actions{margin-left:auto}}
@media(max-width:600px){#look-global-header .look-inner{padding:10px 12px;gap:8px}#look-global-header .look-brand img{width:116px}#look-global-header .look-actions{gap:7px}#look-global-header .look-alert-button,#look-global-header .look-logout{padding:9px 11px;font-size:12px}#look-global-header .look-links{justify-content:flex-start;gap:1px}#look-global-header .look-links>a,#look-global-header .look-links summary{padding:9px 8px;font-size:12px}#look-global-header .look-sub{left:0;right:auto}}

/* Central de alertas V2 */
.alertas-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.48);backdrop-filter:blur(2px);z-index:1090;opacity:0;transition:.18s}.alertas-backdrop.aberto{opacity:1}.alertas-painel{position:fixed;right:18px;top:82px;z-index:1100;width:min(430px,calc(100vw - 36px));max-height:calc(100vh - 100px);overflow:auto;border:1px solid #263528;border-radius:16px;background:#0b100c;box-shadow:0 24px 80px rgba(0,0,0,.55);transform:translateY(-10px) scale(.98);opacity:0;pointer-events:none;transition:.18s}.alertas-painel.aberto{transform:none;opacity:1;pointer-events:auto}.alertas-topo{position:sticky;top:0;display:flex;justify-content:space-between;gap:16px;padding:18px;border-bottom:1px solid #1c281e;background:rgba(11,16,12,.96);backdrop-filter:blur(10px)}.alertas-topo strong{display:block;font-size:17px}.alertas-topo span{display:block;margin-top:4px;color:#758078;font-size:11px}.alertas-fechar{border:0;background:transparent;color:#8f9b91;font-size:24px;cursor:pointer}.alertas-lista{display:grid;gap:10px;padding:12px}.alerta-item{padding:16px;border:1px solid #243428;border-radius:13px;background:#101711}.alerta-urgente{display:inline-flex;padding:4px 7px;border-radius:6px;background:rgba(32,242,15,.12);color:#20f20f;font-size:9px;font-weight:900;letter-spacing:.8px}.alerta-nome{margin-top:10px;font-size:16px;font-weight:800}.alerta-meta{margin-top:3px;color:#7f8b81;font-size:11px}.alerta-meta b{color:#b9c5bb}.alerta-item blockquote{margin:13px 0;padding:10px 12px;border-left:2px solid #20f20f;background:#0b100c;color:#dce5dd;font-size:12px;line-height:1.5}.alerta-status{color:#f4d35e;font-size:11px;font-weight:700}.alerta-acoes{display:flex;gap:8px;margin-top:14px}.alerta-acoes a,.alerta-acoes button{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:0 12px;border:1px solid #2c4230;border-radius:8px;background:#101710;color:#e5eee6;font:700 11px Inter,Arial,sans-serif;cursor:pointer}.alerta-acoes form{margin:0}.alerta-acoes button{border-color:#20f20f;background:#20f20f;color:#041004}.alertas-vazio{padding:32px 18px;text-align:center}.alertas-vazio strong{display:block}.alertas-vazio span{display:block;margin-top:6px;color:#718075;font-size:12px}.status.humano.pendente{color:#f4d35e}.status.humano.pendente .status-dot{background:#f4d35e;box-shadow:0 0 8px rgba(244,211,94,.4)}.status.humano.responsavel{color:#d7ddd8}


.alertas-backdrop[hidden]{display:none!important;pointer-events:none!important}
.alertas-backdrop{pointer-events:none}.alertas-backdrop.aberto{pointer-events:auto}

/* V5.18.10 — cabeçalho consistente também em páginas com layout legado */
html body.look-unified-nav #look-global-header{position:relative!important;top:auto!important;left:auto!important;right:auto!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important;min-height:76px!important;height:auto!important;flex:0 0 auto!important;overflow:visible!important;box-sizing:border-box!important;display:block!important}
html body.look-unified-nav #look-global-header .look-inner{box-sizing:border-box!important;width:100%;max-width:1500px;margin:0 auto!important;min-height:76px!important;padding:9px 22px!important;display:flex!important;align-items:center!important;justify-content:space-between!important}
html body.look-unified-nav #look-global-header .look-brand{padding:0!important;margin:0!important;flex:0 0 auto;align-items:center!important;overflow:hidden}
html body.look-unified-nav #look-global-header .look-brand img{display:block!important;width:140px!important;height:52px!important;max-height:52px!important;object-fit:contain!important;object-position:center!important}
html body.look-unified-nav #look-global-header .look-links{min-width:0}
html body.look-unified-nav #look-global-header .look-links a{height:auto}
html body.look-unified-nav #look-global-header .look-sub{z-index:10002}
body.look-unified-nav .look-group summary:after{display:inline-block;vertical-align:middle;font-size:16px;line-height:1;margin-left:8px}
/* Workspace usa viewport fechado e um cabeçalho próprio legado. */
body.look-unified-nav:has(.workspace){display:flex!important;flex-direction:column!important;height:100dvh!important;min-height:0!important;overflow:hidden!important}
body.look-unified-nav:has(.workspace)>.workspace{flex:1 1 auto!important;height:auto!important;min-height:0!important;overflow:hidden!important}
body.look-unified-nav:has(.workspace) .details{max-height:100%}
/* Páginas com max-width no body não devem limitar a navbar. */
body.look-unified-nav:has(> #look-global-header){max-width:none!important;margin:0!important}
body.look-unified-nav:has(> #look-global-header):not(:has(.workspace)) > :not(#look-global-header):not(script):not(style){max-width:1200px}
@media(max-width:800px){html body.look-unified-nav #look-global-header .look-inner{flex-wrap:wrap!important;padding:9px 12px!important}html body.look-unified-nav #look-global-header .look-brand img{width:112px!important;height:44px!important}body.look-unified-nav:has(.workspace) .details{top:0!important;height:100%!important}}

/* Modais comerciais unificados para recursos restritos pelo plano. */
/* Modal de upgrade: hierarquia, leitura e responsividade */
.look-upgrade-overlay{position:fixed;inset:0;z-index:2147483000;background:rgba(0,0,0,.76);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;padding:clamp(14px,4vw,28px);box-sizing:border-box;overflow-y:auto}
.look-upgrade-card{position:relative;width:min(100%,520px);max-height:calc(100dvh - 36px);overflow-y:auto;box-sizing:border-box;padding:clamp(22px,4vw,34px);border-radius:20px;border:1px solid #28543a;background:#0b1710;color:#f1fff4;box-shadow:0 24px 80px rgba(0,0,0,.58);font-family:inherit}
.look-upgrade-eyebrow{display:block;color:#37ef83;font-size:11px;font-weight:800;letter-spacing:1.4px;margin-bottom:22px}
.look-upgrade-heading{display:flex;align-items:flex-start;gap:14px;margin-bottom:22px}
.look-upgrade-icon{flex:none;display:grid;place-items:center;width:46px;height:46px;border-radius:13px;background:#153825;font-size:22px}
.look-upgrade-card h2{font-size:clamp(21px,3.5vw,26px);line-height:1.23;letter-spacing:-.4px;margin:0 20px 9px 0;color:#f1fff4}
.look-upgrade-card p{color:#b9c9bf;font-size:14px;line-height:1.65;margin:0}
.look-upgrade-subtitle{font-size:13px!important}
.look-upgrade-benefit{border-left:3px solid #26dc72;padding:10px 14px;margin-bottom:18px;background:#11251a;border-radius:0 9px 9px 0;font-size:14px;line-height:1.5;color:#e1f7e8}
.look-upgrade-offer{background:#0f2117;border:1px solid #284935;border-radius:12px;padding:17px 18px}
.look-upgrade-offer strong{display:block;font-size:14px;margin-bottom:7px;color:#ecfff1}
.look-upgrade-close{position:absolute;top:14px;right:15px;width:34px;height:34px;border:0;border-radius:8px;background:transparent;color:#b9c9bf;font-size:24px;line-height:1;cursor:pointer}
.look-upgrade-close:hover{background:#193425;color:white}
.look-upgrade-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:22px}
.look-upgrade-actions a,.look-upgrade-actions button{display:flex;align-items:center;justify-content:center;min-height:46px;padding:12px;border-radius:10px;box-sizing:border-box;text-align:center;text-decoration:none;font:700 14px/1.25 inherit;cursor:pointer}
.look-upgrade-actions a{background:#1bea6c;color:#05210d;border:1px solid #1bea6c}
.look-upgrade-actions button{background:transparent;color:#e4f3e8;border:1px solid #31503c}
.look-upgrade-card :focus-visible{outline:2px solid #80ffa6;outline-offset:3px}
@media(max-width:440px){.look-upgrade-actions{grid-template-columns:1fr}.look-upgrade-heading{gap:10px}.look-upgrade-icon{width:40px;height:40px}.look-upgrade-card{max-height:calc(100dvh - 24px)}}

/* Controle ON/OFF da Look na barra global */
#look-global-header .look-ativa-toggle{border:1px solid #536158;border-radius:10px;padding:10px 12px;background:#18211b;color:#aeb9b1;font:700 12px system-ui,sans-serif;white-space:nowrap;cursor:pointer;transition:background .15s,color .15s,box-shadow .15s}
#look-global-header .look-ativa-toggle[data-ativa="true"]{background:#126a32;border-color:#24d764;color:#f4fff7;box-shadow:0 0 12px #1ed96044}
#look-global-header .look-ativa-toggle[data-ativa="false"]{background:#141a16;border-color:#354239;color:#77867b;box-shadow:none}
#look-global-header .look-ativa-toggle:disabled{opacity:.6;cursor:wait}
@media(max-width:600px){#look-global-header .look-ativa-toggle{padding:9px 8px;font-size:11px}}

/* 038.3: atalho visível do Super Admin (desktop e celular) */
#look-global-header a[href="/painel/superadmin/convites"]{background:#16a34a;color:#04130a!important;font-weight:800;border-radius:8px}
#look-global-header a[href="/painel/superadmin/convites"]:hover,#look-global-header a[href="/painel/superadmin/convites"].look-active{background:#22c55e;color:#04130a}
@media(max-width:800px){#look-global-header a[href="/painel/superadmin/convites"],#look-global-header a[href="/painel/superadmin"]{min-height:40px;display:inline-flex;align-items:center}}
