/* Panel desplegable de notificaciones (cliente) */
.nz-notif-popover {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(380px, calc(100vw - 24px));
  max-height: min(480px, 70vh);
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0, 38, 96, 0.16);
  z-index: 200;
  overflow: hidden;
  flex-direction: column;
}
.nz-notif-popover.show,
.header-popover.nz-notif-popover.show {
  display: flex;
}
.nz-notif-popover__head {
  padding: 14px 16px;
  border-bottom: 1px solid #eef2ff;
  font-weight: 800;
  font-size: 15px;
  color: #002660;
  flex-shrink: 0;
}
.nz-notif-popover__list {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}
.nz-notif-popover__empty {
  padding: 20px 16px;
  text-align: center;
  font-size: 13px;
  color: #64748b;
}
.nz-notif-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background 0.15s;
}
.nz-notif-item:hover {
  background: #f8fbff;
}
.nz-notif-item--unread {
  background: #f0f7ff;
}
.nz-notif-item__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3b82f6;
  flex-shrink: 0;
  margin-top: 6px;
}
.nz-notif-item__dot[hidden] {
  display: none;
}
.nz-notif-item__body {
  flex: 1;
  min-width: 0;
}
.nz-notif-item__title {
  font-size: 13px;
  font-weight: 700;
  color: #002660;
  margin: 0 0 4px;
  line-height: 1.3;
}
.nz-notif-item__msg {
  font-size: 12px;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nz-notif-item__time {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 4px;
}
.nz-notif-popover__foot {
  padding: 10px 12px;
  border-top: 1px solid #eef2ff;
  flex-shrink: 0;
  background: #fafbff;
}
.nz-notif-popover__foot a {
  display: block;
  text-align: center;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #003a8c;
  text-decoration: none;
  background: #eef3ff;
}
.nz-notif-popover__foot a:hover {
  background: #dbeafe;
}
#notificationsDropdown.nz-notif-popover {
  display: none;
}
#notificationsDropdown.nz-notif-popover.show {
  display: flex;
}
