@import './common/var.scss';
.es-card {
  padding: 10px 20px;
  position: relative;
  &:not(.es-card-border-none):before {
    content: '';
    display: block;
    height: 1px;
    background-color: #d9d9d9;
    position: absolute;
    left: 0;
    top: 50px;
    right: 0;
  }
  .el-card__header {
    padding: 0;
  }
  .el-card__body {
    padding: 16px 0 0;
  }
  .es-card-header {
    position: relative;
    line-height: 40px;
    display: flex;
    .es-icon {
      line-height: 40px;
    }
    &.es-card-ornament-bar {
      padding-left: 10px;
      &:before {
        content: '';
        display: block;
        height: 20px;
        width: 4px;
        display: inline-block;
        position: absolute;
        left: 0;
        top: 50%;
        margin-top: -10px;
        border-radius: 2px;
        background-color: $--color-primary;
      }
    }
    &.es-card-ornament-chunk {
      padding-left: 20px;
      &::before,
      &::after {
        content: '';
        display: block;
        width: 10px;
        height: 10px;
        background-color: #d7e0f4;
        position: absolute;
        left: 6px;
        top: 11px;
      }
      &::after {
        background-color: $--color-primary;
        left: 0;
        top: 17px;
      }
    }
    .es-header-text {
      font-size: 15px;
      font-weight: bold;
      margin: 0 4px;
      & + .es-card-menu {
        margin-left: 24px;
      }
    }
    .es-card-menu {
      border-bottom: 0;
      .el-menu-item {
        padding: 8px 16px;
        height: 40px;
        line-height: 28px;
        color: initial;
        &.is-active {
          color: $--color-primary;
        }
        .el-badge__content {
          top: 6px;
          right: 0;
        }
        .el-badge__content:not(.is-dot) {
          width: 18px;
          padding: 0;
          text-align: center;
        }
      }
    }
  }
  &.es-card-border-none {
    border: 0;
    .el-card__header {
      border: 0;
    }
  }
}
