/*
 * Bell-Notifications im Header — Feature aus Ticket REL-2026-0069.
 *
 * Farben strikt aus dem ACENCIA-CI:
 *   #001f3d dunkelblau, #88a9c3 hellblau, #e3ebf2 sehr helles blau,
 *   #ffffff weiss, #fa9939 volles Orange, #f8dcbf helles Orange.
 * Schriften: Inter (bereits im Web-Client geladen) analog Rest des UI.
 */

.notif-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-right: 12px;
}

.notif-bell[hidden] {
  display: none;
}

.notif-bell-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.notif-bell-btn:hover,
.notif-bell-btn:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  outline: none;
}

.notif-bell-btn.has-unread {
  color: #fa9939;
}

.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #fa9939;
  color: #ffffff;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 0 0 2px #001f3d;
}

.notif-badge[hidden] {
  display: none;
}

.notif-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 380px;
  max-height: 480px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid #e3ebf2;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 31, 61, 0.18);
  z-index: 1200;
}

.notif-popover[hidden] {
  display: none;
}

.notif-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid #e3ebf2;
  background: #f7fafc;
}

.notif-popover-title {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #001f3d;
}

.notif-popover-action {
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #001f3d;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.notif-popover-action:hover,
.notif-popover-action:focus-visible {
  background: #e3ebf2;
  border-color: #88a9c3;
  outline: none;
}

.notif-popover-list {
  overflow-y: auto;
  max-height: 400px;
}

.notif-popover-empty {
  padding: 24px 16px;
  color: #88a9c3;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 13px;
  text-align: center;
}

.notif-popover-empty[hidden] {
  display: none;
}

.notif-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  padding: 12px 14px;
  border: none;
  border-bottom: 1px solid #e3ebf2;
  background: #ffffff;
  color: #001f3d;
  font-family: 'Inter', Arial, sans-serif;
  text-align: left;
  cursor: pointer;
  transition: background 100ms ease;
}

.notif-item:last-child {
  border-bottom: none;
}

.notif-item:hover,
.notif-item:focus-visible {
  background: #e3ebf2;
  outline: none;
}

.notif-item.is-read {
  opacity: 0.65;
}

.notif-item-kind {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f8dcbf;
  color: #001f3d;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.notif-item.is-read .notif-item-kind {
  background: #e3ebf2;
  color: #88a9c3;
}

.notif-item-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.notif-item-body {
  color: #88a9c3;
  font-size: 12px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.notif-item-meta {
  color: #88a9c3;
  font-size: 11px;
  font-weight: 500;
}
