/* Existing notification dialog only; actions and content are unchanged. */
#notificationPanel{box-sizing:border-box;display:flex;flex-direction:column;width:min(640px,calc(100vw - 24px));max-height:min(740px,84dvh);left:50%;right:auto;top:8dvh;bottom:auto;transform:translateX(-50%);border:1px solid rgba(23,53,47,.08);border-radius:24px;background:#FFFFFF;color:#17352f;font-family:'DM Sans',sans-serif;box-shadow:0 24px 70px rgba(23,53,47,.18)}
#notificationPanel .notification-head{flex:none;min-height:88px;padding:18px 24px;gap:16px;border-bottom:1px solid #e8efea;box-sizing:border-box}
#notificationPanel .notification-head b{font:600 22px 'DM Sans',sans-serif;letter-spacing:-.035em;line-height:1.4}
#notificationPanel .notification-head small{font:400 12px 'DM Sans',sans-serif;line-height:1.5;color:#71817b;margin-top:5px}
#closeNotificationPanel{flex:none;width:36px;height:36px;border-radius:50%;background:#f0f6f3;color:#52675f;font:400 24px 'DM Sans',sans-serif}
#closeNotificationPanel:hover{background:#e4efe8;color:#214a40}
#notificationList{min-height:0;max-height:calc(min(740px,84dvh) - 88px);overflow-y:auto;overscroll-behavior:contain;padding:10px;scrollbar-width:thin;scrollbar-color:#b9cfc2 transparent}
#notificationList>button{box-sizing:border-box;grid-template-columns:10px minmax(0,1fr) 18px;gap:16px;min-height:76px;padding:15px 18px;border-radius:14px;background:#FFFFFF;border:1px solid transparent;color:#17352f}
#notificationList>button+button{margin-top:4px}
#notificationList>button:hover{background:#f3f8f5;border-color:#e2ebe5}
#notificationList>button i{width:8px;height:8px;background:#3d725c;box-shadow:0 0 0 5px #edf4ef}
#notificationList>button i.critical{background:#cc5247;box-shadow:0 0 0 5px #fbefed}
#notificationList>button i.alert{background:#b58c38;box-shadow:0 0 0 5px #fbf5e8}
#notificationList>button>span{min-width:0;overflow-wrap:anywhere}
#notificationList b{font:600 13px 'DM Sans',sans-serif;line-height:1.5}
#notificationList small{font:400 12px 'DM Sans',sans-serif;line-height:1.6;color:#71817b;margin-top:5px}
#notificationList em{font:400 22px 'DM Sans',sans-serif;color:#80968b;text-align:center}
#notificationPanel button:focus-visible{outline:2px solid #214a40;outline-offset:-2px}
#notificationList .notification-empty{min-height:220px;padding:28px 20px;background:#fff}
#notificationList .notification-empty b{font-size:16px}
@media(max-width:600px){#notificationPanel{top:5dvh;max-height:90dvh;border-radius:20px}#notificationPanel .notification-head{padding:16px 18px;min-height:82px}#notificationPanel .notification-head b{font-size:20px}#notificationList{padding:8px;max-height:calc(90dvh - 82px)}#notificationList>button{padding:14px 12px;gap:12px}}

/* Barcode conflict dialog; notification state remains server-derived. */
#modal.barcode-conflict-modal{width:min(640px,100%);padding:24px;border-radius:24px;background:#fff;color:#17352f;font-family:'DM Sans',sans-serif}
#modal.barcode-conflict-modal h2{font:600 21px/1.35 'DM Sans',sans-serif;margin:0 0 6px;padding-right:36px}
#modal.barcode-conflict-modal p{font-size:13px;line-height:1.5;color:#71817b;margin:8px 0 14px}
#modal.barcode-conflict-modal .catalog-barcode-conflict{padding:0;border:1px solid rgba(23,53,47,.08);border-radius:16px;background:#f7f9f8;margin:14px 0}
#modal.barcode-conflict-modal ul{list-style:none;margin:0;padding:0}
#modal.barcode-conflict-modal li{padding:14px;min-width:0}
#modal.barcode-conflict-modal li+li{border-top:1px solid rgba(23,53,47,.08)}
#modal.barcode-conflict-modal li strong{display:block;font:600 14px/1.4 'DM Sans',sans-serif;overflow-wrap:anywhere}
#modal.barcode-conflict-modal li small{display:block;font-size:12px;line-height:1.4;color:#71817b;margin-top:4px}
#modal.barcode-conflict-modal .modal-footer{gap:8px;margin-top:12px;flex-wrap:wrap}
#modal.barcode-conflict-modal .modal-footer button{min-height:44px;padding:9px 14px;border-radius:12px;font:500 12px 'DM Sans',sans-serif}
#modal.barcode-conflict-modal .primary{background:#214a40;color:#fff;border:0;box-shadow:none}
#modal.barcode-conflict-modal .modal-close{display:flex;align-items:center;justify-content:center;width:44px;height:44px;top:6px;right:6px;background:transparent;font-size:20px}
@media(max-width:767px){#modal.barcode-conflict-modal{padding:16px 12px;border-radius:20px}#modal.barcode-conflict-modal .modal-footer{display:flex}#modal.barcode-conflict-modal .modal-footer button{flex:1}}
/* Dynamic viewport: only the list scrolls; header and overlay remain stable. */
#notificationPanel{position:fixed;inset:auto;left:50%;top:var(--notification-viewport-center,50dvh);transform:translate(-50%,-50%);width:min(640px,calc(100% - 24px));max-height:min(740px,calc(var(--notification-viewport-height,100dvh) - 24px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px)));height:auto;overflow:hidden;display:flex;flex-direction:column;animation:none;z-index:201;background:#fff;isolation:isolate}
#notificationPanel.hidden{display:none}
#notificationPanel .notification-head{flex:0 0 auto;min-height:72px;padding:14px 18px;background:#fff;position:relative;z-index:1}
#notificationPanel #closeNotificationPanel{width:44px;height:44px;min-height:44px;display:grid;place-items:center}
#notificationPanel #notificationList{flex:1 1 auto;min-height:0;max-height:none;overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y;box-sizing:border-box;padding:6px 8px max(20px,env(safe-area-inset-bottom,0px));scroll-padding-bottom:20px;background:#fff}
#notificationPanel #notificationList>button{min-height:60px;padding:10px 12px;gap:12px;margin:0;border-radius:12px}
#notificationPanel #notificationList>button+button{margin-top:2px}
#notificationPanel #notificationList small{line-height:1.45;margin-top:3px}
#notificationPanel::before,#notificationPanel::after,#notificationList::before,#notificationList::after{content:none!important;display:none!important}
#notificationModalOverlay{position:fixed;inset:0;z-index:200}
body.notification-modal-open .floating-navigation-shell{pointer-events:none}
@media(max-width:800px){#notificationPanel{border-radius:20px;width:calc(100% - 24px)!important}#notificationPanel .notification-head b{font-size:19px}#notificationPanel .notification-head{padding:12px 14px;min-height:68px}#notificationPanel #notificationList>button{padding:10px;gap:10px}#notificationPanel #notificationList b{font-size:12px;line-height:1.4}#notificationPanel #notificationList small{font-size:11px}}
