.domDiv {

    min-height: 300px;
    height: 300px;
}



.preview_save{
    width: 100%;
    height: 100vh;
    overflow: auto;
    padding: 10px;
    background: rgb(255, 255, 255);
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
}




.de_btn_act {
    background: #e4e4e4 !important;
}

.de_container{
    width: 100%;
    height: calc(100% - 0px);
    display: flex;
    border: 1px solid #e4e4e4;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    position: relative;
    border-radius: 2px;
   
}

.de_container, .de_preview_area {
   
    color: #505050;
    font-family: inherit;
    font-size: 15px !important;
    line-height: 22px !important;

    >* {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        
    }
    a{text-decoration: underline;}

    li::marker{
        content: none !important;
    }

    .de_icon_img {
        background-image: url(./icon/de_editor-icon.svg);
        background-repeat: no-repeat;
        background-size: 640px; 
        width: 24px;              
        height: 24px;             
        display: inline-block;
    }

    .de_btn_close {
        cursor: pointer;
        background-position: -32px -92px;
    }
    .de_save_btn {
        padding: 0 8px;
        background: #0078d7;
        color: #fff;
        border: none;
        border-radius: 2px;
        font-size: 14px;
        height: 28px;
        cursor: pointer;
    }

    [contenteditable] {
        outline: 0px solid transparent;
    }

    .de_heading1{
        font-size: 2em;
        font-weight: bold;
    }
    .de_heading2{
        font-size: 1.5em;
        font-weight: bold;
    }
    .de_heading3{
        font-size: 1.17em;
        font-weight: bold;
    }
    .de_font_size1{
        font-size: 0.75em;
    }
    .de_font_size2{
        font-size: 1em;
    }
    .de_font_size3{
        font-size: 1.5em;
    }
    .de_text_style1{
        font-family: Arial, Helvetica, sans-serif;
        display: inline-block;
        background: #c9c9c9;
        border-radius: 2px;
        padding: 4px;
        font-size: 15px;
        line-height: 15px;
        margin: 0 2px;
    }

    .de_text_style2{
        font-family: 'Courier New', Courier, monospace;
        display: inline-block;
        border: 2px solid #c9c9c9;
        border-radius: 2px;
        padding: 2px;
        font-size: 15px;
        line-height: 15px;
        margin:2px;
    }
    .de_text_style3{
        font-family: 'Times New Roman', Times, serif;
        display: inline-block;
        font-style: italic;
        font-size: 17px;
        line-height: 15px;
        margin: 0 2px;
    }

}


