.mw-toolbar-editbutton{
    border-right: 1px solid #BDCFE8 !important;
}
.mw-toolbar-editbutton:hover{
    background: #BACDE7 !important;
}
/* 插入表格 start */
.popup_editor_extend_table{
    display: none;
    position: absolute;
}
.popup_editor_extend_table.active{
    display: block;
    z-index: 9999;
}
.popup_editor_extend_table_content > div{
    display: flex;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
}
.popup_editor_extend_table_content > div:first-child{
    border-top: 1px solid #ccc;
}
.popup_editor_extend_table_content > div:last-child{
    border-bottom: 1px solid #ccc;
}
.popup_editor_extend_table_content > div > span{
    border: 1px solid #ccc;
    width: 22px;
    height: 22px;
    display: inline-block;
    background: #fff;
}
.popup_editor_extend_table_content > div > span.active{
    background: #759FCF;
}
/* 插入表格 end */

/* 替换 start */
.popup_editor_extend_replace{
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgb(0,0,0,0.7);
    z-index: 9998;
    display: none;
    justify-content: center;
    align-items: center;
}
.popup_editor_extend_replace.active{
    display: flex;
}
.popup_editor_extend_replace .popup_editor_extend_replace_content{
    z-index: 9999;
    background: #fff;
    position: relative;
    border-radius: 5px;
    box-shadow: 0 0 5px 5px #555;
}
.popup_editor_extend_replace .popup_editor_extend_replace_header{
    background: #558ed5;
    color: #fff;
    padding: 9px 0;
    text-align: center;
    border-radius: 5px 5px 0 0;
}
.popup_editor_extend_replace .popup_editor_extend_replace_content > i{
    position: absolute;
    right: 15px;
    top: 5px;
    color: #fff;
    cursor: pointer;
}
.popup_editor_extend_replace .popup_editor_extend_replace_body{
    padding: 20px;
}
.popup_editor_extend_replace .popup_editor_extend_replace_body td{
    padding: 10px;
}
.popup_editor_extend_replace .popup_editor_extend_replace_body td input{
    width: 300px;
    padding: 0 4px;
}
.popup_editor_extend_replace .popup_editor_extend_replace_actions{
    padding-bottom: 20px;
    text-align: center;
}
.popup_editor_extend_replace .popup_editor_extend_replace_actions span{
    padding: 4px 8px;
    background: #558ed5;
    color: #fff;
    border-radius: 3px;
    cursor: pointer;
}
/* 替换 end */

/* 插入链接 start */
.popup_editor_extend_link{
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgb(0,0,0,0.7);
    z-index: 9998;
    display: none;
    justify-content: center;
    align-items: center;
}
.popup_editor_extend_link.active{
    display: flex;
}
.popup_editor_extend_link .popup_editor_extend_link_content{
    z-index: 9999;
    background: #fff;
    position: relative;
    border-radius: 5px;
    box-shadow: 0 0 5px 5px #555;
}
.popup_editor_extend_link .popup_editor_extend_link_header{
    background: #558ed5;
    color: #fff;
    padding: 9px 0;
    text-align: center;
    border-radius: 5px 5px 0 0;
}
.popup_editor_extend_link .popup_editor_extend_link_content > i{
    position: absolute;
    right: 15px;
    top: 5px;
    color: #fff;
    cursor: pointer;
}
.popup_editor_extend_link .popup_editor_extend_link_body{
    padding: 20px;
}
.popup_editor_extend_link .popup_editor_extend_link_body td{
    padding: 2px 10px;
}
.popup_editor_extend_link .popup_editor_extend_link_body td input[type='text']{
    width: 350px;
    padding: 0 4px;
    margin-bottom: 15px;
}
.popup_editor_extend_link .popup_editor_extend_link_actions{
    padding-bottom: 20px;
    text-align: center;
}
.popup_editor_extend_link .popup_editor_extend_link_actions span{
    padding: 4px 8px;
    background: #558ed5;
    color: #fff;
    border-radius: 3px;
    cursor: pointer;
}
.popup_editor_extend_link .popup_editor_extend_link_body .link_type_list > span{
    margin-right: 20px;
}
/* 插入链接 end */

