/* verwaltung-notifications.css — Benachrichtigungs-Glocke (Dropdown im Header) */

.nb-wrap { position: relative; display: inline-flex; }

.nb-badge {
  min-width: 16px; height: 16px; padding: 0 4px; top: 2px; right: 2px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); border: 2px solid #fff; box-sizing: content-box;
}

/* Panel */
.nb-panel {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 60;
  width: 372px; max-width: calc(100vw - 24px);
  background: #fff; border: 1px solid var(--line, #E5E9F0); border-radius: 14px;
  box-shadow: 0 18px 48px -12px rgba(20, 30, 50, 0.28), 0 4px 12px -6px rgba(20, 30, 50, 0.14);
  overflow: hidden;
  animation: nb-pop 0.14s ease-out;
}
@keyframes nb-pop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

.nb-head {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 16px; border-bottom: 1px solid var(--line, #E5E9F0);
}
.nb-title { font-size: 14px; font-weight: 700; color: var(--ink, #1E2630); display: flex; align-items: center; gap: 8px; }
.nb-count {
  font-size: 11px; font-weight: 700; color: var(--accent);
  background: var(--accent-soft, #F78E111A); border-radius: 999px; padding: 2px 8px;
}
.nb-markall {
  margin-left: auto; font-family: inherit; font-size: 12px; font-weight: 600;
  color: var(--ink-3, #69707d); background: none; border: 0; cursor: pointer; padding: 4px 2px;
}
.nb-markall:hover { color: var(--accent); }

/* List */
.nb-list { max-height: min(440px, 64vh); overflow-y: auto; padding: 6px; }

.nb-section {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  color: #8A94A6; padding: 10px 10px 5px;
}

.nb-item {
  display: flex; align-items: flex-start; gap: 11px; width: 100%;
  padding: 10px 10px; border: 0; background: none; border-radius: 10px;
  text-align: left; cursor: pointer; font-family: inherit; position: relative;
  transition: background 0.12s;
}
.nb-item:hover { background: var(--line-2, #F4F6F9); }
.nb-item.is-unread { background: color-mix(in srgb, var(--accent) 5%, transparent); }
.nb-item.is-unread:hover { background: color-mix(in srgb, var(--accent) 9%, transparent); }

.nb-ico {
  flex: none; width: 32px; height: 32px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center; margin-top: 1px;
}

.nb-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.nb-it-title { font-size: 14px; font-weight: 600; color: var(--ink, #1E2630); line-height: 1.35; }
.nb-it-sub {
  font-size: 12px; color: var(--ink-2, #4a5160); line-height: 1.4;
  overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.nb-it-when { font-size: 12px; color: #8A94A6; margin-top: 2px; font-variant-numeric: tabular-nums; }
.nb-it-when.overdue { color: #DC2626; font-weight: 600; }

.nb-dot {
  flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  margin-top: 6px; align-self: flex-start;
}

/* Empty */
.nb-empty {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 40px 24px 44px; text-align: center; color: #8A94A6;
}
.nb-empty svg { color: #1F8A4D; opacity: 0.9; margin-bottom: 4px; }
.nb-empty b { font-size: 14px; color: var(--ink, #1E2630); font-weight: 700; }
.nb-empty span { font-size: 13px; line-height: 1.5; max-width: 230px; }

@media (max-width: 760px) {
  .nb-panel { width: calc(100vw - 24px); right: -4px; }
}
