/* 节点类页面公共样式（规则 / 会员组 / 权限 / 部门） */
.node-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.node-toolbar .layui-btn {
    margin: 0;
}

.node-toolbar .node-hint,
.node-toolbar .node-count {
    color: var(--muted);
    font-size: 12px;
}

.node-toolbar .node-count b {
    color: var(--brand);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.node-picker-box {
    position: relative;
    min-height: 130px;
    max-height: 420px;
    overflow: auto;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    transition: border-color .15s ease, box-shadow .15s ease;
}

.node-picker-box:focus-within {
    border-color: var(--brand);
    box-shadow: var(--focus-ring);
}

.node-picker-box .ztree {
    margin: 0;
    padding: 0;
}

.node-picker-box .ztree li {
    line-height: 28px;
    white-space: normal;
}

.node-picker-box .ztree li a {
    color: var(--text);
    vertical-align: middle;
    white-space: normal;
    word-break: break-all;
}

.node-picker-box .ztree li a:hover {
    color: var(--brand);
}

.node-picker-empty {
    display: none;
    padding: 34px 12px;
    color: var(--muted);
    text-align: center;
}

.node-picker-help {
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
}

.node-search-row {
    margin-bottom: 8px;
}

.node-search-row .layui-input {
    height: 34px;
    border-radius: var(--radius-sm);
}

.node-form .layui-form-label {
    white-space: normal;
    line-height: 20px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.node-form .layui-input-block,
.node-form .layui-input-inline {
    min-width: 0;
}

.node-form .node-picker-box {
    margin-top: 0;
}

@media (max-width: 767.98px) {
    .node-toolbar {
        gap: 6px;
    }

    .node-toolbar .layui-btn {
        min-height: 36px;
    }

    .node-picker-box {
        max-height: 320px;
    }
}
