[required] {
  &:after {
    content: ' *';
    color: @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: @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: @primary-color !important;
  .hover-style {
    color: @primary-color !important;
    border: 0 !important;
    background: rgba(82, 191, 99, 0.1) !important;
  }
  svg {
    color: @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;
  .ant-switch {
    height: 16px !important;
    line-height: 16px !important;
    min-width: 28px !important;
    &::after {
      width: 12px !important;
      height: 12px !important;
    }
  }
}

.card-body-2 {
  flex: 1 1 auto;
  padding: 6px 12px;
  font-size: 12px;
  &.form-event {
    .ant-switch {
      height: 16px !important;
      line-height: 16px !important;
      min-width: 28px !important;
      &::after {
        width: 12px !important;
        height: 12px !important;
      }
      .ant-switch-inner {
        line-height: 12px;
      }
    }
  }
}


/* -------------------------------- form-item ------------------------------- */
.form-item {
  @apply relative;

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

  & > span {
    @apply block mb-2;
  }

  .extra-btn {
    @apply 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;
    }
  }
}
