﻿html {
  font-size: 14px;
  --bs-body-line-height: 1.25;
}

body {
  --bs-body-line-height: 1.25;
}

footer {
  min-height: 30vh;
}

.validation-summary-errors {
  color: rgba(var(--bs-danger-rgb), 1);
}

.table {
  --bs-table-hover-bg: #f4f4f4;
}

.progress, .progress-stacked {
  --bs-progress-bar-transition: width 0.05s ease;
}

.faded {
  opacity: 0.5;
}

.fade-quicker {
  transition: opacity 0.05s linear;
}

.modal.fade-quicker .modal-dialog {
  transition: transform 0.1s ease-out;
}

.checkbox-large {
  width: 32px;
  height: 32px;
}

.image-preview-box {
  position: absolute; /* position on the page */
  display: grid; /* allows overlap while sizing to children */
  max-width: 90vw;
  max-height: 50vh;
  pointer-events: none;
  z-index: 1060; /* Bootstrap modals are 1050 */
  background: white;
}
.image-preview-box > img {
  grid-area: 1/1;
  pointer-events: none;
  border: 1px solid black;
  min-height: 2em;
  min-width: 2em;
  max-width: 90vw;
  max-height: 50vh;
}

.form-check-input-lg {
  height: 2em;
  width: 2em;
}

.form-check-input.warning:checked[type=checkbox] {
  background-color: orange;
  border-color: orange;
}

.form-check-input.danger:checked[type=checkbox] {
  background-color: red;
  border-color: red;
  --bs-form-check-bg-image: url("data:image/svg+xml,%3Csvg clip-rule='evenodd' fill-rule='evenodd' fill='white' stroke-linejoin='round' stroke-miterlimit='2' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m12 10.93 5.719-5.72c.146-.146.339-.219.531-.219.404 0 .75.324.75.749 0 .193-.073.385-.219.532l-5.72 5.719 5.719 5.719c.147.147.22.339.22.531 0 .427-.349.75-.75.75-.192 0-.385-.073-.531-.219l-5.719-5.719-5.719 5.719c-.146.146-.339.219-.531.219-.401 0-.75-.323-.75-.75 0-.192.073-.384.22-.531l5.719-5.719-5.72-5.719c-.146-.147-.219-.339-.219-.532 0-.425.346-.749.75-.749.192 0 .385.073.531.219z'/%3E%3C/svg%3E");
}

.form-control:read-only {
  background-color: #f3f3f3;
}

.mvh-5 {
  max-height: 5vh;
}

.mvh-10 {
  max-height: 10vh;
}

.max-width-height-100px {
  max-width: 100px;
  max-height: 100px;
}

.max-width-400px {
  max-width: 400px;
}

.max-width-800px {
  max-width: 800px;
}

.img-inline {
  display: inline;
  position: relative;
  height: 1em;
  width: auto;
}

.small {
  line-height: 1.1;
}

pre.json-output {
  padding: 10px;
  background-color: #f5f5f5;
  border: 1px solid #ccc;
  border-radius: 5px;
  white-space: pre-wrap;
  word-wrap: break-word;
  text-align: left;
}
pre.json-output .string {
  color: green;
}
pre.json-output .number {
  color: darkorange;
}
pre.json-output .boolean {
  color: blue;
}
pre.json-output .null {
  color: magenta;
}
pre.json-output .key {
  color: red;
}

.MaxLengthCounter {
  font-size: small;
  opacity: 0.75;
}

.APCProductBrowser .img-thumbnail {
  max-width: 100px;
  max-height: 100px;
}

.multiselect {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.multiselect-container {
  max-height: 400px;
  overflow-y: scroll;
  box-shadow: 0px 6px 9px #a9a9a9;
}

.dataTables_wrapper.dt-bootstrap5 > .row:first-child {
  background-color: rgb(248, 249, 250) !important;
  padding-top: 10px;
  padding-bottom: 5px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  border: 1px solid #d2d2d2;
}
.dataTables_wrapper.dt-bootstrap5 > .row.dt-row {
  border-left: 1px solid #d2d2d2;
  border-right: 1px solid #d2d2d2;
}
.dataTables_wrapper.dt-bootstrap5 > .row:last-child {
  border-left: 1px solid #d2d2d2;
  border-right: 1px solid #d2d2d2;
  border-bottom: 1px solid #d2d2d2;
}
.dataTables_wrapper.dt-bootstrap5 .dataTables_length > label {
  display: flex;
  justify-content: start;
  align-items: center;
}
.dataTables_wrapper.dt-bootstrap5 .dataTables_length > label > select.form-select {
  width: auto;
}
.dataTables_wrapper.dt-bootstrap5 .dataTables_filter {
  text-align: right;
}
.dataTables_wrapper.dt-bootstrap5 .dataTables_filter > label {
  display: flex;
  justify-content: end;
  align-items: center;
}

.Container_MINI360Preview {
  width: 100%;
  min-height: 570px;
  border: 1px solid black;
  user-select: none;
  position: relative;
  display: block;
}
.Container_MINI360Preview .angle-label {
  display: block;
  position: absolute;
  pointer-events: none;
  z-index: 3;
  top: 22px;
  left: 22px;
  padding: 5px;
  background-color: black;
  border-radius: 7px;
  color: white;
  font-weight: bold;
}
.Container_MINI360Preview .missing-product-layer-label {
  display: block;
  position: absolute;
  pointer-events: none;
  z-index: 3;
  bottom: 22px;
  right: 22px;
  padding: 5px;
  background-color: #f8d7da;
  border-radius: 7px;
  color: #58151c;
  font-weight: bold;
  animation: ping-pong-scale 0.5s ease-in-out infinite alternate;
}
@keyframes ping-pong-scale {
  from {
    transform: scale(1.1);
  }
  to {
    transform: scale(1);
  }
}
.Container_MINI360Preview .loading-symbol {
  display: block;
  position: absolute;
  pointer-events: none;
  z-index: 3;
  top: 22px;
  right: 22px;
  padding: 5px;
  background-color: #ffffff;
  border-radius: 7px;
  height: 45px;
}
.Container_MINI360Preview .Button_CycleViewMode {
  display: block;
  position: absolute;
  z-index: 3;
  bottom: 22px;
  left: 22px;
}
.Container_MINI360Preview .product-image-layer-wrapper {
  position: absolute;
  display: block;
  width: 100%;
  top: 0;
  left: 0;
}
.Container_MINI360Preview .product-image-layer-wrapper img {
  width: 100%;
  height: 100%;
}
.Container_MINI360Preview .product-image-layer-wrapper.highlight img {
  animation: highlightBrightness 0.5s ease-in-out infinite alternate;
}
@keyframes highlightBrightness {
  from {
    filter: brightness(0);
  }
  to {
    filter: brightness(5);
  }
}

#drop-zone {
  width: 300px;
  height: 200px;
  border: 2px dashed #ccc;
  border-radius: 8px;
  text-align: center;
  padding: 20px;
  cursor: pointer;
  margin: 50px auto;
}
