/* Shared chrome for customer / operator HTML portals. */
:root {
  --pp-sidebar-w: 260px;
  --pp-topbar-h: 56px;
  --pp-primary: #4f46e5;
  --pp-primary-light: #eef2ff;
  --pp-success: #059669;
  --pp-success-light: #ecfdf5;
  --pp-danger: #dc2626;
  --pp-danger-light: #fef2f2;
  --pp-warning: #d97706;
  --pp-warning-light: #fffbeb;
  --pp-info: #0284c7;
  --pp-info-light: #f0f9ff;
  --pp-gray-50: #f9fafb;
  --pp-gray-100: #f3f4f6;
  --pp-gray-200: #e5e7eb;
  --pp-gray-300: #d1d5db;
  --pp-gray-500: #6b7280;
  --pp-gray-700: #374151;
  --pp-gray-900: #111827;
  --pp-radius: 12px;
  --pp-radius-sm: 8px;
  --pp-shadow: 0 1px 3px rgb(0 0 0 / 8%), 0 1px 2px rgb(0 0 0 / 6%);
  --pp-shadow-md: 0 4px 6px rgb(0 0 0 / 7%), 0 2px 4px rgb(0 0 0 / 6%);
  --pp-transition: 0.2s ease;
}

.elinom-portal-preview-banner {
  position: sticky;
  top: 0;
  z-index: 1400;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: #f59e0b;
  color: #111827;
  font-weight: 600;
}

.elinom-portal-preview-banner button {
  border: 0;
  border-radius: 8px;
  padding: 6px 10px;
  background: #111827;
  color: #fff;
  cursor: pointer;
}

.elinom-portal-bell {
  position: relative;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
}

.elinom-portal-bell__btn {
  position: relative;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: #374151;
  font-size: 1.1rem;
  border-radius: 8px;
}

.elinom-portal-bell__btn:hover,
.elinom-portal-bell__btn[aria-expanded="true"] {
  background: #f3f4f6;
}

.elinom-portal-bell__badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: #dc2626;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
}

.elinom-portal-bell__badge.is-on {
  display: flex;
}

.elinom-portal-bell__panel {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  width: min(360px, 92vw);
  max-height: 360px;
  overflow: auto;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgb(0 0 0 / 12%);
  z-index: 1200;
}

.elinom-portal-bell__panel.is-open {
  display: block;
}

.elinom-portal-bell__item {
  display: block;
  padding: 10px 12px;
  border-bottom: 1px solid #f3f4f6;
  color: inherit;
  text-decoration: none;
}

.elinom-portal-bell__item:last-child {
  border-bottom: 0;
}

.elinom-portal-bell__item.is-unread {
  background: #eef2ff;
}

.elinom-portal-bell__item strong {
  display: block;
  font-size: 0.9rem;
}

.elinom-portal-bell__item span {
  display: block;
  font-size: 0.8rem;
  color: #6b7280;
}

.elinom-portal-empty,
.elinom-portal-error {
  padding: 1.25rem;
  border-radius: 12px;
  background: #fff;
  border: 1px dashed #e5e7eb;
  color: #6b7280;
}

.elinom-portal-error {
  border-style: solid;
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.elinom-portal-skeleton {
  height: 12px;
  border-radius: 8px;
  background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
  background-size: 200% 100%;
  animation: elinom-portal-shimmer 1.2s ease-in-out infinite;
  margin: 8px 0;
}

@keyframes elinom-portal-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
