@import "theme";

.changedLine {
  :global(.react-flow__edge-path) {
    stroke: @changed-color;
  }
}

.changedVersion {
  * {
    color: @changed-color!important;
  }
}

.popover {
  padding: 0;
  :global(.gx6-popover-inner) {
    padding: 0!important;
  }
}

.service {
  width: 100%;
  min-height: 100%;
  border: 1px solid @border-color;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;

  padding-left: @padding-left;
  background-color: @root-node-ng;
  &:before{
    content: '';
    display: block;
    width: @padding-left;
    height: 100%;
    background-color: @main-color;
    position: absolute;
    margin-left: -@padding-left;
  }

  .group & {
    padding-left: 0;
    background-color: #fff;
    &:before{
      display: none;
    }
  }

  &.hit {
    border-color: @hit-border-color;
  }
}

.nodeName {
  padding: 5px @text-space;
  font-size: 14px;
  line-height: 20px;
  color: @txt-color;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-sizing: border-box;
}

.nodeSubTitle, .nodeDesc {
  font-size: 12px;
  line-height: 18px;
}

.version {
  padding: 5px @text-space;
  box-sizing: border-box
}

.versions {
}

.versionBox {
  padding: 0 (@text-space / 2);
  //box-sizing: border-box;
  position: relative;

  .version {
    padding-left: (@text-space / 2);
    padding-right: (@text-space / 2);
    border: 1px dashed @second-border-color;

    &.hit {
      border-color: @hit-border-color;
    }
  }

  margin-bottom: 12px;
}

.nodeSubTitle {
  color: @txt-color;
}

.nodeDesc {
  color: @text-second-color;
}




// 分组节点


.group {
  border: 1px solid @border-color;
  width: 100%;
  min-height: 78px;
  box-sizing: border-box;
  padding-left: @padding-left;
  &:before{
    content: '';
    display: block;
    width: @padding-left;
    height: 100%;
    background-color: @main-color;
    position: absolute;
    margin-left: -@padding-left;
    margin-top: -1px;
  }

  //border-left: 18px solid @main-color;
  display: flex;
  flex-direction: column;
  background-color: #fff;
  &.expanded{
    padding-left: 0;
    //border-style: dashed;
    //border-left-width: 1px;
    border-color: @main-color;
    &:before {
      display: none;
    }
  }
}

.titleBar {
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  box-sizing: border-box;
  cursor: grab;

  background-color: @main-color;

  .groupTitle {
    flex: 1;
    width: 0;
    color: #ffffff;
  }
  .groupCount {
    color: #ffffff;
  }
}

.groupItems {
  width: 100%;
  gap: 12px;
  display: flex;
  flex-direction: column;
  min-height: 10px;
}

.groupContent {
  padding: 12px 20px;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.groupBase {
  padding: 0 10px;
  display: flex;
  flex: 1;
  align-items: center;
}

.expandedContent {
  display: flex;
  flex-direction: column;
}

.groupTitle {
  font-size: 16px;
  color: @txt-color;
  width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.groupCount {
  font-size: 14px;
  color: @text-second-color;
  margin-left: 12px;
}

.groupIcon {
  font-size: 16px;
  color: #fff;
  cursor: pointer;
  margin-left: 4px;
}

.pagination {
  margin-top: 12px!important;
  justify-content: center;
}
