div.root-menu{
    width: 220px;
    border-right: 2px solid #ccc;
    position: fixed;
    top: 45px;
    bottom: 0px;
    z-index: 100;
    /* padding: 5px; */
    box-sizing: border-box;
    background: #f6f6f6;
    box-shadow: 0 0 10px rgba(0,0,0,.03);
    transition: .5s all;
}

div.root-menu h1{
    height: 40px;
    margin: 0px;
    padding: 0px;
    background: #F2F2F2;
    font-size: 16px;
    text-align: center;
    line-height: 38px;
    color: #444;
    position: relative;
    z-index: 10;
    border-bottom: 1px solid #ddd;
}

div.root-menu h1 i{
    position: absolute;
    right: 10px;
    top: 10px;
    cursor: pointer;
}

div.root-menu-container{
    width: 100%;
    height: 100%;
    /* border: 1px solid rgb(203, 212, 221); */
    box-sizing: border-box;
    background: #fff;
    border-radius: 2px;
    position: relative;
}

div.root-menu-section{
    position: relative;
    z-index: 2;
}

div.root-menu-section h3{
    padding: 0px 10px;
    margin: 0px;
    font-size: 14px;
    height: 35px;
    line-height: 35px;
    font-weight: normal;
    /* background:linear-gradient(#f9f9f9, #efefef); */
    background: #FAFAFA;
    border-width: 0px 0px 1px;
    border-color: rgba(224,224,244, 1);
    border-style: solid;
    box-sizing: border-box;
}

div.root-menu-container div.root-menu-section:first-child h3{
    border-width: 0px;
}

div.root-menu-section h3{
    padding-left: 10px;
    position: relative;
    cursor: pointer;
}

div.root-menu-section h3 i.fa {
    margin-right: 7px;
    color: rgb(250, 202, 72);
    font-size: 14px;
}

div.root-menu-section h3:hover i.root-menu-angle{
    color: rgb(250, 202, 72);
}

div.root-menu-section h3 i.anticon-down, 
div.root-menu-section h3 i.anticon-up{
    position: absolute;
    right: 10px;
    top: 10px;
    color: #666;
    font-size: 9px;
}

div.root-menu-section h3 span{
    width: 100%;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: absolute;
    padding-left: 60px;
    margin-left: -60px;
}

div.root-menu-section ul{
    padding: 0px 5px 0 15px;
    margin: 0px;
    font-size: 14px;
    height: 100%;
}

div.root-menu-section ul li{
    list-style: none;
    /* position: relative; */

    border-left: 1px dotted rgb(207, 207, 207);
    /* margin-top: 1px; */
}

div.root-menu-section ul{
    display: none;
}

div.root-menu-section ul li{
    /* padding: 5px; */
    line-height: 31px;
    margin-top: -1px;
}

div.root-menu-section ul li span.menu-line{
    display: inline-block;
    width: 10px;
    height:15px;
    border-bottom: 1px dotted rgb(207, 207, 207);
    position: relative;
    top: -5px;
    margin-left: 1px;
    color: rgb(190, 190, 190);
    font-size: 8px;
    position: relative;
}

div.root-menu-section ul li span.menu-line i,
div.root-menu-section ul li span.menu-line-last i{
    margin-left: -7px;
    margin-top: 9px;
    background: #fff;
    position: absolute;
}

div.root-menu-section ul li:last-child{
    border: none;
}

div.root-menu-section ul li span.menu-line-last{
    border-width: 0 0 1px 1px;
    border-style: dotted;
    border-color: rgb(207, 207, 207);
    display: inline-block;
    width: 10px;
    height:15px;
    position: relative;
    top: -5px;
    color: rgb(190, 190, 190);
    font-size: 8px;
    position: relative;
}

