.content-editor {
    overflow: auto;
    border-top: 1px solid var(--nw-color-pale-1) !important;
    font-family: "Mulish", "Open Sans", "Segoe UI", arial !important;
    font-weight: 500;
    color: var(--nw-color-text-base);
    padding: 12px 15px;
    font-size: 16px;
    line-height: 28px;
    margin: 0 auto !important;
    padding: 12px 60px 12px 80px;
    max-width: 850px;
}

#outline_editor, #facts_outline_editor {
    padding: 12px 10px 12px 60px;
}

.editor-dark-mode {
    color: var(--nw-color-text-base);
    border-top-color: var(--nw-color-blue-purple-light-1) !important;

    keywordmarkbg,
    keywordmarkbgr,
    keywordmarkbgy,
    keywordmarkbgg,
    keywordmarkbgm {
        color: var(--nw-color-text-base-inverted);
    }

    icomment {
        color: var(--nw-color-text-base-inverted);
    }

    iedit {
        background-color: var(--nw-color-blue-purple-dark-2) !important;
    }

    a {
        color: var(--nw-color-primary);
    }

    table {
        background-color: var(--nw-color-blue-purple-light-1) !important;
    }
}

@media (min-width: 1600px) {
    .content-editor {
        padding: 12px 80px 12px 100px;
    }
}
.content-editor h1::before,
.content-editor h2::before,
.content-editor h3::before,
.content-editor h4::before,
.content-editor h5::before,
.content-editor h6::before {
    font-family: "Mulish";
    font-weight: bold;
    margin-left: -32px;
    color: #aaa;
    position: relative;
    left: -10px;
}

.content-editor h1::before {
    content: 'H1';
    font-size: 22px;
}

.content-editor h2::before {
    content: 'H2';
    font-size: 20px;
    margin-left: -30px;
}

.content-editor h3::before {
    content: 'H3';
    font-size: 16px;
    margin-left: -24px;
}

.content-editor h4::before {
    content: 'H4';
    font-size: 14px;
    margin-left: -21px;
}

.content-editor h5::before {
    content: 'H5';
    font-size: 13px;
    margin-left: -19px;
    left: -11px;
}

.content-editor h6::before {
    content: 'H6';
    font-size: 12px;
    margin-left: -18px;
}

.content-editor h1 {
    font-size: 2em;
    line-height: 36px;
}

.content-editor h2 {
    font-size: 1.6em;
}

.content-editor h3 {
    font-size: 1.3em;
}

.content-editor h4 {
  font-size: 1.2em;
}

.content-editor h5 {
  font-size: 1.15em;
}

.content-editor h6 {
  font-size: 1.1em;
}

.content-editor h1, .content-editor h2, .content-editor h3 {
    margin-top: 40px;
    margin-bottom: 25px;
}

.content-editor h4, .content-editor h5, .content-editor h6 {
    margin-bottom: 20px; 
}

.content-editor img {
    max-width: 100%;
    height:auto !important;
    margin-top: 20px;
    margin-bottom: 20px;
}

.tox-editor-header {
    border: none !important;
    border-radius: 0px !important;
}

/* removes blue border around the content in the editor */
* [contentEditable="true"]:focus
{ outline: 0px ; }

.content-editor img {
    cursor: pointer !important;
}

imageplh {
    display: flex;
    flex-direction: column;
    /* background-color: aliceblue; */
    padding: 100px 20px 0px 20px;
    min-width: 200px;
    /* width: 400px; */
    min-height: 160px;
    text-align: center;
    /* border-radius: 5px;
    border: 1px solid #ddd;*/
    cursor: pointer !important;
    margin-top: 10px;
    margin-right: 20px;
    margin-bottom: 30px;
    box-sizing: content-box !important;
    -moz-box-sizing: content-box !important;
    -webkit-box-sizing: content-box !important;
    border: 1px solid var(--nw-color-blue-light-2);
    border-radius: 5px;
}

imageplh::before {
    font-family: "Font Awesome 5 Pro";
    font-weight: 900;
    content: '\f03e';
    font-size: 40px;
}

imageplh::after {
    content: 'Add or generate image';
    font-size: 14px;
}