.de_container .de_control_menu {
    display: flex;
    width: 100%;
    height: auto;
    border-bottom: 1px solid #e4e4e4;
    justify-content: space-between;
    flex-direction: column;


   

    .de_bold_text_icon {
       background-position: -28px -2px;
       background-size: 550px;
    } 
    .de_italic_text_icon {
        background-position: -54px -2px;
        background-size: 550px;
    }
    .de_underline_text_icon {
        background-position: -79px -2px;
        background-size: 550px;
    }
    .de_text_color_icon {
        background-position: -126px -4px;
        background-size: 650px;
    }
    .de_bg_color_icon {
       background-position: -155px -4px;
        background-size: 650px;
    }
    .de_sup_icon{
        background-position: -170px -3px;
        background-size: 600px;
    } 
    .de_sub_icon{
        background-position: -198px -2px;
        background-size: 600px;
    }
    .de_ul_icon{
        background-position: -228px -2px;
        background-size: 600px;
    }
    .de_ol_icon{
        background-position: -256px -3px;
        background-size: 600px;
    } 
    .de_indect_left_icon{
        background-position: -264px -2px;
        background-size: 560px;
    }
    .de_indect_right_icon{
        background-position: -290px -2px;
        background-size: 560px;
    } 
    .de_paragraph_icon{
        background-position: -328px -2px;
        background-size: 580px;
        
    }
    .de_align_left_icon{
        background-position: -393px -2px;
       
    }
    
    .de_align_right_icon{
        background-position: -423px -2px;
    }
    .de_align_center_icon{
        background-position: -453px -2px;
       
    }
    .de_align_justify_icon{
        background-position: -483px -3px;
       
    }

    .de_link_icon{
        background-position: -514px -3px;
       
    }
    .de_img_upload_icon{
        background-position: -543px -2px;
       
    }
    .de_table_icon{
        background-position: -536px -1px;
        background-size: 600px;
       
    }
    .de_add_table_icon{
        background-position: -33px -32px
       
    }
    .de_add_table_row_icon{
        background-position: -63px -34px;
       
    }
    .de_add_table_col_icon{
        background-position: -93px -33px;
       
    }
    .de_del_table_row_icon{
        background-position: -123px -33px;
       
    }
    .de_del_table_col_icon{
        background-position: -153px -33px;
       
    }
    .de_del_table_icon{
        background-position: -183px -34px;
       
    }
    .de_preview_icon{
        background-position: -213px -34px;   
    }

    .de_sub_menu {
        position: absolute;
        top: 25px;
        left: -1px;
        padding: 1px;
        background: #fff;
        border: 1px solid #e4e4e4;
        list-style: none;
        display: inline-block;
        box-shadow: 0 3px 6px 0 rgba(0, 0, 0, .15);
        z-index: 20;
        display: none;
        flex-direction: column;
        gap: 2px;
       

        li{
            height: 25px;
            display: flex;
            align-items: center;
            border-bottom: 1px solid #e4e4e4;
            padding: 0 0 2px 0;
            box-sizing: content-box;
        }
    }

    .de_menu_right_side_top{
        left: 25px;
        top: 0;
    }

    .de_show_hide_btn:hover + .de_sub_menu, .de_sub_menu:hover {
        display: flex;
    }
    .hide-child + .de_sub_menu {
        display: none !important;
    }

    .de_control_btn {
        display: flex;
        width: 100%;
        justify-content: flex-start;
        padding: 4px;
        gap: 5px;
        background: #fafafa;
        flex-wrap: wrap;
        box-sizing: border-box;

        .de_menu_btn {
            list-style: none;
            display: inline-block;
            margin: 0;
            padding: 0;
            position: relative;
        }

        .de_menu_btn_right {
            margin-left: auto;
            li{
                border-radius: 50% !important;
                border:2px solid #e4e4e4 !important;
                height: 25px !important;
                background: #e4e4e4;
            }
        }

        .de_btn_set {
            display: flex;
            gap: 2px;
            justify-content: flex-start;
            align-items: center;
        }

        .de_btn_set>li {
            width: 26px;
            height: 26px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative; 
            border: 1px solid #eee;
            border-radius: 2px;

        }

        .de_btn_set> :hover {

            background: #e4e4e4;

        }

        .de_font_size {
            height: 26px;
            width: 100px;
            border: 1px solid #e4e4e4;
            background: #f5f5f5;

        }



    }

    .de_color_plate {
       
        display: flex;
        width: 153px;
        height: auto;
        padding: 4px;
        background-color: #fff;
        flex-wrap: wrap;
        box-sizing: content-box;
        gap: 1px;
        top: 27px;
        z-index: 20;
        left: -1px;

        span {
            width: 21px;
            height: 21px;
            display: inline-block;
            cursor: pointer;
            
           

        }
        span:first-child {
           border: 1px solid #e4e4e4;
            
        }

    }

    .de_table_plate {
        display: flex;
        width: 146px;
        height: auto;
        padding: 4px; 
        background-color: #fff;
        flex-wrap: wrap;
        box-sizing: content-box;
        gap: 1px;
       
        

        div {
            width: auto;
            height: auto;
            display: flex;
            gap: 1px;



            span {
                width: 20px;
                height: 20px;
                display: block;
                cursor: pointer;

            }

            span+span {
                border-left: 0;
            }
        }


    }

    .de_paragraph_plate {
        display: none;
        width: 22px;
        height: auto;
        padding: 2px;
        border: 1px solid #e4e4e4;
        background-color: #fff;
        flex-wrap: wrap;
        box-sizing: content-box;
        gap: 1px;
        position: absolute;
        top: 27px;
        z-index: 20;
        left: -1px;
        flex-direction: column;

        span {
            width: 22px;
            height: 22px;
            display: inline-block;
            cursor: pointer;

            img {
                width: 22px;
                height: auto;
            }

        }


        span+span {
            border-left: 0;
        }
    }

    .de_font_style_list{
        width: 175px;
        top: 27px;
        left: -1px;
        padding: 2px;
        background: #fff;
        list-style: none;
        display: flex;
        box-shadow: 0 3px 6px 0 rgba(0, 0, 0, .15);
        z-index: 20;
        flex-direction: column;
        gap: 2px;
       

        li{
            height: auto;
            min-height: 25px;
            display: flex;
            align-items: center;
            border-bottom: 1px solid #e4e4e4;
            padding: 0 5px 2px 5px;
            box-sizing: content-box;
            cursor: pointer;
        }
        li:hover{
            background: #f0f0f0;
        }
    }

    .de_display_font_style{
        width: 100px;
        overflow: hidden;
        height: 26px;
        vertical-align: middle;
        display: table-cell;
        border: 1px solid #e8e8e8;
        padding: 0 4px;
        position: relative;
        cursor: pointer;
    }
    .de_display_font_style::after {
        content: '\25BC';
        right: 2px;
        font-size: 10px;
        color: #999;
        top: 8px;
        position: absolute;
    }

    .de_poup_link {
        position: fixed;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 2px dotted rgb(96 139 168);
        width: 100%;
        height: 100vh;

    }



}