div.root-menu-expend {
    height: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

div.root-menu-view{
    width: 100%;
    height: 100%;
    overflow: auto;
    box-sizing: border-box;
    margin-top: -35px;
    padding-top: 35px;
}

div.root-menu-scroll{
    width: 100%;
    height: 100%;
    overflow: auto;
}

div.root-menu-expend ul.root-menu-children-expend{
    display: block;
}

div.root-menu-section ul li i.menu-item-type{
    /* position: absolute; */
    /* top: 8px; */
    color: rgb(250, 202, 72);
    /* margin-left: -17px; */
    margin-right: 5px;
}

div.root-menu-section ul li i.menu-item-table{
    color: #1890ff;
}

div.root-menu-section i.root-menu-angle{
    position: absolute;
    right: 7px;
    top: 8px;
}


div.root-menu-expend ul a{
    color: #232323;
    white-space:nowrap;
    /* padding-left: 17px; */
    padding: 5px 5px 5px 0px;
}

div.root-menu-expend ul a.root-menu-active{
    /* background: rgba(18, 125, 212, .2) */
    color: #1890ff;
}

div.root-menu-expend ul a.root-menu-active span.root-menu-active-high{
    width: 100%;
    height: 30px;
    position: absolute;
    left: 0px;
    background: rgba(18, 125, 212, .12);
}

div.root-menu-expend ul a:hover{
    color: rgb(18, 125, 212);
}
div.root-menu-expend ul a:focus{
    outline: none;
    text-decoration: none;
}

div.root-menu-expend2 {
    height: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

div.root-menu-expend2 ul.root-menu-children-expend{
    display: block;
    padding: 0px 5px 0 12px
}

/* 5. 修正高亮 span 样式（避免影响右组宽度） */
div.root-menu-expend2 ul a .root-menu-active-high {
  display: inline-block;
  width: 0; /* 高亮span若无需显示，设为0宽，不占用右组空间 */
  height: 30px;
}

div.root-menu-expend2 ul a:hover{
    color: rgb(18, 125, 212);
}
div.root-menu-expend2 ul a:focus{
    outline: none;
    text-decoration: none;
}

/* 1. 强化 a 标签 Flex 布局：分组对齐 */
div.root-menu-expend2 ul a.root-menu-active2,
div.root-menu-expend2 ul a.root-menu-link {
  display: flex !important;
  align-items: center !important; /* 垂直居中（解决之前的上下对齐） */
  justify-content: space-between !important; /* 关键：左组居左，右组居右 */
  width: calc(100% - 12px);
  box-sizing: border-box;
  white-space: unset;
}

/* 2. 左组：占据左侧所有空间，文本正常显示 */
div.root-menu-expend2 ul a .menu-left-group {
  display: flex;
  align-items: center;
  flex: 1; /* 占满左侧剩余空间，确保右组靠最右 */
  margin-right: 10px; /* 与右组保持间距，避免拥挤 */
}

/* 3. 右组：固定宽度，确保所有图标位置统一 */
div.root-menu-expend2 ul a .menu-right-group {
  display: flex;
  align-items: center;
  width: 24px; /* 固定宽度（图标16px + 间距8px），确保所有行对齐 */
  justify-content: flex-end; /* 图标靠右（避免宽度固定后图标居中） */
  position: absolute;
  right: 12px;
}


div.root-menu-expend2 ul a.root-menu-active2 { /* 两个类都要加，确保所有菜单样式统一 */
    color: #1890ff;
    background-color: aliceblue;
    font-weight: 600;
}

div.root-menu-expend2 ul a .menu-line,
div.root-menu-expend2 ul a .menu-line-last {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  margin-left: 1px;
}

div.root-menu-expend2 ul a{
    color: #232323;
    white-space:nowrap;
    /* padding-left: 17px; */
    padding: 5px 5px 5px 0px;
}

/* 3. 文件夹/表格图标：右侧间距 + 不换行 */
div.root-menu-expend ul a .menu-item-type {
  white-space: nowrap;
  margin-right: 6px; /* 与文本的间距 */
  display: inline-flex;
  align-items: center;
}

/* 4. 文本容器：占满剩余空间 + 换行对齐 */
div.root-menu-expend2 ul a .menu-text-wrapper {
  flex: 1;
  line-height: 1.8;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-all;
  margin-left: 6px; /* 与 menu-line 保持间距 */
}

div.root-menu-expend2 ul a .menu-text-wrapper .block {
    width: 100%;
    height: 6px;
}

/* 4. 文本容器：占满剩余空间 + 换行对齐 */
div.root-menu-expend2 ul a .menu-text-wrapper2 {
  flex: 1;
  line-height: 3.2;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-all;
  margin-left: 6px; /* 与 menu-line 保持间距 */
  font-weight: 600;;
}

/* 4. 保留状态图标原有样式（微调间距） */
div.root-menu-expend2 ul a .root-menu-status-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* 取消 margin-left（右组已控制间距） */
  margin: 0;
  overflow: hidden;
  cursor: default;
  font-weight: 600;
  color: #ddd;
  flex-shrink: 0; /* 禁止图标被压缩 */
}



div.root-menu-scroll{
    position: relative;
}

div.apps-tree-container{
    position: relative;
}

div.apps-tree-container div.root-menu{
    width: 100%;
    position: relative;
    top: 0px;
    height: 100%;
}

div.apps-tree-container div.root-menu h1{
    display: none;
}

div.apps-tree-container div.root-menu-view{
    padding-top: 0px;
    margin-top: 0px;

}
div.apps-tree{
    height: 100%;
}

div.apps-tree-container{
    height: 100%;;
}
div.apps-tree-container div.root-menu-section h3{
    display: none;
}

div.apps-tree-container div.root-menu{
    border-right: none;
}

div.apps-tree-container div.root-menu h3.root-menu-active{
    height: 30px;
    line-height: 30px;
    background: #fff;
    border-color: #f5f5ff;
}


div.root-menu-hide{
    width: 40px;
}

div.root-menu-hide h1 label{
    display: none;
}

div.root-menu-hide h1 i{
    right: 13px;
}

div.root-menu-hide div.root-menu-container{
    background: #ececec;
}

div.root-menu-hide div.root-menu-section{
    display: none;
}