#tinymce > header > table.mce-item-table:first-child,
#tinymce footer table.mce-item-table:first-child {
    margin-left: 0;
}

@media print {
    #tinymce > header > table.mce-item-table td,
    #tinymce footer table.mce-item-table td {
        border: 1px transparent solid;
    }

    #tinymce {
        padding: 0 !important;
    }

    #tinymce > header > table.mce-item-table:first-child td
    #tinymce footer table.mce-item-table:first-child td {
        border: 1px transparent dotted !important;
    }

    hr {
        border-top: 1px solid rgb(51, 51, 51);
        border-bottom: none;
    }
}

#tinymce:not(.device) {
    padding-left: 40px;
    padding-right: 40px;
    padding-top: 20px !important;
    padding-bottom: 20px !important;
    color: rgb(51, 51, 51);
    font-family: 'Roboto', sans-serif;
}


#tinymce:not(.device) table[style*="hidden"] td{
    border: 1px solid transparent;
}


@media (max-width: 1126px) and (min-width: 991px) {
    #tinymce {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}

@media screen and (max-width: 800px) {
    #tinymce {
        /*padding-left: 10px;
        padding-right: 10px;*/
    }
}


#tinymce p {
    margin: 0;
}

#tinymce h1,
#tinymce h2,
#tinymce h3 {
    font-family: "Open Sans", sans-serif;
    font-weight: 600;
}

#tinymce h3 {
    font-size: 23px;
}

#tinymce h2 {
    font-size: 30px;
}

#tinymce h1 {
    font-size: 36px;
}

.mceNonEditable {
    background-color: #c8e6c9;
    padding: 0.1em 0.5em;
    font-size: 80%;
    border-radius: 5px;
    white-space: nowrap;

}

.mceNonEditable.invoicePlaceholder {
    width: 600px;
    height: 50px;
    color: grey;
    background: url("placeholderW100.png") no-repeat center !important;
    padding: 50px;
}

.mceNonEditable.invoicePlaceholder2 {
    width: 600px;
    height: 50px;
    color: grey;
    background: url("placeholderW100.2.png") no-repeat center !important;
    padding: 50px;
}

.mceNonEditable.invoicePlaceholder3 {
    width: 600px;
    height: 50px;
    color: grey;
    background: url("placeholderW100.3.png") no-repeat center !important;
    padding: 50px;
}

.mceNonEditable.invoicePlaceholder4 {
    width: 600px;
    height: 50px;
    color: grey;
    background: url("placeholderW100.4.png") no-repeat center !important;
    padding: 50px;
}

.mceNonEditable.invoicePlaceholder5 {
    width: 600px;
    height: 50px;
    color: grey;
    background: url("placeholderW100.5.png") no-repeat center !important;
    padding: 50px;
}

.mceNonEditable.invoicePlaceholder5_np {
    width: 600px;
    height: 50px;
    color: grey;
    background: url("placeholderW100.5.png") no-repeat center !important;
    padding: 50px;
}

.mceNonEditable.invoicePlaceholder6 {
    width: 600px;
    height: 50px;
    color: grey;
    background: url("placeholderW100.6.png") no-repeat center !important;
    padding: 50px;
}

.mceNonEditable.invoicePlaceholder7 {
    width: 600px;
    height: 50px;
    color: grey;
    background: url("placeholderW100.7.png") no-repeat center !important;
    padding: 50px;
}

.mceNonEditable.invoicePlaceholder8 {
    width: 600px;
    height: 50px;
    color: grey;
    background: url("placeholderW100.8.png") no-repeat center !important;
    padding: 50px;
}

.mceNonEditable.invoicePlaceholder[data-replace-selector="#planContainerWrap"] {
    background: url("placeholderPlans.png") 100% 100% !important;
    background-size: cover !important;
    width: 400px;
    height: 450px;
    padding: 0px;
}

