
body p:first-child {
    margin-top : 0
}
body p:last-child {
    margin-bottom: 0
}
body.document-editor {
    text-align: right;
    direction: rtl;
    font-size: 12px;
    background: transparent;
    position: relative;
    border: 0;
    box-shadow: none;
}
body.print {
    margin:0;
    padding:0;
}


* {
    -webkit-print-color-adjust: exact !important; /* Chrome, Safari */
    color-adjust: exact !important; /*Firefox*/
}
.editor-placeholder {
    text-align: left;
    /*border: 1px solid #000;*/
    height: 80px;
    position: relative;
    direction: ltr;
}

.editor-placeholder > span {
        display: block;
        width:80px;
        /*border:1px solid red;*/
        line-height:12px;
        font-size:10px
}
.editor-menu-popup {
    border:1px solid #eee;
    position:absolute;
}
.no-copy {
    -webkit-user-select: none; /* Chrome 49+ */
    -moz-user-select: none; /* Firefox 43+ */
    -ms-user-select: none; /* No support yet */
    user-select: none; /* Likely future */
}

.main-container {
    height: 29.7cm;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    position: absolute;
    top: 0;
    z-index: -1;
    margin: 0cm auto;
    left: 0;
    right: 0;
}
.document-editor-print {
    text-align: right;
    direction: rtl;
    font-size: 12px;
    background: transparent;
    position: relative;
    border: 0;
    box-shadow: none;
    position: relative;
    width: 17cm;
    min-height: 26.7cm;
    padding: 1cm 2cm 2cm;
    margin: 0cm auto;
}



@media print {
    html {
        background-color: #fff;
    }
    body {
        margin: 0px !important;
        display:block;
    }
    .main-container {
        position: fixed !important;
    }
    img {
        max-width:100%
    }

}
@page {
    size:  A4;
    height: 297mm;
    width: 210mm;
    margin: 0mm;
}
