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

/*! 表单弹窗内容超高时内部滚动（2026-09-14）：
    CKEditor 等富文本编辑器在弹窗打开后才异步挂载，会把 type:1 弹窗整体
    撑出视口且无滚动容器（保存按钮不可达）。限制内容区最大高度为视口
    减去标题栏高度，超出部分在弹窗内部滚动。 */
.layui-layer-page .layui-layer-content {
    max-height: calc(100vh - 150px);
    overflow-y: auto;
}

/*! 列表缩略图在单元格内垂直居中（2026-09-15，方案二）：
    含 .thumb-row 的单元格整体 flex 垂直居中（:has 选择器，后台 Chrome 环境无兼容问题），
    thumb-row 仅负责多图横排与间距。 */
.layui-table-cell:has(> .thumb-row) {
    display: flex;
    align-items: center;
}
.layui-table-cell .thumb-row {
    display: flex;
    align-items: center;
    gap: 4px;
}
.layui-table-cell .thumb-row img.think-img-thumb {
    height: 38px;
}
.layui-table-cell .thumb-row img.think-img-thumb:last-child {
    margin-right: 0;
}
