@import '../../variables.scss';

#{$biz-css-prefix}-outerBox {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 999;
  overflow: hidden;
  background: #fff;
  padding: 8px;

  .dnd-sortable-tree_simple_tree-item {
    border: none !important;
    padding: 0;
  }
  .dnd-sortable-tree_simple_tree-item-collapse_button {
    display: none;
  }
}
#{$biz-css-prefix}-loadingLayer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9;
}
#{$biz-css-prefix}-directoryTitle {
  font-size: 16px;
  cursor: pointer;
  font-weight: 500;
  color: #333;
}
#{$biz-css-prefix}-directoryTitle >div {
  font-size: 16px;
  cursor: pointer;
  font-weight: 500;
  color: #333;
}
#{$biz-css-prefix}-toolBox {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 6px 4px;
}
#{$biz-css-prefix}-mainTitleBox {
  @extend #{$biz-css-prefix}-toolBox;
}
#{$biz-css-prefix}-searchBox {
  @extend #{$biz-css-prefix}-toolBox;
}
#{$biz-css-prefix}-subTitleBox {
  @extend #{$biz-css-prefix}-toolBox;
}
#{$biz-css-prefix}-treeBox {
  flex: 1;
  overflow: auto;

  &::-webkit-scrollbar-track{
    -webkit-box-shadow: inset 0 0 6px rgba(255,255,255,0.3);
    background-color: #333;
    border-radius: 10px;
  }
  &::-webkit-scrollbar{
    width: 4px;
    background-color: transparent;
    height: 5px !important;
  }
  &::-webkit-scrollbar-thumb{
    border-radius: 4px;
    background-color: #ad93f3aa;
  }
}
#{$biz-css-prefix}-treeItemBox {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  border-radius: 4px;
  gap: 5px;
  user-select: none;
  //background-color: lavender;
  padding: 5px 6px; //调整padding来控制高度为32px
  margin: 4px 0;
  overflow: hidden;
  cursor: pointer;

  &:hover {
    background: linear-gradient(90deg, rgba(0, 0, 0,0) 0%, #843CFF33 100%);
    #{$biz-css-prefix}-itemRightBox {
      display: flex;
      // opacity: 1;
    }
  }
}
#{$biz-css-prefix}-itemLeftBox {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  overflow: hidden;
}
#{$biz-css-prefix}-itemRightBox {
  display: none;
  // opacity: 0;
  gap: 5px;
  transition: all 0.3s;

  .ant-dropdown-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
#{$biz-css-prefix}-editBtn {
  display: flex;
  align-items: center;
  cursor: pointer;
  opacity: 0.85;
  transition: all 0.3s;

  &:hover {
    opacity: 1;
  }
}
#{$biz-css-prefix}-noMatch {
  text-align: center;
  margin-top: 50px;
  color: rgba(0, 0, 0, 0.45);
}
#{$biz-css-prefix}-noMatch02 {
  text-align: center;
  margin-top: 50px;
  color: rgba(0, 0, 0, 0.2);
}
#{$biz-css-prefix}-matchStyle {
  color: dodgerblue;
}
#{$biz-css-prefix}-icon {
  position: relative;
  width: 16px;
  height: 16px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
#{$biz-css-prefix}-toolBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
#{$biz-css-prefix}-toolBtnDisabled {
  @extend #{$biz-css-prefix}-toolBtn;
  cursor: not-allowed;
  opacity: 0.35;
}
#{$biz-css-prefix}-itemName {
  font-size: 14px;
  color: rgba(0,0,0,0.6);
  font-weight: 400;
  flex: 1;
  position: relative;
  min-height: 22px;
  overflow: hidden;
}
#{$biz-css-prefix}-groupName {
  @extend #{$biz-css-prefix}-itemName;
  color: rgba(0,0,0,0.85);
  font-weight: 500;
}
#{$biz-css-prefix}-nameOneLine {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  // display: flex;
  align-items: center;
  gap: 5px;
}
#{$biz-css-prefix}-groupNameOneLine {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 5px;
}
#{$biz-css-prefix}-groupNameText {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#{$biz-css-prefix}-optionBtn {
  width: 32px;
  height: 32px;
  border-radius: 3px 3px 3px 3px;
  border: 1px solid #dcdcdc;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
}
#{$biz-css-prefix}-addIconBtn {
  width: 24px;
  height: 24px;
  background: linear-gradient( 180deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.1) 100%);
  box-shadow: inset 0px 1px 1px 0px rgba(255,255,255,0.12), 0px 1px 1px 0px rgba(9,9,47,0.2);
  border-radius: 4px 4px 4px 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;

  &:hover {
    opacity: 0.8;
  }
}
#{$biz-css-prefix}-closeAllIcon {
  width: 16px;
  height: 16px;
  background-size: 100% 100%;
  background-image: url('./image/chevrons-down-up.png');
  cursor: pointer;
  transition: all 0.3s;
  border-radius: 4px;

  &:hover {
    opacity: 0.8;
    background-color: #18244933;
  }
}
#{$biz-css-prefix}-openAllIcon {
  @extend #{$biz-css-prefix}-closeAllIcon;
  background-image: url('./image/chevrons-up-down.png');
}
#{$biz-css-prefix}-actionIconOut {
  width: 18px;
  height: 18px;
  border-radius: 4px 4px 4px 4px;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  cursor: pointer;

  &:hover {
    background: #17162533;
  }
}
#{$biz-css-prefix}-childNumTag {
  display: inline-block;
  color: #FFFFFF;
  background: #843CFFcc;
  min-width: 30px;
  text-align: center;
  padding: 2px 6px 0;
  font-size: 12px;
  border-radius: 15px;
  transform: scale(0.85);
  transform-origin: center;
}
#{$biz-css-prefix}-childNumEmptyTag {
  @extend #{$biz-css-prefix}-childNumTag;
  background: #312F62aa;
}
#{$biz-css-prefix}-flexEnd {
  display: flex;
  justify-content: flex-end;
}
#{$biz-css-prefix}-flexCenter5 {
  display: flex;
  justify-content: center;
  align-content: center;
  gap: 5px;
}
#{$biz-css-prefix}-transparentInput {
  background: transparent;

  & input{
    background: transparent;
  }
}
