/* ============================================================
   SIMPKL Notify — toast notifikasi global (pojok kanan atas)
   Dipakai lewat window.simNotify() — lihat public/js/notify.js
   ============================================================ */

#sim-notify-stack {
  position: fixed;
  top: 66px; /* di bawah navbar fixed */
  right: 14px;
  z-index: 1080; /* di atas navbar & modal, setara layer Swal */
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 360px;
  max-width: calc(100vw - 28px);
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  overflow-x: hidden;
  pointer-events: none; /* area kosong tidak menghalangi klik halaman */
  scrollbar-width: thin;
}

.sim-toast {
  pointer-events: auto;
  background: #fff;
  border: 1px solid var(--sim-gray-200, #e5e7eb);
  border-left-width: 3px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, .08);
  padding: 9px 12px 10px;
  font-family: var(--sim-font-sans, "Source Sans Pro", sans-serif);
  animation: sim-toast-in .18s ease-out;
  flex-shrink: 0;
}

.sim-toast.sim-toast-out {
  transition: opacity .2s ease, transform .2s ease;
  opacity: 0;
  transform: translateX(12px);
}

@keyframes sim-toast-in {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: none; }
}

.sim-toast--success { border-left-color: #16a34a; }
.sim-toast--error   { border-left-color: #dc2626; }
.sim-toast--warning { border-left-color: #d97706; }
.sim-toast--info    { border-left-color: #2563eb; }

/* Baris atas: label sumber + jam + tombol tutup */
.sim-toast__head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.sim-toast__source {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sim-toast--success .sim-toast__source { color: #15803d; }
.sim-toast--error   .sim-toast__source { color: #b91c1c; }
.sim-toast--warning .sim-toast__source { color: #b45309; }
.sim-toast--info    .sim-toast__source { color: #1d4ed8; }

.sim-toast__time {
  font-size: 10.5px;
  color: var(--sim-gray-400, #9ca3af);
  flex: 0 0 auto;
}

.sim-toast__count {
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: var(--sim-gray-400, #9ca3af);
  border-radius: 8px;
  padding: 0 6px;
  line-height: 15px;
  flex: 0 0 auto;
}

.sim-toast__close {
  flex: 0 0 auto;
  border: 0;
  background: none;
  padding: 0 0 0 4px;
  line-height: 1;
  font-size: 15px;
  color: var(--sim-gray-400, #9ca3af);
  cursor: pointer;
}

.sim-toast__close:hover { color: var(--sim-gray-700, #374151); }

.sim-toast__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--sim-gray-900, #111827);
  margin: 0 0 1px;
}

.sim-toast__msg {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--sim-gray-700, #4b5563);
  margin: 0;
  word-wrap: break-word;
}

.sim-toast__msg ul {
  margin: 3px 0 0;
  padding-left: 17px;
}

.sim-toast__msg li { margin-bottom: 1px; }
