/* common */

#acat .card {
  width: 150px;
  margin: 10px;
  font-size: 12px;
}

#acat .card:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

#acat .card-footer {
  height: 100%;
}

#acat .card-text {
  padding: 5px;
}

#acat .card a {
  color: initial;
  text-decoration: initial;
  background-color: transparent;
}

#acat .card a:hover {
  color: initial;
  text-decoration: initial;
  background-color: transparent;
}

#acat .icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  stroke-width: 0;
  stroke: currentColor;
  fill: currentColor;
}

/* page groups */

#ac-groups img {
  width: 120px;
  height: 80px;
  margin: 10px auto;
}

/* page marks */

#ac-marks img {
  width: 32px;
  height: 32px;
  margin: 10px auto;
}

/* page models */

#ac-models select {
  width: 250px;
}

@media screen and (max-width: 576px) {
  #ac-models select {
    width: 150px;
  }
}

#ac-models img {
  width: 120px;
  height: 80px;
  margin: 10px auto;
}

/* page picture tree */

#ac-pictures li {
  cursor: pointer;
}

#ac-pictures .ac-icon {
  margin-right: 10px;
}

#ac-pictures .ac-subgroup {
  margin-left: 20px;
}

#ac-pictures .ac-picture {
  margin-left: 20px;
}

#ac-pictures .ac-model-img {
  height: 80px;
  width: 120px;
  margin: 5px auto;
  display: block;
}

/* page picture */

#ac-picture-container {
  width: 100%;
  width: calc(100% - 2px);
  height: 500px;
  position: relative;
  overflow: scroll;
  border: lightgray solid 1px;
  scrollbar-width: none;
}

@media screen and (max-width: 576px) {
  #ac-picture-container {
    height: 250px;
  }
}

#ac-picture-container::-webkit-scrollbar {
  display: none;
}

#ac-picture {
  position: absolute;
  left: 0px;
  top: 0px;
  cursor: move;
}

#ac-picture img {
  float: left;
  max-width: initial;
}

.ac-part-rectangle {
  position: absolute;
  border: black solid 1px;
  text-align: center;
  font-size: 16px;
  -ms-border-radius: 2px;
  border-radius: 2px;
  font-weight: bold;
  overflow: hidden;
  white-space: nowrap;
  cursor: pointer;
  background: white;
}

#ac-picture .selected {
  background: #b32825 !important;
  color: white !important;
}

#ac-parts-table .selected {
  font-weight: bold;
  background: #b32825 !important;
  color: white !important;
}

#ac-parts-table .selected a {
  color: white !important;
}

#ac-parts-table > tbody > tr {
  cursor: default;
}

#ac-parts-table > tbody > tr > td {
  vertical-align: middle;
}

#ac-details .modal-body div {
  margin-top: 10px;
}

#ac-parts-table .icon {
  vertical-align: middle;
}

#ac-parts-table .offers table {
  width: 100%;
  font-size: 12px;
  margin-bottom: 0;
}

#ac-parts-table .preview {
  width: 50px;
  height: 50px;

  background-size: contain;
  background-repeat: no-repeat;
  background-position: 50% 50%;
}
.ac-modal.show {
    display: block !important;

/* page search */

#ac-search select {
  width: 250px !important;
}

#ac-search #ac-search-mode {
  max-width: 250px;
}

@media screen and (max-width: 576px) {
  #ac-search #input-search {
    width: 100%;
  }
  #ac-search #ac-search-mode {
    max-width: 100%;
  }
}

#ac-search .glyphicon-refresh-animate {
  -webkit-animation: spin 0.7s infinite linear;
  animation: spin 0.7s infinite linear;
}

@-webkit-keyframes spin {
  from {
    -webkit-transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(360deg);
  }
}

@keyframes spin {
  from {
    transform: scale(1) rotate(0deg);
  }
  to {
    transform: scale(1) rotate(360deg);
  }
}