/* ===============================================================
   Blocco globale durante i caricamenti asincroni
   Ver. 2026.0802.1730
   =============================================================== */
.pms-global-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(241, 245, 249, 0.9);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  cursor: wait;
}

.pms-global-loading-overlay.is-visible {
  display: flex;
}

.pms-global-loading-card {
  width: min(430px, calc(100vw - 48px));
  padding: 26px 30px;
  border: 1px solid #bfdbfe;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 70px rgba(15, 23, 42, 0.24);
  text-align: center;
}

.pms-global-loading-spinner {
  width: 46px;
  height: 46px;
  margin-bottom: 15px;
  border-width: 5px;
}

.pms-global-loading-title {
  color: #0f172a;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.pms-global-loading-text {
  margin-top: 7px;
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.45;
}

body.pms-global-loading-active {
  overflow: hidden;
  cursor: wait;
}

body.pms-global-loading-active > *:not(.pms-global-loading-overlay) {
  user-select: none;
}

@media (max-width: 575.98px) {
  .pms-global-loading-overlay {
    padding: 18px;
  }

  .pms-global-loading-card {
    width: 100%;
    padding: 23px 20px;
  }

  .pms-global-loading-title {
    font-size: 1.14rem;
  }
}
