/* Shared notification cues. Ordinary messages and live chat intentionally use
   different selectors so the two communication channels cannot be confused. */
.nav-item[data-view="messages"].has-unread .nav-label {
  color: #b42318;
  font-weight: 800;
}

.nav-unread-badge,
.notification-count-badge {
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: #d92d20;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 0 0 3px #fff, 0 0 16px rgba(217, 45, 32, .58), 0 6px 14px rgba(143, 28, 20, .25);
  animation: delyv-unread-pulse 1.8s ease-in-out infinite;
}

.nav-unread-badge {
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  margin-left: auto;
  font-size: 12px;
}

.icon-button[data-view="messages"].has-unread {
  color: #d92d20;
  font-weight: 900;
  text-shadow: 0 0 10px rgba(217, 45, 32, .32);
}

.notification-count-badge {
  position: absolute;
  z-index: 2;
  top: -8px;
  right: -10px;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border: 2px solid #fff;
  font-size: 10px;
}

/* Live chat has its own badge and never reuses the ordinary Messages count. */
.live-chat-unread,
.live-chat-peer-unread,
.live-chat-widget-launcher > b {
  background: #d92d20;
  box-shadow: 0 0 0 2px #fff, 0 0 14px rgba(217, 45, 32, .62), 0 5px 12px rgba(143, 28, 20, .23);
}

.live-chat-widget-launcher.has-unread {
  border-color: #f1aaa4;
}

@keyframes delyv-unread-pulse {
  0%, 100% { filter: brightness(1); transform: scale(1); }
  50% { filter: brightness(1.12); transform: scale(1.04); }
}

@media (max-width: 720px) {
  .nav-unread-badge {
    min-width: 32px;
    height: 32px;
  }

  .notification-count-badge {
    top: -6px;
    right: -7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-unread-badge,
  .notification-count-badge {
    animation: none;
  }
}

/* Operations files are one clear, selectable item per row. */
.client-file-list {
  display: grid;
  gap: 0;
}

.client-file-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #f0f0f4;
}

.client-file-item:last-child {
  border-bottom: 0;
}

.client-file-index {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  color: #5c50c8;
  background: #eeecff;
  font-size: 10px;
  font-weight: 900;
}

.client-file-item .file-row {
  min-width: 0;
}

@media (max-width: 720px) {
  .client-file-item {
    grid-template-columns: 25px minmax(0, 1fr);
  }
}
