/* +----------------------------------------------------------------------
/* | 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 时不会更新此文件
/* +---------------------------------------------------------------------- */

.think-layout-header {
    display: flex;
    align-items: center;
    gap: 0;
    padding-right: 12px;
    box-sizing: border-box;
}

.think-header-tools {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    height: 100%;
}

.think-header-tool {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    color: #334155;
}

.think-header-tool {
    width: 60px;
    font-size: 26px;
}

.think-header-tabs {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    height: 60px;
    padding: 0 14px 0 8px;
}

.think-header-nav {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    position: static !important;
    right: auto !important;
}

.think-page-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 0;
    background: transparent;
    border-bottom: none;
    overflow: hidden;
}

.think-page-tab-fixed {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.think-page-tab-scroll {
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
}

.think-page-tab-scroll::-webkit-scrollbar {
    height: 6px;
}

.think-page-tab-scroll::-webkit-scrollbar-thumb {
    background: rgba(31, 41, 55, 0.18);
    border-radius: 999px;
}

.think-page-tab-list {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    box-sizing: border-box;
    min-width: max-content;
    padding: 0;
}

.think-page-tab-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    position: relative;
    height: 38px;
    padding: 0 16px;
    border: 1px solid #d8e0ee;
    border-radius: 10px;
    background: #eef2f7;
    color: #475569;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.think-page-tab-item:hover {
    background: #e5ebf5;
    color: #1f2937;
}

.think-page-tab-item.active {
    background: #ffffff;
    color: #111827;
    border-color: #cfd8e6;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.think-page-tab-item.tab-fixed {
    padding-right: 16px;
}

.think-page-tab-item:not(.tab-fixed) {
    padding-right: 34px;
}

.think-page-tab-name {
    display: block;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.think-page-tab-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    right: 10px;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    border-radius: 50%;
    color: #94a3b8;
    font-style: normal;
    font-size: 12px;
    line-height: 1;
}

.think-page-tab-close:hover {
    background: #e2e8f0;
    color: #334155;
}

.think-page-panels {
    position: relative;
}

.think-page-panel {
    display: none;
    min-height: calc(100vh - 72px);
}

.think-page-panel.active {
    display: block;
}

.think-page-panels > .think-page-panel > .layui-card:before {
    display: none !important;
}

.think-page-panels > .think-page-panel > .layui-card > .layui-card-header {
    border-left: none !important;
}

.think-page-panels > .think-page-panel > .layui-card {
    margin-top: 0;
}

.layui-layout-left-mini > .layui-side .layui-nav-item > .layui-nav-child,
.layui-layout-left-hide > .layui-side .layui-nav-item > .layui-nav-child {
    display: none !important;
}

.layui-layout-left-mini > .layui-side .layui-nav-item.layui-nav-itemed > .layui-nav-child,
.layui-layout-left-hide > .layui-side .layui-nav-item.layui-nav-itemed > .layui-nav-child {
    display: block !important;
}
