/* Xeus POS v3.7.3.166 · UI Guard · Toasts más rápidos
   Toast nativo estable + feedback de modales estáticos.
   Clases exclusivas para evitar interferencia de estilos heredados. */
#xeus-toast-v118-host{
  position:fixed!important;
  top:74px!important;
  right:16px!important;
  z-index:2147483600!important;
  width:min(390px,calc(100vw - 28px))!important;
  max-width:calc(100vw - 28px)!important;
  display:flex!important;
  flex-direction:column!important;
  gap:10px!important;
  pointer-events:none!important;
}
.xeus-toast-v118{
  --xt-accent:#2563eb;
  --xt-soft:#eff6ff;
  --xt-border:#bfdbfe;
  position:relative!important;
  box-sizing:border-box!important;
  width:100%!important;
  min-height:64px!important;
  display:grid!important;
  grid-template-columns:42px minmax(0,1fr) 30px!important;
  align-items:center!important;
  column-gap:11px!important;
  padding:10px 10px 10px 12px!important;
  border:1px solid var(--xt-border)!important;
  border-left:4px solid var(--xt-accent)!important;
  border-radius:14px!important;
  background:#fff!important;
  color:#172033!important;
  box-shadow:0 14px 34px rgba(15,23,42,.20)!important;
  overflow:hidden!important;
  pointer-events:auto!important;
  opacity:0!important;
  transform:translate3d(16px,-4px,0) scale(.985)!important;
  transition:opacity .12s ease,transform .12s ease!important;
}
.xeus-toast-v118.is-visible{opacity:1!important;transform:translate3d(0,0,0) scale(1)!important}
.xeus-toast-v118.is-leaving{opacity:0!important;transform:translate3d(14px,-3px,0) scale(.99)!important}
.xeus-toast-v118--success{--xt-accent:#15803d;--xt-soft:#ecfdf3;--xt-border:#bbf7d0}
.xeus-toast-v118--error{--xt-accent:#dc2626;--xt-soft:#fff1f2;--xt-border:#fecdd3}
.xeus-toast-v118--warning{--xt-accent:#b45309;--xt-soft:#fffbeb;--xt-border:#fde68a}
.xeus-toast-v118--info{--xt-accent:#2563eb;--xt-soft:#eff6ff;--xt-border:#bfdbfe}
.xeus-toast-v118--question{--xt-accent:#6d28d9;--xt-soft:#f5f3ff;--xt-border:#ddd6fe}
.xeus-toast-v118__icon{
  width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  margin:0!important;padding:0!important;box-sizing:border-box!important;
  border-radius:50%!important;border:1px solid var(--xt-border)!important;
  background:var(--xt-soft)!important;color:var(--xt-accent)!important;
  overflow:hidden!important;
}
.xeus-toast-v118__icon svg{display:block!important;width:22px!important;height:22px!important;stroke:currentColor!important;fill:none!important;stroke-width:2.35!important;stroke-linecap:round!important;stroke-linejoin:round!important}
.xeus-toast-v118__content{min-width:0!important;display:flex!important;flex-direction:column!important;justify-content:center!important;gap:2px!important}
.xeus-toast-v118__title{margin:0!important;padding:0!important;color:#172033!important;font-size:.91rem!important;font-weight:750!important;line-height:1.25!important;text-align:left!important;white-space:normal!important;overflow-wrap:anywhere!important}
.xeus-toast-v118__message{margin:0!important;padding:0!important;color:#64748b!important;font-size:.79rem!important;line-height:1.28!important;text-align:left!important;white-space:normal!important;overflow-wrap:anywhere!important}
.xeus-toast-v118__close{
  width:28px!important;height:28px!important;min-width:28px!important;min-height:28px!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  margin:0!important;padding:0!important;border:0!important;border-radius:8px!important;
  background:transparent!important;color:#64748b!important;cursor:pointer!important;
}
.xeus-toast-v118__close svg{width:18px!important;height:18px!important;display:block!important;stroke:currentColor!important;fill:none!important;stroke-width:2!important;stroke-linecap:round!important}
.xeus-toast-v118__close:hover,.xeus-toast-v118__close:focus-visible{background:#f1f5f9!important;color:#0f172a!important;outline:none!important}
.xeus-toast-v118--no-close{grid-template-columns:42px minmax(0,1fr)!important}
.xeus-toast-v118__progress{position:absolute!important;left:0!important;right:0!important;bottom:0!important;height:3px!important;background:rgba(148,163,184,.14)!important;overflow:hidden!important}
.xeus-toast-v118__progress>span{display:block!important;width:100%!important;height:100%!important;background:var(--xt-accent)!important;transform-origin:left center!important}
@keyframes xeusToastV118Progress{from{transform:scaleX(1)}to{transform:scaleX(0)}}

/* Ocultar cualquier toast SweetAlert residual si un módulo externo logra crearlo.
   Los diálogos SweetAlert normales NO se alteran. */
.swal2-container.swal2-top-end>.swal2-popup.swal2-toast,
.swal2-container.swal2-top-right>.swal2-popup.swal2-toast{display:none!important}

/* Feedback profesional al intentar salir por fuera/Escape. */
.modal.xeus-modal-hardlocked.xeus-modal-static-feedback .modal-content{
  animation:xeusModalV118Feedback .18s ease-out!important;
}
@keyframes xeusModalV118Feedback{
  0%,100%{transform:scale(1);box-shadow:0 .8rem 2rem rgba(15,23,42,.20)}
  50%{transform:scale(.994);box-shadow:0 0 0 4px rgba(79,70,229,.20),0 .8rem 2rem rgba(15,23,42,.20)}
}
@media(max-width:575.98px){
  #xeus-toast-v118-host{top:64px!important;right:6px!important;width:calc(100vw - 12px)!important;max-width:calc(100vw - 12px)!important;gap:7px!important}
  .xeus-toast-v118{min-height:58px!important;grid-template-columns:38px minmax(0,1fr) 28px!important;column-gap:9px!important;padding:9px 8px 9px 9px!important;border-radius:12px!important}
  .xeus-toast-v118__icon{width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important}
  .xeus-toast-v118__icon svg{width:20px!important;height:20px!important}
  .xeus-toast-v118__title{font-size:.85rem!important}.xeus-toast-v118__message{font-size:.75rem!important}
}

/* --------------------------------------------------------------------------
   v3.7.3.120 · Confirmación final de venta compacta
   --------------------------------------------------------------------------
   El diálogo final de la venta no necesita icono/ilustración superior. Todo el
   espacio vertical se reserva a los datos que el cajero debe revisar. */
.swal2-popup.xeus-sale-confirm-popup{
  width:min(500px,calc(100vw - 18px))!important;
  max-width:calc(100vw - 18px)!important;
  padding:.72rem .85rem .82rem!important;
  border-radius:14px!important;
  box-sizing:border-box!important;
}
.swal2-popup.xeus-sale-confirm-popup>.swal2-icon{
  display:none!important;
  width:0!important;height:0!important;min-width:0!important;min-height:0!important;
  margin:0!important;padding:0!important;border:0!important;
}
.swal2-popup.xeus-sale-confirm-popup .xeus-sale-confirm-title,
.swal2-popup.xeus-sale-confirm-popup .swal2-title{
  margin:0 0 .48rem!important;
  padding:0!important;
  font-size:1.2rem!important;
  line-height:1.18!important;
  font-weight:800!important;
  color:#172033!important;
}
.swal2-popup.xeus-sale-confirm-popup .xeus-sale-confirm-html,
.swal2-popup.xeus-sale-confirm-popup .swal2-html-container{
  margin:0!important;
  padding:0!important;
  max-height:calc(100dvh - 132px)!important;
  overflow-y:auto!important;
  overscroll-behavior:contain!important;
}
.xeus-sale-confirm-body{margin:0!important;padding:0!important;font-size:.91rem!important;line-height:1.22!important}
.xeus-sale-confirm-total{
  margin:0 0 .55rem!important;
  padding:.62rem .75rem!important;
  text-align:center!important;
  border:1px solid #d8d5ff!important;
  border-radius:11px!important;
  background:linear-gradient(135deg,#eef2ff,#f5f3ff)!important;
}
.xeus-sale-confirm-total-label{
  margin:0 0 .08rem!important;
  color:#667085!important;
  font-size:.72rem!important;
  line-height:1.15!important;
  font-weight:800!important;
  letter-spacing:.015em!important;
  text-transform:uppercase!important;
}
.xeus-sale-confirm-total-value{
  margin:0!important;
  color:#4f46e5!important;
  font-size:2rem!important;
  line-height:1.05!important;
  font-weight:850!important;
}
.xeus-sale-confirm-card{
  margin:0 0 .52rem!important;
  padding:.56rem .72rem!important;
  border:1px solid #dee3ea!important;
  border-radius:11px!important;
  background:#fff!important;
}
.xeus-sale-confirm-card>.d-flex{min-height:24px!important;padding-top:.12rem!important;padding-bottom:.12rem!important;align-items:center!important}
.xeus-sale-confirm-card--credit{margin-bottom:.42rem!important}
.xeus-sale-confirm-note{
  margin:.28rem 0 0!important;
  color:#667085!important;
  font-size:.78rem!important;
  line-height:1.2!important;
  text-align:center!important;
}
.swal2-popup.xeus-sale-confirm-popup .xeus-sale-confirm-actions,
.swal2-popup.xeus-sale-confirm-popup .swal2-actions{
  width:100%!important;
  margin:.62rem 0 0!important;
  padding:0!important;
  gap:.48rem!important;
}
.swal2-popup.xeus-sale-confirm-popup .swal2-styled{
  min-height:38px!important;
  margin:0!important;
  padding:.48rem .82rem!important;
  border-radius:8px!important;
  font-size:.84rem!important;
  line-height:1.1!important;
}
@media(max-width:575.98px){
  .swal2-popup.xeus-sale-confirm-popup{
    width:calc(100vw - 10px)!important;
    max-width:calc(100vw - 10px)!important;
    padding:.58rem .62rem .65rem!important;
    border-radius:12px!important;
  }
  .swal2-popup.xeus-sale-confirm-popup .xeus-sale-confirm-title,
  .swal2-popup.xeus-sale-confirm-popup .swal2-title{
    margin-bottom:.38rem!important;
    font-size:1.04rem!important;
  }
  .swal2-popup.xeus-sale-confirm-popup .xeus-sale-confirm-html,
  .swal2-popup.xeus-sale-confirm-popup .swal2-html-container{
    max-height:calc(100dvh - 112px)!important;
  }
  .xeus-sale-confirm-body{font-size:.84rem!important}
  .xeus-sale-confirm-total{margin-bottom:.42rem!important;padding:.48rem .58rem!important;border-radius:9px!important}
  .xeus-sale-confirm-total-label{font-size:.66rem!important}
  .xeus-sale-confirm-total-value{font-size:1.72rem!important}
  .xeus-sale-confirm-card{margin-bottom:.4rem!important;padding:.44rem .56rem!important;border-radius:9px!important}
  .xeus-sale-confirm-card>.d-flex{min-height:21px!important;padding-top:.08rem!important;padding-bottom:.08rem!important}
  .xeus-sale-confirm-note{font-size:.71rem!important;margin-top:.22rem!important}
  .swal2-popup.xeus-sale-confirm-popup .xeus-sale-confirm-actions,
  .swal2-popup.xeus-sale-confirm-popup .swal2-actions{margin-top:.48rem!important;gap:.36rem!important}
  .swal2-popup.xeus-sale-confirm-popup .swal2-styled{min-height:36px!important;padding:.42rem .58rem!important;font-size:.78rem!important}
}

/* v3.7.3.132 · foco guiado cuando Crédito requiere cliente */
#posCheckoutChangeClientButton.xeus-client-required-focus{border-color:#dc3545!important;color:#b42318!important;box-shadow:0 0 0 .22rem rgba(220,53,69,.18)!important;animation:xeusClientRequiredPulse .72s ease-in-out 2}
@keyframes xeusClientRequiredPulse{50%{transform:scale(1.035);box-shadow:0 0 0 .32rem rgba(220,53,69,.12)}}
