.notification-card > div:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* The unread badge is appended to the shared header bell by topbar-search.js. */
html body header.topbar .notification-button {
  position: relative !important;
  overflow: visible !important;
}

html body header.topbar .notification-button .notification-count {
  position: absolute !important;
  top: -7px !important;
  right: -8px !important;
  display: inline-grid !important;
  place-items: center !important;
  box-sizing: border-box !important;
  min-width: 19px !important;
  height: 19px !important;
  padding: 0 5px !important;
  border: 2px solid #09111f !important;
  border-radius: 999px !important;
  color: #ffffff !important;
  background: #dc2626 !important;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.42) !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  z-index: 20 !important;
  pointer-events: none !important;
}

html:root[data-theme="light"] body header.topbar .notification-button .notification-count {
  border-color: #f8fbff !important;
}

html body header.topbar .notification-button .notification-count[hidden] {
  display: none !important;
}

.notification-commands {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.notification-commands button {
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.notification-commands button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.notification-read-label {
  color: var(--text-soft);
  font-size: 12px;
}

.call-allocation-dialog {
  box-sizing: border-box;
  width: min(440px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 24px;
  border: 1px solid var(--border, #626975);
  border-radius: 8px;
  background: var(--card, #181c22);
  color: var(--text, #f5f7fa);
  overflow-wrap: anywhere;
}

.call-allocation-dialog::backdrop {
  background: rgb(0 0 0 / 60%);
}

.call-allocation-dialog h2 {
  margin: 0 40px 16px 0;
  font-size: 22px;
  letter-spacing: 0;
}

.call-allocation-dialog p {
  margin: 0 0 24px;
  line-height: 1.6;
}

.call-allocation-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 24px;
  cursor: pointer;
}

.call-allocation-dialog :focus-visible,
.notification-commands :focus-visible,
[data-locked-call]:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 4px;
}

.stock-call-requested {
  outline: 2px solid #26a77a;
  outline-offset: 3px;
  scroll-margin-block: 100px;
}

:root[data-theme="light"] .call-allocation-dialog {
  background: #fff;
  color: #20242b;
}
