/*
The header bell's dropdown (notifications/partials/_notifications_box_toggle.html), newest first, each entry with its
icon, title, a one-line preview, when it came, and its own buttons (O3G-588). AdminLTE's rules for the menu keep each
entry to one clipped line, so these are as specific as theirs plus a class.
*/
.navbar-nav > .notifications-menu > .notifications-dropdown {
  width: 400px;
}
@media (max-width: 767px) {
  .navbar-nav > .notifications-menu > .notifications-dropdown {
    width: auto;
  }
}
/* The dropdown's buttons fill their line otherwise */
.navbar-nav > .notifications-menu > .notifications-dropdown > li.header .btn-link {
  width: auto;
  margin-left: 8px;
  padding: 0;
  white-space: nowrap;
}
.navbar-nav > .notifications-menu > .notifications-dropdown > li .menu {
  max-height: 420px;
}
.navbar-nav > .notifications-menu > .notifications-dropdown > li .menu > li.notification-entry {
  display: flex;
  align-items: flex-start;
  border-bottom: 1px solid #f4f4f4;
}
/* Unread entries are marked by a bar and a bold title, not by their place in the list */
.navbar-nav > .notifications-menu > .notifications-dropdown > li .menu > li.notification-entry:not(.notification-read) {
  box-shadow: inset 3px 0 0 #3c8dbc;
}
.navbar-nav > .notifications-menu > .notifications-dropdown > li .menu > li > a.notification-entry-link {
  display: flex;
  flex: 1;
  gap: 10px;
  min-width: 0;
  padding: 8px 4px 8px 12px;
  white-space: normal;
  border-bottom: none;
  background: transparent;
}
.notification-entry-icon {
  flex: none;
  width: 18px;
  margin-top: 3px;
  text-align: center;
}
.notification-entry-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.notification-entry-title {
  font-weight: 600;
}
.notification-read .notification-entry-title {
  font-weight: normal;
}
.notification-read .notification-entry-link {
  opacity: 0.75;
}
.notification-entry-preview {
  overflow: hidden;
  color: #777;
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.notification-entry-time {
  color: #999;
  font-size: 11px;
}
.notification-entry-actions {
  display: flex;
  flex-direction: column;
  padding: 4px 4px 4px 0;
}
.notification-entry-actions .btn-link {
  color: #999;
}
.notification-entry-actions .btn-link:hover,
.notification-entry-actions .btn-link:focus {
  color: #333;
}
.navbar-nav > .notifications-menu > .notifications-dropdown > li.footer > .btn-link {
  padding: 7px 10px;
  color: #444;
  font-size: 12px;
}

/* region Dark mode */
:is(.skin-blue-dark, .skin-black-dark, .skin-purple-dark, .skin-yellow-dark, .skin-red-dark, .skin-green-dark)
  .navbar-nav > .notifications-menu > .notifications-dropdown > li.header,
:is(.skin-blue-dark, .skin-black-dark, .skin-purple-dark, .skin-yellow-dark, .skin-red-dark, .skin-green-dark)
  .navbar-nav > .notifications-menu > .notifications-dropdown > li.footer,
:is(.skin-blue-dark, .skin-black-dark, .skin-purple-dark, .skin-yellow-dark, .skin-red-dark, .skin-green-dark)
  .navbar-nav > .notifications-menu > .notifications-dropdown > li .menu {
  border-color: var(--dark-border);
  background-color: var(--dark-surface);
  color: var(--dark-text);
}
:is(.skin-blue-dark, .skin-black-dark, .skin-purple-dark, .skin-yellow-dark, .skin-red-dark, .skin-green-dark)
  .notification-entry-icon {
  color: var(--dark-text-soft);
}
/* Info entries have no tint of their own */
:is(.skin-blue-dark, .skin-black-dark, .skin-purple-dark, .skin-yellow-dark, .skin-red-dark, .skin-green-dark)
  .navbar-nav
  > .notifications-menu
  > .notifications-dropdown
  > li
  .menu
  > li.notification-entry:not(.bg-success, .bg-warning, .bg-danger, .bg-purple) {
  background-color: var(--dark-surface);
}
:is(.skin-blue-dark, .skin-black-dark, .skin-purple-dark, .skin-yellow-dark, .skin-red-dark, .skin-green-dark)
  .navbar-nav > .notifications-menu > .notifications-dropdown > li .menu > li.notification-entry {
  border-bottom-color: var(--dark-border);
}
:is(.skin-blue-dark, .skin-black-dark, .skin-purple-dark, .skin-yellow-dark, .skin-red-dark, .skin-green-dark)
  .navbar-nav > .notifications-menu > .notifications-dropdown > li .menu > li.notification-entry:not(.notification-read) {
  box-shadow: inset 3px 0 0 var(--dark-active);
}
:is(.skin-blue-dark, .skin-black-dark, .skin-purple-dark, .skin-yellow-dark, .skin-red-dark, .skin-green-dark)
  .notification-entry-title {
  color: var(--dark-text);
}
:is(.skin-blue-dark, .skin-black-dark, .skin-purple-dark, .skin-yellow-dark, .skin-red-dark, .skin-green-dark)
  .notification-entry-preview {
  color: var(--dark-text-help);
}
:is(.skin-blue-dark, .skin-black-dark, .skin-purple-dark, .skin-yellow-dark, .skin-red-dark, .skin-green-dark)
  .notification-entry-time,
:is(.skin-blue-dark, .skin-black-dark, .skin-purple-dark, .skin-yellow-dark, .skin-red-dark, .skin-green-dark)
  .notification-entry-actions .btn-link {
  color: var(--dark-text-muted);
}
:is(.skin-blue-dark, .skin-black-dark, .skin-purple-dark, .skin-yellow-dark, .skin-red-dark, .skin-green-dark)
  .notification-entry-actions .btn-link:hover,
:is(.skin-blue-dark, .skin-black-dark, .skin-purple-dark, .skin-yellow-dark, .skin-red-dark, .skin-green-dark)
  .notification-entry-actions .btn-link:focus,
:is(.skin-blue-dark, .skin-black-dark, .skin-purple-dark, .skin-yellow-dark, .skin-red-dark, .skin-green-dark)
  .navbar-nav > .notifications-menu > .notifications-dropdown > li.footer > .btn-link {
  color: var(--dark-text);
}
/* endregion Dark mode */
