/* Shared notification cards — admin sheet + customer/provider app */
.edoor-notif-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 12px;
  padding: 0 2px;
}
.edoor-notif-toolbar .btn-notif-action {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  color: #334155;
}
.edoor-notif-toolbar .btn-notif-action--primary {
  background: rgba(200, 16, 46, 0.08);
  border-color: rgba(200, 16, 46, 0.2);
  color: #8B0A1E;
}
.edoor-notif-toolbar .btn-notif-action--ghost {
  background: transparent;
  color: #64748b;
}

.edoor-notif-list-wrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding: 0 2px 8px;
  transition: opacity 0.2s ease;
}
.edoor-notif-list-wrap.is-loading {
  opacity: 0.72;
  pointer-events: none;
}

.edoor-notif-card {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px 12px;
  padding: 14px 42px 14px 14px;
  margin-bottom: 10px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
  cursor: pointer;
  text-align: left;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.25s ease, filter 0.25s ease;
  contain: layout style;
  transform: translateZ(0);
}
.edoor-notif-card:active { transform: scale(0.99) translateZ(0); }
.edoor-notif-card.is-read {
  opacity: 0.82;
  filter: saturate(0.92);
}
.edoor-notif-card.is-enter {
  animation: edoor-notif-card-in 0.34s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.edoor-notif-card.is-removing {
  opacity: 0;
  transform: translateX(10px) scale(0.98) translateZ(0);
  margin-bottom: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, margin 0.22s ease;
}
@keyframes edoor-notif-card-in {
  from { opacity: 0; transform: translateY(8px) translateZ(0); }
  to { opacity: 1; transform: translateY(0) translateZ(0); }
}
@media (prefers-reduced-motion: reduce) {
  .edoor-notif-card.is-enter { animation: none; }
  .edoor-notif-card.is-removing { transition: none; }
  .edoor-notif-list-wrap { transition: none; }
}
.edoor-notif-card.is-read .edoor-notif-unread-dot { opacity: 0; }

.edoor-notif-unread-dot {
  position: absolute;
  top: 14px;
  right: 44px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #C8102E;
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.15);
}

.edoor-notif-card-dismiss {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: #64748b;
  font-size: 13px;
  line-height: 30px;
  text-align: center;
  padding: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.edoor-notif-card-dismiss:hover { background: rgba(200, 16, 46, 0.12); color: #8B0A1E; }

.edoor-notif-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 20px;
  align-self: start;
}
.edoor-notif-card-icon.tone-live { background: rgba(22, 163, 74, 0.12); }
.edoor-notif-card-icon.tone-offline { background: rgba(100, 116, 139, 0.12); }
.edoor-notif-card-icon.tone-customer { background: rgba(37, 99, 235, 0.12); }
.edoor-notif-card-icon.tone-provider { background: rgba(234, 88, 12, 0.12); }
.edoor-notif-card-icon.tone-success { background: rgba(22, 163, 74, 0.12); }
.edoor-notif-card-icon.tone-alert { background: rgba(200, 16, 46, 0.1); }
.edoor-notif-card-icon.tone-request { background: rgba(99, 102, 241, 0.12); }
.edoor-notif-card-icon.tone-promo { background: rgba(234, 179, 8, 0.15); }
.edoor-notif-card-icon.tone-system { background: rgba(200, 16, 46, 0.1); }
.edoor-notif-card-icon.tone-lead { background: rgba(200, 16, 46, 0.12); }

.edoor-notif-card-main { min-width: 0; }
.edoor-notif-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
  padding-right: 4px;
}
.edoor-notif-card-head time {
  font-size: 11px;
  color: #94a3b8;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.35;
  margin-top: 2px;
}
.edoor-notif-tag {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
}
.edoor-notif-tag.tone-live { background: rgba(22, 163, 74, 0.15); color: #15803d; }
.edoor-notif-tag.tone-offline { background: rgba(100, 116, 139, 0.15); color: #475569; }
.edoor-notif-tag.tone-customer { background: rgba(37, 99, 235, 0.12); color: #1d4ed8; }
.edoor-notif-tag.tone-provider { background: rgba(234, 88, 12, 0.14); color: #c2410c; }
.edoor-notif-tag.tone-success { background: rgba(22, 163, 74, 0.15); color: #15803d; }
.edoor-notif-tag.tone-alert { background: rgba(200, 16, 46, 0.12); color: #8B0A1E; }
.edoor-notif-tag.tone-request { background: rgba(99, 102, 241, 0.14); color: #4338ca; }
.edoor-notif-tag.tone-promo { background: rgba(234, 179, 8, 0.2); color: #a16207; }
.edoor-notif-tag.tone-system { background: rgba(200, 16, 46, 0.12); color: #8B0A1E; }
.edoor-notif-tag.tone-lead { background: rgba(200, 16, 46, 0.12); color: #8B0A1E; }

.edoor-notif-card-title {
  display: block;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  color: #0f172a;
  line-height: 1.3;
}
.edoor-notif-card-text {
  margin: 0 0 8px;
  font-size: 13px;
  color: #64748b;
  line-height: 1.45;
}

.edoor-notif-meta {
  margin: 0;
  display: grid;
  gap: 6px;
}
.edoor-notif-meta-row {
  display: grid;
  grid-template-columns: minmax(88px, 38%) 1fr;
  gap: 8px;
  align-items: start;
  font-size: 12px;
  line-height: 1.35;
}
.edoor-notif-meta-row dt {
  margin: 0;
  color: #94a3b8;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}
.edoor-notif-meta-ico { font-size: 11px; opacity: 0.85; }
.edoor-notif-meta-row dd {
  margin: 0;
  color: #334155;
  font-weight: 500;
  word-break: break-word;
}

.edoor-notif-empty {
  text-align: center;
  padding: 28px 16px;
  color: #94a3b8;
  font-size: 13px;
}
.edoor-notif-empty-ico {
  display: block;
  font-size: 28px;
  margin-bottom: 8px;
  opacity: 0.6;
}

.edoor-notif-toast {
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 1060;
  width: min(360px, calc(100vw - 24px));
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.edoor-notif-toast.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(12px);
}
.edoor-notif-toast-ico {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
  background: rgba(200, 16, 46, 0.1);
}
.edoor-notif-toast-body strong { display: block; font-size: 13px; margin-bottom: 2px; }
.edoor-notif-toast-body span { font-size: 12px; color: #64748b; line-height: 1.35; }

.admin-notif-sheet .admin-sheet-panel {
  display: flex;
  flex-direction: column;
  max-height: min(88dvh, 640px);
}
.admin-notif-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.admin-notif-list .edoor-notif-card { list-style: none; }

.modal--notif .notif-sheet {
  display: flex;
  flex-direction: column;
  max-height: min(88dvh, 620px);
  overflow: hidden !important;
  min-height: 0;
}
.modal--notif .notif-sheet-head,
.modal--notif .edoor-notif-toolbar {
  flex-shrink: 0;
}
.modal--notif .notif-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
  padding-top: 0;
}
.modal--notif .notif-sheet-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.modal--notif .notif-sheet-close {
  flex-shrink: 0;
}
.modal--notif .edoor-notif-empty {
  flex-shrink: 0;
  margin: 0;
}
.admin-notif-sheet .admin-sheet-head,
.admin-notif-sheet .edoor-notif-toolbar {
  flex-shrink: 0;
}
.admin-notif-sheet .edoor-notif-list-wrap {
  flex: 1 1 auto;
  min-height: 140px;
  max-height: none;
}
