
/* V437H - Admin realtime notification center */
.v437h-notif-wrap{
  position:relative;
  flex:none;
}
.v437h-bell{
  position:relative;
  width:34px;
  height:34px;
  border:1px solid var(--border);
  border-radius:9px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--background);
  color:var(--foreground);
  cursor:pointer;
}
.v437h-bell:hover,
.v437h-bell.open{
  background:var(--muted);
}
.v437h-bell-icon{
  font-size:15px;
  line-height:1;
}
.v437h-bell>b{
  position:absolute;
  right:-5px;
  top:-5px;
  min-width:18px;
  height:18px;
  padding:0 4px;
  border:2px solid var(--background);
  border-radius:999px;
  background:#dc2626;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:8px;
  line-height:1;
  font-weight:800;
}

.v437h-panel{
  position:absolute;
  right:0;
  top:42px;
  z-index:100;
  width:min(390px,calc(100vw - 24px));
  max-height:min(640px,78vh);
  overflow:hidden;
  border:1px solid var(--border);
  border-radius:13px;
  background:var(--background);
  box-shadow:0 18px 50px rgba(15,23,42,.18);
  color:var(--foreground);
}
.v437h-panel-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  padding:13px 14px 10px;
  border-bottom:1px solid var(--border);
}
.v437h-panel-head strong{
  display:block;
  font-size:12px;
  line-height:1.25;
}
.v437h-panel-head small{
  display:block;
  margin-top:3px;
  font-size:8.8px;
  color:var(--muted-foreground);
}
.v437h-panel-head>button{
  width:28px;
  height:28px;
  flex:none;
  border:0;
  border-radius:50%;
  background:var(--muted);
  color:var(--foreground);
  font-size:18px;
  cursor:pointer;
}

.v437h-enable{
  width:calc(100% - 20px);
  margin:10px 10px 0;
  padding:9px 10px;
  border:1px solid #bfdbfe;
  border-radius:9px;
  background:#eff6ff;
  color:#1e3a8a;
  display:flex;
  align-items:center;
  gap:9px;
  text-align:left;
  cursor:pointer;
}
.v437h-enable>span{
  font-size:17px;
}
.v437h-enable strong{
  display:block;
  font-size:9.5px;
}
.v437h-enable small{
  display:block;
  margin-top:2px;
  font-size:8px;
  color:#42618f;
}

.v437h-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:8px 10px;
  border-bottom:1px solid var(--border);
}
.v437h-actions button{
  border:0;
  background:transparent;
  color:var(--muted-foreground);
  font-size:8.5px;
  font-weight:650;
  cursor:pointer;
}
.v437h-actions button:hover{
  color:var(--foreground);
}
.v437h-actions button:disabled{
  opacity:.45;
  cursor:default;
}

.v437h-list{
  max-height:470px;
  overflow:auto;
}
.v437h-item{
  position:relative;
  width:100%;
  display:grid;
  grid-template-columns:36px minmax(0,1fr) 8px;
  align-items:center;
  gap:9px;
  padding:10px 12px;
  border:0;
  border-bottom:1px solid var(--border);
  background:var(--background);
  color:var(--foreground);
  text-align:left;
  cursor:pointer;
}
.v437h-item:last-child{
  border-bottom:0;
}
.v437h-item:hover{
  background:var(--muted);
}
.v437h-item.unread{
  background:color-mix(in srgb,#eff6ff 70%,var(--background));
}
.v437h-avatar{
  width:34px;
  height:34px;
  border-radius:50%;
  overflow:hidden;
  background:var(--muted);
  border:1px solid var(--border);
}
.v437h-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.v437h-avatar>span{
  width:100%;
  height:100%;
  align-items:center;
  justify-content:center;
  font-size:10px;
  font-weight:800;
  color:var(--muted-foreground);
}
.v437h-copy{
  min-width:0;
}
.v437h-copy strong{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  font-size:9.5px;
  line-height:1.35;
  font-weight:700;
}
.v437h-copy small{
  display:block;
  margin-top:3px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:8px;
  line-height:1.3;
  color:var(--muted-foreground);
}
.v437h-item>i{
  width:7px;
  height:7px;
  border-radius:50%;
  background:#2563eb;
}
.v437h-empty{
  padding:32px 16px;
  text-align:center;
  font-size:9.5px;
  color:var(--muted-foreground);
}

@media(max-width:720px){
  .v437h-bell{
    width:32px;
    height:32px;
    border-radius:8px;
  }
  .v437h-panel{
    position:fixed;
    top:58px;
    left:8px;
    right:8px;
    width:auto;
    max-height:calc(100vh - 72px);
  }
  .v437h-list{
    max-height:calc(100vh - 230px);
  }
  .v437h-item{
    grid-template-columns:34px minmax(0,1fr) 8px;
    min-height:58px;
    padding:9px 10px;
  }
  .v437h-avatar{
    width:32px;
    height:32px;
  }
}
