/* Shared suite notification bell (POS / Books / Warehouse / Tasks / etc.) */
.suite-notify {
  position: relative;
  z-index: 4600;
  font-family: inherit;
}

.suite-notify--float {
  position: fixed;
  top: 1rem;
  right: 1rem;
}

.suite-notify--inline {
  display: inline-flex;
  align-items: center;
}

.suite-notify__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  background: #fff;
  color: #0f172a;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.suite-notify__btn:hover,
.suite-notify__btn[aria-expanded="true"] {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.22);
}

.suite-notify__icon {
  font-size: 1rem;
  line-height: 1;
}

.suite-notify__badge {
  position: absolute;
  top: -0.2rem;
  right: -0.2rem;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.15rem;
  text-align: center;
}

.suite-notify__panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  width: 22rem;
  max-width: calc(100vw - 1.5rem);
  min-width: 16rem;
  max-height: 28rem;
  display: none;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 0.85rem;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.16);
  overflow: hidden;
  pointer-events: none;
  writing-mode: horizontal-tb;
}

/* Only visible after an explicit click (JS adds .is-open). Never on hover/focus. */
.suite-notify__panel[hidden],
.suite-notify:not(.is-open) .suite-notify__panel {
  display: none !important;
  pointer-events: none !important;
}

.suite-notify.is-open .suite-notify__panel:not([hidden]) {
  display: flex !important;
  pointer-events: auto;
}

.suite-notify--float .suite-notify__panel {
  right: 0;
}

.suite-notify__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.suite-notify__head strong {
  font-size: 0.92rem;
}

.suite-notify__markall {
  border: 0;
  background: transparent;
  color: #2563eb;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.suite-notify__list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: auto;
  flex: 1;
}

.suite-notify__item {
  display: flex;
  gap: 0.65rem;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  cursor: pointer;
}

.suite-notify__item:hover {
  background: #f8fafc;
}

.suite-notify__item--unread {
  background: #eff6ff;
}

.suite-notify__type {
  flex: 0 0 auto;
  width: 1.6rem;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.4;
}

.suite-notify__body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.suite-notify__body strong {
  font-size: 0.85rem;
  color: #0f172a;
}

.suite-notify__body span {
  font-size: 0.78rem;
  color: #475569;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.suite-notify__body small {
  font-size: 0.7rem;
  color: #94a3b8;
}

.suite-notify__empty {
  padding: 1.25rem 1rem;
  text-align: center;
  color: #64748b;
  font-size: 0.85rem;
}

.suite-notify__footer {
  display: block;
  padding: 0.7rem 0.9rem;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.suite-notify__footer:hover {
  background: #f8fafc;
}

.suite-notify__toast {
  position: fixed;
  top: 4.5rem;
  right: 1rem;
  width: min(20rem, calc(100vw - 2rem));
  padding: 0.85rem 1rem;
  background: #0f172a;
  color: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.28);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  cursor: pointer;
  z-index: 4700;
}

.suite-notify__toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.suite-notify__toast strong {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.2rem;
}

.suite-notify__toast p {
  margin: 0;
  font-size: 0.78rem;
  color: #cbd5e1;
  line-height: 1.35;
}

@media (max-width: 640px) {
  .suite-notify--float {
    top: 0.65rem;
    right: 0.65rem;
  }
}
