a:link,
a:visited,
a:hover,
a:active {
  text-decoration: none !important;
}

.rounded,
.select2-selection,
.bootstrap-tagsinput,
.bootstrap-tagsinput>.badge {
  border-radius: 8px !important;
}

.rounded-start,
.select2-selection,
.bootstrap-tagsinput,
.bootstrap-tagsinput>.badge {
  border-top-left-radius: 8px !important;
  border-bottom-left-radius: 8px !important;
}

.rounded-end,
.select2-selection,
.bootstrap-tagsinput,
.bootstrap-tagsinput>.badge {
  border-top-right-radius: 8px !important;
  border-bottom-right-radius: 8px !important;
}

.rounded-top,
.select2-selection,
.bootstrap-tagsinput,
.bootstrap-tagsinput>.badge {
  border-top-left-radius: 8px !important;
  border-top-right-radius: 8px !important;
}

.rounded-bottom,
.select2-selection,
.bootstrap-tagsinput,
.bootstrap-tagsinput>.badge {
  border-bottom-left-radius: 8px !important;
  border-bottom-right-radius: 8px !important;
}

.backgroundImage {
  width: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  z-index: 1;
}

.form-check-input {
  width: 1.2em !important;
  height: 1.2em !important;
}

.form-check-input:active,
.form-check-input:focus,
.btn {
  outline: 0 !important;
  box-shadow: none !important;
}

.list-group-item {
  border: 0px !important;
}

input.showQuantity::-webkit-inner-spin-button,
input.showQuantity::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.sticky-buttons {
  position: sticky;
  top: 0;
  z-index: 1055;
  background-color: white;
  /* para evitar que se mezclen con el fondo */
  border-bottom: 1px solid #dee2e6;
  /* opcional para delimitar visualmente */
}

/* ============================================================
   ETIQUETAS PREMIUM (GLOBAL)
   ============================================================ */
.status-badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 8px;
  color: white;
}

.status-pendiente {
  background-color: #ffc107;
  color: #212529;
}

.status-completada {
  background-color: #28a745;
  color: #fff;
}

/* ============================================================
   ESTADOS VISUALES DE FORMULARIOS (OPACIDAD E INICIALIZACIÓN)
   ============================================================ */
.form-uninitialized-state {
  position: relative;
  opacity: 0.55 !important;
  transition: opacity 0.3s ease, filter 0.3s ease;
  pointer-events: none !important;
  filter: grayscale(15%);
  user-select: none;
}

.form-uninitialized-state input,
.form-uninitialized-state select,
.form-uninitialized-state button,
.form-uninitialized-state .select2-container {
  pointer-events: none !important;
}

.form-ready-state {
  position: relative;
  opacity: 1 !important;
  transition: opacity 0.3s ease, filter 0.3s ease;
  pointer-events: auto !important;
  filter: none !important;
}

.form-uninitialized-notice {
  background-color: #e8f4fd;
  border: 1px solid #b6e0fe;
  color: #084298;
  border-radius: 8px;
  font-size: 0.88rem;
}

/* Modal / Loader de Inicialización de Módulos Ultraligero */
.module-loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(2px);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.25s ease;
}

.module-loader-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

.module-loader-spinner {
  width: 44px;
  height: 44px;
  border: 4px solid #e9ecef;
  border-top: 4px solid #0d6efd;
  border-radius: 50%;
  animation: moduleSpin 0.6s linear infinite;
}

@keyframes moduleSpin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* ============================================================
   EFECTO HOVER PARA AMPLIAR IMÁGENES EN TABLAS Y BÚSQUEDAS
   ============================================================ */
.img-zoom-hover {
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease-in-out;
  cursor: zoom-in;
  position: relative;
  z-index: 10;
}

.img-zoom-hover:hover {
  transform: scale(4);
  z-index: 999999 !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  border-radius: 8px !important;
  background-color: #ffffff;
}

/* Evitar que las filas hermanas o cabeceras tapen la imagen ampliada */
tr:has(.img-zoom-hover:hover),
tr:hover:has(.img-zoom-hover) {
  position: relative;
  z-index: 99999 !important;
}

.table-responsive:has(.img-zoom-hover:hover) {
  overflow: visible !important;
}