/* 插入文件 start */
.popup_editor_extend_file{
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgb(0,0,0,0.7);
    z-index: 9998;
    display: none;
    justify-content: center;
    align-items: center;
}
.popup_editor_extend_file.active{
    display: flex;
}
.popup_editor_extend_file .popup_editor_extend_file_content{
    z-index: 9999;
    background: #fff;
    position: relative;
    border-radius: 5px;
    box-shadow: 0 0 5px 5px #555;
}
.popup_editor_extend_file .popup_editor_extend_file_header{
    background: #558ed5;
    color: #fff;
    padding: 9px 0;
    text-align: center;
    border-radius: 5px 5px 0 0;
}
.popup_editor_extend_file .popup_editor_extend_file_content > i{
    position: absolute;
    right: 15px;
    top: 5px;
    color: #fff;
    cursor: pointer;
}
.popup_editor_extend_file .popup_editor_extend_file_body{
    padding: 20px;
}
.popup_editor_extend_file .popup_editor_extend_file_body td{
    padding: 2px 10px;
}
.popup_editor_extend_file .popup_editor_extend_file_body td input[type='text']{
    width: 350px;
    padding: 0 4px;
    margin-bottom: 15px;
}
.popup_editor_extend_file .popup_editor_extend_file_actions{
    padding-bottom: 20px;
    text-align: center;
}
.popup_editor_extend_file .popup_editor_extend_file_actions span{
    padding: 4px 8px;
    background: #558ed5;
    color: #fff;
    border-radius: 3px;
    cursor: pointer;
}
.popup_editor_extend_file .popup_editor_extend_file_body .file_type_list > span{
    margin-right: 20px;
}
/* 插入文件 end */

/* 插入new标记 start */
.popup_editor_extend_new{
    display: none;
    position: absolute;
}
.popup_editor_extend_new.active{
    display: block;
    z-index: 9999;
}
.popup_editor_extend_new > div{
    display: flex;
    border: 1px solid #ccc;
}
/* 插入new标记 end */
/* 插入弹出框语法 start */
.popup_editor_extend_popupid{
    display: none;
    position: absolute;
}
.popup_editor_extend_popupid.active{
    display: block;
    z-index: 9999;
}
/* 插入弹出框语法 end */

/* 插入公式 start */
.popup_editor_extend_math {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(0,0,0,0.7);
    z-index: 9998;
    display: none;
    justify-content: center;
    align-items: center;
}
.popup_editor_extend_math.active {
    display: flex;
}
.popup_editor_extend_math_content {
    z-index: 9999;
    background: #fff;
    position: relative;
    border-radius: 5px;
    box-shadow: 0 0 5px 5px #555;
    min-width: 500px;
}
.popup_editor_extend_math_header {
    background: #558ed5;
    color: #fff;
    padding: 9px 0;
    text-align: center;
    border-radius: 5px 5px 0 0;
}
.popup_editor_extend_math_content > i {
    position: absolute;
    right: 15px;
    top: 5px;
    color: #fff;
    cursor: pointer;
}
.popup_editor_extend_math_body {
    padding: 20px;
}
.popup_editor_extend_math_body td {
    padding: 8px 10px;
    vertical-align: top;
}
.popup_editor_extend_math_body .math_formula {
    width: 340px;
    padding: 4px;
    font-family: monospace;
    font-size: 13px;
    resize: vertical;
}
.popup_editor_extend_math_body .math_preview {
    min-height: 40px;
    min-width: 340px;
    padding: 8px;
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 3px;
}
.popup_editor_extend_math_actions {
    padding-bottom: 20px;
    text-align: center;
}
.popup_editor_extend_math_actions span {
    padding: 4px 20px;
    background: #558ed5;
    color: #fff;
    border-radius: 3px;
    cursor: pointer;
}
/* 插入公式 end */

/* wiki-math 展示页样式 start */
.wiki-math {
    display: inline-block;
    vertical-align: middle;
}
/* 富文本编辑器中 wiki-math 为空时显示占位文字 */
.ck-editor__editable .wiki-math:empty::before {
    content: attr(data-formula);
    background: #f0f4ff;
    border: 1px solid #c0c8e8;
    border-radius: 3px;
    padding: 1px 5px;
    font-family: monospace;
    font-size: 12px;
    color: #555;
    cursor: pointer;
}
/* wiki-math 展示页样式 end */