.mceNonEditable.invoicePlaceholder[data-replace-selector="#planContainerWrap2"] {
    background: url("placeholderW100.2.png") 100% 100% !important;
    background-size: cover !important;
    width: 400px;
    height: 450px;
    padding: 0px;
}


.mceNonEditable.invoicePlaceholder[data-replace-selector="#planContainerWrap3"] {
    background: url("placeholderW100.3.png") 100% 100% !important;
    background-size: cover !important;
    width: 400px;
    height: 450px;
    padding: 0px;
}

.mceNonEditable.invoicePlaceholder[data-replace-selector="#planContainerWrap5"] {
    background: url("placeholderW100.5.png") 100% 100% !important;
    background-size: cover !important;
    width: 400px;
    height: 450px;
    padding: 0px;
}


.mceNonEditable.invoicePlaceholder[data-replace-selector="#planContainerWrap6"] {
    background: url("placeholderW100.6.png") 100% 100% !important;
    background-size: cover !important;
    width: 400px;
    height: 450px;
    padding: 0px;
}

.mceNonEditable.invoicePlaceholder[data-replace-selector="#planContainerWrap7"] {
    background: url("placeholderW100.7.png") 100% 100% !important;
    background-size: cover !important;
    width: 400px;
    height: 450px;
    padding: 0px;
}


.mceNonEditable.invoicePlaceholder_fn {
    width: 600px;
    height: 50px;
    color: grey;
    background: url("placeholderW100_fn.png") no-repeat center !important;
    padding: 50px;
}

.mceNonEditable.invoicePlaceholder2_fn {
    width: 600px;
    height: 50px;
    color: grey;
    background: url("placeholderW100.2_fn.png") no-repeat center !important;
    padding: 50px;
}

.mceNonEditable.invoicePlaceholder3_fn {
    width: 600px;
    height: 50px;
    color: grey;
    background: url("placeholderW100.3_fn.png") no-repeat center !important;
    padding: 50px;
}

.mceNonEditable.invoicePlaceholder4_fn {
    width: 600px;
    height: 50px;
    color: grey;
    background: url("placeholderW100.4_fn.png") no-repeat center !important;
    padding: 50px;
}

.mceNonEditable.invoicePlaceholder_fn[data-replace-selector="#planContainerWrap"] {
    background: url("placeholderPlans.png") 100% 100% !important;
    background-size: cover !important;
    width: 400px;
    height: 450px;
    padding: 0px;
}

#tinymce .printTableItems {
    width: 100%;

}

#tinymce table.printTableItems {
    border: none;
    font-size: 13px;
}

#tinymce table.printTableItems td,
#tinymce table.printTableItems th {
    border-bottom: none;
    border-right: none;
    border-left: none;
    border-top: 1px solid #c0c0c0;
    padding: 15px;
}

#tinymce table.printTableItems td,
#tinymce table.printTableItems th {
    text-align: left;
    border-bottom: none;
    border-right: none;
    border-left: none;
    border-top: 1px solid #c0c0c0;
}

#tinymce table.printTableItems td.textAlignRight,
#tinymce table.printTableItems th.textAlignRight {
    text-align: right;
}

#tinymce .printPageContainer {
    padding-top: 0 !important;
    margin-left: 0;
}

#tinymce .printTable td {
    padding: 5px 10px 5px 0px;
}

#tinymce .printTableTotalRow {
    font-weight: bold;
    white-space: nowrap;
}

#tinymce .printTableTotalRow td:first-child {
    text-align: right;
}

#tinymce .printTableBigTotalRow:first-child td {
    padding-top: 20px;
}

#tinymce .printTableBigTotalRow td {
    border-top: none !important;
    font-weight: bold;
    font-size: 17px;
    white-space: nowrap;
}

#tinymce .printTableBigTotalRow td:first-child {
    text-align: right;
}

#tinymce .printTableItems td, #tinymce .printTableItems th {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
}

#tinymce .printTableItems.printTableItemsNarrow td,
#tinymce .printTableItems.printTableItemsNarrow th {
    padding-top: 0.3em !important;
    padding-bottom: 0.3em !important;
}

