/* Header notification dropdown fixes */
.user-menu.nav > li > a .badge.notification-badge {
  min-width: 18px;
  height: 18px;
  line-height: 1;
  padding: 2px 5px;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background-color: #ed3a3a;
  right: -2px;
  top: 8px;
}

.flag-nav .dropdown-menu.notifications.header-notification-dropdown {
  min-width: 380px;
  width: 380px;
  left: auto;
  right: 0;
}

.header-notification-dropdown .topnav-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: auto;
  line-height: normal;
  padding: 12px 14px;
}

.header-notification-dropdown .topnav-dropdown-header .notification-title {
  float: none;
}

.header-notification-dropdown .topnav-dropdown-header .clear-noti {
  float: none;
  font-size: 13px;
}

.header-notification-dropdown .noti-content {
  width: 100%;
  max-height: 330px;
  height: auto;
}

.header-notification-dropdown .notification-list {
  margin: 0;
  padding: 0;
}

.header-notification-dropdown .notification-list .header-notification-item {
  padding: 12px 14px;
  border-bottom: 1px solid #e4e8ee;
  box-shadow: none;
}

.header-notification-dropdown .notification-list .header-notification-item:last-child {
  border-bottom: 0;
}

.header-notification-dropdown .notification-list .header-notification-item .media-body {
  width: calc(100% - 44px);
}

.header-notification-dropdown .notification-list .header-notification-actions {
  margin-top: 8px;
  padding: 0;
}

.header-notification-dropdown .notification-list .header-notification-mark {
  padding: 4px 10px;
  font-size: 12px;
  line-height: 1.2;
  border-radius: 6px;
}

@media (max-width: 575.98px) {
  .flag-nav .dropdown-menu.notifications.header-notification-dropdown {
    min-width: 320px;
    width: calc(100vw - 24px);
    right: -8px;
  }
}
