/* Disable button only when the email input in the same row is invalid */
.col-12.col-md-5:has(input[type="email"]:invalid) ~ .col-12.col-md-2 button {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.fire-watch {
  background-color: #ffeae5;
  border: 1px solid #fce4ec;
  padding: 15px;
  border-radius: 5px;
}

.vue3-autocomplete-container {
  flex: 1;
}

.strong {
  font-weight: bold;
}

.bg-success-light {
  background-color: rgb(159, 223, 159);
}

.bg-warning-light {
  background-color: rgb(255, 230, 179);
}

.strikethrough {
  text-decoration: line-through;
}

.replacement-note .replacement {
  display: block;
}

.replacement-note .moved-qty {
  display: block;
  margin-left: 2rem;
}

.nowrap {
  white-space: nowrap;
}

table tr td:not(.text-light) {
  color: #212529;
}

tr.clickable.strong.bg-success.text-light td {
  color: #fff;
}

.day-row-separator {
  border-bottom: 4px solid #3551f3;
}

.bg-danger-light {
  --bs-bg-opacity: 0.2;
  background-color: rgba(var(--bs-danger-rgb), var(--bs-bg-opacity)) !important;
}

.badge-info {
  color: #fff;
  background-color: #17a2b8;
}

input:invalid,
.is-invalid {
  border: #ffc107 solid 2px !important;
}

.clickable {
  cursor: pointer;
}

.blink-save-icon {
  display: inline-block;
  margin-right: 0.35rem;
  animation: blink-save 2s steps(1, end) infinite;
}

@keyframes blink-save {
  50% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blink-save-icon {
    animation: none;
  }
}

/* BARCODE CSS */

@media print {
  .page-break {
    page-break-inside: avoid;
    page-break-before: always;
  }
}

.card-qrcode {
  display: block;
  border-right: 2px #000 solid;

  img {
    width: 140px;
    margin-top: 10px;
  }

  ul {
    padding: 0;
    margin: 0;

    li {
      list-style: none;
    }
  }

  h5 {
    font-size: 14px;
    margin-top: 4px;
  }
}

.barcode {
  max-width: 450px;
}

.qr-img img,
.barcode svg {
  width: 130px;
  height: 130px;
}

.barcode h2 {
  font-size: 15px;
  margin: 0;
}

.devicebarcode.barcode {
  .end-box {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
  }

  h2 {
    font-size: 36px;
    line-height: 34px;
  }

  h3 {
    width: 100%;
    font-weight: normal;
    font-size: 22px;
  }

  h6 {
    margin-bottom: 0;
    margin-right: 10px;
    font-size: 16px;
  }

  .qr-img {
    img {
      margin-left: -15px;
    }
  }
}

.end-box {
  margin-bottom: 20px;

  h6 {
    font-size: 12px;
  }

  .mar-item {
    h6 {
      margin-right: 10px;
    }

    h2 {
      margin-right: 30px;
    }
  }
}

@media print {
  .barcode {
    width: 404px;
    height: 192px;
  }
}

/* END BARCODE CSS */

.full-screen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 1250;
  align-items: center;
  justify-content: center;
  display: none;
}

.show-loader .full-screen-overlay {
  display: flex;
}

.smt {
  font-size: 0.7rem !important;
  background-color: rgb(240, 240, 240) !important;
}

.w-5 {
  width: 5% !important;
}

.w-10 {
  width: 10% !important;
}

.w-15 {
  width: 15% !important;
}

.w-20 {
  width: 20% !important;
}

.w-30 {
  width: 30% !important;
}

label {
  font-size: 14px !important;
}

.vue3-results-container {
  position: absolute;
  background: #fff;
  min-width: 20rem;
  padding: 0.5rem 0;
  margin: 0.125rem 0 0;
  font-size: 1rem;
  color: #212529;
  text-align: left;
  list-style: none;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 0.25rem;
  z-index: 100;
}

@media (max-width: 768px) {
  .vue3-results-container {
    min-width: 100%;
  }

  .upload-img-link {
    display: inline-block;
    width: 140px;
    white-space: nowrap;
    overflow: hidden !important;
    text-overflow: ellipsis;
  }
}

@media (min-width: 768px) {
  .filter-customer-entity input,
  .filter-customer-entity span {
    width: 246%;
  }
}

.vue3-results-item {
  display: block;
  width: 100%;
  padding: 0.25rem 1.5rem;
  clear: both;
  font-weight: 400;
  color: #212529;
  background-color: transparent;
  border: 0;
  cursor: pointer;
}

.vue3-results-item:hover {
  background-color: #f8f9fa;
}

@media print {
  html,
  body,
  .container,
  .container-md,
  .container-sm,
  .row,
  .col-lg-6,
  .full-screen-overlay {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100%;
    width: 100%;
  }

  div.mt-2 {
    margin-top: 0 !important;
  }

  .navbar-light {
    display: none;
  }

  @page {
    margin: 0;
  }

  .page-break {
    page-break-inside: avoid;
    page-break-before: always;
  }
}

/* Table sort indicators */

th.sortable {
  position: relative;
  cursor: pointer;
}

th.sortable::after {
  content: "\2195";
  position: absolute;
  right: 8px;
  color: #999;
}

th.sortable.asc::after {
  content: "\25BC";
}

th.sortable.desc::after {
  content: "\25B2";
}

th.sortable:hover::after {
  color: #333;
}

.table-sticky-header thead {
  position: sticky;
  top: 0;
}

/* Sign page */

[v-cloak] {
  display: none;
}

.sign-page {
  background: #f7f7f7;
}

/* Signature */

.signature-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 16px;
}

.signature-canvas {
  width: 100%;
  border: 1px dashed #c9c9c9;
  border-radius: 6px;
  touch-action: none;
}
