[required] {
  &:after {
    content: ' *';
    color: @yee-error-color;
  }
}

.row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.col {
  flex: 1 0 0%;
}

.col-auto {
  flex: 0 0 auto;
  width: auto;
}

.CodeMirror {
  font-family: inherit;
}

svg.commonSvgStyle {
  color: #999999;
  &:hover {
    color: @yee-primary-color;
  }
}
.hover-style {
  color: rgba(0, 0, 0, 0.45);
  &:hover {
    background-color: rgba(0, 0, 0, 0.06);
    color: rgba(0, 0, 0, 0.65);
    svg {
      color: rgba(0, 0, 0, 0.65);
    }
  }
}

.click-style {
  background: rgba(82, 191, 99, 0.1) !important;
  border: 0 !important;
  color: @yee-primary-color !important;
  .hover-style {
    color: @yee-primary-color !important;
    border: 0 !important;
    background: rgba(82, 191, 99, 0.1) !important;
  }
  svg {
    color: @yee-primary-color !important;
  }
}

/* ---------------------------------- card ---------------------------------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-color: #fff;
  background-clip: border-box;
  border: 1px solid rgba(101, 109, 119, 0.16);
  border-radius: 4px;
  margin-bottom: 8px;
}

.card-body {
  flex: 1 1 auto;
  padding: 6px 15px;
  color: rgba(0, 0, 0, 0.65);
  border-radius: 4px;
  font-size: 12px;
}

.card-body-2 {
  flex: 1 1 auto;
  padding: 6px 12px;
  font-size: 12px;
}

/* -------------------------------- form-item ------------------------------- */
.form-item {
  --uno: relative;

  &.inline {
    display: flex;
    align-items: center;
    justify-content: space-between;

    & > span {
      margin-bottom: 0;
    }
  }

  &:not(:last-child) {
    --uno: mb-4;
  }

  & > span {
    height: 24px;
    line-height: 24px;
    display: flex;
    align-items: center;
    --uno: mb-1;
  }

  .extra-btn {
    --uno: absolute top-0 right-1;
  }

  .m-colorPicker {
    position: absolute;
    right: 6px;
    bottom: 8px;
    border: 0.25px solid rgb(197, 200, 201);

    .colorBtn {
      cursor: pointer;
    }

    .box {
      right: -6px;
      z-index: 10 !important;
    }

    &.top .box {
      bottom: 24px;
    }

    &.bottom .box {
      top: 24px;
    }
  }
}

/* -------------------------------- drawer ------------------------------- */
.yee-drawer {
  .operation-actions-header {
    position: absolute;
    top: 0;
    padding: 0px 16px;
    text-align: right;
    right: 0;
    background: #fff;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 52px;
  }
}