.de_workarea{
    width: 100%;
    height: calc(100% - 40px);
    padding: 5px;
    overflow: auto;
    line-height: 18px;
}

.de_workarea, .de_preview_area {
    
    img {
        cursor: pointer;
    }
    ul, ol{

        margin: 5px 5px 5px 20px;
        padding-left: 0;
    }

    ul ul, ol ol, ul ol, ol ul{
         margin: 5px 5px 12px 20px;
    }

    p{
        padding: 0!important;
        margin:0 !important;
        font-size: inherit;
        line-height: inherit;
        color: inherit;
    }

    table {
        border-collapse: collapse;
        border: 1px solid #8e8e8e !important;
        margin: 5px 0;
        tr, td, th {
            border: 1px solid #8e8e8e !important;
            padding: 5px;
            min-width: 20px;
            min-height: 20px;
            text-align: left;
            vertical-align: top;
        }
    }
    .de_tableSelected {
        border: 2px solid #0078d7 !important;
        tr, td, th {
            border: 1px solid #0078d7 !important;
        }
    }


    .de_placeholder {
        position: relative;
        line-height: normal;
    }

    .de_placeholderX::after {
        color: #cccccc;
        opacity: 1;
        -webkit-user-select: none;
        user-select: none;
        position: absolute;
        cursor: text;
        content: attr(data-de_placeholder);
        top: 0
    }

    aX {
        color: blue;
        text-decoration: underline;
    }

    ol {
       list-style: none;
       padding-left: 0;

       li {
            counter-increment: my-counter;
        }

        li::before {
            content: counter(my-counter) '.';
           
            margin-right: 8px;
            display: inline-block;
            width: auto;
        }

        ol{
            counter-reset: my-counter;
            margin-left: 20px;

            li::before {
                content: counter(my-counter, lower-alpha) '.';
               
                margin-right: 8px;
                display: inline-block;
                width: auto;
            }

            ol{
                counter-reset: my-counter;

                 li::before {
                    content: counter(my-counter, lower-roman) '.';
                   
                    margin-right: 8px;
                    display: inline-block;
                    width: auto;
                }
            }
        }
    }

    ul {
        list-style: none;
        padding-left: 0;

         li::before {
            content: '\2981';
            margin-right: 8px;
            display: inline-block;
            width: auto;
        }

        ul{
            margin-left: 20px;

             li::before {
                content: '\2022';
                margin-right: 8px;
                display: inline-block;
                width: auto;
            }
        }

       
    }

    .de_resizeHandle {
        position: absolute;
        width: 10px;
        height: 10px;
        background: #00f;
        border: 2px solid #fff;
        border-radius: 50%;
        z-index: 15;

    }

    .de_imgContainer {
        position: relative;
        display: inline-block;
    }


}

.de_popup {
    position: absolute;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    background: #86d6e791;
    z-index: 30;


    >div {
        box-shadow: 0 3px 6px 0 rgba(0, 0, 0, .15);
    }


    .de_link {
        padding: 5px;
        background: #fff;
        .de_url_input, .de_file_input{
            height: 28px;
            padding: 0 6px;
            max-width: calc(100% - 60px);
        }
    }

   

    .de_popup_body {
        display: flex;
        width: 300px;
        justify-content: space-between;


    }



}



.de_popup_full{
    position: fixed !important;
    display: none;
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: 50;
    background: #86d6e791;
    flex-direction: column;
    z-index: 100000;
    align-items: center;
    justify-content: center;
}

.de_popup, .de_popup_full{

     .de_popup_header {
        display: flex;
        align-items: center;
        justify-items: flex-end;
        justify-content: end;
        margin-bottom: 10px;
        border-bottom: 1px solid #999;
        padding-bottom: 5px;
    }
}

.de_preview_area{
   
    width: calc(100% - 50px);
    height: calc(100vh - 50px);
    max-width: calc(210mm + 90px);
    align-items: center;
    justify-content: center;
    background: #fff;
    z-index: 1000;
    padding: 5px;
   

   

    .de_html_output {
        padding: 10px;
        max-width: 100%;
        height: calc(100% - 40px);
        overflow: auto;
        box-sizing: border-box;
        line-height: 18px;
    }
}