@base: #000;
@import '~choerodon-ui/lib/style/themes/default';

.c7n-permission-info {
  .page-content-header {
    .title {
      // margin: .2rem .24rem;
      color: rgba(0, 0, 0, .87);
    }
  }

  &-name {
    vertical-align: text-top;

    &-text:hover {
      color: @primary-color;
      text-decoration: underline;
    }

    a {
      width: 100%;
      color: @base;
    }

    &-link {
      cursor: pointer;
      display: flex;
      align-items: center;
    }

    &-avatar {
      float: left;
      width: .16rem;
      height: .16rem;
      line-height: .18rem;
      background: rgb(197, 203, 232);
      color: rgb(100, 115, 195);
      overflow: hidden;
      display: flex;
      justify-content: center;
      align-items: center;
      margin-right: .05rem;
      text-align: center;
      border-radius: 50%;
      flex-shrink: 0;
      text-transform: uppercase;

      &-default {
        float: left;
        width: .16rem;
        height: .16rem;
        border-radius: 50%;
        background-size: 100%;
        background-repeat: no-repeat;
        background-position: center;
        background-image: url('favicon.png');
        margin-right: .05rem;
        margin-top: .08rem;
      }
    }
  }

  &-code {
    vertical-align: text-top;
    color: fade(@base, 65%);
  }

  &-level {
    vertical-align: text-top;
    color: fade(@base, 65%);
  }

  &-action {
    vertical-align: text-top;
  }

  &-table {

    table {
      table-layout: fixed;
    }
  }

  &-description {
    vertical-align: text-top;
    max-width: 40%;
    width: 40%;
    line-height: 2;

    .role-wrapper {
      display: inline-block;
      border-radius: 10px;
      padding: 0 12px;
      margin-right: 8px;
      height: 20px;
      line-height: 20px;
      font-size: 12px;
      background: rgba(0, 0, 0, .08);

      &-disabled {
        background: rgba(0, 0, 0, 0.04);
        color: rgba(0, 0, 0, 0.36);
      }

      &-enabled {
        background: rgba(0, 0, 0, .08);
      }
    }
  }
}
