
.group-tree-container {
    position: relative;
    width: 100%;
}

.selected-group {
    min-width: 20rem;
    max-width: 50rem;
    height: 4.8rem;
    padding-left: 1.6rem;
    padding-right: 4rem;
    background: #fff url(/_res/kha_main/kha_home/img/common/icon-down.png) no-repeat center right 1.6rem;
    background-size: 2rem 2rem;
    border: 1px solid #E2E5E9;
    display: flex;
    border-radius: 6px;
    align-items: center;
    font-size: 1.7rem;
    line-height: 150%;
    font-weight: 400;
}

.selected-group:hover {
    border-color: #E2E5E9;
}

.tree-arrow {
    display: none;
}

.group-tree-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    border: 1px solid #ddd;
    border-top: none;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    min-width: 20rem;
    max-width: 50rem;
}

.tree-item {
    padding: 6px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
}

.tree-item:hover {
    background-color: #f5f5f5;
}

.tree-item.selected {
    background-color: #e3f2fd;
    color: #1976d2;
}

.tree-indent {
    display: inline-block;
    width: 20px;
}

.tree-node {
    flex: 1;
    white-space: normal;
    word-break: break-all;
}

.tree-item.depth-0 {
    font-weight: bold;
}

.tree-item.depth-1 .tree-node {
    color: #555;
}

.tree-item.depth-2 .tree-node {
    color: #777;
}

.tree-item.depth-3 .tree-node {
    color: #999;
}

.tree-toggle {
    display: inline-block;
    width: 16px;
    height: 16px;
    text-align: center;
    cursor: pointer;
    user-select: none;
    margin-right: 4px;
    font-size: 12px;
    color: #666;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    border-radius: 2px;
}

.tree-toggle:hover {
    background-color: #e9e9e9;
    border-color: #999;
}

.tree-leaf {
    display: inline-block;
    width: 16px;
    height: 16px;
    text-align: center;
    margin-right: 4px;
    font-size: 12px;
    color: #999;
}

.tree-child {
    background-color: #fafafa;
}

.tree-child:hover {
    background-color: #f0f0f0;
}

.tree-child.selected {
    background-color: #e8f4fd;
}
@media (max-width:1024px){
    .search-wrap:has(.group-tree-container){
        height:100%;
        display: flex;
        flex-wrap: wrap;
    }
    .search-wrap:has(.group-tree-container) .form-box{flex: 1;}
    .search-wrap:has(.group-tree-container) .sch-select{
        flex:1;
        margin: 0 0 0 0.6rem;
    }
    .search-wrap:has(.group-tree-container) .sch-label{
         flex: none;
         margin: 0.6rem 0 0 0;
         width: 100%;
    }
    .search-wrap:has(.group-tree-container) select{
        width:100%;
        height: 100%;
    }
    .group-tree-container{
        height: 5.8rem;
    }
    .group-tree-container .selected-group {
        height:100%;
        flex: none;
        min-width: unset;
        max-width: unset;
        width: 100%;
    }
}