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

/*! 左侧全菜单布局：菜单树底部留白（对齐原 side-tree 间距） */
.layui-side-scroll > .layui-nav-tree:after {
    content: '';
    display: block;
    height: 55px;
}

/*! 表单图片上传区：flex 自闭环，上传框与说明同行展示，避免 inline-block 换行错乱 */
.jfy-upload-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 30px;
    align-items: center;
    padding: 5px 0;
}
.jfy-upload-item {
    display: flex;
    align-items: center;
    gap: 10px;
}
.jfy-upload-item .uploadimage {
    margin: 0;
    flex-shrink: 0;
}
.jfy-upload-item > span {
    font-size: 13px;
    white-space: nowrap;
}
.jfy-upload-row > label {
    flex: 1;
    min-width: 260px;
}

/*! 弹窗高度兜底上限：小窗口时内容区独立滚动，避免弹窗撑满屏幕裁切底部按钮 */
.layui-layer-page {
    max-height: calc(100vh - 40px);
}
.layui-layer-page > .layui-layer-content {
    max-height: calc(100vh - 92px);
}

/*! 表单弹窗底部按钮吸底：保存/取消恒可见，无需滚动到最底 */
.layui-layer-page .layui-form > .layui-form-item.text-center:last-child {
    position: sticky;
    bottom: 0;
    z-index: 10;
    margin: 0;
    padding: 12px 0;
    background: #fff;
    box-shadow: 0 -6px 12px rgba(0, 0, 0, .06);
}
