/* editor overrides */
.tox-tinymce-aux:has(.tox-pop) {z-index: 900; }

.tox .tox-collection__item--state-disabled { display: none !important; }

.mce-tinymce { box-sizing: border-box; border-radius: 3px; }
.mce-path { visibility: hidden !important; }

.mce-menu-item-sep { box-sizing: content-box !important; }

.modal-content > .mce-panel, .modal-content-2 > .mce-panel { background: none; }
.modal-content .mce-reset > .mce-container-body > .mce-container.mce-first { background: none; }
    /*.modal-content .mce-reset > .mce-container-body > .mce-container.mce-first > .mce-container-body { left: -10px; }*/

.modal-content > div > div > div > .mce-panel,
.modal-content-2 > div > div > div > .mce-panel { background: none; margin: -10px 0 -10px -10px }

.modal-content > div > div > div > .mce-panel,
.modal-content-2 > div > div > div > .mce-panel { background: none; }

.mcelimyee-modal .mce-container-body > .mce-container { left: 0px !important; top: 0px !important; }

.mcelimyee-modal > form > fieldset, .mcelimyee-modal > form > div > fieldset { padding-left: 10px; }

.mce-tabs { padding: 0; border-bottom-width: 0; display: table; width: 100% }
.mce-tab { display: table-cell; border-width: 0; border-bottom-width: 2px; border-color: #d9dcde; color: #bdc3c7; background-color: Transparent; text-align: center; text-decoration: none; }
    .mce-tab.mce-active { color: #000; border-color: #555; margin-bottom: 0px; }

.mce-tabs > div > table { width: 100%; }
    .mce-tabs > div > table > tbody > tr > td > a { box-sizing: content-box; }
.mcelimyee-tabpane { width: 100%; height: auto; overflow: auto; padding: 10px; box-sizing: border-box; border-width: 0; }
.mcelimyee-modal .mce-tabs .mce-tab { display: block; }
.mcelimyee-modal,
.mcelimyee-modal fieldset,
.mcelimyee-modal fieldset .field-item .field-item-header,
.mcelimyee-modal fieldset .field-list .field-item .field-item-description { font-size: 14px; }
.mce-textbox[disabled] { color: #bdc3c7; }

/* moxie */
.touch .moxie-shim { z-index: 0 !important; }

/* general styles */
table.mcelimyee-form * { -ms-box-sizing: content-box; -moz-box-sizing: content-box; -webkit-box-sizing: content-box; box-sizing: content-box; }
.mcelimyee-form { /*width: 460px;*/ border-collapse: collapse; border-spacing: 0; }
    .mcelimyee-form > tbody > tr > td { vertical-align: middle; }
    .mcelimyee-form > tbody > tr { border-bottom: 10px solid Transparent; }
.mcelimyee-frame { box-sizing: border-box; overflow: hidden; position: relative; left: -10px; }
    .mcelimyee-frame.with-border { border: solid 1px #d4d0c8; padding: 10px; box-sizing: border-box; position: static; }

/* hashtag plugin */
.mceHashtagsList { background-color: #fff; border: solid 1px #d4d0c8; font-family: Arial, Helvetica; font-size: 11px; font-weight: normal; color: #000; }
    .mceHashtagsList ul { list-style-type: none; padding: 0; margin: 0; }
        .mceHashtagsList ul li { padding: 4px; margin: 0; }
            .mceHashtagsList ul li.mceHashtagsSelected { background-color: #fef9c1; }

/* mentions plugin */
.mceMentionablesList { background-color: #fff; border: solid 1px #d4d0c8; font-family: Arial, Helvetica; font-size: 11px; font-weight: normal; color: #333; border-radius: 3px; overflow: hidden; }
.mceMentionablesList .mceMentionableCategoryList { margin: 0; padding: 0; background-color: #f4f7f8; }
.mceMentionablesList .mceMentionableCategoryList table { width: 100%; table-layout: fixed; }
.mceMentionablesList .mceMentionableCategoryList table td { white-space: nowrap; vertical-align: bottom; }
.mceMentionablesList .mceMentionableCategoryList  table a.mceMentionableCategory { 
	-webkit-transition: all 0.15s;
    -moz-transition: all 0.15s;
    transition: all 0.15s;
    display: block;
    padding: 6px;
    border-bottom: 2px solid #999;
    text-align: center;
    color: #999 !important;
    font-size: 14px;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
 }
 .mceMentionablesList .mceMentionableCategoryList  table a.mceMentionableCategory div {
 	width: 100%;
 	overflow: hidden;
 	text-overflow: ellipsis;
 }
.mceMentionablesList .mceMentionableCategoryList  table a.mceMentionableCategorySelected { 
	color: #333 !important;
    border-bottom: 2px solid #333 !important;
}
.mceMentionablesList .mceMentionables { max-height: 200px; overflow-x: hidden; overflow-y: auto; }
.mceMentionablesList ul { list-style-type: none; padding: 0; margin: 0; }
.mceMentionablesList ul li { padding: 4px; margin: 0; }
.mceMentionablesList ul li img { border-radius: 500px; }
.mceMentionablesList ul li::after { content: ''; clear: right; }
.mceMentionablesList ul li .mceMentionableDetail { font-size: 10px; color: #888; display:inline; padding-top: 2px; max-width: 50%; }
.mceMentionablesList ul li.mceMentionablesSelected { background-color: #7a7a7a; color: #fff; }
.mceMentionablesList ul li.mceMentionablesSelected .mceMentionableDetail { color: #ddd; }

/* emoticon plugin */
.emoticon-grid a { display: block; padding: 2px; }
.mceEmoticonsList { background-color: #fff; border: solid 1px #d4d0c8; font-family: Arial, Helvetica; font-size: 11px; font-weight: normal; color: #000; }
    .mceEmoticonsList ul { list-style-type: none; padding: 0; margin: 0; }
        .mceEmoticonsList ul li { padding: 4px; margin: 0; position: relative; }
            .mceEmoticonsList ul li .mceEmoticonsPreview { width: 32px; height: 32px; overflow: hidden; display: block; position: absolute; left: 4px; top: 4px; }
            .mceEmoticonsList ul li .mceEmoticonsLabel { line-height: 32px; text-overflow: ellipsis; max-width: 140px; white-space: nowrap; display: block; padding-left: 40px; overflow: hidden; }
.mceEmoticonVariationsList ul li .mceEmoticonsLabel { width: 32px; height: 32px; padding: 0; color: Transparent; }
.mceEmoticonsSelected { background-color: #dbecf3; }

div.mceemoticon-listwrapper * { -ms-box-sizing: content-box; -moz-box-sizing: content-box; -webkit-box-sizing: content-box; box-sizing: content-box; }
.mceemoticon-listwrapper { display: block; width: 375px; height: 305px; overflow: auto; border: solid 1px #d4d0c8; padding: 5px; box-sizing: border-box; cursor: pointer; }
    .mceemoticon-listwrapper .mceemoticon-emoticon { width: 32px; height: 32px; overflow: hidden; float: left; padding: 5px; margin: 0; }
.mceemoticon-collection { border: solid 1px #d4d0c8 !important; background-color: #f0f0f0 !important; height: 30px; }
    .mceemoticon-collection > span { border-right: solid 1px #d4d0c8 !important; width: 350px !important; }
.mceemoticon-collectionitem { padding: 0; margin: 0; position: relative; }
.mceemoticon-collection.options { border: solid 1px #d4d0c8 !important; }
    .mceemoticon-collection.options > div { border-width: 0 !important; }
/*    .mceemoticon-collection.options .selected { border: solid 1px #ddd !important; background-color: #666 !important; }*/
.mceemoticon-collectionpreview { width: 24px; height: 24px; overflow: hidden; display: block; position: absolute; left: 8px; top: 0; }
.mceemoticon-collectionlabel { line-height: 24px; text-overflow: ellipsis; max-width: 380px; white-space: nowrap; display: block; padding-left: 40px; overflow: hidden; }

/* media plugin */
.mceDragDropShade { background-color: #eee; opacity: .67; }
.mceDragDropMessage { font-size: 20px; padding: 40px; text-align: center; color: #000; box-sizing: border-box; }
.mcemedia-previewwrapper { width: 100%; height: 250px; overflow: auto; border: solid 1px #d4d0c8; padding: 10px; box-sizing: border-box; position: relative; }
    .mcemedia-previewwrapper::after { display: block; content: ' '; position: absolute; width: 100%; height: 100%; left: 0px; top: 0px; right: 0px; bottom: 0px; }
.mcemedia-prev .message { border: 1px solid rgba(17, 17, 17, 0.1); background-color: rgba(17, 17, 17, 0.02); margin: 0 0 10px 0; clear: both; line-height: 1.4em; font-size: 13px; padding: 20px; color: #444444; font-style: italic; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; }
.mcemedia-file, .mcemedia-clearfile { color: #2d8ac7 !important; margin: 2px 0px 4px 0 !important; display: inline-block; cursor: pointer; }

/* ACE in TinyMCE */
.mce-container .limyee-code-editor * { font: 12px/normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace !important; white-space: pre !important; }

/* Fullscreen (less than limyeeModal) */
.tox.tox-tinymce.tox-fullscreen,
.tox-shadowhost.tox-fullscreen { z-index: 1003 !important; }

/* Placeholder */
.mce-placeholder { position: absolute; top: 8px; left: 10px; color: #bbb; font-size: 12px; }

/* upload attachment */
.moxie-shim input[type="file"] { cursor: pointer; }

/* submit plugin */
/*.mce-editor-submittable .mce-btn-group, .mce-editor-submittable .mce-btn-group > div { height: auto !important; display: inline-flex; width: 100% !important; align-items: flex-start; flex-wrap: wrap; }
.tox-tinymce .mce-submitpanel { order: 1; flex-grow: 1; padding-left: 8px; padding-right: 8px; text-align: right; white-space: normal; min-height: 28px; }
    .tox-tinymce .mce-submitpanel * { white-space: normal; }
    .tox-tinymce .mce-submitpanel .mce-submitpanel-message { display: inline-block; line-height: 28px; font-size: 12px; -webkit-user-select: none; -moz-user-select: -moz-none; -ms-user-select: none; user-select: none; position: relative; margin: 0 5px 0 8px; }
        .tox-tinymce .mce-submitpanel .mce-submitpanel-message label { cursor: pointer; margin: 0; padding: 0; line-height: 20px; }
    .tox-tinymce .mce-submitpanel .mce-submitpanel-button { background-color: #007BFF !important; color: #fff !important; border-radius: 3px !important; }*/

/*.mce-editor-submittable, .mce-editor-submittable .mce-panel, .mce-editor-submittable .mce-btn { background-color: Transparent; }*/
.mce-editor-submittable .mce-btn button, 
.mce-editor-submittable .mce-container *, 
.mce-editor-submittable .mce-widget * { font-size: 12px; }
.mce-editor-submittable .mce-btn button { padding: 4px 8px; }

.mce-editor-submittable.mce-submitpanel-narrow .mce-container .mce-submitpanel { text-align: inherit; width: 100%; padding-left: 0; margin-top: 2px; margin-left: 0; }
    .mce-editor-submittable.mce-submitpanel-narrow .mce-container .mce-submitpanel > a:first-child { margin-left: 10px; }

/*.mce-editor { display: grid; }*/
.mce-editor.mce-editor-submittable { position: relative; }
.mce-editor.mce-editor-submittable .tox-editor-container { position: relative; }
.mce-editor.mce-editor-submittable .editor-footer { position: absolute; z-index: 2; right: 15px; bottom: 0px; display: flex; height: 40px; font-size: 14px; vertical-align: middle; align-items: center; }
.mce-editor.mce-editor-submittable .editor-footer.mce-submitpanel-narrow { position: initial; margin-left: 15px;}
/*.mce-editor.mce-editor-submittable .editor-footer.mce-submitpanel-narrow { position: relative; right: 0; bottom: 0; padding-left: 10px; }*/
.mce-submitpanel-message { vertical-align: initial !important; }
.dark .mce-editor.mce-editor-submittable .editor-footer { color: #fff; }
.mce-submitpanel-message .mce-submitpanel-checked, .mce-submitpanel-message .mce-submitpanel-unchecked { position: absolute; }
.mce-submitpanel-message label { cursor: pointer !important; margin: 0 !important; padding: 0 !important; top: 0px !important; }
.mce-submitpanel-message label.enter-submit { padding-right: 10px !important; }
.mce-editor.mce-editor-submittable .editor-footer .mce-submitpanel-button { cursor: pointer; background-color: #007BFF !important; color: #fff !important; border-radius: 3px !important; margin-left: 10px; }

.dark .mce-editor-submittable { border: 1px #eee solid; border-radius: 2px; }
.mce-editor-submittable.mce-editor-blur:not(:hover) { opacity: .8; }

/* tips */
.mce-editor .mce-tips { font-size: 80%; }
.dark .mce-editor .mce-tips { background-color: #333; }