/* common */

@font-face {
  font-family: "FiraSans,sans-serif,Arial,Helvetica";
  src: url("/avtocat/acat/static/Fira_Sans/FiraSans-Regular.ttf") format("truetype");
}
body {
  font-family: "FiraSans,sans-serif,Arial,Helvetica";
}
#acat .card {
  width: 150px;
  margin: 10px;
  font-size: 12px;
  order: 1;
}

/* выставил ГАЗ, КАМАЗ, МАЗ, УралАЗ в начало списка */
#ac-marks > div:nth-child(23), #ac-marks > div:nth-child(20), #ac-marks > div:nth-child(26), #ac-marks > div:nth-child(33){
  order: 0;
}

#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: 50px;
  height: 50px;
  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-out {
  width: 60%;
  max-height: 100%;
  position: relative;
  overflow: hidden;
}

#ac-picture-container {
  position: sticky;
  height: 500px;
  overflow: scroll;
  border: lightgray solid 1px;
  scrollbar-width: none;
  transition: top 0.1s ease, left 0.1s ease, width 0.1s ease;
}

@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;
  margin-top: 70px;
}

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

.ac-part-rectangle {
  position: absolute;
  border: red 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;
  line-height: 1.5 !important;
}

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

#ac-parts {
  display: flex;
  flex-direction: row;
  gap: 20px;
  justify-content: space-between;
}

.ac-parts-main {
  width: 55%;
}

#table-autosoft {
  min-width: 40%;
}

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

#ac-parts-table .selectedNULL {
  background: #d4d4d4 !important;
}

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

#ac-parts-table td {
  vertical-align: middle !important;
  text-align: left !important;
}

/* page search */

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

#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 .pagination li {
  cursor: pointer;
}

#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);
  }
}

@media screen and (max-width: 1200px) {
  #ac-parts{
    flex-direction: column-reverse;
  }
  #table-autosoft{
    width: 100%;
  }
  #ac-picture-container-out{
    width: 100%;
  }
  #ac-picture{
    margin-top: 0;
  }
}

#ac-parts-table > tbody > tr:nth-child(1) > td.align-middle.text-left.selected{
  width: 10%;
}

#ac-parts-table > tbody > tr:nth-child(1) > td.align-middle.text-left.selected .block_incard{
  height: 100%;
}
