/* common */
#ac-search div.custom-select{
  display: none;
}
#acat .d-none {
  display: none !important;
}
#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: rgba(243, 109, 55, 1) !important;
  color: black;
}

#ac-parts-table .selected {
  font-weight: bold;
  background: rgba(243, 109, 55, 1) !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%;
}

/* 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);
  }
}


/* Pagination */

.acat-picture__navigate {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin: 10px 0;
}

.acat-picture__navigate-item svg {
    width: 18px;
    height: 18px;
    fill: #428bca;
}

.acat-picture__navigate-item {
    display: flex;
    flex-direction: row;
    gap: 5px;
    align-items: center;
}

/* Zooming */

#btn-toolbar {
    margin: 10px 0;
}

#btn-toolbar .btn-group {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

#btn-toolbar .btn-group svg {
    width: 20px;
    height: 20px;
}

#btn-toolbar .btn-group svg,
.acat-picture__navigate-item svg {
    fill: #02689d;
    transition: all .5s;
}

#btn-toolbar .btn-group:hover svg,
.acat-picture__navigate-item:hover svg {
    fill: #03a5d6;
}

#btn-toolbar .btn-group .btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    background: transparent;
    padding: 0;
    margin: 0;
    line-height: 0;
}

#btn-toolbar .btn-group .btn,
.acat-picture__navigate-item {
    color: #02689d;
    transition: all .5s;
}

#btn-toolbar .btn-group .btn:hover,
.acat-picture__navigate-item:hover {
    color: #03a5d6;
}

#btn-toolbar .btn-group .btn:active {
    -webkit-box-shadow: unset;
    box-shadow: unset;
}

@media screen and (max-width: 768px) {
    #btn-toolbar .btn-group .btn span,
    .acat-picture__navigate-item span {
        display: none;
    }
}
