/* SIAKAD Global SweetAlert2 — conventional solid UI, shared on every page. */
html body .swal2-container,
html body .swal2-container.swal2-backdrop-show {
  z-index: 2147483600 !important;
  padding: 16px !important;
  background: rgba(15, 23, 42, .44) !important;
}
html body .swal2-popup,
html body .swal2-popup.siakad-swal-popup {
  box-sizing: border-box !important;
  width: min(430px, calc(100vw - 28px)) !important;
  max-width: 430px !important;
  padding: 28px 26px 22px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  color: #172033 !important;
  box-shadow: 0 18px 48px rgba(15, 23, 42, .20) !important;
  font-family: inherit !important;
  overflow: visible !important;
}
html body .swal2-popup::before,
html body .swal2-popup::after { display: none !important; content: none !important; }
html body .swal2-popup .swal2-icon {
  display: flex !important;
  box-sizing: content-box !important;
  width: 4em !important;
  height: 4em !important;
  margin: 0 auto 18px !important;
  font-size: 14px !important;
}
html body .swal2-popup .swal2-title {
  margin: 0 !important;
  padding: 0 !important;
  color: #172033 !important;
  font-family: inherit !important;
  font-size: 1.35rem !important;
  font-weight: 750 !important;
  line-height: 1.3 !important;
  letter-spacing: -.02em !important;
  text-align: center !important;
}
html body .swal2-popup .swal2-html-container,
html body .swal2-popup .swal2-content {
  max-width: 350px !important;
  margin: 10px auto 0 !important;
  padding: 0 !important;
  color: #64748b !important;
  font-family: inherit !important;
  font-size: .96rem !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
  text-align: center !important;
  overflow-wrap: anywhere !important;
}
html body .swal2-popup .swal2-actions {
  display: flex !important;
  align-items: stretch !important;
  justify-content: center !important;
  gap: 10px !important;
  width: 100% !important;
  max-width: 350px !important;
  margin: 24px auto 0 !important;
  padding: 0 !important;
}
html body .swal2-popup .swal2-deny,
html body .swal2-popup .siakad-swal-deny { display: none !important; }
html body .swal2-popup .swal2-styled,
html body .swal2-popup .swal2-confirm,
html body .swal2-popup .swal2-cancel {
  box-sizing: border-box !important;
  display: inline-flex !important;
  flex: 1 1 0 !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  min-width: 0 !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 10px 16px !important;
  border: 1px solid transparent !important;
  border-radius: 10px !important;
  font-family: inherit !important;
  font-size: .92rem !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  letter-spacing: 0 !important;
  text-align: center !important;
  text-transform: none !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  cursor: pointer !important;
  box-shadow: none !important;
  background-image: none !important;
  transition: background-color .14s ease, border-color .14s ease, color .14s ease !important;
  -webkit-tap-highlight-color: transparent !important;
}
html body .swal2-popup .swal2-confirm {
  color: #ffffff !important;
  background: var(--siakad-primary, var(--ui-primary, var(--palette-primary, #2563eb))) !important;
  border-color: var(--siakad-primary, var(--ui-primary, var(--palette-primary, #2563eb))) !important;
}
html body .swal2-popup .swal2-confirm:hover:not(:disabled) {
  color: #ffffff !important;
  background: var(--siakad-primary-hover, var(--ui-dark, var(--palette-dark, #1d4ed8))) !important;
  border-color: var(--siakad-primary-hover, var(--ui-dark, var(--palette-dark, #1d4ed8))) !important;
}
html body .swal2-popup .swal2-confirm.siakad-swal-confirm-danger {
  color: #ffffff !important;
  background: var(--siakad-danger, #dc2626) !important;
  border-color: var(--siakad-danger, #dc2626) !important;
}
html body .swal2-popup .swal2-confirm.siakad-swal-confirm-danger:hover:not(:disabled) {
  background: var(--siakad-danger-hover, #b91c1c) !important;
  border-color: var(--siakad-danger-hover, #b91c1c) !important;
}
html body .swal2-popup .swal2-cancel {
  color: #334155 !important;
  background: #f1f5f9 !important;
  border-color: #dbe3ed !important;
}
html body .swal2-popup .swal2-cancel:hover:not(:disabled) {
  color: #0f172a !important;
  background: #e2e8f0 !important;
  border-color: #cbd5e1 !important;
}
html body .swal2-popup .swal2-styled:focus-visible {
  outline: 3px solid rgba(var(--siakad-primary-rgb, var(--ui-rgb, 37, 99, 235)), .25) !important;
  outline-offset: 2px !important;
}
html body .swal2-popup .swal2-styled:disabled { opacity: .58 !important; cursor: not-allowed !important; }
html body .swal2-popup .swal2-actions .swal2-confirm:only-child,
html body .swal2-popup .swal2-actions .swal2-styled:only-child { flex: 0 1 180px !important; }
html body .swal2-popup .swal2-input,
html body .swal2-popup .swal2-textarea,
html body .swal2-popup .swal2-select {
  box-sizing: border-box !important;
  width: 100% !important;
  margin: 14px auto 0 !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 9px !important;
  background: #ffffff !important;
  color: #172033 !important;
  box-shadow: none !important;
}
html body .swal2-popup .swal2-input:focus,
html body .swal2-popup .swal2-textarea:focus,
html body .swal2-popup .swal2-select:focus {
  border-color: var(--siakad-primary, var(--ui-primary, #2563eb)) !important;
  box-shadow: 0 0 0 3px rgba(var(--siakad-primary-rgb, var(--ui-rgb, 37, 99, 235)), .12) !important;
}
html body .swal2-popup .swal2-validation-message { border-radius: 8px !important; }
html body .swal2-popup .swal2-loader { border-color: var(--siakad-primary, #2563eb) transparent var(--siakad-primary, #2563eb) transparent !important; }
html body .swal2-popup .swal-detail-row,
html body .swal2-popup .swal-detail-pill { display: none !important; }

/* Fallback dialog used only if SweetAlert2 failed to load. */
html body .siakad-swal-fallback-layer {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483646 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
  background: rgba(15, 23, 42, .44) !important;
}
html body .siakad-swal-fallback-popup {
  box-sizing: border-box !important;
  width: min(430px, calc(100vw - 28px)) !important;
  max-width: 430px !important;
  padding: 28px 26px 22px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  color: #172033 !important;
  box-shadow: 0 18px 48px rgba(15, 23, 42, .20) !important;
  text-align: center !important;
  font-family: inherit !important;
}
html body .siakad-swal-fallback-icon {
  display: grid !important;
  place-items: center !important;
  width: 58px !important;
  height: 58px !important;
  margin: 0 auto 18px !important;
  border: 3px solid currentColor !important;
  border-radius: 50% !important;
  font-size: 30px !important;
  line-height: 1 !important;
  font-weight: 600 !important;
}
html body .siakad-swal-fallback-icon.siakad-swal-success { color: #16a34a !important; }
html body .siakad-swal-fallback-icon.siakad-swal-error { color: #dc2626 !important; }
html body .siakad-swal-fallback-icon.siakad-swal-warning { color: #d97706 !important; }
html body .siakad-swal-fallback-icon.siakad-swal-question,
html body .siakad-swal-fallback-icon.siakad-swal-info { color: var(--siakad-primary, var(--ui-primary, #2563eb)) !important; }
html body .siakad-swal-fallback-title { margin: 0 !important; color: #172033 !important; font-size: 1.35rem !important; font-weight: 750 !important; line-height: 1.3 !important; }
html body .siakad-swal-fallback-message { margin: 10px auto 0 !important; max-width: 350px !important; color: #64748b !important; font-size: .96rem !important; line-height: 1.55 !important; white-space: pre-line !important; overflow-wrap: anywhere !important; }
html body .siakad-swal-fallback-actions { display: flex !important; align-items: stretch !important; justify-content: center !important; gap: 10px !important; width: 100% !important; max-width: 350px !important; margin: 24px auto 0 !important; }
html body .siakad-swal-fallback-actions button { box-sizing: border-box !important; display: inline-flex !important; flex: 1 1 0 !important; align-items: center !important; justify-content: center !important; min-width: 0 !important; min-height: 44px !important; margin: 0 !important; padding: 10px 16px !important; border: 1px solid transparent !important; border-radius: 10px !important; font-family: inherit !important; font-size: .92rem !important; font-weight: 700 !important; line-height: 1.25 !important; text-align: center !important; cursor: pointer !important; box-shadow: none !important; }
html body .siakad-swal-fallback-confirm { color: #fff !important; background: var(--siakad-primary, var(--ui-primary, #2563eb)) !important; border-color: var(--siakad-primary, var(--ui-primary, #2563eb)) !important; }
html body .siakad-swal-fallback-confirm.siakad-swal-confirm-danger { color: #fff !important; background: var(--siakad-danger, #dc2626) !important; border-color: var(--siakad-danger, #dc2626) !important; }
html body .siakad-swal-fallback-cancel { color: #334155 !important; background: #f1f5f9 !important; border-color: #dbe3ed !important; }
html body .siakad-swal-fallback-actions button:focus-visible { outline: 3px solid rgba(var(--siakad-primary-rgb, var(--ui-rgb, 37, 99, 235)), .25) !important; outline-offset: 2px !important; }
html body.dark .swal2-popup,
html body.dark .siakad-swal-fallback-popup { border-color: #334155 !important; background: #111827 !important; color: #f8fafc !important; }
html body.dark .swal2-popup .swal2-title,
html body.dark .siakad-swal-fallback-title { color: #f8fafc !important; }
html body.dark .swal2-popup .swal2-html-container,
html body.dark .swal2-popup .swal2-content,
html body.dark .siakad-swal-fallback-message { color: #cbd5e1 !important; }
html body.dark .swal2-popup .swal2-cancel,
html body.dark .siakad-swal-fallback-cancel { color: #e2e8f0 !important; background: #243244 !important; border-color: #3a4a60 !important; }
html body.dark .swal2-popup .swal2-input,
html body.dark .swal2-popup .swal2-textarea,
html body.dark .swal2-popup .swal2-select { color: #f8fafc !important; background: #0f172a !important; border-color: #475569 !important; }
@media (max-width: 560px) {
  html body .swal2-container { padding: 12px !important; }
  html body .swal2-popup,
  html body .siakad-swal-fallback-popup { width: calc(100vw - 24px) !important; padding: 24px 18px 20px !important; border-radius: 16px !important; }
  html body .swal2-popup .swal2-icon { margin-bottom: 15px !important; }
  html body .swal2-popup .swal2-title,
  html body .siakad-swal-fallback-title { font-size: 1.22rem !important; }
  html body .swal2-popup .swal2-html-container,
  html body .siakad-swal-fallback-message { font-size: .92rem !important; }
  html body .swal2-popup .swal2-actions,
  html body .siakad-swal-fallback-actions { gap: 8px !important; margin-top: 20px !important; }
  html body .swal2-popup .swal2-styled,
  html body .siakad-swal-fallback-actions button { min-height: 42px !important; padding: 9px 10px !important; font-size: .88rem !important; border-radius: 9px !important; }
}
@media (prefers-reduced-motion: reduce) {
  html body .swal2-popup .swal2-styled,
  html body .siakad-swal-fallback-actions button { transition: none !important; }
}


/* School identity: every global SweetAlert uses the school logo instead of a status checkmark. */
html body .swal2-popup .swal2-icon.siakad-swal-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 78px !important;
  height: 70px !important;
  min-width: 78px !important;
  margin: 0 auto 17px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: inherit !important;
  background: transparent !important;
  box-shadow: none !important;
  animation: none !important;
}
html body .swal2-popup .swal2-icon.siakad-swal-icon::before,
html body .swal2-popup .swal2-icon.siakad-swal-icon::after,
html body .swal2-popup .swal2-icon.siakad-swal-icon .swal2-success-circular-line-left,
html body .swal2-popup .swal2-icon.siakad-swal-icon .swal2-success-circular-line-right,
html body .swal2-popup .swal2-icon.siakad-swal-icon .swal2-success-fix,
html body .swal2-popup .swal2-icon.siakad-swal-icon .swal2-success-ring,
html body .swal2-popup .swal2-icon.siakad-swal-icon .swal2-success-f-line,
html body .swal2-popup .swal2-icon.siakad-swal-icon .swal2-success-line-tip,
html body .swal2-popup .swal2-icon.siakad-swal-icon .swal2-success-line-long,
html body .swal2-popup .swal2-icon.siakad-swal-icon .swal2-x-mark,
html body .swal2-popup .swal2-icon.siakad-swal-icon .swal2-x-mark-line-left,
html body .swal2-popup .swal2-icon.siakad-swal-icon .swal2-x-mark-line-right { display: none !important; }
html body .swal2-popup .swal2-icon.siakad-swal-icon .swal2-icon-content {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  font-size: inherit !important;
  line-height: 1 !important;
}
html body .swal2-popup .swal2-icon.siakad-swal-icon .siakad-swal-logo {
  display: block !important;
  width: 76px !important;
  height: 68px !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
html body .siakad-swal-fallback-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 78px !important;
  height: 70px !important;
  margin: 0 auto 17px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: inherit !important;
  font-size: 0 !important;
}
html body .siakad-swal-fallback-icon .siakad-swal-logo {
  display: block !important;
  width: 76px !important;
  height: 68px !important;
  object-fit: contain !important;
}
@media (max-width: 560px) {
  html body .swal2-popup .swal2-icon.siakad-swal-icon,
  html body .siakad-swal-fallback-icon { width: 70px !important; height: 64px !important; margin-bottom: 14px !important; }
  html body .swal2-popup .swal2-icon.siakad-swal-icon .siakad-swal-logo,
  html body .siakad-swal-fallback-icon .siakad-swal-logo { width: 68px !important; height: 62px !important; }
}
