/* .sidebar {
  top: 0;
  position: sticky;
} */
.sidebar-assets {
  height: 100%;
  overflow: hidden;
}

.sidebar-wrapper {
  height: 100%;
  row-gap: 15px;
  grid-template-columns: 100%;
  grid-template-rows: 52dvh calc(100% - calc(52dvh + 12px));
  display: flex;
  flex-direction: column;
}

.sidebar-resources {
  height: calc(100vh - 22vh - 425px);
}

.sidebar-map {
  border-radius: 12px;
  background-color: var(--asset-profile-sidebar);
  overflow: hidden;
}

#map {
  height: 22vh;
  border-radius: 12px 12px 0 0;
  pointer-events: none;
}

#map>div {
  background-color: transparent !important;
}

.sidebar-data {
  display: flex;
  row-gap: 12px;
  flex-direction: column;
  padding: 16px 24px;
}

.sidebar-data-location {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-color);
  font-style: normal;
  line-height: normal;
  font-family: Poppins, sans-serif;
}

.sidebar-data-location b {
  font-weight: 500;
  font-size: 16px;
}

.sidebar-data-contacts {
  display: grid;
  column-gap: 27px;
  grid-template-columns: repeat(2, 1fr);
}

.sidebar-data-contacts-wrapper {
  display: flex;
  row-gap: 4px;
  flex-direction: column;
}

.sidebar-data-contacts-wrapper-title {
  color: var(--text-color);
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  font-family: Poppins, sans-serif;
}

.sidebar-data-contacts-wrapper-text {
  color: var(--text-color);
  font-size: 14px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.6em;
  font-family: Poppins, sans-serif;
}

.sidebar-data-contacts-list {
  row-gap: 4px;
  display: flex;
  flex-direction: column;
}

.sidebar-data-contacts-list li {
  display: flex;
  padding: 2px 0;
  column-gap: 10px;
  align-items: center;
}

.sidebar-data-contacts-list li img {
  width: 24px;
  height: 24px;
  transition: all 0.2s ease-in-out;
}

.sidebar-data-contacts-list li a {
  color: var(--text-color);
  font-size: 14px;
  font-weight: 400;
  font-style: normal;
  line-height: normal;
  text-decoration: none;
  font-family: Poppins, sans-serif;
  transition: all 0.2s ease-in-out;
  display: flex;
  column-gap: 10px;
  align-items: center;
  opacity: 0.8;
}

.sidebar-data-contacts-list li:hover img {
  filter: invert(5) sepia(1) saturate(2.4) hue-rotate(171deg);
}

.sidebar-data-contacts-list li a:hover {
  /* color: #000; */
  text-shadow: 0 0 .65px #333, 0 0 .65px #333;
  opacity: 1;
}

.sidebar-resources {
  padding: 20px;
  border-radius: 12px;
  background-color: var(--asset-profile-sidebar);
  display: flex;
  flex-direction: column;
  z-index: 5;
}

.sidebar-resources-list {
  /*  height: 650px;*/
  position: relative;
  flex-grow: 2;
}

.small-height .sidebar-resources-list {
  display: none;
}

.just-search .sidebar-resources h2 {
  display: none;
}

.sidebar-resources h2 {
  color: var(--text-color);
  font-size: 19px;
  font-weight: 600;
  font-style: normal;
  line-height: normal;
  font-family: Poppins, sans-serif;
  margin-bottom: 24px;
  white-space: pre-wrap;
  text-align: center;
}

.sidebar-autocomplete {
  position: relative;
  margin-bottom: 20px;
}

.sidebar-autocomplete input {
  width: 100%;
  font-size: 14px;
  font-family: "Poppins";
  line-height: 22px;
  padding: 8px 66px 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--sibebar-select-bg-color);
  height: 40px;
}

.sidebar-autocomplete input::-webkit-input-placeholder {
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
  color: #CFCFCF;
}

.sidebar-autocomplete input::-moz-placeholder {
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
  color: #CFCFCF;
}

.sidebar-autocomplete input:-moz-placeholder {
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
  color: #CFCFCF;
}

.sidebar-autocomplete input:-ms-input-placeholder {
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
  color: #CFCFCF;
}

