/* +----------------------------------------------------------------------
/* | Static Plugin for ThinkAdmin
/* +----------------------------------------------------------------------
/* | 官方网站: https://thinkadmin.top
/* +----------------------------------------------------------------------
/* | 版权所有 2014~2025 ThinkAdmin [ thinkadmin.top ]
/* +----------------------------------------------------------------------
/* | 开源协议 ( https://mit-license.org )
/* | 免责声明 ( https://thinkadmin.top/disclaimer )
/* +----------------------------------------------------------------------
/* | gitee 代码仓库：https://gitee.com/zoujingli/think-plugs-static
/* | github 代码仓库：https://github.com/zoujingli/think-plugs-static
/* +----------------------------------------------------------------------
/* | 自定义后台扩展样式，需要在加载 console.css 后载入
/* | 使用 composer require zoujingli/think-plugs-static 时不会更新此文件
/* +---------------------------------------------------------------------- */

/* 树形菜单美化 */
.tree-select {
    position: relative;
    width: 100%;
}
.tree-select .tree-input {
    width: 100%;
    height: 30px;
    line-height: 30px;
    /*border: 1px solid #e6e6e6;*/
    /*border-radius: 4px;*/
    padding: 0 10px;
    cursor: pointer;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color .2s;
    box-sizing: border-box;
}
.tree-select .tree-input:hover {
    border-color: #1E9FFF;
}
.tree-select .tree-input span {
    color: #333;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.tree-select .tree-input i {
    font-size: 16px;
    color: #999;
}
.tree-select .tree-dropdown {
    position: absolute;
    top: 42px;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    padding: 5px 0;
}
.tree-select .tree-dropdown ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.tree-select .tree-dropdown li {
    padding: 8px 15px 8px 30px;
    cursor: pointer;
    color: #333;
    transition: background 0.2s;
    position: relative;
    font-size: 14px;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tree-select .tree-dropdown li:hover {
    background: #f5f7fa;
}
.tree-select .tree-dropdown li.active {
    background: #e8f3ff;
    color: #1E9FFF;
    font-weight: 500;
}
.tree-select .tree-dropdown .toggle-icon {
    position: absolute;
    left: 8px;
    top: 8px;
    width: 16px;
    text-align: center;
    cursor: pointer;
    color: #666;
    font-size: 14px;
    transition: color 0.2s;
}
.tree-select .tree-dropdown .toggle-icon:hover {
    color: #1E9FFF;
}
.tree-select .tree-dropdown li ul {
    margin-left: 0;
    padding-left: 0;
}
.tree-select .tree-dropdown li ul li {
    padding-left: 45px; /* 子节点缩进 */
}
/* 占位图标（用于无子节点对齐） */
.tree-select .tree-dropdown .leaf-placeholder {
    display: inline-block;
    width: 16px;
    margin-right: 2px;
}

