/* LPMS R005.0.55 - Live-Aktualisierung und Live-Indikatoren fuer Nachrichten, Reviews und Aufgaben.
   Dezente systemweite In-App-Hinweise; keine Seite wird automatisch komplett neu geladen. */
#lpmsLiveUpdateRegion {
  position: fixed;
  top: max(18px, env(safe-area-inset-top));
  right: max(18px, env(safe-area-inset-right));
  z-index: 2147482000;
  display: grid;
  gap: 10px;
  width: min(390px, calc(100vw - 36px));
  pointer-events: none;
}

.lpms-live-update-toast {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid rgba(128, 201, 188, .42);
  border-radius: 14px;
  background: rgba(15, 38, 40, .97);
  color: var(--text, #f5f1e8);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .28);
  pointer-events: auto;
  animation: lpms-live-toast-in .18s ease-out;
}

.lpms-live-update-toast.is-review {
  border-color: rgba(212, 190, 111, .52);
}

.lpms-live-update-toast.is-task {
  border-color: rgba(133, 192, 181, .52);
}

.lpms-live-update-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.lpms-live-update-copy strong {
  font-size: .92rem;
  line-height: 1.2;
}

.lpms-live-update-copy span {
  color: var(--muted, #aeb9b7);
  font-size: .82rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.lpms-live-update-open {
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 10px;
  white-space: nowrap;
  font-size: .8rem;
}

.lpms-live-update-toast.is-leaving {
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity .18s ease, transform .18s ease;
}

@keyframes lpms-live-toast-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 720px) {
  #lpmsLiveUpdateRegion {
    left: 14px;
    right: 14px;
    top: max(14px, env(safe-area-inset-top));
    width: auto;
  }
  .lpms-live-update-toast {
    grid-template-columns: minmax(0, 1fr);
  }
  .lpms-live-update-open {
    justify-self: start;
  }
}


/* R005.0.55 - Persistente Live-Indikatoren in der Portalnavigation. */
.portal-nav button[data-section="tasks"],
.portal-nav button[data-section="approvals"] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.portal-nav .lpms-live-nav-badge {
  flex: 0 0 auto;
}
