.tickets-sorting {
  margin-bottom: 10px;
  position: relative;
  font-size: 13px;
  line-height: 16px;
  height: 50px;
  background-color: #fff;
  border-bottom: 2px solid #dcdcdc;
  justify-content: space-between;
  align-items: baseline;
  border-radius: 2px;

  &.disabled {
    @include disabled-disabled();

    > *:not(.question-wrapper) {
      position: relative;
      opacity: .4;
      @include disabled-overlay();
    }
  }

  .question-wrapper {
    position: relative;
    top: 6px;
    right: 10px;
    margin-left: 16px;

    &.desaturated {
      top: 10px;
    }
  }

  .tab {
  height: 50px;
  border-bottom: 2px solid #dcdcdc;
  background: #fff;
  font-size: 13px;
  line-height: 16px;
  display: inline-block;
  cursor: pointer;

    .with-border {
      display: inline-block;
      border-left: 1px solid #dbdbdb;
      padding: 0 15px;
      color: #9E9E9E;
      margin-top: 16px;
    }

    &:first-of-type {
      border-bottom-left-radius: 2px;
      border-top-left-radius: 2px;
      .with-border { border-left: none; }
    }

    &.active {
      .with-border {
        color: black;
      }
      border-bottom: 2px solid black;
    }
  }

  .label {
    color: #919191;
    cursor: pointer;
    padding: 16px 0 17px 0;
  }

  .sorting-selected {
    position: relative;
    display: inline-block;
    padding-right: 4px;
    color: black;
    padding: 16px 20px 17px 0;
    cursor: pointer;

    &:after {
      position: absolute;
      content: '';
      background: url(data:image/svg+xml,%3Csvg%20width%3D%227%22%20height%3D%225%22%20viewBox%3D%220%200%207%205%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Ctitle%3ETriangle%2017%3C%2Ftitle%3E%3Cpath%20d%3D%22M3.5%205L7%200H0%22%20fill%3D%22%23000000%22%20fill-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E) no-repeat;
      width: 7px;
      height: 5px;
      bottom: 23px;
      right: 9px;
    }
  }

  .dropdown-content {
    position: absolute;
    z-index: 3;
    min-width: 180px;
    background-color: #fff;
    box-shadow: 0px 0px 2px 0px rgba(0, 0, 0, 0.3);
    border-radius: 3px;
    box-sizing: border-box;
    right: -29px;
    top: 42px;

    &:before {
      content: "";
      position: absolute;
      z-index: 2;
      width: 0;
      height: 0;
      top: 0px;
      left: 50%;
      box-sizing: border-box;

      border: 5px solid;
      border-color: transparent transparent #fff #fff;
      background-color: #fff;

      transform-origin: 0 0;
      transform: rotate(-45deg);

      box-shadow: 0px 0px 2px 0px rgba(0, 0, 0, 0.3);
    }

    &:after {
      content: "";
      position: absolute;
      z-index: 2;
      width: 30px;
      height: 0;
      top: 0px;
      left: 80px;
      box-sizing: border-box;

      border: 4px solid #fff;
      border-color: transparent transparent #fff #fff;
      background-color: #fff;
    }
  }

  .top-bottom-padding {
    padding: 8px 0px;
  }

  .dropdown-item {
    display: block;
    padding: 12px 26px;
    cursor: pointer;
    text-decoration: none;
    color: black;
    display: flex;
    justify-content: space-between;
    &:hover {
      background-color: #ededed;
    }
  }

  .icon-selected {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url('data:image/svg+xml,%3Csvg%20width%3D%2210%22%20height%3D%228%22%20viewBox%3D%220%200%2010%208%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M3.936%204.81L1.49%202.246%200%203.82%203.936%208%2010%201.573%208.51%200%203.937%204.81z%22%20fill%3D%22%23000%22%20fill-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E') no-repeat center center;

    &.hidden {
      display: none;
    }
  }
}


