.dropdown_container {
  position: relative;
  transition: all 0.4s ease-out;

  &:hover {
    cursor: pointer;
  }

  img {
    height: 9px;
    width: 17px;
    padding-left: 5px;
  }

  .dropdown-selected-text {
    padding: 5px 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;

    &.no-padding-left-aligned {
      justify-content: flex-start;
      padding: 0px;
    }

    span {
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      display: block;
      max-width: 135px;
    }

    &-active {
      background-color: #e6eff9;
    }

    .open-icon {
      background-image: url('../../../../../apps/sales/src/assets/images/Arrow_Down_2.svg');
      height: 9px;
      width: 17px;
      background-position: center;
      background-repeat: no-repeat;
      padding: 5px 4px;
    }

    .open-icon-branch {
      background-image: url('../../../../../apps/sales/src/assets/images/Arrow_Down_2_branch.svg');
      height: 9px;
      width: 17px;
      background-position: center;
      background-repeat: no-repeat;
      padding: 5px 4px;
    }

    .close-icon {
      background-image: url('../../../../../apps/sales/src/assets/images/Arrow_Up.svg');
      height: 9px;
      width: 17px;
      background-position: center;
      background-repeat: no-repeat;
      padding: 5px 4px;
    }

    .close-icon-branch {
      background-image: url('../../../../../apps/sales/src/assets/images/Arrow_Up_branch.svg');
      height: 9px;
      width: 17px;
      background-position: center;
      background-repeat: no-repeat;
      padding: 5px 4px;
    }
  }

  .dropdown-options {
    visibility: hidden;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 999;
    display: inline-block;
    cursor: pointer;
    text-align: left;

    &.under {
      top: 35px;
    }

    ul {
      list-style: none;
      margin: 0;
      background-color: #fff;
      border-radius: 5px;
      box-shadow: 0px -2px 24px 0px #dce2e9;
      padding: 0 0;
      min-width: 160px;
      max-height: 350px;
      overflow-y: auto;
      display: inline-block;

      &.fit-content {
        min-width: fit-content;
      }

      li {
        &.first {
          border-top-left-radius: 5px;
          border-top-right-radius: 5px;
        }
        &.last {
          border-bottom-left-radius: 5px;
          border-bottom-right-radius: 5px;
        }
        padding: 7px 15px;
        font-weight: 300;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: flex;
        justify-content: space-between;

        &:hover {
          background-color: #e6eff9;
        }

        &.selected {
          background-color: #dce2e9;

          &.selected-bold {
            font-weight: bold;
          }

          &.branch {
            background-color: #cfd4d8;
          }
        }
      }
    }
  }

  .floating-configuration {
    visibility: hidden;
    position: fixed;
    right: 0px;
    z-index: 999;
    display: inline-block;
    cursor: pointer;
    text-align: left;
    margin-top: -30px;

    ul {
      list-style: none;
      margin: 0;
      background-color: #fff;
      border-radius: 5px;
      box-shadow: 0px -2px 24px 0px #dce2e9;
      padding: 10px 0;
      min-width: 70px;
      display: inline-block;

      &.fit-content {
        min-width: fit-content;
      }

      li {
        padding: 7px 15px;
        font-weight: 300;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;

        &:hover {
          background-color: #e6eff9;
        }
      }
    }
  }

  .visible {
    visibility: visible;
  }
}

.absolute-position {
  position: absolute !important;
}

.fullOptions {
  top: 30px !important;
  left: 0;
}

.fullText span {
  max-width: 435px !important;
}

.right-aligned {
  left: 0;
}

.scrollable {
  max-height: 405px;
  overflow-y: scroll;
  scroll-behavior: smooth;
}

.spinner {
  background-image: url('/assets/images/Icon_Loading_Grey.svg');
  background-size: 30px 30px;
  width: 30px;
  height: 30px;
  padding-top: 1px;
  scale: 0.6;
  background-repeat: no-repeat;
  margin: auto;
  animation: spin 1s infinite linear;
}

.bold {
  font-weight: bold;
}

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