


.page {
    display: block;
    margin: 0;
    padding: 0;
    width: 100%;
    page-break-after: always;
    font-family: "Nazanin";
    font-size: 11px;
    background-color: #eeeeee;
    background: white;
    margin-top: 30px;
    margin-bottom: 30px;
    margin-left: auto;
    margin-right: auto;
    z-index: 10000;
}
.page ul, ol {
    margin-top: 0;
    margin-bottom: 0;
}

    .page p {
    margin: 0;
    line-height: 1;

}

    .page[size="A4"][orientation ="Portrait"] {
        width: 210mm;
        height: 297mm;
        position: relative;
        overflow: hidden;
    }

    .page[size="A4"][orientation ="Landscape"] {
        width: 297mm;
        height: 210mm;
        position: relative;
        overflow: hidden;
    }


.main {
    position: relative;
    width: 100%;
    height: 100%;
    color: #000000;
    background-color: #ffffff;
}

.mheader {
    width: 100%;
    height: 20mm;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    outline-color: transparent;
    overflow: hidden;
}

.mfooter {
    width: 100%;
    height: 20mm;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    outline-color: transparent;
    overflow: hidden;
}


.page[size="A4"][orientation ="Portrait"] .mcontent {
    height: 257mm;
    overflow: hidden;
    position: absolute;
    top: 20mm;
    width: 100%;
    left: 0;
    right: 0;
    outline-color: transparent;
}

.page[size="A4"][orientation ="Landscape"] .mcontent {
    height: 170mm;
    overflow: hidden;
    position: absolute;
    top: 20mm;
    width: 100%;
    left: 0;
    right: 0;
    outline-color: transparent;
}
.page[size="A4"][orientation ="Portrait"] .page-bottom-bar {
    width: 210mm;
}
.page[size="A4"][orientation ="Landscape"] .page-bottom-bar {
    width: 297mm;
}


.header-bottom-line {
    position: absolute;
    border-bottom: 1px;
    border-bottom-style: dashed;
    border-bottom-color: gray;
}

.footer-top-line {
    position: absolute;
    border-top: 1px;
    border-top-style: dashed;
    border-top-color: gray;
}   
 

.image-menu {
    position: absolute;
    width: 300px;
    background: white;
    padding: 5px;
    border: 1px solid #ccc;
    z-index: 10001;
}

.stickytext-menu {
    width: 400px;
}

.text-menu {
    width: 493px;
}


.template-text-menu {
    width: 300px;
}

.iframe-shadow {
    width: 100%;
    height: 100%;
    cursor: pointer;
    position: absolute;
}

.ui-widget-header p, .ui-widget-content p {
    margin: 0;
}

.editor-frame {
    height: 179mm;
    overflow: scroll;
    overflow-x: hidden;
    max-height: 325mm;
    overflow-y: overlay !important;
    z-index: 10000;
    padding: 0 !important;
}

.page-number {
    position: absolute;
    font-size: 14px;
}

.resize-box {
    position: absolute;
    left: 0;
    top: 30px;
    width: 5px;
}

.resize-box[size="A4"] {
    height: 297mm;
}

.header-area {
    position: absolute;
    top: 20mm;
    width: 100%;
    border-top: 1px;
    border-top-style: dashed;
    border-top-color: gray;
    cursor: n-resize;
    padding-bottom: 3px;
}

.footer-area {
    position: absolute;
    left: 0;
    width: 100%;
    border-bottom: 1px;
    border-bottom-style: dashed;
    border-bottom-color: gray;
    cursor: n-resize;
    padding-bottom: 3px;
}

.header-area-title {
    float: left;
    background: #ddd;
    font-weight: 100;
    padding: 2px;
    border: 1px solid gray;
    font-size: 11px;
    cursor: pointer;
}

.footer-area-title {
    float: left;
    background: #ddd;
    font-weight: 100;
    padding: 2px;
    border: 1px solid gray;
    font-size: 11px;
    cursor: pointer;
}


.page-bottom-bar {
    webkit-box-shadow: rgba(0,0,0,0.1) 0 1px 3px;
    -moz-box-shadow: rgba(0,0,0,0.1) 0 1px 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 15px;
    background-color: #ffffff;
    padding: 5px;
    margin-left: auto;
    margin-right: auto;
}


.page-number-info {
    font-size: 12px;
    font-weight: 300;
}

.mimage {
    cursor: pointer;
}

.table-templateId {
    background-color: #f7f9fa;
}