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

/* 事件属性定义弹窗：限定作用域，覆盖主题默认的单侧表单留白与紧凑表格输入。 */
.layui-form.event-attribute-form {
    --attribute-accent: #199f91;
    --attribute-ink: #303b41;
    --attribute-muted: #7b858b;
    --attribute-border: #e7ecef;
    color: var(--attribute-ink);
}
.layui-form.layui-card.event-attribute-form > .layui-card-body.event-attribute-body {
    box-sizing: border-box;
    max-height: 65vh;
    padding: 24px;
    overflow: auto;
}
.event-attribute-form .event-attribute-context {
    padding: 14px 16px;
    border-left: 3px solid var(--attribute-accent);
    background: #f5f9f8;
}
.event-attribute-form .event-attribute-app {
    margin-bottom: 7px;
    color: var(--attribute-muted);
    font-size: 12px;
    overflow-wrap: anywhere;
}
.event-attribute-form .event-attribute-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 14px;
}
.event-attribute-form .event-attribute-heading h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
.event-attribute-form code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
}
.event-attribute-form .event-attribute-heading code { color: var(--attribute-muted); overflow-wrap: anywhere; }
.event-attribute-form .event-attribute-intro { margin: 18px 0 12px; color: #626d74; line-height: 1.7; }
.event-attribute-form .event-attribute-table-wrap { padding-bottom: 2px; }
.event-attribute-form .event-attribute-table { width: 100%; margin: 0; table-layout: fixed; border-color: var(--attribute-border); }
.event-attribute-form .event-attribute-table th,
.event-attribute-form .event-attribute-table td { padding: 14px 12px; border-color: var(--attribute-border); vertical-align: middle; }
.event-attribute-form .event-attribute-table th { padding-top: 12px; padding-bottom: 12px; background: #f7f9fa; font-weight: 600; }
.event-attribute-form .event-attribute-key { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
.event-attribute-form .event-attribute-readonly,
.event-attribute-form .event-attribute-limit { margin-left: 5px; color: var(--attribute-muted); font-size: 11px; font-weight: 400; white-space: nowrap; }
.event-attribute-form .event-attribute-table .layui-input,
.event-attribute-form .event-attribute-table .layui-select { height: 36px; line-height: 36px; border-radius: 3px; }
.event-attribute-form .event-attribute-table .layui-input:focus { border-color: var(--attribute-accent) !important; box-shadow: 0 0 0 2px rgba(25, 159, 145, .12); }
.event-attribute-form .event-attribute-version { padding-left: 6px; padding-right: 6px; text-align: center; color: var(--attribute-muted); }
.event-attribute-form .event-attribute-status { display: inline-block; padding: 3px 8px; border-radius: 3px; line-height: 1.6; font-size: 12px; }
.event-attribute-form .is-pending { color: #996c21; background: #fff6e5; }
.event-attribute-form .is-available { color: #158374; background: #eaf7f3; }
.event-attribute-form .is-removed { color: #7b858b; background: #f0f2f4; }
.event-attribute-form .event-attribute-notice { margin: 10px 0; padding: 10px 12px; background: #fff6e5; color: #996c21; line-height: 1.7; overflow-wrap: anywhere; }
.event-attribute-form .event-attribute-notice-error { background: #fff0ee; color: #bd4d43; }
.event-attribute-form .event-attribute-type-note { margin: 16px 0 8px; color: #826941; line-height: 1.7; }
.event-attribute-form .event-attribute-help { color: var(--attribute-muted); line-height: 1.8; }
.event-attribute-form .event-attribute-help summary { width: fit-content; cursor: pointer; }
.event-attribute-form .event-attribute-help p { margin: 8px 0 0; }
.event-attribute-form .event-attribute-empty { padding: 32px 16px; text-align: center; color: var(--attribute-muted); }
.layui-form.event-attribute-form > .event-attribute-footer { display: flex; justify-content: flex-end; gap: 10px; margin: 0; padding: 16px 24px; border-top: 1px solid var(--attribute-border); background: #fff; }
.event-attribute-form .event-attribute-footer .layui-btn { margin: 0; min-width: 80px; border-radius: 3px; }
.event-attribute-form summary:focus-visible,
.event-attribute-form button:focus-visible { outline: 2px solid var(--attribute-accent); outline-offset: 3px; }
/* 挂载到body的Layui下拉浮层已由组件定位，不再叠加主题的37px偏移。 */
.layui-select-panel-wrap dl { top: 0; }
@media (max-width: 760px) {
    .layui-form.layui-card.event-attribute-form > .layui-card-body.event-attribute-body { padding: 16px; }
    .event-attribute-form .event-attribute-table-wrap { overflow-x: auto; }
    .event-attribute-form .event-attribute-table { min-width: 690px; }
    .layui-form.event-attribute-form > .event-attribute-footer { padding: 14px 16px; }
}
