/* Full-screen busy overlay (paired with js/pos-ui.js) */
body.pos-ui-loading {
  cursor: wait;
}

.pos-global-loading {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
}

.pos-global-loading[hidden] {
  display: none !important;
}

.pos-global-loading__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(2px);
}

.pos-global-loading__box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  padding: 1.35rem 1.75rem;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  z-index: 1;
}

.pos-global-loading__spinner {
  width: 2rem;
  height: 2rem;
  border: 3px solid #e5e7eb;
  border-top-color: #2d2d2d;
  border-radius: 50%;
  animation: pos-ui-spin 0.7s linear infinite;
}

@keyframes pos-ui-spin {
  to {
    transform: rotate(360deg);
  }
}

.pos-global-loading__text {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
}

/* Toastr: tighter fit with POS */
#toast-container.toast-top-right {
  top: max(1rem, env(safe-area-inset-top));
  right: max(1rem, env(safe-area-inset-right));
}

#toast-container > div {
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  opacity: 1;
}

.toast-success {
  background-color: #14532d !important;
}

.toast-error {
  background-color: #7f1d1d !important;
}

.toast-info {
  background-color: #1e3a5f !important;
}

.toast-warning {
  background-color: #78350f !important;
}