#tinymce .printTableItems th {
    white-space: nowrap;
}

#tinymce .printTableTotalRowNoBorder td {
    border: none !important;
}

#tinymce .printTableBigTotalRowFirst td {
    padding-top: 40px !important;
}

#tinymce .table > thead > tr > th {
    border-top: none;
}

#tinymce .table > thead > tr > th {
    border-bottom: 2px solid #c0c0c0;
}

#tinymce .table > tbody > tr > td,
#tinymce .table > tbody > tr > th,
#tinymce .table > tfoot > tr > td,
#tinymce .table > tfoot > tr > th,
#tinymce .table > thead > tr > td,
#tinymce .table > thead > tr > th {
    border-top: 1px solid #c0c0c0;
}

#tinymce .table.printTableItems > thead > tr > td,
#tinymce .table.printTableItems > thead > tr > th {
    border-top: none;
}

@media print {
    #tinymce .table > thead > tr > th {
        border-bottom: 2px solid #292929;
    }

    #tinymce .table > tbody > tr > td, .table > tbody > tr > th, .table > tfoot > tr > td, .table > tfoot > tr > th, .table > thead > tr > td, .table > thead > tr > th {
        border-top: 1px solid #292929;
    }
}


#tinymce.comment {
    margin: 3px 0;
    padding: 0 !important;
    font-family: Roboto, sans-serif;
    font-size: 13px;
    color: rgb(51, 51, 51);
    line-height: 1.42857143;
}

#tinymce.comment .mceNonEditable {
    font-size: 100%;
    color: #5b9bd1;
    background: none;
    margin-left: 3px;
    padding: 0.1em 0.1em;
}

.em-mce, .mceNonEditable.em-mce {
    line-height: 0.5 !important;
    font-size: 125% !important;
    vertical-align: -1px !important;
    padding: 0 !important;
    margin: 0 1px !important;
}

.mention {
    border: none;
    color: #5b9bd1;;
    background-color: transparent;
    padding: 0;
    margin-left: 3px;
    margin-right: 3px;
}


[data-mce-content="*ТАБЛИЦА РАБОТ*"],
[data-mce-content="*ТАБЛИЦЯ РОБІТ*"],
[data-mce-content="*TABLE WITH ACTS*"],
[data-mce-content="*LENTELĖ SU AKTAIS*"] {
    font-size: 150%;
    margin-top: 50px;
    margin-bottom: 50px;
    padding: 10px;
    display: block;
}

.help-image {
    max-width: 100%;
}

textarea {
    outline: none;
    font-size: 1rem;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
@media print {
    /*.tinymce-input {
        border-color: transparent;
        font-style: italic;
    }*/
    /*.tinymce-checkbox {
        visibility: hidden;
    }
    .tinymce-checkbox[data-state="checked"]:before {
        content: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAQAAABKfvVzAAAASUlEQVQ4jWNgGAU4gQZpygMZfjHUk6b8P/Eaho5yFoaVQAUkmB4OlPyFpIUIx9QjaSHS7TAtJHgVooWkkAFpIUE5RAtJykcEAABPQC0fT3oYggAAAABJRU5ErkJggg==");
        visibility: visible;
    }
    .tinymce-checkbox:before {
        content: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAQAAABKfvVzAAAASUlEQVQ4jWNgGAU4gQZpygMZfjHUk6b8P/Eaho5yFoaVQAUkmB4OlPyFpIUIx9QjaSHS7TAtJHgVooWkkAFpIUE5RAtJykcEAABPQC0fT3oYggAAAABJRU5ErkJggg==");
    );
        visibility: visible;
    }

    .tinymce-radio {
        visibility: hidden;
    }

    .tinymce-radio[data-state="checked"]:before {
        content: '◉';
        visibility: visible;
    }

    .tinymce-radio:before {
        content: '◯';
        visibility: visible;
    }
     */
}
