/* NextSure first-party modal, confirmation and toast component. */
.ns-dialog-lock { overflow: hidden; }
.ns-dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(2, 6, 23, .58);
  backdrop-filter: blur(5px);
}
.ns-dialog {
  width: min(100%, 540px);
  max-height: min(90vh, 900px);
  overflow: auto;
  padding: 28px;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(2, 6, 23, .32);
  color: #0f172a;
  text-align: center;
  animation: nsDialogIn .18s ease-out;
}
.ns-dialog-icon {
  display: inline-flex;
  width: 58px;
  height: 58px;
  margin-bottom: 14px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #eef2ff;
  color: #4338ca;
  font-size: 28px;
  font-weight: 900;
}
.ns-dialog-icon--success { background:#ecfdf5; color:#047857; }
.ns-dialog-icon--error { background:#fef2f2; color:#b91c1c; }
.ns-dialog-icon--warning { background:#fffbeb; color:#b45309; }
.ns-dialog-icon--question { background:#eff6ff; color:#1d4ed8; }
.ns-dialog-title { margin: 0; font-size: 1.45rem; line-height: 1.25; font-weight: 800; }
.ns-dialog-body { margin-top: 12px; color: #475569; line-height: 1.65; }
.ns-dialog-body:empty { display: none; }
.ns-dialog-actions { display:flex; flex-wrap:wrap; gap:10px; justify-content:center; margin-top:22px; }
.ns-dialog-button {
  min-width: 112px;
  padding: 11px 18px;
  border: 0;
  border-radius: 12px;
  background: #0f766e;
  color: white;
  font-weight: 750;
}
.ns-dialog-button:hover { filter: brightness(.96); }
.ns-dialog-button--cancel { background:#e2e8f0; color:#334155; }
.ns-dialog-validation { margin-top:12px; padding:10px 12px; border-radius:10px; background:#fef2f2; color:#b91c1c; font-size:.9rem; }
.ns-dialog-spinner { width:30px; height:30px; margin:18px auto 0; border:3px solid #cbd5e1; border-top-color:#0f766e; border-radius:50%; animation:nsSpin .7s linear infinite; }
.ns-dialog-toast {
  position: fixed;
  z-index: 10001;
  top: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(390px, calc(100vw - 36px));
  padding: 14px 16px;
  border-radius: 14px;
  background:#fff;
  color:#0f172a;
  box-shadow:0 18px 50px rgba(2,6,23,.22);
  border-left:5px solid #0f766e;
  animation:nsToastIn .2s ease-out;
}
.ns-dialog-toast--error { border-left-color:#dc2626; }
.ns-dialog-toast--warning { border-left-color:#d97706; }
.ns-dialog-toast--info { border-left-color:#2563eb; }
.ns-dialog-toast strong { display:block; }
.swal2-input,
.swal2-select,
.swal2-textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  outline: none;
}
.swal2-input:focus,
.swal2-select:focus,
.swal2-textarea:focus { border-color:#0f766e; box-shadow:0 0 0 3px rgba(13,148,136,.14); }
.swal2-textarea { min-height:92px; resize:vertical; }
@keyframes nsDialogIn { from { opacity:0; transform:translateY(8px) scale(.98); } }
@keyframes nsToastIn { from { opacity:0; transform:translateY(-8px); } }
@keyframes nsSpin { to { transform:rotate(360deg); } }
@media (max-width: 560px) {
  .ns-dialog-overlay { align-items:flex-end; padding:10px; }
  .ns-dialog { padding:22px 17px; border-radius:22px 22px 14px 14px; }
  .ns-dialog-button { flex:1; }
}
