/* 与 Vue AppLayout 一致的右下角弹窗队列 */
.nav-notif-popup-stack {
  position: fixed;
  right: 1rem;
  top: 5rem;
  z-index: 10000;
  width: min(20rem, calc(100vw - 2rem));
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.nav-notif-popup-card {
  pointer-events: auto;
  border-radius: 0.75rem;
  border: 1px solid rgba(34, 211, 238, 0.35);
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  padding: 0.75rem;
}

.nav-notif-popup-card .nav-notif-popup-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #a5f3fc;
  margin: 0;
  word-break: break-word;
}

.nav-notif-popup-card .nav-notif-popup-body {
  font-size: 0.75rem;
  color: #cbd5e1;
  margin: 0.35rem 0 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.nav-notif-popup-card .nav-notif-popup-actions {
  margin-top: 0.5rem;
  display: flex;
  justify-content: flex-end;
}

.nav-notif-popup-card .nav-notif-popup-actions button {
  font-size: 0.75rem;
  color: #94a3b8;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
}

.nav-notif-popup-card .nav-notif-popup-actions button:hover {
  color: #f8fafc;
}

/* 下拉面板略高于普通 sticky 顶栏 */
.nav-notif-dropdown-panel {
  z-index: 9999;
}

/* ---------- 顶栏右侧簇：桌面导航 + 移动端铃铛/汉堡同一列，避免 justify-between 三列导致导航视觉居中 ---------- */
.nav-bar-right-cluster {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.375rem;
  flex-shrink: 0;
  min-width: 0;
}

/* ---------- 移动端顶栏：铃铛在汉堡左侧（与桌面共用 navBell / API） ---------- */
.nav-mobile-trailing {
  padding-right: max(0px, env(safe-area-inset-right));
}

.nav-mobile-actions {
  display: none;
  align-items: center;
}

.nav-notif-dropdown-mobile {
  width: min(20rem, calc(100vw - 1rem));
}

.nav-bell-unread-badge-min {
  min-width: 16px;
}

.nav-bell-unread-text {
  font-size: 10px;
}

@media (max-width: 768px) {
  .nav-links-desktop .nav-bell-desktop-only {
    display: none !important;
  }

  .nav-mobile-actions {
    display: flex;
  }
}

/*
 * 纯桌面（≥1025）：整条移动端铃铛列强制隐藏，且禁止其下拉绘制。
 * 否则 Vue 两侧 v-if="navBell.showDropdown" 同时为 true 时，可能出现两块下拉叠在一起。
 * 769–1024 库存抽屉仍由 products-inventory.css 负责放开 .nav-mobile-actions。
 * 使用 #nav-bell-mobile-slot（高于任意 .class !important 的常见覆盖，避免服务器上其它全局 CSS 抢 display）。
 */
@media (min-width: 1025px) {
  #nav-bell-mobile-slot {
    display: none !important;
  }

  #nav-bell-mobile-slot .nav-notif-dropdown-panel {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}
