/* Global notification center, fixed on every authenticated screen. */
#poteNotifications{position:fixed;top:80px;right:max(14px,env(safe-area-inset-right));z-index:9200;font-family:inherit}
#poteNotifications[hidden],#poteNoticeDrawer[hidden],#poteNoticeCount[hidden]{display:none!important}
#poteBell{position:relative;width:56px;height:56px;border-radius:19px;display:grid;place-items:center;
 background:linear-gradient(135deg,#3b465d,#142331);border:1px solid #d5b581a8;
 box-shadow:inset 0 1px 0 #ffffff64,0 6px 20px #0009;color:#f6dba9;cursor:pointer}
.pote-bell-icon{font-size:27px;line-height:1}
#poteBell.has-unread{border-color:#ffcc72;animation:poteBellGlow 2.3s ease-in-out infinite}
.pote-bell-count{position:absolute;top:-11px;right:-9px;min-width:25px;height:25px;padding:0 4px;
 background:#e53b3b;color:#fff;border-radius:20px;border:2px solid #f9caa2;font:bold 12px/21px system-ui,sans-serif;
 box-shadow:0 3px 14px #ec535880}
@keyframes poteBellGlow{0%,100%{box-shadow:0 6px 22px #0008,0 0 0 #ffc17800;transform:scale(1)}
 50%{box-shadow:0 6px 22px #0008,0 0 14px #ffc1789c;transform:scale(1.025)}}
@media(prefers-reduced-motion:reduce){#poteBell.has-unread{animation:none}}
.pote-notice-drawer{position:absolute;top:70px;right:0;width:min(390px,calc(100vw - 24px));
 max-height:min(73vh,650px);display:flex;flex-direction:column;background:#122438;color:#f6eddb;
 border:1px solid #a68d68;box-shadow:0 18px 55px #000b;border-radius:18px;overflow:hidden}
.pote-notice-drawer>header{display:flex;justify-content:space-between;align-items:center;
 padding:15px 16px;background:#243647;border-bottom:1px solid #8c9ca660}
.pote-notice-drawer h2{margin:3px 0 0;font-size:21px;color:#ffe3af}
.pote-notice-drawer header small{font-size:10px;color:#b6ccdd;letter-spacing:.09em}
#poteNoticeClose{background:#344a60;border:1px solid #9bafbe;color:#fff;
 border-radius:9px;padding:8px 11px;cursor:pointer}
.pote-notice-tools{display:flex;align-items:center;justify-content:space-between;gap:10px;
 padding:10px 14px;border-bottom:1px solid #65829b60}
.pote-notice-tools button{background:#1f4761;border:1px solid #7294a9;color:#e6f5ff;border-radius:8px;
 padding:8px 11px;font-size:11px;cursor:pointer}
#poteNoticeStatus{font-size:10px;color:#bcd3e0}
.pote-notice-list{overflow-y:auto;min-height:72px;max-height:calc(73vh - 130px)}
.pote-notice-item{border-bottom:1px solid #7190a44d;padding:13px 15px;font-size:12px}
.pote-notice-item.unread{background:#24445a}
.pote-notice-item.priority-urgent.unread{border-left:4px solid #e7895e}
.pote-notice-item.priority-promo.unread{border-left:4px solid #f9ce6c}
.pote-notice-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}
.pote-notice-head strong{color:#ffe6b8;font-size:13px}
.pote-notice-head small{color:#b3c4d1;font-size:10px;flex-shrink:0}
.pote-notice-item p{line-height:1.6;margin:7px 0;color:#ecf3f6;overflow-wrap:anywhere}
.pote-notice-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.pote-notice-actions span{font-size:10px;color:#a9c2d8;margin-right:auto}
.pote-notice-actions button,.pote-notice-actions a{padding:6px 8px;border-radius:7px;border:1px solid #a6bfce;
 background:#1e4b60;color:#e9f8ff;text-decoration:none;cursor:pointer;font-size:10px}
.pote-notice-actions .read-tag{color:#90daad}
.pote-notice-empty{font-size:12px;padding:16px;color:#bfcdd9}
@media(max-width:580px){#poteNotifications{right:12px;top:72px}#poteBell{width:49px;height:49px;border-radius:16px}
 .pote-bell-icon{font-size:23px}.pote-notice-drawer{top:61px}}

/* Barra superior: notificações ao lado do menu, nunca abaixo dele. */
#poteNotifications{
 top:12px;
 right:78px;
 --pote-notice-drawer-offset:66px;
 z-index:9996;
}
#poteBell{width:48px;height:48px;border-radius:16px}
.pote-notice-drawer{
 right:calc(-1 * var(--pote-notice-drawer-offset));
 top:58px;
 max-width:calc(100vw - 24px);
}
@media(max-width:850px){
 #poteNotifications{
  top:11px;
  right:69px;
  --pote-notice-drawer-offset:57px;
 }
 #poteBell{width:47px;height:47px;border-radius:16px}
 .pote-bell-icon{font-size:23px}
 .pote-notice-drawer{top:57px;right:calc(-1 * var(--pote-notice-drawer-offset))}
 .headin .brand{padding-right:120px!important}
}
@media(max-width:390px){
 #poteNotifications{
  top:10px;
  right:64px;
  --pote-notice-drawer-offset:52px;
 }
 #poteBell{width:44px;height:44px;border-radius:14px}
 .pote-notice-drawer{top:54px}
 .headin .brand{padding-right:115px!important}
}
/* Modais precisam manter seu próprio fechar visível acima dos controles globais. */
body:has([role="dialog"][aria-modal="true"]:not([hidden])) #poteFloatToggle,
body:has([role="dialog"][aria-modal="true"]:not([hidden])) #poteNotifications,
body:has(#poteStockUpdate:not([hidden])) #poteFloatToggle,
body:has(#poteStockUpdate:not([hidden])) #poteNotifications{
 visibility:hidden!important;
 pointer-events:none!important;
}
body:has(#poteFloatDrawer.is-open) #poteNotifications{visibility:hidden!important;pointer-events:none!important}
