$content-height: 477px;

.jr-address-book {
  /deep/.jobs-list {
    padding-top: 15px;
  }
  &__tips {
    color: #666;
    margin-bottom: 10px;
  }

  &__refresh {
    margin-left: 5px;
    color: #0ea856;
    text-decoration: underline;
    cursor: pointer;
  }

  // 组织架构
  .org {
    &__main {
      display: flex;

      .icon-sort-up {
        position: absolute;
        left: 20px;
        font-size: 18px;
        top: 11px;
        transform: rotate(0);

        &.fold {
          top: 10px;
          transform: rotate(270deg);
        }
      }
    }

    &__display {
      flex: 1;
      border-right: solid 1px #abc0ba;
    }

    &__search {
      padding: 15px 20px;
      border-bottom: solid 1px #abc0ba;

      &-del {
        font-size: $--font-l;
        color: #abc0ba;
        display: inline-block;
        transform: translateY(4px);
        &:hover {
          color: $--color-c11;
        }
      }
    }

    &__filter {
      height: $content-height;
      overflow-x: hidden;
      overflow-y: auto;
      /deep/.el-radio {
        &-wrap {
          width: 100%;
        }
        &-label {
          width: inherit;
        }
      }
      &-title {
        background: #e5ece9;
        font-size: 12px;
        color: #666;
        padding-left: 20px;
        line-height: 30px;
      }
      &-all {
        padding: 10px 20px;
      }
      &-item {
        padding: 0 20px;
      }

      .j-not-data {
        padding-top: 140px;
      }

      .org__child {
        &-name {
          max-width: 400px;
        }
      }
    }

    &__content {
      display: flex;
      max-width: 600px;
      height: $content-height;
      &-left,
      &-right {
        flex: 0 0 300px;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 10px 0;
      }

      &-left {
        border-right: solid 1px #abc0ba;
      }

      &-all {
        width: calc(100% - 10px);
        /deep/.el-radio-label {
          width: inherit;
        }
        margin: 10px 0;
        padding-left: 22px;
      }
    }

    &__company,
    &__team {
      cursor: pointer;
      position: relative;
      color: #014830;
      font-size: 14px;
      padding-left: 40px;
      height: 36px;
      display: flex;
      align-items: center;
    }

    &__dept {
      padding-left: 40px;
      height: 36px;
      display: flex;
      align-items: center;
      color: #003f2d;
      cursor: pointer;
      transition: 0.3s;
      &:hover {
        background-color: #eff4ef;
      }
      &--active {
        font-weight: bold;
        background-color: #e3f7e3 !important;
      }
    }

    &__team {
      &-name {
        color: #000;
      }
      .el-radio-wrap {
        width: 100%;
        cursor: pointer;
      }
    }

    &__item {
      padding-left: 22px;
      /deep/.el-radio {
        &-wrap {
          width: calc(100% - 22px);
        }
        &-label {
          width: inherit;
        }
      }
    }

    &__child {
      height: 36px;
      display: flex;
      align-items: center;

      &-name {
        font-weight: normal;
        color: #000;
        max-width: 100px;
        @include ellip;

        &--long {
          max-width: 220px;
        }
      }

      &-post {
        @include ellip;
        font-weight: normal;
        margin-left: 8px;
        color: #999;
        font-size: 13px;
        max-width: 160px;
      }
    }

    &__selected {
      position: relative;
      width: 300px;
      height: 569px;
      padding: 24px 0;
      background-color: #fff;

      &-text {
        padding-left: 22px;
        font-weight: bold;
        margin-bottom: 6px;
      }

      &-list {
        overflow-y: auto;
        height: 525px;
        padding-bottom: 72px;
      }

      &-type {
        margin-left: 34px;
        padding-left: 5px;
        position: relative;
        font-size: 13px;
        color: #247149;
        cursor: pointer;
        line-height: 36px;

        .icon-sort-up {
          left: -13px;
        }
      }

      .org__child {
        padding-left: 40px;
        padding-right: 20px;
        cursor: default;
        height: 34px;
        &:hover {
          background-color: #eff4ef;
          transition: 0.3s;
          .icon-wrong-warning {
            display: block;
          }
        }
        &-name {
          max-width: none;
        }
      }

      .icon-wrong-warning {
        transition: 0.3s;
        font-size: 24px;
        color: #abc0ba;
        cursor: pointer;
        margin-left: auto;
        transform: translateY(2px);
        display: none;
        &:hover {
          color: #f55c54;
        }
      }
    }

    &__confirm {
      position: absolute;
      right: 15px;
      bottom: 0;
      width: calc(100% - 15px);
      height: 72px;
      text-align: right;
      padding-top: 15px;
      background-color: rgba(#fff, 0.96);
      padding-right: 20px;
    }
  }

  /deep/.el-radio-wrap {
    margin-right: 0;
  }
}
