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

/* ===== 后台导航布局调整：一级菜单在左侧，二级菜单在顶部 ===== */
.layui-layout-admin > .layui-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    white-space: nowrap;
}
.layui-layout-admin > .layui-header > .layui-layout-left,
.layui-layout-admin > .layui-header > .layui-layout-right {
    position: static !important;
    flex: none;
}
.layui-layout-admin > .layui-header > .think-top-menu {
    flex: 1;
    height: 100%;
    overflow: visible;
    box-sizing: border-box;
}
.think-top-menu-group {
    height: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
}
.think-top-menu-group .item-wrap {
    height: 100%;
    list-style: none;
    display: flex;
    align-items: center;
    position: relative;
}
.think-top-menu-group .item {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 16px;
    color: #333;
    cursor: pointer;
}
.think-top-menu-group .item i {
    margin-right: 5px;
}
.think-top-menu-group .item-wrap:hover > .item,
.think-top-menu-group .item-wrap.layui-this > .item {
    color: #000;
    background: rgba(0, 0, 0, 0.08);
}
.think-top-menu-group .item-wrap.layui-this > .item:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: #098;
}
.think-top-menu-group .child-list {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 140px;
    display: none;
    margin: 0;
    padding: 0;
    list-style: none;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 999;
}
.think-top-menu-group .item-wrap.has-child:hover .child-list {
    display: block;
}
.think-top-menu-group .child-list a {
    display: block;
    padding: 0 16px;
    line-height: 40px;
    color: #333;
}
.think-top-menu-group .child-list a i {
    margin-right: 5px;
}
.think-top-menu-group .child-list a:hover,
.think-top-menu-group .child-wrap.layui-this .child-item {
    color: #098;
    background: #f5f5f5;
}

/* ===== 颜色统一：下拉选中项 / 输入框聚焦色，统一为系统主色 #098（覆盖 layui 默认青绿 #16b777） ===== */
.layui-form-select dl dd.layui-this {
    color: #098;
}
.layui-input:focus,
.layui-textarea:focus {
    border-color: #098 !important;
    box-shadow: 0 0 0 3px rgba(0, 153, 136, .08) !important;
}
.layui-table-edit:focus,
.layui-laypage input:focus,
.layui-laypage select:focus {
    border-color: #098 !important;
}

/* ===== 系统统一样式：表单内名单容器（白底细边框，与 layui 输入框视觉一致） ===== */
/* 容器内不放滚动条，长名单随弹窗整体滚动，避免下拉被 overflow 容器裁切 */
.aj-list {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 2px;
    padding: 2px 10px;
}

/* ===== 弹窗（layer 页面层）内表单底部操作按钮固定可见 =====
   弹层高度被收敛到视口内后，长表单需要滚到底才能看到「保存 / 取消」按钮；
   把表单末尾的按钮行钉在内容区底部，内容不足一屏时不会有任何变化。
   类名由 admin.js 的 $.form.modal 自动打在最末一个按钮行上。 */
.layui-layer-page .layui-layer-content .aj-modal-actions {
    position: sticky;
    bottom: 0;
    z-index: 9;
    margin-bottom: 0;
    padding: 10px 0;
    background: #fff;
    border-top: 1px solid #f0f0f0;
}
