/* +----------------------------------------------------------------------
/* | Static Plugin for ThinkAdmin
/* +----------------------------------------------------------------------
/* | 官方网站: https://thinkadmin.top
/* +----------------------------------------------------------------------
/* | 版权所有 2014~2024 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 时不会更新此文件
/* +---------------------------------------------------------------------- */

.think-page-tabs {
    height: 38px;
    line-height: 38px;
    background: #f8f8f8;
    border-bottom: 1px solid #e6e6e6;
    padding: 0 10px;
    overflow: hidden;
    position: relative;
    z-index: 5;
    box-sizing: border-box;
}

.think-page-tabs-scroll {
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
}

.think-page-tabs-scroll::-webkit-scrollbar {
    height: 6px;
}

.think-page-tabs-scroll::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 3px;
}

.think-page-tabs-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.think-page-tab {
    display: inline-flex;
    align-items: center;
    height: 28px;
    line-height: 28px;
    padding: 0 10px;
    border-radius: 3px 3px 0 0;
    border: 1px solid transparent;
    background: #f2f2f2;
    color: #666;
    cursor: pointer;
    max-width: 200px;
}

.think-page-tab:hover {
    background: #fff;
}

.think-page-tab.is-active {
    background: #fff;
    color: #333;
    border-color: #e6e6e6;
    border-bottom-color: #fff;
    font-weight: 700;
}

.think-page-tab-title {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
}

.think-page-tab-close {
    margin-left: 6px;
    font-size: 12px;
    color: #999;
}

.think-page-tab:hover .think-page-tab-close {
    color: #666;
}

.think-page-tabs + .think-page-body {
    padding-top: 0;
    margin-top: 8px;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
    min-height: calc(100vh - 93px) !important;
    height: calc(100vh - 93px) !important;
}

.think-page-tabs ~ .think-page-body .layui-card-header {
    top: calc(55px + 38px) !important;
}

.think-page-tabs + .think-page-body > .layui-card {
    min-height: calc(100vh - 93px) !important;
    height: calc(100vh - 93px) !important;
}

.think-page-tab-menu {
    position: absolute;
    min-width: 140px;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 4px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    z-index: 300;
    padding: 6px 0;
}

.think-page-tab-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.think-page-tab-menu li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    color: #333;
    cursor: pointer;
    font-size: 12px;
}

.think-page-tab-menu li:hover {
    background: #f5f5f5;
}

.think-page-tab-menu i {
    font-size: 14px;
    color: #1e9fff;
}

.mindmap-editor {
    height: 480px;
    border: 1px solid #e6e6e6;
    border-radius: 4px;
    background: #fff;
    overflow: hidden;
}

/* Fix oversized active background in left navigation */
.layui-layout-admin .layui-side .layui-side-tree .layui-nav-tree > .layui-nav-item.layui-this {
    background: none;
}

.layui-layout-admin .layui-side .layui-side-tree .layui-nav-tree > .layui-nav-item.layui-this > a {
    background-color: #098 !important;
    color: #fff !important;
}

.layui-layout-admin .layui-side .layui-side-tree .layui-nav-tree > .layui-nav-item.layui-this > a:hover {
    background-color: #098 !important;
    color: #fff !important;
}
