.spin-no-appearance {
  -moz-appearance: textfield;

  &::-webkit-outer-spin-button,
  &::-webkit-inner-spin-button {
    -webkit-appearance: none;
  }
}

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

  &:hover {
    cursor: pointer;
  }

  img {
    width: 18px;
    margin-left: -3px;
  }

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

    &.simplified {
      padding: 0px;
    }

    span {
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      display: block;
      max-width: 135px;
      font-weight: 600;
      font-size: 16px;
    }

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

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

    .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;
    z-index: 11;
    display: inline-block;
    cursor: pointer;
    text-align: left;
    margin-top: -80px;

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

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

        &.dropdown-arrow-container {
          position: relative;
          padding: 0;
          overflow: visible;

          > img {
            position: absolute;
            top: 50px;
            right: 15px;
            z-index: 1;
          }
        }

        .img {
          height: 9px;
          width: 17px;
        }
      }

      .selected {
        background-color: #e6eff9;

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

  .drop-down-arrow {
    margin-left: 3px;
    transform: rotate(180deg);
  }

  .visible {
    visibility: visible;
  }
}

.ten-plus {
  display: flex;
  flex-direction: row;

  input {
    width: 30px;
    padding-left: 10px;
    font-size: 16px;
    color: #000000;
    caret-color: #f70400;
    border: none;
    font-weight: bold;
  }

  input:focus {
    outline: none;
  }
}

.dropdown-wrapper {
  display: flex;
  align-items: center;
}

.extra-padding {
  padding-right: 12px;
}

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

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

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