.center {
  text-align: center;
}

/* Select2 Dropdown completo */
.select2-container {
  z-index: 1060;
  /* Valor estándar para modales y dropdowns en BS5 */
}

/* Unificación de altura a 50px para Select2 e Inputs */
.select2-container--bootstrap-5 .select2-selection,
.form-control.h-55 {
  height: 50px !important;
  min-height: 50px !important;
}

.select2-container--bootstrap-5 .select2-selection {
  display: flex !important;
  align-items: center !important;
  border: 1px solid #ECEEF2 !important;
  border-radius: 8px !important;
  padding-left: 2.8rem !important;
  background-color: #ffffff !important;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
  padding-left: 0 !important;
  line-height: 50px !important;
  color: #3A4252 !important;
  font-size: 0.88rem !important;
  font-weight: 400 !important;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__arrow {
  height: 50px !important;
  width: 40px !important;
}

.select2-dropdown {
  z-index: 1070 !important;
}

/* Evitar que contenedores corten el dropdown */
.main-content-container {
  overflow: visible !important;
}

.card-body {
  overflow: visible !important;
}


/* === MODAL DE CARGANDO === */
#WindowLoad {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(0, 0, 0, 0.8) !important;
  z-index: 99999 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  overflow: hidden !important;
}

/*  #WindowLoad .msjcargando {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    margin-top: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  }

  #WindowLoad .texto {
    color: #ffffff;
    font-size: 16px;
    line-height: 1.6;
    padding: 10px 20px;
  }*/
#WindowLoad .msjcargando {
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  /* Aumentar peso */
  text-align: center;
  margin-top: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9), 0 0 15px rgba(255, 255, 255, 0.4);
  /* Sombra mejorada */
  letter-spacing: 0.5px;
  /* Mejor legibilidad */
}

#WindowLoad .texto {
  color: #ffffff;
  font-size: 16px;
  line-height: 1.6;
  padding: 10px 20px;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
  /* Agregar sombra también al texto */
}

#WindowLoad img {
  display: block;
  margin: 0 auto;
  max-width: 200px;
  height: auto;
}

#focusInput {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Botones Flotantes Premium */
.floating-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-end;
}

.btn-floating-ventas,
.btn-floating-ai {
  display: flex;
  align-items: center;
  justify-content: center;
  color: white !important;
  padding: 12px 24px;
  border-radius: 50px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  text-decoration: none !important;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-floating-ventas {
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 100%);
}

.btn-floating-ai {
  background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
}

.btn-floating-ventas:hover,
.btn-floating-ai:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
}

.btn-floating-ventas:hover {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
}

.btn-floating-ai:hover {
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
}

.btn-floating-ventas i,
.btn-floating-ai i {
  font-size: 1.25rem;
  margin-right: 8px;
}

@media (max-width: 768px) {
  .floating-container {
    bottom: 20px;
    right: 20px;
    gap: 10px;
  }

  .btn-floating-ventas span,
  .btn-floating-ai span {
    display: none;
  }

  .btn-floating-ventas,
  .btn-floating-ai {
    padding: 14px;
    border-radius: 50%;
    width: 54px;
    height: 54px;
  }

  .btn-floating-ventas i,
  .btn-floating-ai i {
    margin-right: 0;
  }
}