.sidebar-autocomplete input:focus::-webkit-input-placeholder {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.sidebar-autocomplete input:focus::-moz-placeholder {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.sidebar-autocomplete input:focus:-moz-placeholder {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.sidebar-autocomplete input:focus:-ms-input-placeholder {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}


.sidebar-autocomplete input:hover,
.sidebar-autocomplete input:focus {
  border-color: var(--color-blue);
}

.sidebar-autocomplete .btn-add {
  position: absolute;
  padding: 2px 10px;
  text-align: center;
  font-size: 12px;
  font-family: "Poppins";
  font-weight: 600;
  line-height: 18px;
  background-color: var(--color-white);
  border: 2px solid var(--color-blue);
  border-radius: 6px;
  cursor: pointer;
  right: 8px;
  top: 6px;
}

.sidebar-resources-list {
  border-radius: 8px;
  flex-grow: 1;
  /* overflow-y: auto !important; */
}

.custom-test {
  height: 200px;
  position: relative;
}

/* .sidebar-resources-list .custom-scroll {
  row-gap: 24px;
  display: flex;
  max-height: 552px;
  flex-direction: column;
  background-color: #fff;
} */
.sidebar-resources-list .custom-scroll:before,
.sidebar-resources-list .custom-scroll:after {
  content: "";
  display: block;
  position: sticky;
  z-index: 1;
  left: 0;
  right: 0;
  top: 0;
  min-height: 30px;
  background: linear-gradient(to top, rgba(255, 255, 255, 0) 14.79%, #fff 100%);
}

.sidebar-resources-list .custom-scroll:after {
  bottom: 35px;
  transform: rotate(180deg);
}

.sidebar-resources-list-item {
  width: 100%;
  height: 72px;
  display: flex;
  column-gap: 16px;
  align-items: center;
  padding: 0 10px 0 0;
  margin-bottom: 10px;
}

.sidebar-resources-list-item img {
  width: 94px;
  border-radius: 8px;
}

.sidebar-resources-list-item-text {
  width: calc(100% - 110px);
  row-gap: 8px;
  display: flex;
  flex-direction: column;
}

.sidebar-resources-list-item-text h3 {
  color: var(--text-color);
  font-size: 18px;
  font-weight: 600;
  line-height: 22px;
  font-style: normal;
  font-family: Poppins, sans-serif;
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.sidebar-resources-list-item-text p {
  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
  font-style: normal;
  color: var(--text-color);
  font-family: Poppins, sans-serif;
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.resources-wrapper {
  position: relative;
  display: flex;
  overflow: hidden;
  margin-bottom: 10px;
}

.resources-shadow-top {
  position: absolute;
  width: 100%;
  height: 40px;
  transition: opacity 0.3s ease-in-out;
  /* background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%); */
  background: linear-gradient(to bottom, var(--custom-scroll-asset-gradient), transparent);
  top: -1px;
  opacity: 0;
  z-index: 4;
  pointer-events: none;
}

.resources-shadow-bottom {
  position: absolute;
  width: 100%;
  height: 40px;
  transition: opacity 0.3s ease-in-out;
  /* background: linear-gradient(0deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%); */
  background: linear-gradient(to top, var(--custom-scroll-asset-gradient), transparent);
  bottom: -1px;
  opacity: 0;
  z-index: 4;
  pointer-events: none;
}

@media print {
  .sidebar {
    height: unset !important;
    position: initial;
  }

  .sidebar-wrapper {
    display: grid;
    grid-template-rows: 1fr;
  }

  .sidebar-resources {
    display: none;
  }

  .sidebar-assets {
    padding-top: 2vh;
    border-top: 1px solid var(--header-bg-color);
  }
}

@media screen and (min-width: 1920px) {
  .sidebar-wrapper {
    row-gap: 1.875rem;
  }

  .sidebar-resources {
    height: calc(100vh - 22vh - 484px);
  }
}

@media screen and (min-width: 1150px) and (max-width: 1440px) {
  .sidebar-data-contacts-list {
    row-gap: 0px;
  }

  .sidebar-data-location,
  .sidebar-data-contacts-wrapper-text,
  .sidebar-data-contacts-list span {
    font-size: 13px;
  }

  .sidebar-data-contacts-wrapper-title,
  .sidebar-data-location b {
    font-size: 14px;
    font-weight: 600;
  }

  .sidebar-resources {
    height: calc(100dvh - 22dvh - 391px);
  }

  .sidebar-assets {
    height: auto;
    overflow: initial;
    padding: 0;
  }
}

@media screen and (min-width: 1150px) and (max-width: 1265px) {
  .sidebar-data-location {
    font-size: 11px;
  }

  .sidebar-resources {
    height: calc(100dvh - 22dvh - 404px);
  }
}

@media screen and (max-width: 1150px) {
  .sidebar-map {
    height: 100%;
  }

  .sidebar-resources-list {
    height: calc(100dvh - 195px);
  }

  .sidebar-assets {
    height: auto;
    overflow: initial;
    padding: 0;
  }

  .tabs-open .sidebar-assets {
    /* display: none; */
  }

  .sidebar-data-contacts-list {
    flex-direction: row;
    display: flex;
    flex-wrap: wrap;
  }

  .sidebar-data-contacts-wrapper {
    margin-bottom: 8px;
  }

  .sidebar-data-location {
    font-size: 14px;
  }

  .sidebar-data-location b {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
  }

  #map {
    height: 260px;
  }

  .sidebar-data-contacts-list li {
    width: 50%;
  }

  .sidebar-data-contacts {
    display: block;
  }

  .sidebar-wrapper {
    display: grid;
    grid-template-rows: 1fr;
  }

  .sidebar-open .sidebar-resources {
    opacity: 1;
    height: 100dvh;
    overflow: visible;
    opacity: 1;
    visibility: visible;
  }

  .sidebar-resources>* {
    opacity: 0.4;
    transition: all 0.3s ease-in-out 0.1s;
    visibility: hidden;
  }

  .sidebar-open .sidebar-resources>* {
    opacity: 1;
    visibility: visible;
  }

  .sidebar-resources {
    position: fixed;
    width: 100%;
    left: 0;
    top: 40px;
    background: var(--color-white);
    z-index: 1000;
    overflow: hidden;
    opacity: 0.4;
    transition: all 0.3s ease-in-out 0.1s;
    height: 0;
    visibility: hidden;
    border: none;
  }
}

@media screen and (max-width: 482px) {
  .sidebar-resources-list {
    height: calc(100dvh - 223px);
  }
}

.link-heading {
  color: var(--text-color);
  /* -- 2024 --*/
  text-decoration: none;
  cursor: pointer;
}

.link-heading:hover {
  text-decoration: underline;
  text-decoration-color: var(--text-color);
}

.scrolled~.resources-shadow-top {
  opacity: 1;
}

.scrolled~.resources-shadow-bottom {
  opacity: 1;
}

.scrollable~.resources-shadow-bottom {
  opacity: 1;
}

.scrolled-to-end~.resources-shadow-bottom {
  opacity: 0;
}

.sidebar-wrapper {
  background: none;
}