/* Wesal V2 — Notification centre (NG3).
   Tokens only, so light and dark come from one source. The drawer shell
   (position, RTL/LTR slide, header, body) already lives in shell.css; this
   file styles what NG3 puts inside it. */

/* Unread badge on the bell. Positioned on the button, never inside the icon,
   so it cannot be clipped by the icon's own box. */
#notifBtn { position: relative; overflow: visible; }
.nb-badge {
  position: absolute;
  top: 2px;
  inset-inline-end: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--w-danger, var(--w-teal));
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  pointer-events: none;
}

/* NG6 final recheck, G-6. --w-danger inverts between themes: #B3382D in light,
   where white text measures 5.97:1, and #F07A6E in dark, where the same white
   measures 2.72:1 — below the 4.5:1 this 10px bold text needs. The badge is
   aria-hidden because the button's own label already carries the count, but it
   is the only place the number is SEEN, so a reader who cannot make it out has
   lost the information entirely.

   The rest of V2 solved this a while ago and the notification centre was simply
   missed: .btn-danger (control.css), .btn-primary and .nav-item.active .n-count
   (shell.css), .ibx-unread-pill and .ibx-queues button.active (inbox.css) all
   already swap to a dark ink in dark mode. This uses the same ink .btn-danger
   uses on the same background — 7.04:1 — so the bell keeps its identity, the
   count keeps its size and position, and nothing new is invented. */
[data-theme="dark"] .nb-badge { color: #1A0B09; }

.dr-head .nt-count {
  font-size: 11px;
  font-weight: 500;
  color: var(--w-ink-3);
  margin-inline-start: 6px;
}

.nt-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 6px;
}

.nt-list { display: flex; flex-direction: column; }

.nt-row {
  display: flex;
  width: 100%;
  gap: 10px;
  padding: 10px 8px;
  border: 0;
  border-bottom: 1px solid var(--w-line);
  background: none;
  color: inherit;
  font: inherit;
  text-align: start;
  text-decoration: none;
  cursor: pointer;
  /* Comfortable, thumb-sized target on every surface. */
  min-height: var(--touch-min, 44px);
  border-radius: 8px;
}
.nt-row:last-child { border-bottom: none; }
.nt-row:hover { background: var(--w-surface-2); }
.nt-row:focus-visible { outline: 2px solid var(--w-teal); outline-offset: -2px; }
/* Unread is carried by BOTH a tint and the dot — never by colour alone, and
   the accessible name says "unread" too, so the state survives for a screen
   reader and for a colour-blind reader. */
.nt-row.unread { background: var(--w-teal-soft); }
.nt-row.unread:hover { background: var(--w-teal-soft); }

.nt-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.nt-top { display: flex; align-items: center; gap: 6px; min-width: 0; }
.nt-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--w-teal);
}
.nt-title {
  font-weight: 600;
  font-size: 13.5px;
  color: var(--w-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nt-body {
  font-size: 12.5px;
  color: var(--w-ink-2);
  /* Two lines, then ellipsis: a long escalation body must not push the next
     notification off the screen. */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nt-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nt-when { font-size: 11px; color: var(--w-ink-3); }

.nt-foot {
  padding: 12px 0 4px;
  text-align: center;
  font-size: 12px;
  color: var(--w-ink-3);
}

.nt-sk {
  height: 56px;
  border-radius: 10px;
  margin-bottom: 10px;
}

/* The drawer slides via a transform in shell.css; honour a reduced-motion
   preference for it and for anything NG3 adds inside. */
@media (prefers-reduced-motion: reduce) {
  .drawer { transition: none; }
  .nt-row { transition: none; }
}
