/* SweetAlert2 con la paleta de NEXAR Facturación */

/* SweetAlert oculta la barra y empuja el panel. Se anula ese relleno para que no quede un hueco a la derecha. */
body.swal2-shown:not(.swal2-toast-shown) {
  padding-right: 0 !important;
}

div:where(.swal2-container) {
  --swal2-backdrop: rgba(13, 27, 42, 0.55);
  --swal2-background: #ffffff;
  --swal2-color: #0D1B2A;
  --swal2-border-radius: 16px;
  --swal2-width: 28em;
  --swal2-confirm-button-background-color: #0A74DA;
  --swal2-confirm-button-color: #ffffff;
  --swal2-confirm-button-border-radius: 10px;
  --swal2-cancel-button-background-color: #ffffff;
  --swal2-cancel-button-color: #0A74DA;
  --swal2-cancel-button-border-radius: 10px;
  --swal2-timer-progress-bar-background: #0A74DA;
}

div:where(.swal2-container) div:where(.swal2-popup) {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  box-shadow: 0 16px 48px rgba(13, 27, 42, 0.18);
  padding-bottom: 1.35em;
}

div:where(.swal2-container) h2:where(.swal2-title) {
  color: #0D1B2A;
  font-weight: 700;
  font-size: 1.35rem;
}

div:where(.swal2-container) div:where(.swal2-html-container) {
  color: #6B7280;
  font-size: 0.95rem;
  line-height: 1.5;
}

div:where(.swal2-container) button:where(.swal2-styled) {
  font-family: inherit;
  font-weight: 600;
  min-height: 44px;
  padding: 0.6rem 1.25rem;
  box-shadow: none;
}

div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):hover {
  background-color: #0860b8;
}

div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel) {
  border: 2px solid #0A74DA;
  background-color: #ffffff;
  color: #0A74DA;
}

div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):hover {
  background-color: #E8F4FD;
}

div:where(.swal2-container) button.nexar-swal-danger {
  background-color: #EF4444;
  border: none;
  color: #ffffff;
}

div:where(.swal2-container) button.nexar-swal-danger:hover {
  background-color: #dc2626;
}

div:where(.swal2-icon).swal2-warning {
  border-color: #0A74DA;
  color: #0A74DA;
}

div:where(.swal2-icon).swal2-info,
div:where(.swal2-icon).swal2-question {
  border-color: #00C2FF;
  color: #00C2FF;
}

div:where(.swal2-icon).swal2-error {
  border-color: #EF4444;
  color: #EF4444;
}

div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line] {
  background-color: #EF4444;
}

div:where(.swal2-icon).swal2-success {
  border-color: #10B981;
  color: #10B981;
}

div:where(.swal2-icon).swal2-success [class^=swal2-success-line] {
  background-color: #10B981;
}

div:where(.swal2-icon).swal2-success .swal2-success-ring {
  border: 0.25em solid rgba(16, 185, 129, 0.3);
}

div:where(.swal2-container) .swal2-toast {
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(13, 27, 42, 0.14);
}

div:where(.swal2-container) .swal2-toast.nexar-swal-toast-success {
  border-left: 4px solid #10B981;
  --swal2-timer-progress-bar-background: #10B981;
}

div:where(.swal2-container) .swal2-toast.nexar-swal-toast-error {
  border-left: 4px solid #EF4444;
  --swal2-timer-progress-bar-background: #EF4444;
}

div:where(.swal2-container) .swal2-toast h2:where(.swal2-title) {
  font-size: 0.92rem;
  font-weight: 600;
  color: #0D1B2A;
}

body.nexar-app-shell.swal2-toast-shown .swal2-container.swal2-top-end,
body.nexar-app-shell.swal2-toast-shown .swal2-container.swal2-top-right {
  inset: calc(var(--nav-h) + 12px) 12px auto auto;
}
