/* Error Page  */
.background-svg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #2D3748;
  background: url(../img/errors/bg-desk.svg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: top;
}

.background-svg img {
  max-height: calc(100vh - 100px);
}

.action_button {
  position: absolute;
  width: 100%;
  bottom: 60px;
  text-align: center;
}

@media (max-width: 768px) {
  .background-svg {
    background: url(../img/errors/bg-sm.svg) !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    background-position: top !important;
  }
}

/* //Select2 */
.select2-selection {
  border: solid 2px #ced4da !important;
  border-radius: var(--border-radius);
}

.select2-search__field:focus {
  border-color: var(--bs-primary) !important;
  /* box-shadow: 0 0 0 .25rem rgba(13, 110, 253, .25); */
  box-shadow: none !important;
}

.select2-container--focus .select2-selection,
.select2-container--open .select2-selection {
  border-color: var(--bs-primary) !important;
  box-shadow: none !important;
}

/* Product Scan Video CSS` */

.barcode-scanner {
  width: 100%;
  position: relative;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 6;
  border: 2px dashed #007bff;
  border-radius: 8px;
}

/* Show animation */
.barcode-scanner video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

/* style injected canvas overlays (like barcode box) */
.barcode-scanner canvas {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
}

/* Scanning Line Animation */
.scanner-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: red;
  z-index: 3;
  animation: scanLine 2s infinite linear;
  opacity: 0.8;
}

/* Scan animation keyframes */
@keyframes scanLine {
  0% {
    top: 0;
  }

  50% {
    top: 90%;
  }

  100% {
    top: 0;
  }
}