paranotes {
    display: block;
    margin: 0;
    margin-top: 5px;
    margin-bottom: 5px;
    padding: 20px;
    box-sizing: content-box !important;
    -moz-box-sizing: content-box !important;
    -webkit-box-sizing: content-box !important;
    color: var(--nw-color-text-base);
    border: 1px solid var(--nw-color-blue-light-1);
    border-radius: 5px;
    cursor: pointer !important;
}

paranotes.from-ai-overview {
    border: 1px solid var(--nw-color-yellow-light-1);
}

paranotes::before {
  color: var(--nw-color-blue-light-1);
  position: absolute;
  margin-top: -25px;
  margin-left: -15px;
  font-size: 12px;
}

paranotes.from-ai-overview::before {
  content: '[Editable] facts extracted from AI-profile';
}

paranotes:not(.from-ai-overview)::before {
  content: '[Editable] facts extracted from source documents';
}
    
draftnotes {
    display: block;
    margin: 0;
    padding: 20px;
    border: 0;
    background-color: #E6EBF2;
    border: 1px solid #BBD5F4;
    box-sizing: content-box !important;
    -moz-box-sizing: content-box !important;
    -webkit-box-sizing: content-box !important;
    color: #333;
    border-radius: 3px;
}

.draftnotes-collapse {
    max-height: 31px;
    overflow: hidden;
}

.draftnotes-button {
    background-color: #fff;
}

.draftnotes-button-first {
    margin-left: 1px;
    border-radius: 3px 0px 0px 3px;
    border-right: 1px solid #BBD5F4;
    background-color: #fff;
}

.draftnotes-button-middle {
    border-radius: 0px;
    border-right: 1px solid #BBD5F4;
    background-color: #fff;
}

.draftnotes-button-last {
    border-radius: 0px 3px 3px 0px;
    border-color: #d3d3d3;
    background-color: #fff;
}

.draftnotes-textarea {
    min-height: 350px;
    font-size: 13px;
}

keywordmark {
    display: inline;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 2px;
    border-bottom: 2px solid var(--nw-color-blue-light-1);
}

keywordmarkbg, keywordmarkbgr, keywordmarkbgy, keywordmarkbgg, keywordmarkbgm {
    display: inline;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 2px;
}

keywordmarkbg {
    background-color: var(--nw-color-blue-light-3);
}

keywordmarkbgr {
    background-color: var(--nw-color-red-light-2);
}

keywordmarkbgy {
    background-color: var(--nw-color-yellow-light-2);
}

keywordmarkbgg {
    background-color: var(--nw-color-green-light-2);
}

keywordmarkbgm {
    background-color: var(--nw-color-green-light-3);
}

icomment {
    background-color: var(--nw-color-yellow-light-3);
    border: 1px dashed #000;
    padding: 2px;
    margin: 2px;
    cursor: pointer;
}

iedit {
    background-color: var(--nw-color-blue-light-3);
    border: 1px dashed #000;
    padding: 2px;
    margin: 2px;
    cursor: pointer;
}

.mce-dont-show {
    display: none;
}

.tox .tox-notification--info {
    /* background-color: aliceblue; */
    border: none !important;
}

.tox .tox-notification--info .tox-notification__icon {
    display: none;
}

.tox .tox-button::before {
    box-shadow: none !important;
}

.custom-scroll {
    scrollbar-color: var(--nw-color-pale-1) transparent;
    scrollbar-width: thin !important;
}

textarea {
    scrollbar-color: var(--nw-color-pale-3) transparent;
    scrollbar-width: thin !important;
}

ul {
    list-style-type: disc;
    /* list-style-position: inside; DLACZEGO TAK BYLO? */
}

table {
    border-collapse: collapse;
    margin-top: 20px;
    margin-bottom: 20px;
}

.content-editor table td,
.content-editor table th {
    border: 1px dashed var(--nw-color-grey-light-1);
    padding: 8px;
}

.content-editor pre {
    background-color: var(--nw-color-pale-1) !important;
    font-size: 13px !important;
    scrollbar-color: var(--nw-color-pale-1) transparent !important;
    scrollbar-width: thin !important;
    font-family: "Mulish", "Open Sans", "Segoe UI", arial !important;
}