.notification-link,
.employee-notification-button {
  position: relative;
}

.notification-bell-icon {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notification-count {
  position: absolute;
  z-index: 2;
  top: -5px;
  right: -7px;
  display: grid;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #d9293b;
  color: #fff;
  font-size: .62rem;
  font-weight: 900;
  line-height: 1;
}

.notification-count[hidden] { display: none !important; }

.notification-title-line {
  display: flex;
  align-items: center;
  gap: 12px;
}

.notification-unread-summary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eaf2fd;
  color: #526b86;
  font-size: .72rem;
  font-weight: 750;
}

.notification-unread-summary strong { color: #1769e0; }

.employee-notification-button .notification-count {
  top: -3px;
  right: -5px;
}

@media (max-width: 991.98px) {
  .employee-notification-button { display: none !important; }
}

.mobile-alert-button .notification-count {
  top: 1px;
  right: 0;
}

.side-nav .notification-link,
.mobile-menu-nav .notification-link {
  display: flex;
  align-items: center;
  gap: 9px;
}

.side-nav .notification-link .notification-count,
.mobile-menu-nav .notification-link .notification-count {
  top: 5px;
  right: 7px;
}

.mobile-menu-nav .notification-link {
  padding-right: 52px;
}

.mobile-menu-nav .notification-link > span:first-child {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  background: rgba(255,255,255,.09);
  color: #e8f3ff;
}

.mobile-menu-nav .notification-link .notification-bell-icon {
  width: 20px;
  height: 20px;
}

.mobile-menu-nav .notification-link .notification-count {
  top: 50%;
  right: 13px;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  transform: translateY(-50%);
  border: 2px solid #f7fbff;
  background: linear-gradient(145deg,#ef4052,#c8172b);
  box-shadow: 0 4px 12px rgba(209,29,48,.38),0 0 0 2px rgba(255,255,255,.08);
  font-size: .68rem;
  letter-spacing: -.01em;
}

.employee-bottom-nav .notification-count,
.bottom-nav .notification-count {
  top: 1px;
  right: calc(50% - 22px);
}

.notification-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.notification-list form { margin: 0; }

.notification-row {
  display: grid;
  grid-template-columns: 10px minmax(190px,.8fr) minmax(0,1.7fr) auto;
  width: 100%;
  min-height: 66px;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border: 1px solid #d8e2ec;
  border-radius: 13px;
  background: #fff;
  color: #173858;
  text-align: left;
  box-shadow: 0 4px 14px rgba(18,50,86,.05);
  transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}

.notification-row:hover {
  border-color: #9fc2eb;
  background: #f8fbff;
  transform: translateY(-1px);
}

.notification-row strong {
  min-width: 0;
  overflow: hidden;
  color: #173858;
  font-size: .9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-message {
  min-width: 0;
  overflow: hidden;
  color: #60748a;
  font-size: .84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-row time {
  color: #7b8da0;
  font-size: .75rem;
  white-space: nowrap;
}

.notification-state {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #b8c5d2;
}

.notification-row.is-unread {
  border-left: 4px solid #1769e0;
  background: #f7fbff;
}

.notification-row.is-unread .notification-state {
  background: #1769e0;
  box-shadow: 0 0 0 4px rgba(23,105,224,.12);
}

.notification-row.is-unread strong { font-weight: 850; }
.notification-row.is-read { opacity: .78; }

.notification-row.notification-rejected {
  border-left: 4px solid #d9293b;
  background: #fff7f8;
}

.notification-row.notification-rejected:hover {
  border-color: #e47b85;
  border-left-color: #d9293b;
  background: #fff1f3;
}

.notification-row.notification-rejected .notification-state {
  background: #d9293b;
  box-shadow: 0 0 0 4px rgba(217,41,59,.12);
}

.notification-row.notification-rejected > strong {
  color: #b42332;
}

.notification-row.notification-approved {
  border-left: 4px solid #138b50;
  background: #f4fcf7;
}

.notification-row.notification-approved:hover {
  border-color: #78c99d;
  border-left-color: #138b50;
  background: #ebf9f1;
}

.notification-row.notification-approved .notification-state {
  background: #138b50;
  box-shadow: 0 0 0 4px rgba(19,139,80,.12);
}

.notification-row.notification-approved > strong {
  color: #08713b;
}

@media (max-width: 767.98px) {
  .notification-row {
    grid-template-columns: 9px minmax(0,1fr) auto;
    gap: 6px 10px;
    min-height: 0;
    padding: 11px 12px;
  }
  .notification-row strong { grid-column: 2; grid-row: 1; }
  .notification-row time { grid-column: 3; grid-row: 1; font-size: .68rem; }
  .notification-state { grid-column: 1; grid-row: 1 / 3; }
  .notification-message { grid-column: 2 / 4; grid-row: 2; font-size: .78rem; }
}
