/* A única barra superior fica fixa e contém Home, Calculadora e hamburger. */
.head{position:sticky!important;top:0!important;z-index:95!important;background:linear-gradient(155deg,#111a29,#0d1521)!important;box-shadow:0 6px 18px #0008!important}
.headin{display:flex!important;align-items:center!important;flex-direction:row!important;flex-wrap:nowrap!important;gap:9px!important;width:100%!important;min-height:67px!important;padding:7px 72px 7px 12px!important;justify-content:space-between!important}
.headin>.brand{flex:1 1 auto!important;max-width:100%!important;min-width:0!important;overflow:hidden}
.headin>.brand>span{min-width:0!important;white-space:nowrap!important;text-overflow:ellipsis!important;overflow:hidden!important}
.headin>.brand small{font-size:9px!important}
.pote-top-actions{display:flex;align-items:center;justify-content:flex-end;gap:5px;flex:0 0 auto;margin-left:auto}
.pote-top-actions .home-hero-button{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:2px!important;min-width:52px!important;width:55px!important;height:53px!important;border:1px solid #bda17a57!important;border-radius:12px!important;padding:5px 3px!important;margin:0!important;background:#24354d6b!important;box-shadow:none!important;color:#f4d399!important}
.pote-top-actions .home-hero-button:hover{background:#3b5270!important;border-color:#efca8c!important}
.pote-top-actions .home-hero-button svg{display:block!important;width:25px!important;height:25px!important}
.pote-top-actions .home-hero-label{display:block!important;font-size:9px!important;line-height:1!important;color:#f5d399!important}
.hero{display:none!important}
/* Menus still use the real admin permission gate; administrative links live in Meu perfil. */
#navdesktop [data-tab="admin"],#navmobile [data-tab="admin"],#poteFloatNavigation [data-tab="admin"]{display:none!important}
/* O botão real do menu é parte da mesma barra, não um elemento fixo solto. */
#poteTopActions #poteFloatToggle{
 position:relative!important;inset:auto!important;top:auto!important;right:auto!important;
 bottom:auto!important;left:auto!important;transform:none!important;
 margin:0!important;flex:0 0 48px!important;
 display:flex!important;visibility:visible!important;opacity:1!important;
 pointer-events:auto!important;width:48px!important;height:51px!important;
 border-radius:12px!important;z-index:1!important;
}
.headin>.brand[data-pote-menu-clickable]{cursor:pointer;touch-action:manipulation;border-radius:11px}
.headin>.brand[data-pote-menu-clickable]:focus-visible{outline:2px solid #edc58b;outline-offset:3px}
.pote-top-actions{position:relative;z-index:2}
@media(max-width:550px){.headin>.brand>span{display:none!important}.headin>.brand{flex:1 1 auto!important}.headin>.brand img{flex:0 0 auto!important}}
@media(max-width:390px){#poteTopActions #poteFloatToggle{width:44px!important;height:50px!important;flex-basis:44px!important}}
body:has(#poteProfileOverlay:not([hidden])) #poteFloatToggle{visibility:hidden!important;pointer-events:none!important}
@media(min-width:851px){.headin{padding-left:20px!important;padding-right:20px!important}.pote-top-actions{gap:10px}}
@media(max-width:850px){.headin{min-height:68px!important;padding:8px 12px 8px 10px!important;gap:7px!important}.headin>.brand img{width:36px!important;height:36px!important}.headin>.brand>span{font-size:clamp(11px,3.15vw,15px)!important}}
@media(max-width:390px){.headin{padding-right:7px!important;padding-left:7px!important}.headin>.brand img{width:32px!important;height:32px!important}.headin>.brand small{font-size:8px!important}.pote-top-actions{gap:2px}.pote-top-actions .home-hero-button{width:43px!important;min-width:43px!important;height:50px!important}.pote-top-actions .home-hero-button svg{width:23px!important;height:23px!important}.pote-top-actions .home-hero-label{font-size:8px!important}#poteFloatToggle{right:7px!important}}

/* Notification bell belongs to the real sticky top navigation, next to hamburger. */
#poteTopActions #poteNotifications{
 position:relative!important;top:auto!important;right:auto!important;bottom:auto!important;left:auto!important;
 display:flex;align-items:center;flex:0 0 48px;z-index:3!important;margin:0!important;
}
#poteTopActions #poteNotifications[hidden]{display:none!important}
#poteTopActions #poteBell{width:48px!important;height:50px!important;border-radius:12px!important}
#poteTopActions .pote-notice-drawer{
 position:absolute!important;top:calc(100% + 9px)!important;right:-56px!important;left:auto!important;
 width:min(390px,calc(100vw - 20px));max-width:calc(100vw - 20px);
}
@media(max-width:390px){
 #poteTopActions #poteNotifications{flex-basis:43px}
 #poteTopActions #poteBell{width:43px!important;height:49px!important}
 #poteTopActions .pote-notice-drawer{right:-49px!important}
}

/* Reliable bell visibility even before the Firebase module initializes. */
#poteTopActions #poteNotifications{visibility:visible!important;opacity:1!important;pointer-events:auto!important}
#poteTopActions #poteBell{display:grid!important;place-items:center!important;cursor:pointer!important;background:#24354d!important;border:1px solid #d5b581!important;color:#f4d399!important;box-shadow:none!important}
#poteTopActions #poteBell .pote-bell-icon{font-size:24px!important;line-height:1!important}

/* Prevent toolbar padding from creating horizontal overflow on narrow mobile widths. */
.head,.headin{box-sizing:border-box!important;max-width:100vw!important}
.headin>.brand{min-width:0!important;overflow:hidden!important}
#poteTopActions{min-width:0!important;max-width:calc(100vw - 52px)!important}


/* FIX mobile notifications — drawer anchored to the viewport, not to the bell.
   Previous right:-56px positioned a 370px panel relative to the bell and
   clipped its left side on real devices. */
#poteTopActions #poteNoticeDrawer.pote-notice-drawer{
 position:fixed!important;
 box-sizing:border-box!important;
 inset:auto 10px auto 10px!important;
 top:calc(76px + env(safe-area-inset-top, 0px))!important;
 left:10px!important;
 right:10px!important;
 width:auto!important;
 max-width:none!important;
 min-width:0!important;
 max-height:min(calc(100dvh - 96px),650px)!important;
 overflow:hidden!important;
 z-index:10020!important;
 transform:none!important;
 margin:0!important;
}
#poteTopActions #poteNoticeDrawer .pote-notice-tools{
 display:flex!important;flex-wrap:wrap!important;min-width:0!important;
}
#poteTopActions #poteNoticeDrawer .pote-notice-list{
 min-height:0!important;
 max-height:none!important;
 overflow-y:auto!important;
 overscroll-behavior:contain!important;
 flex:1 1 auto!important;
}
#poteTopActions #poteNoticeDrawer header{flex:0 0 auto!important;min-width:0!important}
#poteTopActions #poteNoticeDrawer[hidden]{display:none!important}
@media (max-width:390px){
 #poteTopActions #poteNoticeDrawer.pote-notice-drawer{
  left:8px!important;right:8px!important;
 }
}
