/*自定义代码引用组件*/
formvariable {
    background-color: #1890ff;
    font-size: 12px;
    line-height: 20px;
    color: #ffffff;
    border-radius: 7px;
    padding: 0 5px;
    display: inline-block;
    margin: 0 3px;
}

/* 动态文字 */
dynamictext {
    background-color: #1890ff;
    font-size: 12px;
    line-height: 20px;
    color: #ffffff;
    border-radius: 7px;
    padding: 0 5px;
    display: inline-block;
    margin: 0 3px;
}

/* 自定义弹窗 */
.tinymce-popup-btn {
    color: #1890ff;
}

formpopup {
    pointer-events: auto !important;
    cursor: pointer;
}

formpopup * {
    pointer-events: none !important;
}

/* public/tinymce/plugins/mathformula/mathformula.css */
.katex-preview-wrapper :not(svg):not(rect) {
    vertical-align: unset;
}

/* public/tinymce/plugins/mathformula/mathformula.css */
.formula-section-reference {
    margin-bottom: 10px !important;
    font-size: 14px !important;
    color: #007bff !important;
}

.formula-section {
    padding: 10px !important;
    border-radius: 5px !important;
}

.formula-preview-title {
    font-weight: bold !important;
    margin-bottom: 5px !important;
}

.preview-placeholder .preview-error {
    font-style: italic !important;
    text-align: center !important; /* 使提示文本居中 */
    line-height: 100px !important; /* 使提示文本垂直居中 */
    height: 100% !important; /* 使提示文本占满高度 */
}

.katex-preview-wrapper {
    max-height: 300px !important; /* 设置最大高度 */
    min-height: 200px !important; /* 设置最小高度 */
    background-color: #f5f5fd !important; /* 设置背景灯 */
    border: 1px solid #ccc !important; /* 可选：添加边框 */
    border-radius: 5px !important; /* 可选：圆角 */
    padding: 10px !important; /* 可选：内边距 */
    overflow-y: auto !important; /* 允许垂直滚动 */
    display: flex !important; /* 使用 flexbox 进行居中 */
    justify-content: center !important; /* 水平居中 */
    align-items: center !important; /* 垂直居中 */
}

.math-formula {
    display: inline-block;
}

.flexible-input-blank {
    border-bottom: 1px solid #000;
    display: inline-block;
    width: 100px;
    height: 20px;
    margin: 0 5px;
}
