
/* AC7 CRM — Premium Notifications */

.topbar-right .ac7-unified-bell {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  height: 42px;
  min-width: 60px;
  padding: 0 11px;
  background: linear-gradient(
    145deg,
    rgba(55, 125, 234, .20),
    rgba(76, 123, 207, .06)
  );
  border: 1px solid rgba(92, 154, 244, .34);
  border-radius: 13px;
  cursor: pointer;
  color: inherit;
  box-shadow: 0 5px 18px rgba(2, 24, 63, .10);
  transition:
    transform .15s ease,
    border-color .15s ease;
}

.ac7-unified-bell:hover {
  transform: translateY(-1px);
  border-color: #649efa;
}

.ac7-unified-bell:focus-visible,
.ac7-notification-popover button:focus-visible {
  outline: 2px solid #6fa7ff;
  outline-offset: 2px;
}

.ac7-bell-symbol {
  font-size: 19px;
  line-height: 1;
}

.ac7-unified-count {
  display: inline-grid;
  place-items: center;
  height: 21px;
  min-width: 21px;
  padding: 0 5px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  background: #ec475e;
  color: white;
}

.ac7-unified-count.is-empty {
  background: #6d7e99;
}

/* Hide only the old duplicated bells */



/* Premium Popover */

.ac7-notification-popover {
  position: fixed;
  z-index: 100010;
  width: min(440px, calc(100vw - 24px));
  max-height: min(73vh, 650px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(135, 160, 202, .34);
  background: var(--ac7-calendar-base, #142039);
  color: var(--ac7-calendar-text, #edf2fc);
  box-shadow: 0 26px 75px rgba(0, 9, 29, .35);
  direction: rtl;
}

.ac7-notif-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 17px 19px;
  background: linear-gradient(
    120deg,
    #193960,
    #1259ab
  );
  color: #fff;
}

.ac7-notif-head > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ac7-notif-head strong {
  font-size: 17px;
}

.ac7-notif-head span {
  font-size: 12px;
  color: #d6e6fa;
}

.ac7-notif-close {
  width: 32px;
  height: 32px;
  border: 1px solid #ffffff45;
  border-radius: 10px;
  background: #ffffff20;
  color: white;
  font-size: 21px;
  cursor: pointer;
}

.ac7-notif-overview {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid
    var(--ac7-calendar-line, #304361);
}

.ac7-notif-overview div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ac7-notif-overview b {
  font-size: 21px;
  color: #4c9aff;
}

.ac7-notif-overview span {
  font-size: 12px;
  opacity: .8;
}

.ac7-notif-overview button,
.ac7-notif-group-title button {
  background: none;
  border: 0;
  color: #64a6ff;
  font-weight: 750;
  cursor: pointer;
  font-size: 12px;
}

.ac7-notif-scroll {
  overflow-y: auto;
  min-height: 70px;
  padding: 2px 14px 9px;
}

.ac7-notif-group {
  padding: 12px 0;
  border-bottom: 1px solid
    var(--ac7-calendar-line, #304361);
}

.ac7-notif-group:last-child {
  border: 0;
}

.ac7-notif-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.ac7-notif-group-title span {
  font-weight: 800;
  font-size: 12px;
}

.ac7-notif-group-title b {
  border-radius: 30px;
  padding: 2px 7px;
  background: rgba(91, 149, 235, .17);
  color: #64a6ff;
}

/* Notification Items */

.ac7-notif-item {
  display: grid;
  gap: 4px;
  width: 100%;
  text-align: right;
  margin: 5px 0;
  padding: 10px 12px;
  border: 1px solid rgba(135, 160, 202, .19);
  border-right: 3px solid
    var(--item-color, #8095b5);
  border-radius: 11px;
  color: inherit;
  background: var(
    --ac7-calendar-surface,
    rgba(120, 150, 205, .08)
  );
  cursor: pointer;
  transition: background .12s ease;
}

.ac7-notif-item:hover {
  background: rgba(85, 145, 235, .13);
}

.ac7-notif-item-name {
  font-weight: 760;
  font-size: 13px;
}

.ac7-notif-item-desc {
  font-size: 12px;
}

.ac7-notif-item-info {
  font-size: 11px;
  opacity: .8;
  overflow-wrap: anywhere;
}

.ac7-notif-staff {
  color: hsl(var(--staff-hue) 85% 60%);
  font-weight: 800;
}

/* Activity colors */

.ac7-notif-meeting,
.ac7-notif-meeting_online {
  --item-color: #4c99ff;
}

.ac7-notif-meeting_onsite {
  --item-color: #ac7af2;
}

.ac7-notif-call {
  --item-color: #31bd73;
}

.ac7-notif-whatsapp {
  --item-color: #19c6b0;
}

.ac7-notif-task {
  --item-color: #edaa41;
}

.ac7-notif-overdue {
  --item-color: #f35b65;
}

.ac7-notif-email {
  --item-color: #83a8fa;
}

.ac7-notif-followup {
  --item-color: #94a7c3;
}

.ac7-notif-empty {
  padding: 26px 12px;
  text-align: center;
  opacity: .7;
  font-size: 13px;
}

.ac7-notif-warning {
  color: #c98217;
  padding: 8px;
  font-size: 12px;
}

.ac7-notif-footer {
  padding: 10px 17px;
  border-top: 1px solid
    var(--ac7-calendar-line, #304361);
  font-size: 11px;
  opacity: .7;
}

@media (max-width: 600px) {
  .ac7-notification-popover {
    max-height: 76vh;
  }

  .ac7-notif-head {
    padding: 14px 16px;
  }

  .topbar-right .ac7-unified-bell {
    height: 40px;
  }
}
