@charset "utf-8";
.v-role-manage {
  position: relative;
  $role-height: 50px;
  height: auto;
  background-color: white;
  border: 1px solid $border-color;
  border-radius: $border-s-radius;
  .role-manage-content {
    display: flex;
    .role-list-wrap {
      position: relative;
      width: 180px;
      border-right: 1px solid $border-color;
      padding-bottom: $role-height;
      overflow-y: auto;
    }
    .role-item,
    .add-role {
      display: flex;
      align-items: center;
      line-height: 1;
      cursor: pointer;
    }
    .role-item {
      height: $role-height;
      padding: 0 13px 0 10px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      line-height: 1;
      &.active {
        padding-right: 10px;
        color: $theme-color;
        background: #e6f7ff;
        border-right: 3px solid $theme-color;
      }
      &:hover {
        background: #e6f7ff;
        color: $theme-color;
      }
      .role-name{
        flex: 1;
      }
      .ivu-icon{
        padding: 10px 5px;
      }
    }
    .user-list{
      width: 180px;
      padding: 10px 0;
      position: relative;
      border-left: 1px solid $border-color;
      overflow: auto;
    }
    .user-item{
      height: 40px;
      display: flex;
      align-items: center;
      padding: 0 10px;
      font-size: 12px;
      .ivu-avatar{
        margin-right: 5px;
      }
      .name{
        flex: 1;
        @extend %text-overflow;
      }
    }
  }
  .permission-user-wrap{
    flex: 1;
    display: flex;
  }
  .permission-tree-wrap {
    position: relative;
    flex: 1;
    padding: 10px 15px 0;
    &.pd{
      padding-bottom: 60px;
    }
  }
  .action-btn{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: $role-height;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    cursor: pointer;
    color: $theme-color;
    border-top: 1px solid $border-color;
    font-weight: bold;
    background: white;
    .ivu-icon {
      font-weight: bold;
      margin-right: 2px;
    }
  }
  .permission-link{
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    .link{
      color:$theme-color;
      cursor: pointer;
      &:hover{
        text-decoration: underline;
      }
    }
  }
}