/* Barcodesite — splash, async loaders & DataTables */

.bs-preloader-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f7fa;
}

.bs-preloader-overlay--async {
  z-index: 999999;
  background: rgba(245, 247, 250, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.bs-preloader-overlay--process {
  z-index: 9999;
  background: rgba(245, 247, 250, 0.88);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.bs-preloader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.35rem;
}

.bs-preloader__stage {
  position: relative;
  width: 7.5rem;
  height: 7.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bs-preloader__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: #0a4ca2;
  border-right-color: rgba(10, 76, 162, 0.15);
  animation: bs-preloader-spin 1.1s cubic-bezier(0.5, 0.1, 0.4, 0.9) infinite;
}

.bs-preloader__ring--inner {
  inset: 0.55rem;
  border-top-color: transparent;
  border-right-color: transparent;
  border-bottom-color: rgba(29, 76, 100, 0.55);
  border-left-color: rgba(10, 76, 162, 0.1);
  animation-direction: reverse;
  animation-duration: 0.85s;
}

.bs-preloader__logo {
  position: relative;
  z-index: 1;
  width: auto;
  max-width: 5.5rem;
  height: 2.75rem;
  object-fit: contain;
  animation: bs-preloader-breathe 2s ease-in-out infinite;
  filter: drop-shadow(0 4px 14px rgba(10, 76, 162, 0.12));
}

.bs-preloader__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 0.5rem;
}

.bs-preloader__dot {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: #0a4ca2;
  opacity: 0.25;
  animation: bs-preloader-dot 1.2s ease-in-out infinite;
}

.bs-preloader__dot:nth-child(2) {
  animation-delay: 0.15s;
}

.bs-preloader__dot:nth-child(3) {
  animation-delay: 0.3s;
}

/* Compact loader for DataTables */
.bs-dt-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  min-width: 8.5rem;
}

.bs-dt-loader__stage {
  position: relative;
  width: 4.5rem;
  height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bs-dt-loader__stage .bs-preloader__ring {
  border-top-color: #0a4ca2;
  border-right-color: rgba(10, 76, 162, 0.15);
}

.bs-dt-loader__stage .bs-preloader__ring--inner {
  inset: 0.4rem;
  border-bottom-color: rgba(29, 76, 100, 0.5);
}

.bs-dt-loader__logo {
  max-width: 3.25rem;
  height: 1.65rem;
}

.bs-dt-loader__label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #0a4ca2;
  letter-spacing: 0.02em;
}

@keyframes bs-preloader-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes bs-preloader-breathe {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}

@keyframes bs-preloader-dot {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.25;
  }
  40% {
    transform: translateY(-0.35rem);
    opacity: 1;
  }
}

/* DataTables processing overlay */
.dataTables_wrapper {
  position: relative;
}

.dataTables_wrapper div.dataTables_processing {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%);
  width: auto !important;
  height: auto !important;
  min-width: 10rem;
  margin: 0 !important;
  padding: 0.85rem 1rem !important;
  z-index: 20 !important;
  color: transparent !important;
  background: rgba(255, 255, 255, 0.97) !important;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(10, 76, 162, 0.12);
  display: none;
  align-items: center;
  justify-content: center;
}

.dataTables_wrapper.processing div.dataTables_processing {
  display: flex !important;
}
