html {
  height: 100%;
  background-color: transparent;
}

body#tinymce {
  min-height: 100%;
  padding: 1rem;
  margin: 0;
  padding-left: 5px;
  box-sizing: border-box;
  background-color: var(--color-gray-fff, #fff);
}

.mce-content-body {
  position: relative;
}

body#tinymce {
  overflow-x: hidden;
}

.mce-content-body a {
  text-decoration: underline;
}

.mce-content-body [contentEditable='false'][data-mce-selected] {
  cursor: inherit;
  outline: 1px solid var(--accent-color-bg);
  border-radius: 3px;
}

#tinymce .macros-panel.reference-items .macros-actions {
  width: 27px !important;
}

.mce-content-body .smart-paste-insert {
  display: inline;
}

.mce-content-body p:first-child,
#tinymce p:first-child {
  margin: 0;
}

.chat-editor-wrap .mce-content-body > p:first-child {
  margin: 6px 0;
}

#tinymce pre[class*='language-'],
.mce-content-body pre[class*='language-'],
#tinymce code[class*='language-'],
.mce-content-body code[class*='language-'] {
  font: var(--wiki-text-font);
  background-color: color-mix(in srgb, #f5f2f0 3%, var(--theme-hack-bg-color, #f5f2f0));
  color: var(--color-gray-222);
  text-shadow: none;
}

.mce-content-body code[class*='language-'] ::selection,
.mce-content-body code[class*='language-']::selection,
.mce-content-body pre[class*='language-'] ::selection,
.mce-content-body pre[class*='language-']::selection {
  background: color-mix(in srgb, #accef7 20%, var(--theme-hack-bg-color, #accef7));
}

.mce-content-body pre[class*='language-'] .language-css .token.string,
.mce-content-body pre[class*='language-'] .style .token.string,
.mce-content-body pre[class*='language-'] .token.entity,
.mce-content-body pre[class*='language-'] .token.operator,
.mce-content-body pre[class*='language-'] .token.url {
  background: none;
}

.mce-content-readonly .macros-panel.plantuml .ak-renderer-wrapper {
  display: none;
}

.mce-content-body .macros-panel.plantuml .macros-edit svg *,
.mce-content-body .macros-panel.plantuml .macros-delete svg * {
  mouse-events: none;
}

.mce-content-body .macros-panel.plantuml .ak-renderer-wrapper .puml-code {
  width: 100%;
  border: none;
  max-width: 100%;
}

.mce-content-body .ak-renderer-wrapper ol > li:before,
.mce-content-body .ak-renderer-wrapper ul > li:before,
.mce-content-body .ak-editor-panel ol > li:before,
.mce-content-body .ak-editor-panel ul > li:before,
.mce-content-body .tabs-container ol > li:before,
.mce-content-body .tabs-container ul > li:before {
  z-index: 0;
}

.mce-content-body .macros-panel.plantuml .ak-renderer-wrapper .puml-code:focus-visible {
  outline: none;
}

#tinymce .macros-panel.reference-items .macros-preview {
  display: none;
}

.mce-content-body .details-summary-table {
  border: 1px solid var(--color-gray-eee, #eee);
  overflow-x: auto;
}

.mce-content-body .cell-head.details-summary-table-cell {
  background: var(--color-gray-eee, #eee);
  text-align: left;
}

.mce-content-body .details-summary-table-cell {
  padding: 10px;
  border-bottom: 1px solid var(--color-gray-eee, #eee);
  white-space: normal;
  width: max-content;
  max-width: 200px;
}

.mce-content-body .details-summary-table-cell > p {
  width: max-content;
  max-width: 100%;
}

.mce-content-body .details-summary-table-cell p {
  margin: 0;
}

.mce-content-body .eva-telepointer {
  border-left: 1px solid rgb(101, 84, 192);
  border-right: 1px solid rgb(101, 84, 192);
  margin-right: -2px;
  position: relative;
  transition: opacity 200ms ease 0s;
}

.mce-content-body .eva-telepointer::after {
  background-color: rgb(101, 84, 192);
  color: var(--ds-text-inverse, #fff);
  border-color: rgb(101, 84, 192);
  content: attr(data-initial);
  position: absolute;
  display: block;
  top: -14px;
  font-size: 0.5625rem;
  padding: 2px;
  color: var(--ds-text-inverse, white);
  left: -1px;
  border-radius: 2px 2px 2px 0px;
  line-height: initial;
}

#tinymce .lds-ring,
#tinymce .loader {
  display: none;
}

#tinymce p:not(#tinymce .drawio-content p) {
  border: none !important;
  background-image: none !important;
  /* margin: 0!important; */
  word-break: break-word;
}

#tinymce.mce-content-body table[data-mce-selected] {
  outline: none;
}

#tinymce .table-dropmenu-color-picker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 5px;
  background: var(--color-gray-fff, #fff);
  box-shadow:
    rgb(9 30 66 / 25%) 0px 4px 8px -2px,
    rgb(9 30 66 / 31%) 0px 0px 0px;
  margin-right: 5px;
  z-index: 999;
  border: 1px solid var(--color-gray-eee, #eee);
}

.mce-content-readonly .pivot-table .ak-renderer-wrapper {
  display: none;
}

.mce-content-readonly .cell-dropbox-button,
.mce-content-readonly .pm-table-row-controls-wrapper {
  display: none !important;
}

.wiki-table-controllers-wrapper > div > .header[data-highlight-color='Light green'],
.mce-content-body table td[data-highlight-color='Light green'],
.mce-content-body table th[data-highlight-color='Light green'],
#tinymce table td[data-highlight-color='Light green'],
#tinymce table th[data-highlight-color='Light green'] {
  background-color: #e3fcef;
}

.wiki-table-controllers-wrapper > div > .header[data-highlight-color='Light teal'],
.mce-content-body table td[data-highlight-color='Light teal'],
.mce-content-body table th[data-highlight-color='Light teal'],
#tinymce table td[data-highlight-color='Light teal'],
#tinymce table th[data-highlight-color='Light teal'] {
  background-color: #e6fcff;
}

.wiki-table-controllers-wrapper > div > .header[data-highlight-color='Blue'],
#tinymce table td[data-highlight-color='Blue'],
.mce-content-body table td[data-highlight-color='Blue'],
#tinymce table th[data-highlight-color='Blue'],
.mce-content-body table th[data-highlight-color='Blue'] {
  background-color: #b3d4ff;
}

.wiki-table-controllers-wrapper > div > .header[data-highlight-color='Light yellow'],
.mce-content-body table td[data-highlight-color='Light yellow'],
.mce-content-body table th[data-highlight-color='Light yellow'],
#tinymce table td[data-highlight-color='Light yellow'],
#tinymce table th[data-highlight-color='Light yellow'] {
  background-color: #fffae6;
}

.wiki-table-controllers-wrapper > div > .header[data-highlight-color='Light red'],
.mce-content-body table td[data-highlight-color='Light red'],
.mce-content-body table th[data-highlight-color='Light red'],
#tinymce table td[data-highlight-color='Light red'],
#tinymce table th[data-highlight-color='Light red'] {
  background-color: #feece5;
}

.wiki-table-controllers-wrapper > div > .header[data-highlight-color='Light purple'],
.mce-content-body table td[data-highlight-color='Light purple'],
.mce-content-body table th[data-highlight-color='Light purple'],
#tinymce table td[data-highlight-color='Light purple'],
#tinymce table th[data-highlight-color='Light purple'] {
  background-color: #eae6ff;
}

.wiki-table-controllers-wrapper > div > .header[data-highlight-color='Light gray'],
.mce-content-body table td[data-highlight-color='Light gray'],
.mce-content-body table th[data-highlight-color='Light gray'],
#tinymce table td[data-highlight-color='Light gray'],
#tinymce table th[data-highlight-color='Light gray'] {
  background-color: var(--theme-hack-bg-color, #f4f5f7);
}

.wiki-table-controllers-wrapper > div > .header[data-highlight-color='Teal'],
.mce-content-body table td[data-highlight-color='Teal'],
.mce-content-body table th[data-highlight-color='Teal'],
#tinymce table td[data-highlight-color='Teal'],
#tinymce table th[data-highlight-color='Teal'] {
  background-color: #b3f5ff;
}

.wiki-table-controllers-wrapper > div > .header[data-highlight-color='Green'],
.mce-content-body table td[data-highlight-color='Green'],
.mce-content-body table th[data-highlight-color='Green'],
#tinymce table td[data-highlight-color='Green'],
#tinymce table th[data-highlight-color='Green'] {
  background-color: #abf5d1;
}

.wiki-table-controllers-wrapper > div > .header[data-highlight-color='Dark yellow'],
.mce-content-body table td[data-highlight-color='Dark yellow'],
.mce-content-body table th[data-highlight-color='Dark yellow'],
#tinymce table td[data-highlight-color='Dark yellow'],
#tinymce table th[data-highlight-color='Dark yellow'] {
  background-color: #ffc400;
}

.wiki-table-controllers-wrapper > div > .header[data-highlight-color='Yellow'],
.mce-content-body table td[data-highlight-color='Yellow'],
.mce-content-body table th[data-highlight-color='Yellow'],
#tinymce table td[data-highlight-color='Yellow'],
#tinymce table th[data-highlight-color='Yellow'] {
  background-color: #fff0b3;
}

.wiki-table-controllers-wrapper > div > .header[data-highlight-color='Red'],
.mce-content-body table td[data-highlight-color='Red'],
.mce-content-body table th[data-highlight-color='Red'],
#tinymce table td[data-highlight-color='Red'],
#tinymce table th[data-highlight-color='Red'] {
  background-color: #ffbdad;
}

.wiki-table-controllers-wrapper > div > .header[data-highlight-color='Purple'],
.mce-content-body td[data-highlight-color='Purple'],
.mce-content-body th[data-highlight-color='Purple'],
#tinymce table td[data-highlight-color='Purple'],
#tinymce table th[data-highlight-color='Purple'] {
  background-color: #c0b6f2;
}

.wiki-table-controllers-wrapper > div > .header[data-highlight-color='Grey'],
.mce-content-body table td[data-highlight-color='Grey'],
.mce-content-body table th[data-highlight-color='Grey'],
#tinymce table td[data-highlight-color='Grey'],
#tinymce table th[data-highlight-color='Grey'],
.wiki-table-controllers-wrapper > div > .header[data-highlight-color='Gray'],
.mce-content-body table td[data-highlight-color='Gray'],
.mce-content-body table th[data-highlight-color='Gray'],
#tinymce table td[data-highlight-color='Gray'],
#tinymce table th[data-highlight-color='Gray'] {
  background-color: #b3bac5;
}

.wiki-table-controllers-wrapper > div > .header[data-highlight-color='Dark Blue'],
.mce-content-body table td[data-highlight-color='Dark Blue'],
.mce-content-body table th[data-highlight-color='Dark Blue'],
#tinymce table td[data-highlight-color='Dark Blue'],
#tinymce table th[data-highlight-color='Dark Blue'] {
  background-color: #4c9aff;
}

.wiki-table-controllers-wrapper > div > .header[data-highlight-color='Dark teal'],
.mce-content-body table td[data-highlight-color='Dark teal'],
.mce-content-body table th[data-highlight-color='Dark teal'],
#tinymce table td[data-highlight-color='Dark teal'],
#tinymce table th[data-highlight-color='Dark teal'] {
  background-color: #79e2f2;
}

.wiki-table-controllers-wrapper > div > .header[data-highlight-color='Dark green'],
.mce-content-body table td[data-highlight-color='Dark green'],
.mce-content-body table th[data-highlight-color='Dark green'],
#tinymce table td[data-highlight-color='Dark green'],
#tinymce table th[data-highlight-color='Dark green'] {
  background-color: #57d9a3;
}

.wiki-table-controllers-wrapper > div > .header[data-highlight-color='Dark red'],
.mce-content-body table td[data-highlight-color='Dark red'],
.mce-content-body table th[data-highlight-color='Dark red'],
#tinymce table td[data-highlight-color='Dark red'],
#tinymce table th[data-highlight-color='Dark red'] {
  background-color: #ff8f73;
}

.wiki-table-controllers-wrapper > div > .header[data-highlight-color='Dark purple'],
.mce-content-body table td[data-highlight-color='Dark purple'],
.mce-content-body table th[data-highlight-color='Dark purple'],
#tinymce table td[data-highlight-color='Dark purple'],
#tinymce table th[data-highlight-color='Dark purple'] {
  background-color: #998dd9;
}

/** Стили для поддержки legacy цветов из конфл */
.wiki-table-controllers-wrapper > div > .header[data-highlight-color='grey'],
.mce-content-body table td[data-highlight-color='grey'],
.mce-content-body table th[data-highlight-color='grey'],
#tinymce table td[data-highlight-color='grey'],
#tinymce table th[data-highlight-color='grey'],
.wiki-table-controllers-wrapper > div > .header[data-highlight-color='gray'],
.mce-content-body table td[data-highlight-color='gray'],
.mce-content-body table th[data-highlight-color='gray'],
#tinymce table td[data-highlight-color='gray'],
#tinymce table th[data-highlight-color='gray'] {
  background-color: #f4f5f7;
}

.wiki-table-controllers-wrapper > div > .header[data-highlight-color='blue'],
.mce-content-body table td[data-highlight-color='blue'],
.mce-content-body table th[data-highlight-color='blue'],
#tinymce table td[data-highlight-color='blue'],
#tinymce table th[data-highlight-color='blue'] {
  background-color: #deebff;
}

.wiki-table-controllers-wrapper > div > .header[data-highlight-color='green'],
.mce-content-body table td[data-highlight-color='green'],
.mce-content-body table th[data-highlight-color='green'],
#tinymce table td[data-highlight-color='green'],
#tinymce table th[data-highlight-color='green'] {
  background-color: #e3fcef;
}

.wiki-table-controllers-wrapper > div > .header[data-highlight-color='yellow'],
.mce-content-body table td[data-highlight-color='yellow'],
.mce-content-body table th[data-highlight-color='yellow'],
#tinymce table td[data-highlight-color='yellow'],
#tinymce table th[data-highlight-color='yellow'] {
  background-color: #fffae6;
}

.wiki-table-controllers-wrapper > div > .header[data-highlight-color='red'],
.mce-content-body table td[data-highlight-color='red'],
.mce-content-body table th[data-highlight-color='red'],
#tinymce table td[data-highlight-color='red'],
#tinymce table th[data-highlight-color='red'] {
  background-color: #ffebe6;
}

/** КонецСтили для поддержки legacy цветов из конфл */

/** Стили для поддержки цветов из конфл */
.wiki-table-controllers-wrapper > div > .header[data-highlight-color='\#091E42'],
.mce-content-body table td[data-highlight-color='\#091E42'],
.mce-content-body table th[data-highlight-color='\#091E42'],
#tinymce table td[data-highlight-color='\#091E42'],
#tinymce table th[data-highlight-color='\#091E42'] {
  background-color: #091e42;
}

.wiki-table-controllers-wrapper > div > .header[data-highlight-color='\#172B4D'],
.mce-content-body table td[data-highlight-color='\#172B4D'],
.mce-content-body table th[data-highlight-color='\#172B4D'],
#tinymce table td[data-highlight-color='\#172B4D'],
#tinymce table th[data-highlight-color='\#172B4D'] {
  background-color: #172b4d;
}

.wiki-table-controllers-wrapper > div > .header[data-highlight-color='\#253858'],
.mce-content-body table td[data-highlight-color='\#253858'],
.mce-content-body table th[data-highlight-color='\#253858'],
#tinymce table td[data-highlight-color='\#253858'],
#tinymce table th[data-highlight-color='\#253858'] {
  background-color: #253858;
}

.wiki-table-controllers-wrapper > div > .header[data-highlight-color='\#344563'],
.mce-content-body table td[data-highlight-color='\#344563'],
.mce-content-body table th[data-highlight-color='\#344563'],
#tinymce table td[data-highlight-color='\#344563'],
#tinymce table th[data-highlight-color='\#344563'] {
  background-color: #344563;
}

.wiki-table-controllers-wrapper > div > .header[data-highlight-color='\#42526E'],
.mce-content-body table td[data-highlight-color='\#42526E'],
.mce-content-body table th[data-highlight-color='\#42526E'],
#tinymce table td[data-highlight-color='\#42526E'],
#tinymce table th[data-highlight-color='\#42526E'] {
  background-color: #42526e;
}

.wiki-table-controllers-wrapper > div > .header[data-highlight-color='\#505F79'],
.mce-content-body table td[data-highlight-color='\#505F79'],
.mce-content-body table th[data-highlight-color='\#505F79'],
#tinymce table td[data-highlight-color='\#505F79'],
#tinymce table th[data-highlight-color='\#505F79'] {
  background-color: #505f79;
}

.wiki-table-controllers-wrapper > div > .header[data-highlight-color='\#5E6C84'],
.mce-content-body table td[data-highlight-color='\#5E6C84'],
.mce-content-body table th[data-highlight-color='\#5E6C84'],
#tinymce table td[data-highlight-color='\#5E6C84'],
#tinymce table th[data-highlight-color='\#5E6C84'] {
  background-color: #5e6c84;
}

.wiki-table-controllers-wrapper > div > .header[data-highlight-color='\#6B778C'],
.mce-content-body table td[data-highlight-color='\#6B778C'],
.mce-content-body table th[data-highlight-color='\#6B778C'],
#tinymce table td[data-highlight-color='\#6B778C'],
#tinymce table th[data-highlight-color='\#6B778C'] {
  background-color: #6b778c;
}

.wiki-table-controllers-wrapper > div > .header[data-highlight-color='\#7A869A'],
.mce-content-body table td[data-highlight-color='\#7A869A'],
.mce-content-body table th[data-highlight-color='\#7A869A'],
#tinymce table td[data-highlight-color='\#7A869A'],
#tinymce table th[data-highlight-color='\#7A869A'] {
  background-color: #7a869a;
}

.wiki-table-controllers-wrapper > div > .header[data-highlight-color='\#8993A4'],
.mce-content-body table td[data-highlight-color='\#8993A4'],
.mce-content-body table th[data-highlight-color='\#8993A4'],
#tinymce table td[data-highlight-color='\#8993A4'],
#tinymce table th[data-highlight-color='\#8993A4'] {
  background-color: #8993a4;
}

.wiki-table-controllers-wrapper > div > .header[data-highlight-color='\#97A0AF'],
.mce-content-body table td[data-highlight-color='\#97A0AF'],
.mce-content-body table th[data-highlight-color='\#97A0AF'],
#tinymce table td[data-highlight-color='\#97A0AF'],
#tinymce table th[data-highlight-color='\#97A0AF'] {
  background-color: #97a0af;
}

.wiki-table-controllers-wrapper > div > .header[data-highlight-color='\#A5ADBA'],
.mce-content-body table td[data-highlight-color='\#A5ADBA'],
.mce-content-body table th[data-highlight-color='\#A5ADBA'],
#tinymce table td[data-highlight-color='\#A5ADBA'],
#tinymce table th[data-highlight-color='\#A5ADBA'] {
  background-color: #a5adba;
}

.wiki-table-controllers-wrapper > div > .header[data-highlight-color='\#B3BAC5'],
.mce-content-body table td[data-highlight-color='\#B3BAC5'],
.mce-content-body table th[data-highlight-color='\#B3BAC5'],
#tinymce table td[data-highlight-color='\#B3BAC5'],
#tinymce table th[data-highlight-color='\#B3BAC5'] {
  background-color: #b3bac5;
}

.wiki-table-controllers-wrapper > div > .header[data-highlight-color='\#C1C7D0'],
.mce-content-body table td[data-highlight-color='\#C1C7D0'],
.mce-content-body table th[data-highlight-color='\#C1C7D0'],
#tinymce table td[data-highlight-color='\#C1C7D0'],
#tinymce table th[data-highlight-color='\#C1C7D0'] {
  background-color: #c1c7d0;
}

.wiki-table-controllers-wrapper > div > .header[data-highlight-color='\#DFE1E6'],
.mce-content-body table td[data-highlight-color='\#DFE1E6'],
.mce-content-body table th[data-highlight-color='\#DFE1E6'],
#tinymce table td[data-highlight-color='\#DFE1E6'],
#tinymce table th[data-highlight-color='\#DFE1E6'] {
  background-color: #dfe1e6;
}

.wiki-table-controllers-wrapper > div > .header[data-highlight-color='\#EBECF0'],
.mce-content-body table td[data-highlight-color='\#EBECF0'],
.mce-content-body table th[data-highlight-color='\#EBECF0'],
#tinymce table td[data-highlight-color='\#EBECF0'],
#tinymce table th[data-highlight-color='\#EBECF0'] {
  background-color: #ebecf0;
}

.wiki-table-controllers-wrapper > div > .header[data-highlight-color='\#F4F5F7'],
.mce-content-body table td[data-highlight-color='\#F4F5F7'],
.mce-content-body table th[data-highlight-color='\#F4F5F7'],
#tinymce table td[data-highlight-color='\#F4F5F7'],
#tinymce table th[data-highlight-color='\#F4F5F7'] {
  background-color: #f4f5f7;
}

.wiki-table-controllers-wrapper > div > .header[data-highlight-color='\#FAFBFC'],
.mce-content-body table td[data-highlight-color='\#FAFBFC'],
.mce-content-body table th[data-highlight-color='\#FAFBFC'],
#tinymce table td[data-highlight-color='\#FAFBFC'],
#tinymce table th[data-highlight-color='\#FAFBFC'] {
  background-color: #fafbfc;
}

.wiki-table-controllers-wrapper > div > .header[data-highlight-color='\#FFFFFF'],
.mce-content-body table td[data-highlight-color='\#FFFFFF'],
.mce-content-body table th[data-highlight-color='\#FFFFFF'],
#tinymce table td[data-highlight-color='\#FFFFFF'],
#tinymce table th[data-highlight-color='\#FFFFFF'] {
  background-color: #ffffff;
}

.wiki-table-controllers-wrapper > div > .header[data-highlight-color='\#BF2600'],
.mce-content-body table td[data-highlight-color='\#BF2600'],
.mce-content-body table th[data-highlight-color='\#BF2600'],
#tinymce table td[data-highlight-color='\#BF2600'],
#tinymce table th[data-highlight-color='\#BF2600'] {
  background-color: #bf2600;
}

.wiki-table-controllers-wrapper > div > .header[data-highlight-color='\#DE350B'],
.mce-content-body table td[data-highlight-color='\#DE350B'],
.mce-content-body table th[data-highlight-color='\#DE350B'],
#tinymce table td[data-highlight-color='\#DE350B'],
#tinymce table th[data-highlight-color='\#DE350B'] {
  background-color: #de350b;
}

.wiki-table-controllers-wrapper > div > .header[data-highlight-color='\#FF5630'],
.mce-content-body table td[data-highlight-color='\#FF5630'],
.mce-content-body table th[data-highlight-color='\#FF5630'],
#tinymce table td[data-highlight-color='\#FF5630'],
#tinymce table th[data-highlight-color='\#FF5630'] {
  background-color: #ff5630;
}

.wiki-table-controllers-wrapper > div > .header[data-highlight-color='\#FF7452'],
.mce-content-body table td[data-highlight-color='\#FF7452'],
.mce-content-body table th[data-highlight-color='\#FF7452'],
#tinymce table td[data-highlight-color='\#FF7452'],
#tinymce table th[data-highlight-color='\#FF7452'] {
  background-color: #ff7452;
}

.wiki-table-controllers-wrapper > div > .header[data-highlight-color='\#FF8F73'],
.mce-content-body table td[data-highlight-color='\#FF8F73'],
.mce-content-body table th[data-highlight-color='\#FF8F73'],
#tinymce table td[data-highlight-color='\#FF8F73'],
#tinymce table th[data-highlight-color='\#FF8F73'] {
  background-color: #ff8f73;
}

.wiki-table-controllers-wrapper > div > .header[data-highlight-color='\#FFBDAD'],
.mce-content-body table td[data-highlight-color='\#FFBDAD'],
.mce-content-body table th[data-highlight-color='\#FFBDAD'],
#tinymce table td[data-highlight-color='\#FFBDAD'],
#tinymce table th[data-highlight-color='\#FFBDAD'] {
  background-color: #ffbdad;
}

.wiki-table-controllers-wrapper > div > .header[data-highlight-color='\#FFEBE6'],
.mce-content-body table td[data-highlight-color='\#FFEBE6'],
.mce-content-body table th[data-highlight-color='\#FFEBE6'],
#tinymce table td[data-highlight-color='\#FFEBE6'],
#tinymce table th[data-highlight-color='\#FFEBE6'] {
  background-color: #ffebe6;
}

.wiki-table-controllers-wrapper > div > .header[data-highlight-color='\#FF8B00'],
.mce-content-body table td[data-highlight-color='\#FF8B00'],
.mce-content-body table th[data-highlight-color='\#FF8B00'],
#tinymce table td[data-highlight-color='\#FF8B00'],
#tinymce table th[data-highlight-color='\#FF8B00'] {
  background-color: #ff8b00;
}

.wiki-table-controllers-wrapper > div > .header[data-highlight-color='\#FF991F'],
.mce-content-body table td[data-highlight-color='\#FF991F'],
.mce-content-body table th[data-highlight-color='\#FF991F'],
#tinymce table td[data-highlight-color='\#FF991F'],
#tinymce table th[data-highlight-color='\#FF991F'] {
  background-color: #ff991f;
}

.wiki-table-controllers-wrapper > div > .header[data-highlight-color='\#FFAB00'],
.mce-content-body table td[data-highlight-color='\#FFAB00'],
.mce-content-body table th[data-highlight-color='\#FFAB00'],
#tinymce table td[data-highlight-color='\#FFAB00'],
#tinymce table th[data-highlight-color='\#FFAB00'] {
  background-color: #ffab00;
}

.wiki-table-controllers-wrapper > div > .header[data-highlight-color='\#FFC400'],
.mce-content-body table td[data-highlight-color='\#FFC400'],
.mce-content-body table th[data-highlight-color='\#FFC400'],
#tinymce table td[data-highlight-color='\#FFC400'],
#tinymce table th[data-highlight-color='\#FFC400'] {
  background-color: #ffc400;
}

.wiki-table-controllers-wrapper > div > .header[data-highlight-color='\#FFE380'],
.mce-content-body table td[data-highlight-color='\#FFE380'],
.mce-content-body table th[data-highlight-color='\#FFE380'],
#tinymce table td[data-highlight-color='\#FFE380'],
#tinymce table th[data-highlight-color='\#FFE380'] {
  background-color: #ffe380;
}

.wiki-table-controllers-wrapper > div > .header[data-highlight-color='\#FFF0B3'],
.mce-content-body table td[data-highlight-color='\#FFF0B3'],
.mce-content-body table th[data-highlight-color='\#FFF0B3'],
#tinymce table td[data-highlight-color='\#FFF0B3'],
#tinymce table th[data-highlight-color='\#FFF0B3'] {
  background-color: #fff0b3;
}

.wiki-table-controllers-wrapper > div > .header[data-highlight-color='\#FFFAE6'],
.mce-content-body table td[data-highlight-color='\#FFFAE6'],
.mce-content-body table th[data-highlight-color='\#FFFAE6'],
#tinymce table td[data-highlight-color='\#FFFAE6'],
#tinymce table th[data-highlight-color='\#FFFAE6'] {
  background-color: #fffae6;
}

.wiki-table-controllers-wrapper > div > .header[data-highlight-color='\#006644'],
.mce-content-body table td[data-highlight-color='\#006644'],
.mce-content-body table th[data-highlight-color='\#006644'],
#tinymce table td[data-highlight-color='\#006644'],
#tinymce table th[data-highlight-color='\#006644'] {
  background-color: #006644;
}

.wiki-table-controllers-wrapper > div > .header[data-highlight-color='\#00875A'],
.mce-content-body table td[data-highlight-color='\#00875A'],
.mce-content-body table th[data-highlight-color='\#00875A'],
#tinymce table td[data-highlight-color='\#00875A'],
#tinymce table th[data-highlight-color='\#00875A'] {
  background-color: #00875a;
}

.wiki-table-controllers-wrapper > div > .header[data-highlight-color='\#36B37E'],
.mce-content-body table td[data-highlight-color='\#36B37E'],
.mce-content-body table th[data-highlight-color='\#36B37E'],
#tinymce table td[data-highlight-color='\#36B37E'],
#tinymce table th[data-highlight-color='\#36B37E'] {
  background-color: #36b37e;
}

.wiki-table-controllers-wrapper > div > .header[data-highlight-color='\#57D9A3'],
.mce-content-body table td[data-highlight-color='\#57D9A3'],
.mce-content-body table th[data-highlight-color='\#57D9A3'],
#tinymce table td[data-highlight-color='\#57D9A3'],
#tinymce table th[data-highlight-color='\#57D9A3'] {
  background-color: #57d9a3;
}

.wiki-table-controllers-wrapper > div > .header[data-highlight-color='\#79F2C0'],
.mce-content-body table td[data-highlight-color='\#79F2C0'],
.mce-content-body table th[data-highlight-color='\#79F2C0'],
#tinymce table td[data-highlight-color='\#79F2C0'],
#tinymce table th[data-highlight-color='\#79F2C0'] {
  background-color: #79f2c0;
}

.wiki-table-controllers-wrapper > div > .header[data-highlight-color='\#ABF5D1'],
.mce-content-body table td[data-highlight-color='\#ABF5D1'],
.mce-content-body table th[data-highlight-color='\#ABF5D1'],
#tinymce table td[data-highlight-color='\#ABF5D1'],
#tinymce table th[data-highlight-color='\#ABF5D1'] {
  background-color: #abf5d1;
}

.wiki-table-controllers-wrapper > div > .header[data-highlight-color='\#E3FCEF'],
.mce-content-body table td[data-highlight-color='\#E3FCEF'],
.mce-content-body table th[data-highlight-color='\#E3FCEF'],
#tinymce table td[data-highlight-color='\#E3FCEF'],
#tinymce table th[data-highlight-color='\#E3FCEF'] {
  background-color: #e3fcef;
}

.wiki-table-controllers-wrapper > div > .header[data-highlight-color='\#008DA6'],
.mce-content-body table td[data-highlight-color='\#008DA6'],
.mce-content-body table th[data-highlight-color='\#008DA6'],
#tinymce table td[data-highlight-color='\#008DA6'],
#tinymce table th[data-highlight-color='\#008DA6'] {
  background-color: #008da6;
}

.wiki-table-controllers-wrapper > div > .header[data-highlight-color='\#00A3BF'],
.mce-content-body table td[data-highlight-color='\#00A3BF'],
.mce-content-body table th[data-highlight-color='\#00A3BF'],
#tinymce table td[data-highlight-color='\#00A3BF'],
#tinymce table th[data-highlight-color='\#00A3BF'] {
  background-color: #00a3bf;
}

.wiki-table-controllers-wrapper > div > .header[data-highlight-color='\#00B8D9'],
.mce-content-body table td[data-highlight-color='\#00B8D9'],
.mce-content-body table th[data-highlight-color='\#00B8D9'],
#tinymce table td[data-highlight-color='\#00B8D9'],
#tinymce table th[data-highlight-color='\#00B8D9'] {
  background-color: #00b8d9;
}

.wiki-table-controllers-wrapper > div > .header[data-highlight-color='\#00C7E6'],
.mce-content-body table td[data-highlight-color='\#00C7E6'],
.mce-content-body table th[data-highlight-color='\#00C7E6'],
#tinymce table td[data-highlight-color='\#00C7E6'],
#tinymce table th[data-highlight-color='\#00C7E6'] {
  background-color: #00c7e6;
}

.wiki-table-controllers-wrapper > div > .header[data-highlight-color='\#79E2F2'],
.mce-content-body table td[data-highlight-color='\#79E2F2'],
.mce-content-body table th[data-highlight-color='\#79E2F2'],
#tinymce table td[data-highlight-color='\#79E2F2'],
#tinymce table th[data-highlight-color='\#79E2F2'] {
  background-color: #79e2f2;
}

.wiki-table-controllers-wrapper > div > .header[data-highlight-color='\#B3F5FF'],
.mce-content-body table td[data-highlight-color='\#B3F5FF'],
.mce-content-body table th[data-highlight-color='\#B3F5FF'],
#tinymce table td[data-highlight-color='\#B3F5FF'],
#tinymce table th[data-highlight-color='\#B3F5FF'] {
  background-color: #b3f5ff;
}

.wiki-table-controllers-wrapper > div > .header[data-highlight-color='\#E6FCFF'],
.mce-content-body table td[data-highlight-color='\#E6FCFF'],
.mce-content-body table th[data-highlight-color='\#E6FCFF'],
#tinymce table td[data-highlight-color='\#E6FCFF'],
#tinymce table th[data-highlight-color='\#E6FCFF'] {
  background-color: #e6fcff;
}

.wiki-table-controllers-wrapper > div > .header[data-highlight-color='\#0747A6'],
.mce-content-body table td[data-highlight-color='\#0747A6'],
.mce-content-body table th[data-highlight-color='\#0747A6'],
#tinymce table td[data-highlight-color='\#0747A6'],
#tinymce table th[data-highlight-color='\#0747A6'] {
  background-color: #0747a6;
}

.wiki-table-controllers-wrapper > div > .header[data-highlight-color='\#0052CC'],
.mce-content-body table td[data-highlight-color='\#0052CC'],
.mce-content-body table th[data-highlight-color='\#0052CC'],
#tinymce table td[data-highlight-color='\#0052CC'],
#tinymce table th[data-highlight-color='\#0052CC'] {
  background-color: #0052cc;
}

.wiki-table-controllers-wrapper > div > .header[data-highlight-color='\#0065FF'],
.mce-content-body table td[data-highlight-color='\#0065FF'],
.mce-content-body table th[data-highlight-color='\#0065FF'],
#tinymce table td[data-highlight-color='\#0065FF'],
#tinymce table th[data-highlight-color='\#0065FF'] {
  background-color: #0065ff;
}

.wiki-table-controllers-wrapper > div > .header[data-highlight-color='\#2684FF'],
.mce-content-body table td[data-highlight-color='\#2684FF'],
.mce-content-body table th[data-highlight-color='\#2684FF'],
#tinymce table td[data-highlight-color='\#2684FF'],
#tinymce table th[data-highlight-color='\#2684FF'] {
  background-color: #2684ff;
}

.wiki-table-controllers-wrapper > div > .header[data-highlight-color='\#4C9AFF'],
.mce-content-body table td[data-highlight-color='\#4C9AFF'],
.mce-content-body table th[data-highlight-color='\#4C9AFF'],
#tinymce table td[data-highlight-color='\#4C9AFF'],
#tinymce table th[data-highlight-color='\#4C9AFF'] {
  background-color: #4c9aff;
}

.wiki-table-controllers-wrapper > div > .header[data-highlight-color='\#B3D4FF'],
.mce-content-body table td[data-highlight-color='\#B3D4FF'],
.mce-content-body table th[data-highlight-color='\#B3D4FF'],
#tinymce table td[data-highlight-color='\#B3D4FF'],
#tinymce table th[data-highlight-color='\#B3D4FF'] {
  background-color: #b3d4ff;
}

.wiki-table-controllers-wrapper > div > .header[data-highlight-color='\#DEEBFF'],
.mce-content-body table td[data-highlight-color='\#DEEBFF'],
.mce-content-body table th[data-highlight-color='\#DEEBFF'],
#tinymce table td[data-highlight-color='\#DEEBFF'],
#tinymce table th[data-highlight-color='\#DEEBFF'] {
  background-color: #deebff;
}

.wiki-table-controllers-wrapper > div > .header[data-highlight-color='\#403294'],
.mce-content-body table td[data-highlight-color='\#403294'],
.mce-content-body table th[data-highlight-color='\#403294'],
#tinymce table td[data-highlight-color='\#403294'],
#tinymce table th[data-highlight-color='\#403294'] {
  background-color: #403294;
}

.wiki-table-controllers-wrapper > div > .header[data-highlight-color='\#5243AA'],
.mce-content-body table td[data-highlight-color='\#5243AA'],
.mce-content-body table th[data-highlight-color='\#5243AA'],
#tinymce table td[data-highlight-color='\#5243AA'],
#tinymce table th[data-highlight-color='\#5243AA'] {
  background-color: #5243aa;
}

.wiki-table-controllers-wrapper > div > .header[data-highlight-color='\#6554C0'],
.mce-content-body table td[data-highlight-color='\#6554C0'],
.mce-content-body table th[data-highlight-color='\#6554C0'],
#tinymce table td[data-highlight-color='\#6554C0'],
#tinymce table th[data-highlight-color='\#6554C0'] {
  background-color: #6554c0;
}

.wiki-table-controllers-wrapper > div > .header[data-highlight-color='\#8777D9'],
.mce-content-body table td[data-highlight-color='\#8777D9'],
.mce-content-body table th[data-highlight-color='\#8777D9'],
#tinymce table td[data-highlight-color='\#8777D9'],
#tinymce table th[data-highlight-color='\#8777D9'] {
  background-color: #8777d9;
}

.wiki-table-controllers-wrapper > div > .header[data-highlight-color='\#998DD9'],
.mce-content-body table td[data-highlight-color='\#998DD9'],
.mce-content-body table th[data-highlight-color='\#998DD9'],
#tinymce table td[data-highlight-color='\#998DD9'],
#tinymce table th[data-highlight-color='\#998DD9'] {
  background-color: #998dd9;
}

.wiki-table-controllers-wrapper > div > .header[data-highlight-color='\#C0B6F2'],
.mce-content-body table td[data-highlight-color='\#C0B6F2'],
.mce-content-body table th[data-highlight-color='\#C0B6F2'],
#tinymce table td[data-highlight-color='\#C0B6F2'],
#tinymce table th[data-highlight-color='\#C0B6F2'] {
  background-color: #c0b6f2;
}

.wiki-table-controllers-wrapper > div > .header[data-highlight-color='\#EAE6FF'],
.mce-content-body table td[data-highlight-color='\#EAE6FF'],
.mce-content-body table th[data-highlight-color='\#EAE6FF'],
#tinymce table td[data-highlight-color='\#EAE6FF'],
#tinymce table th[data-highlight-color='\#EAE6FF'] {
  background-color: #eae6ff;
}

.wiki-table-controllers-wrapper > div > .header[data-highlight-color='\#000000'],
.mce-content-body table td[data-highlight-color='\#000000'],
.mce-content-body table th[data-highlight-color='\#000000'],
#tinymce table td[data-highlight-color='\#000000'],
#tinymce table th[data-highlight-color='\#000000'] {
  background-color: #000000;
}

/** Конец Стили для поддержки цветов из конфл */

/* таблица не должна влиять на структуру или стили других элементов страницы */
#tinymce table {
  contain: strict;
}

/** Компенсируем отступы у таблиц без управляющей рамки  */
#tinymce table {
  margin-top: 25px;
  margin-left: 25px;
  margin-bottom: 10px;
  max-width: calc(100% - 25px);
}

#tinymce .tableView-content-wrap > .table-wrapper > table,
.mce-content-body.mce-content-readonly .tableView-content-wrap > .table-wrapper > table,
.mce-content-readonly .tableView-content-wrap > .table-wrapper > table {
  white-space: normal;
  table-layout: fixed;
}

.mce-content-readonly .macros-panel.details-hidden .ak-renderer-wrapper {
  display: none;
}

.mce-content-readonly code,
#tinymce code {
  background: var(--color-gray-eee, #eee);
  padding: 2px 10px;
  border-radius: 2px;
}

.mce-content-readonly pre > code,
#tinymce pre > code {
  background: none;
  padding: 0 0;
  border-radius: 0;
}

.mce-content-body a.wiki-card-text {
  z-index: 1;
  position: relative;
  color: var(--accent-color-bg, #3f82d8);
  padding: 2px 4px;
  display: inline;
  -webkit-box-decoration-break: clone;
  border-radius: 3px;
  color: var(--ds-link, #0052cc);
  background: var(--color-gray-fff, #fff);
  /* box-shadow: 0 1px 1px rgba(9,30,66,0.25), 0 0 1px 1px rgba(9,30,66,0.13); */
  transition: all 0.1s ease-in-out 0s;
  text-decoration: none;
  border: 1px solid var(--color-gray-eee, #091e4224);
}

.mce-content-body a.wiki-card-text .card-status {
  border-radius: 3px;
  padding: 1px 5px;
  font-size: 12px;
  height: 14px;
  display: inline;
  text-decoration: none;
  margin-left: 5px;
}

.mce-content-body a.wiki-card-text:hover .card-status {
  text-decoration: none;
}

.mce-content-body a.wiki-card-text:hover {
  text-decoration: underline;
}

.mce-content-body a.wiki-card-text .inline-card-icon-and-title {
  display: inline;
  max-width: 100%;
  word-break: break-all;
  white-space: pre-wrap;
  line-height: 2;
}

/* Отключение бэкграунда ссылок в таблицах */
.mce-content-body table a.wiki-card-text {
  background-color: unset;
}

/* Отключение высоты строк ссылок в таблицах */
.mce-content-body table a.wiki-card-text .inline-card-icon-and-title {
  line-height: unset;
}

a.wiki-card-text .inline-card-icon-and-title svg {
  width: 16px;
  height: 16px;
  margin-bottom: -3px;
  margin-right: 4px;
}

#tinymce .table-dropmenu-color-picker .color-item {
  margin: 5px;
  cursor: pointer;
}

.mce-content-body .color-item {
  border: 1px solid var(--color-gray-eee, #eee);
}

.mce-content-body div.mce-resizehandle {
  width: 10px;
  height: 10px;
  background: transparent;
  border-color: transparent;
}

.mce-content-body div.mce-resizehandle:hover {
  background-color: transparent;
}

.mce-content-body .add-row-controller,
.mce-content-body .add-col-controller {
  display: flex;
  align-items: center;
  justify-content: center;
}

.mce-content-body .add-row-controller svg,
.mce-content-body .add-col-controller svg {
  display: flex;
}

.mce-content-body .add-row-controller *,
.mce-content-body .add-col-controller * {
  pointer-events: none;
}

.mce-content-body .table-controller {
  background-color: var(--theme-hack-bg-color, #f4f5f7);
}

.mce-content-body .table-controller .header-x {
  color: var(--user-content-color, var(--default-color));
}

.mce-content-body .table-controller[data-position-y] {
  border-left: 1px solid var(--color-gray-eee, #eee);
  border-bottom: 1px solid var(--color-gray-eee, #eee);
}

.mce-content-body .table-controller[data-position-x] {
  border-top: 1px solid var(--color-gray-eee, #eee);
  border-left: 1px solid var(--color-gray-eee, #eee);
}

.mce-content-readonly .macros-panel.table-filters .ak-renderer-wrapper {
  display: none;
}

.mce-content-body .tableView-content-wrap.y-numbered {
  padding-left: 68px;
}

.mce-content-body .pm-table-row-controls-wrapper {
  height: 0px;
}

.mce-content-body .pm-table-numbered-column__button {
  background: var(--theme-hack-bg-color, #f4f5f7);
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--color-gray-eee, #eee);
  border: 1px solid var(--color-gray-eee, #eee);
  color: var(--color-text-subtlest, #6c788d);
  font-size: 12px;
}

#tinymce .pm-table-numbered-column__button:hover,
#tinymce .pm-table-numbered-column__button.highlighted,
#tinymce .pm-table-numbered-column__button[data-selected='1'] {
  background: #0069ca;
  color: #fff;
}

.mce-content-body .pm-table-numbered-column__button:last-child {
  border-bottom: 1px solid var(--color-gray-eee, #eee);
}

.mce-content-body a[data-macros='mentions'] svg {
  width: 20px;
  height: 20px;
  margin-bottom: -4px;
  margin-right: -4px;
  margin-left: -4px;
}

.mce-content-body .macros-panel.mentions-macros {
  display: inline-flex;
  flex-direction: column;
  position: relative;
}

.mce-content-body .macros-panel.mentions-macros .ak-renderer-wrapper .external {
  font: var(--wiki-text-font);
}

.mce-content-body colgroup col {
  min-width: 50px;
}

.mce-content-body colgroup col[data-enumerated] {
  min-width: 48px;
  width: 48px;
  max-width: 48px;
}

.mce-content-body .table-controller.last-x-controller {
  border-right: 1px solid var(--color-gray-eee, #eee);
}

.mce-content-body .table-controller[data-selected='1'] {
  background-color: #0069ca;
}

#tinymce p,
.mce-content-body p {
  word-break: break-word;
}

.mce-content-body td {
  position: relative;
}

.mce-content-body .cell-dropbox-button {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 14px;
  height: 13px;
  display: flex;
  border-radius: 2px;
  align-items: center;
  justify-content: center;
  box-shadow: 0px 0px 2px #00000047;
  cursor: pointer;
  background-color: var(--color-gray-fff, #fff);
  z-index: 99;
}

#tinymce .tableView-content-wrap.all-removed .table-controller,
#tinymce .tableView-content-wrap.all-removed .pm-table-numbered-column__button {
  background-color: #ffbdad !important;
}

.mce-content-body .tableView-content-wrap td,
.mce-content-body .tableView-content-wrap th {
  width: 10px;
}

#tinymce .tableView-content-wrap.all-removed td,
#tinymce .tableView-content-wrap.all-removed th {
  border-color: #ffbdad !important;
}

#tinymce .tableView-content-wrap.all-removed td::after,
#tinymce .tableView-content-wrap.all-removed th::after {
  content: '';
  position: absolute;
  inset: 0px;
  width: 100%;
  pointer-events: none;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  background-color: #f38b713d;
  opacity: 0.3;
}

#tinymce table.all-highlighted td,
#tinymce table.all-highlighted th {
  border-color: #0069ca;
}

#tinymce .tableView-content-wrap.remove-button-hovered table.all-selected td::after,
#tinymce .tableView-content-wrap.remove-button-hovered table td.mce-item-selected::after,
#tinymce .tableView-content-wrap.remove-button-hovered table th.mce-item-selected::after,
#tinymce .tableView-content-wrap.remove-button-hovered table td.highlighted::after,
#tinymce .tableView-content-wrap.remove-button-hovered table th.highlighted::after,
#tinymce .tableView-content-wrap.remove-button-hovered table.all-selected th::after {
  border-color: #ffbdad;
  background: #f38b7140;
}

.mce-content-body .cell-dropbox-button svg {
  pointer-events: none;
  fill: var(--default-color);
}

.mce-content-body .cell-dropbox-menu__item,
.mce-content-body .params-dropbox-menu__item {
  font-size: 14px;
  padding: 5px 10px;
  cursor: pointer;
  border: none;
  outline: none;
  background: transparent;
  display: flex;
  flex-flow: row wrap;
  width: 100%;
  text-align: left;
  color: var(--default-color);
}

.mce-content-body .params-dropbox-menu__item.selected {
  opacity: 0.7;
}

.mce-content-body .cell-dropbox-menu__item.disabled,
.mce-content-body .params-dropbox-menu__item.disabled {
  pointer-events: none;
  color: var(--color-gray-eee, #eee);
  cursor: default;
}

.mce-content-body .cell-dropbox-menu__item > .key-combination,
.mce-content-body .params-dropbox-menu__item > .key-combination {
  padding: 4px;
  background-color: var(--ds-background-neutral, rgba(223, 225, 229, 0.5));
  color: var(--theme-hack-color, var(--ds-text-subtle), #7a869a);
  border-radius: 3px;
  line-height: 12px;
  font-size: 8pt;
  align-self: flex-end;
  max-width: min-content;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
}

.mce-content-body .cell-dropbox-menu__item > .key-combination > svg,
.mce-content-body .params-dropbox-menu__item > .key-combination > svg {
  width: 10px;
  height: 10px;
  fill: gray;
}

.mce-content-body .menu-background-drop {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  z-index: 99;
}

.mce-content-body .cell-dropbox-menu__item:hover,
.mce-content-body .params-dropbox-menu__item:hover {
  background: rgb(244, 245, 247);
}

.mce-content-body .tableView-content-wrap {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  box-sizing: border-box;
}

.mce-content-body .tableView-content-wrap {
  padding-top: 0;
  padding-left: 33px;
}

.mce-content-body .cmf-scrollbar {
  width: 100%;
  scrollbar-width: thin;
  scrollbar-color: #9f9f9f color-mix(in srgb, #fff 3%, var(--theme-hack-bg-color, #fff));
  cursor: default;
}

.mce-content-body .cmf-scrollbar::-webkit-scrollbar {
  width: 3px;
  height: 6px;
}

.mce-content-body .cmf-scrollbar::-webkit-scrollbar-thumb {
  word-break: break-word;
  background-color: #aaa;
}

.mce-content-body .tableView-content-wrap.all-selected .table-controller,
.mce-content-body .tableView-content-wrap.all-selected .pm-table-numbered-column__button {
  color: #fff;
  background-color: #0069ca;
}

#tinymce #menu-item-dropdownmenu-container {
  position: absolute;
  z-index: 999;
  box-shadow:
    rgb(9 30 66 / 25%) 0px 4px 8px -2px,
    rgb(9 30 66 / 31%) 0px 0px 1px;
  background: var(--color-gray-fff, #fff);
}

#tinymce #menu-item-dropdownmenu-container .menu-item * {
  pointer-events: none;
}

#tinymce #menu-item-dropdownmenu {
  width: 200px;
  padding: 3px;
}

#tinymce .cell-dropbox-menu,
#tinymce .params-dropbox-menu {
  position: absolute;
  z-index: 9999;
  width: 250px;
  background: var(--theme-hack-bg2-color, #fff);
  top: 0px;
  border-radius: 3px;
  box-shadow:
    rgb(9 30 66 / 25%) 0px 4px 8px -2px,
    rgb(9 30 66 / 31%) 0px 0px 1px;
  box-sizing: border-box;
  overflow: auto;
  max-height: 90vh;
  font-weight: 400;
  overflow-x: hidden;
}

#tinymce .cell-dropbox-menu.right-position,
#tinymce .params-dropbox-menu.right-position {
  right: 0px;
}

#tinymce .cell-dropbox-menu.left-position,
#tinymce .params-dropbox-menu.left-position {
  left: 0px;
}

#tinymce table td.highlighted,
#tinymce table th.highlighted {
  border: 1px solid #0069ca;
}

#tinymce table td.highlighted::after,
#tinymce table th.highlighted::after {
  border: 1px solid #0069ca;
  content: '';
  position: absolute;
  left: -1px;
  top: -1px;
  bottom: -1px;
  right: -1px;
  z-index: 10;
  display: inline-block;
  pointer-events: none;
}

.mce-content-body .table-controller {
  cursor: pointer;
}

.tinymce-editor h1,
#tinymce h1,
.mce-content-body h1 {
  font: var(--wiki-font-h1);
  color: var(--wiki-font-h1-color);
}

.tinymce-editor .tox-checklist {
  text-align: left;
}

.tinymce-editor .tox-checklist li {
  min-height: 20px;
}

.mce-content-body .tox-checklist > li {
  position: relative;
}

.mce-content-body .tox-checklist > li::before {
  left: 0;
}

.tinymce-editor .tox-checklist > li:not(.tox-checklist--hidden)::before {
  height: 18px;
  width: 16px;
  max-height: 100%;
  overflow: hidden;
}

.mce-content-body div[data-children-docs] ul ul {
  margin: 0 0 0 30px;
}

.mce-content-body table td.sticky,
.mce-content-body table th.sticky {
  position: sticky;
  top: 0;
}

.mce-content-body div[data-children-docs] li {
  list-style-type: disc;
}

.tinymce-editor table,
#tinymce table {
  border-color: var(--color-gray-eee, #eee);
}

#tinymce,
.mce-content-body {
  font: var(--wiki-text-font);
  color: var(--user-content-color, var(--default-color));
}

.mce-content-body table,
#tinymce table {
  table-layout: auto;
}

.mce-content-body table th,
#tinymce table th {
  background-color: var(--theme-hack-bg-color, #f4f5f7);
  font-weight: 500;
  position: relative;
}

.mce-content-body table td,
.mce-content-body table th,
#tinymce table th,
#tinymce table td {
  padding: 8px;
  cursor: text;
  box-sizing: border-box;
}

.mce-content-body table td p,
.mce-content-body table th p,
#tinymce table th p,
#tinymce table td p {
  margin: 0;
}

.chat-editor-wrap .app-tinymce-card-preview:hover .remove-file-icon,
#tinymce .app-tinymce-card-preview:hover .remove-file-icon {
  display: flex;
}

#tinymce .app-tinymce-file-preview-block {
  padding-bottom: 5px;
}

#tinymce .app-tinymce-preview-actions,
.mce-content-body .app-tinymce-preview-actions {
  position: absolute;
  display: flex;
  align-items: center;
  bottom: 0px;
  z-index: 1;
  cursor: pointer;
  visibility: hidden;
}

#tinymce .app-tinymce-card-preview:hover .app-tinymce-preview-actions,
.mce-content-body .app-tinymce-card-preview:hover .app-tinymce-preview-actions {
  visibility: visible;
}

/** В режиме просмотра не должен отображаться "карточка" и "редактирование" для вложений*/
.cmf-document-editor
  .mce-content-readonly
  .app-tinymce-card-preview
  .app-tinymce-preview-actions
  div:has(.preview-action.edit-preview),
.cmf-document-editor
  .mce-content-readonly
  .app-tinymce-card-preview
  .app-tinymce-preview-actions
  div:has(.preview-action.add-mso-viewer) {
  display: none;
}

/* Кнопка "открыть в ворде на просмотр" отображается только в документах в режиме просмотра*/
.cmf-document-editor
  .mce-content-readonly
  .app-tinymce-card-preview
  .app-tinymce-preview-actions
  div:has(.preview-action.open-new-preview) {
  display: block;
}

/* Кнопка "открыть в ворде на просмотр" нигде не отображается */
.mce-content-body .app-tinymce-preview-actions div:has(.preview-action.open-new-preview) {
  display: none;
}

#tinymce .app-tinymce-preview-actions svg,
.mce-content-body .app-tinymce-preview-actions svg {
  margin: 0 5px;
}

.mce-content-body .heading-anchor-wrapper {
  color: var(--theme-hack-color, --sdesk-text-color, #182c4b);
  line-height: 1;
}

.mce-content-body .heading-anchor-wrapper button {
  padding-left: 0px;
  padding-right: 0px;
  display: inline;
  outline: none;
  background-color: transparent;
  border: none;
  color: var(--theme-hack-color, #41516e);
  cursor: pointer;
  right: 0px;
  opacity: 0;
  top: -8px;
  left: 5px;
  position: relative;
}

.mce-content-body .heading-anchor-wrapper button > span {
  display: flex;
}

.mce-content-body .heading-anchor-wrapper {
  display: inline-block;
  width: 28px !important;
}

.mce-content-body h1 .heading-anchor-wrapper > button {
  width: 22px;
  height: 22px;
}

.mce-content-body h1 .heading-anchor-wrapper > button svg {
  width: 22px;
  height: 22px;
  position: absolute;
  /*top: 0;*/
}

.mce-content-body h2 .heading-anchor-wrapper > button svg {
  width: 20px;
  height: 20px;
  position: absolute;
  /* top: 0; */
}

.mce-content-body h2 .heading-anchor-wrapper > button {
  width: 20px;
  height: 20px;
}

.mce-content-body h3 .heading-anchor-wrapper > button svg {
  width: 16px;
  height: 16px;
  position: absolute;
  /* top: 0; */
}

.mce-content-body h3 .heading-anchor-wrapper > button {
  width: 16px;
  height: 16px;
}

.mce-content-body h4 .heading-anchor-wrapper > button svg {
  width: 13px;
  height: 13px;
  position: absolute;
  /* top: 0; */
}

.mce-content-body h4 .heading-anchor-wrapper > button {
  width: 13px;
  height: 13px;
  top: -6px;
}

.mce-content-body h5 .heading-anchor-wrapper > button svg {
  width: 13px;
  height: 13px;
  position: absolute;
  /* top: 0; */
}

.mce-content-body h5 .heading-anchor-wrapper > button,
.mce-content-body h6 .heading-anchor-wrapper > button {
  width: 13px;
  height: 13px;
  top: -6px;
}

.mce-content-body h6 .heading-anchor-wrapper > button svg {
  width: 13px;
  height: 13px;
  position: absolute;
  /* top: 0; */
}

.mce-content-body h1:hover .heading-anchor-wrapper > button,
.mce-content-body h2:hover .heading-anchor-wrapper > button,
.mce-content-body h3:hover .heading-anchor-wrapper > button,
.mce-content-body h4:hover .heading-anchor-wrapper > button,
.mce-content-body h5:hover .heading-anchor-wrapper > button,
.mce-content-body h6:hover .heading-anchor-wrapper > button {
  opacity: 1;
  transition:
    opacity 0.2s ease 0s,
    transform 0.2s ease 0s;
}

.mce-content-body .heading-anchor-wrapper > button * {
  pointer-events: none;
}

.tinymce-editor h1,
.mce-content-body h1 {
  margin: var(--wiki-header1-margin);
  position: relative;
  letter-spacing: var(--wiki-header1-lspacing);
}

.tinymce-editor h2,
.mce-content-body h2,
#tinymce h2 {
  font: var(--wiki-font-h2);
  margin: var(--wiki-header2-margin);
  position: relative;
  letter-spacing: var(--wiki-header2-lspacing);
}

.tinymce-editor h3,
.mce-content-body h3,
#tinymce h3 {
  font: var(--wiki-font-h3);
  margin: var(--wiki-header3-margin);
  position: relative;
  letter-spacing: var(--wiki-header3-lspacing);
}

.tinymce-editor h4,
.mce-content-body h4,
#tinymce h4 {
  font: var(--wiki-font-h4);
  margin: var(--wiki-header4-margin);
  position: relative;
  letter-spacing: var(--wiki-header4-lspacing);
}

.tinymce-editor h5,
.mce-content-body h5,
#tinymce h5 {
  font: var(--wiki-font-h5);
  margin: var(--wiki-header5-margin);
  position: relative;
  letter-spacing: var(--wiki-header5-lspacing);
  color: var(--wiki-font-h5-color);
}

.tinymce-editor h6,
.mce-content-body h6,
#tinymce h6 {
  font: var(--wiki-font-h6);
  margin: var(--wiki-header6-margin);
  position: relative;
  letter-spacing: var(--wiki-header6-lspacing);
  color: var(--wiki-font-h6-color);
}

#tinymce h1 + h1,
.mce-content-body h1 + h1,
#tinymce h2 + h2,
.mce-content-body h2 + h2,
#tinymce h3 + h3,
.mce-content-body h3 + h3,
#tinymce h4 + h4,
.mce-content-body h4 + h4,
#tinymce h5 + h5,
.mce-content-body h5 + h5,
#tinymce h6 + h6,
.mce-content-body h6 + h6 {
  margin-top: 10px;
}

#tinymce h1 + h2,
.mce-content-body h1 + h2,
#tinymce h2 + h3,
.mce-content-body h2 + h3,
#tinymce h3 + h4,
.mce-content-body h3 + h4,
#tinymce h4 + h5,
.mce-content-body h4 + h5,
#tinymce h5 + h6,
.mce-content-body h5 + h6 {
  margin-top: 10px;
}

.tinymce-editor a,
.tinymce-editor a:visited {
  color: var(--color-href);
}

.tinymce-editor .plugin_attachments_upload_container,
.mce-content-body .mce-object-video .plugin_attachments_upload_container,
#tinymce .plugin_attachments_upload_container {
  display: none;
}

.mce-content-body .mce-object-video:has(> video[width='auto'][height='auto']) {
  width: calc(100% - 10px);
  height: auto;
  margin: 0 3px;
}

.mce-content-body video[width='auto'][height='auto'] {
  width: 100%;
  height: auto;
}

.mce-content-body video {
  max-width: 100%;
}

.mce-content-body img:not(.image-preview__img) {
  max-width: 100%;
  height: auto !important;
}

.tinymce-editor video {
  position: relative;
  z-index: 100;
}

.mce-content-body pre {
  cursor: unset;
  width: 100%;
  white-space: pre-wrap;
  white-space: -moz-pre-wrap;
  white-space: -pre-wrap;
  white-space: -o-pre-wrap;
  white-space: pre-wrap !important;
  word-wrap: break-word !important;
  word-break: break-word !important;
  box-sizing: border-box;
}

.mce-content-body td {
  height: 20px;
}

.mce-content-body .inline-highlight,
.mce-content-body .inline-comment-marker {
  background-color: rgba(255, 240, 179, 0.5);
  border-bottom: 2px solid rgba(255, 196, 0, 0.82);
}

.mce-content-body .inline-highlight[data-mark-resolved],
#tinymce .inline-highlight[data-mark-resolved],
.mce-content-body .inline-comment-marker[data-mark-resolved],
#tinymce .inline-comment-marker[data-mark-resolved] {
  background-color: transparent !important;
  border-bottom: none !important;
  cursor: transparent !important;
}

.mce-content-body img {
  cursor: pointer;
}

.mce-content-body span[data-mark-annotation-type='inlineComment'] {
  cursor: pointer;
}

.mce-content-body .inline-highlight.inline-highlight-active,
.mce-content-body .inline-comment-marker.inline-highlight-active {
  background-color: rgb(255, 240, 179);
  border-bottom: 2px solid rgb(255, 171, 0);
  box-shadow: rgb(193 199 208) 0px 2px 2px;
}

.mce-content-body.mce-edit-focus:focus {
  padding: 0 5px;
  outline: unset;
}

.mce-toc {
  border: none;
}

.mce-toc h2 {
  font: var(--wiki-font-h5);
  margin: var(--wiki-header-margin);
  letter-spacing: 1px;
}

.mce-toc li {
  list-style-type: disc;
  color: var(--color-gray-444);
  line-height: 140%;
}

.mce-toc li li {
  list-style-type: circle;
}

.mce-toc li li li {
  list-style-type: square;
}

.mce-toc li li li li {
  list-style-type: disc;
}

.mce-toc li li li li li {
  list-style-type: circle;
}

.mce-toc li li li li li li {
  list-style-type: square;
}

.mce-content-body li a {
  color: var(--color-href);
  text-decoration: none;
}

.mce-content-body p {
  margin: var(--wiki-paragraph-margin);
}

.mce-content-body ol,
.mce-content-body ul {
  margin: var(--wiki-list-margin);
  padding: 0;
}

.mce-content-body ul ul,
.mce-content-body ul ol,
.mce-content-body ol ol,
.mce-content-body ol ul {
  margin: var(--wiki-list-margin, 10px 0 0 40px);
  margin-top: 0;
}

#tinymce .inline-task-list > li,
.tinymce-editor .inline-task-list > li {
  list-style: none;
  margin: 0.25em 0;
}

#tinymce .inline-task-list > li::before,
.tinymce-editor .inline-task-list > li::before {
  content: url('data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%3E%3Cg%20id%3D%22checklist-unchecked%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%3Crect%20id%3D%22Rectangle%22%20width%3D%2215%22%20height%3D%2215%22%20x%3D%22.5%22%20y%3D%22.5%22%20fill-rule%3D%22nonzero%22%20stroke%3D%22%234C4C4C%22%20rx%3D%222%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E%0A');
  cursor: pointer;
  height: 1em;
  margin-left: -1.5em;
  margin-top: 0.125em;
  position: absolute;
  width: 1em;
}

#tinymce .inline-task-list > li.checked::before,
.tinymce-editor .inline-task-list > li.checked::before {
  content: url('data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%3E%3Cg%20id%3D%22checklist-checked%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%3Crect%20id%3D%22Rectangle%22%20width%3D%2216%22%20height%3D%2216%22%20fill%3D%22%234099FF%22%20fill-rule%3D%22nonzero%22%20rx%3D%222%22%2F%3E%3Cpath%20id%3D%22Path%22%20fill%3D%22%23FFF%22%20fill-rule%3D%22nonzero%22%20d%3D%22M11.5703186%2C3.14417309%20C11.8516238%2C2.73724603%2012.4164781%2C2.62829933%2012.83558%2C2.89774797%20C13.260121%2C3.17069355%2013.3759736%2C3.72932262%2013.0909105%2C4.14168582%20L7.7580587%2C11.8560195%20C7.43776896%2C12.3193404%206.76483983%2C12.3852142%206.35607322%2C11.9948725%20L3.02491697%2C8.8138662%20C2.66090143%2C8.46625845%202.65798871%2C7.89594698%203.01850234%2C7.54483354%20C3.373942%2C7.19866177%203.94940006%2C7.19592841%204.30829608%2C7.5386474%20L6.85276923%2C9.9684299%20L11.5703186%2C3.14417309%20Z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E%0A');
}

#tinymce .inline-task-list li,
.tinymce-editor .inline-task-list li li,
#tinymce .tox-checklist li,
.tinymce-editor .tox-checklist li {
  min-height: 20px;
}

#tinymce .external-source {
  position: relative;
  display: inline-block;
  min-width: 116px;
}

#tinymce .external-source > img.external-media:first-child {
  border: 2px solid #e31e24;
  box-sizing: border-box;
  margin-top: 20px;
}

#tinymce .external-link__message {
  position: absolute;
  top: 1px;
  right: 0;
  height: 20px;
}

#tinymce .external-source img.external-media ~ .external-link__message::after {
  content: 'Внешняя картинка';
  background: #e31e24;
  color: white;
  padding: 2px;
  border-top-right-radius: 3px;
  border-top-left-radius: 3px;
  font-size: 14px;
}

.mce-content-body a.external:any-link {
  color: #0053a0;
  text-decoration: none;
}

.mce-content-body a.external.mention-user {
  padding: 0px 0.3em 2px 0.23em;
  background-color: #f1f2f4;
  border-radius: 20px;
  color: #44546f;
  transition: background-color 0.2s ease;
}

.mce-content-body a.external.mention-user:hover {
  background-color: #dcdfe4;
}

.mce-content-body a.external.mention-user.mention-self {
  background-color: #0c66e4;
  color: #ffffff;
}

.mce-content-body a.external.mention-user.mention-self:hover {
  background-color: #0055cc;
}

.mce-content-body .app-tinymce-card-preview {
  display: inline-flex;
  overflow: hidden;
  width: 155px;
  height: 159px;
  margin: 10px;
  position: relative;
  align-items: center;
  flex-wrap: nowrap;
  flex-direction: column;
  padding: 2px 5px;
  padding-bottom: 30px;
  vertical-align: top;
}

.mce-content-body .app-tinymce-href-preview {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: black;
  cursor: pointer;
  font-size: 11px;
  border-radius: 3px;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
  align-items: center;
  box-sizing: border-box;
  position: relative;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

.mce-content-body .app-tinymce-href-preview:hover {
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
}

.mce-content-body .app-tinymce-img-preview-block {
  position: relative;
  display: flex;
  width: 100%;
  height: 65%;
  border-radius: 3px 3px 0 0;
}

.mce-content-body .app-tinymce-img-preview-block img.d-none {
  display: none;
}

.mce-content-body .app-tinymce-img-preview-background {
  width: 100%;
  height: 100%;
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mce-content-body .app-tinymce-img-preview-background img {
  width: auto;
  height: 100% !important;
}

.mce-content-body .app-tinymce-file-preview-block {
  background: var(--theme-hack-bg-color, #f9f9f9);
  width: 100%;
  height: 35%;
  z-index: 1;
  padding: 3px 15px 10px 15px;
  margin: 0 auto;
  color: var(--color-gray-222);
}

.mce-content-body .app-tinymce-file-name-block {
  font-weight: 600;
  display: flex;
  flex-direction: row;
  align-items: center;
  height: 50%;
}

.mce-content-body .display-contents {
  display: contents !important;
}

.mce-content-body .remove-file-icon {
  justify-content: center;
  position: absolute;
  cursor: pointer !important;
  right: 3px;
  top: 3px;
  z-index: 10;
  display: none;
}

.mce-content-body .app-tinymce-file-create-view,
.mce-content-body .app-tinymce-file-name-view {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mce-content-body .app-tinymce-file-name-view {
  max-width: calc(100% - 4.22em);
}

.mce-content-body .app-tinymce-file-create-view {
  height: 50%;
}

.mce-content-body .app-tinymce-img-preview-size {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-start;
  align-content: flex-start;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.mce-content-body .extension-container,
.mce-content-readonly .extension-container {
  display: none;
}

.mce-content-body .hidden-element {
  display: inline-block;
  width: 0.1px;
  position: absolute;
  overflow: hidden;
}

#tinymce .extension-container {
  display: block;
}

#tinymce .extension-container {
  position: relative;
}

#tinymce .macros-panel {
  background: var(--theme-hack-bg2-color, #f4f5f7);
  border-radius: 3px;
  padding: 5px;
  margin: 10px 2px;
  cursor: grab;
}

#tinymce > .macros-panel:first-child,
#tinymce > [data-mce-caret] + .macros-panel {
  margin-top: 0;
}

#tinymce .macros-panel > * {
  /* запрещаем лишние клики по содержимому macros-panel */
  /* если нужно, вручную разрешаем клики, там где надо */
  pointer-events: none;
}

#tinymce .macros-panel [contenteditable='true'] {
  /* разрешаем клики по содержимому macros-panel с contenteditable="true" */
  pointer-events: all;
}

#tinymce .macros-panel .extension-container {
  padding: 0 5px;
  align-items: baseline;
  display: flex;
}

#tinymce .macros-panel .extension-container .macros-icon,
#tinymce .macros-panel .extension-container span:first-child {
  margin-right: 5px;
}

#tinymce .macros-panel .extension-container .macros-icon svg {
  width: 14px;
  height: 14px;
}

#tinymce .macros-panel.dashboard-panel .panel-header [data-action] {
  pointer-events: all;
}

#tinymce .macros-panel.dashboard-panel .panel-header [data-action] * {
  pointer-events: none;
}

#tinymce .macros-panel .extension-container span svg {
  fill: var(--user-content-color, var(--default-color));
}

#tinymce .macros-panel .macros-preview {
  overflow: auto;
}

#tinymce .macros-panel .excerpt-title {
  color: var(--user-content-color, var(--default-color));
}

#tinymce .extension-container .macros-actions {
  display: flex;
  gap: 5px;
  margin-left: auto;
}

#tinymce .extension-container .macros-actions span {
  cursor: pointer;
}

#tinymce .extension-container .macros-actions > span:not(span.macros-action),
#tinymce .extension-container .macros-actions span.macros-action > svg {
  width: 14px;
  height: 14px;
  /* разрешаем клики по macros-action > svg */
  pointer-events: all;
}

#tinymce .extension-container .macros-actions span.macros-action svg *,
#tinymce .extension-container .macros-actions span.anchor-copy svg *,
#tinymce .extension-container .macros-actions span.macros-refresh svg *,
#tinymce .extension-container .macros-actions span.macros-edit svg *,
#tinymce .extension-container .macros-actions span.macros-delete svg * {
  pointer-events: none;
}

#tinymce .macros-panel .ak-renderer-wrapper {
  /* margin: 0 10px 10px; */
  background: var(--color-gray-fff, #fff);
  padding: 5px 10px;
  border-radius: 3px;
}

#tinymce .macros-panel .ak-renderer-wrapper:empty {
  min-height: 24px;
}

#tinymce .macros-panel[data-macros='tablefilters'] {
  display: inline-flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
}

#tinymce .macros-panel[data-macros='tablefilters'] .ak-renderer-wrapper {
  width: 100%;
  box-sizing: border-box;
}

#tinymce .macros-panel[data-localid] .ak-renderer-wrapper {
  pointer-events: none;
}

#tinymce.mce-content-body .macros-panel[contentEditable='false'][data-mce-selected] {
  outline: 1px solid #0d69d3;
}

#tinymce .macros-panel.anchor-macros {
  max-width: 320px;
  font: var(--wiki-text-font);
  padding-bottom: 0;
}

#tinymce .macros-panel.anchor-macros .anchor-copy {
  visibility: hidden;
  cursor: pointer;
}

#tinymce .macros-panel.anchor-macros:hover .anchor-copy {
  visibility: visible;
}

.mce-content-readonly span.macros-panel.anchor-macros {
  max-width: 1px;
  height: 1px;
  overflow: hidden;
}

.mce-content-readonly .extension-container {
  display: none;
}

#tinymce .macros-panel.anchor-macros .extension-container {
  display: flex;
}

#tinymce .macros-panel.anchor-macros .extension-container svg {
  padding-right: 5px;
}

#tinymce .macros-panel.anchor-macros .extension-title {
  display: flex;
  min-width: 200px;
}

#tinymce .macros-panel.anchor-macros .macros-actions {
  width: 80px !important;
}

#tinymce .macros-panel.anchor-macros .excerpt-title {
  width: calc(100% - 100px);
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

#tinymce.mce-content-body .extension-container[contentEditable='false'][data-mce-selected] {
  outline: 0px solid #0d69d3;
}

.mce-content-body .app-tinymce-img-preview-size:hover img {
  transform: scale(1.1);
  filter: brightness(40%);
}

.mce-content-body .app-tinymce-img-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mce-content-body .app-tinymce-default-img-preview-size {
  display: flex;
  justify-content: center;
  align-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.mce-content-body .app-tinymce-default-img-preview-size:hover img {
  transform: scale(1.1);
  filter: brightness(40%);
}

.mce-content-body .app-tinymce-default-img-preview {
  margin-top: 10px;
  width: 24px;
  height: 24px;
}

#tinymce pre.language-markup[contenteditable='false'] {
  cursor: pointer;
  transition: opacity 0.2s ease;
}

#tinymce pre.language-markup[contenteditable='false']:hover {
  opacity: 0.8;
}

#tinymce div[data-children-docs] {
  margin: 3px;
  width: calc(100% - 6px);
}

#tinymce .macros-panel.mentions-macros {
  /* Непонятно зачем? */
  word-break: break-all;
  margin: 0px 2px;
}

#tinymce .macros-panel.mentions-macros > * {
  pointer-events: none;
}

#tinymce .macros-panel.mentions-macros .extension-container .macros-actions {
  width: 18px !important;
  pointer-events: all;
  top: 2px;
}

#tinymce .macros-panel.mentions-macros .ak-renderer-wrapper {
  display: none;
}

.mce-content-body .macros-panel.mentions-macros .extension-container .extension-title {
  padding-right: 15px;
}

.mce-content-body a[contentEditable='false'],
.mce-content-body a {
  cursor: pointer;
}

/* тюнинг для инлайн-едита */
app-cmf-inline-edit .mce-content-body.mce-content-readonly .wiki-link-wrap__text {
  /* В режиме просмотра текстовые вики-ссылки должны быть инлайн-блоком */
  display: inline-block;
  /* В режиме просмотра в инлайн эдите текстовые вики-ссылки генерят скролл, компенсируем */
  max-width: calc(100% - 10px);
  transform: scale(0.999);
}

.mce-content-body .wiki-link-wrap {
  margin: 0 2px;
  width: max-content;
  max-width: 100%;
  font-weight: 400;
}

/* В режиме редактирования не даем выделять содержимое wiki-link */
#tinymce .wiki-link-wrap {
  user-select: auto;
}

#tinymce .wiki-link-wrap * {
  /** Выключено, т.к. ломает драгндроп
  /** user-select: none; */
}

.mce-content-body .wiki-link-wrap__url,
.mce-content-body .wiki-link-wrap__text {
  /* Урл и текст это инлайн */
  display: inline;
}

.mce-content-body .wiki-link-wrap.wiki-link-wrap__card,
.mce-content-body .wiki-link-wrap:has(app-wiki-link-presentation) {
  /* Карточка это блок */
  display: block;
  min-height: 191px; /* Фиксированная ширина */
}

#tinymce .wiki-link-wrap.wiki-link-wrap__card > * {
  /* В режиме редактирования, ссылки просто выбираются */
  pointer-events: none;
}

#tinymce .wiki-link-wrap.wiki-link-wrap__card a.hidden,
.mce-content-body .wiki-link-wrap.wiki-link-wrap__card a.hidden {
  display: none;
}

.mce-content-body .wiki-link-wrap > a * {
  /* Мы отлавливаем событие клика по ссылке и не хотим промахиваться */
  pointer-events: none;
}

/** Отключаем элемент препятствующий воспроизведению мультимедиа */
.mce-content-body .mce-preview-object.mce-object-iframe > .mce-shim,
.mce-content-body .mce-preview-object.mce-object-audio > .mce-shim {
  display: none;
}

/** Отключаем неуместный бордер вокруг аудиоплеера */
.mce-content-body .mce-preview-object.mce-object-audio {
  border: none;
}

.mce-content-body .wiki-link-wrap:has(.view-mode--text:not([style*='display: none;'])) {
  padding: 2px;
  border-radius: 4px;
  box-shadow:
    0 1px 1px rgba(9, 30, 66, 0.25),
    0 0 1px 1px rgba(9, 30, 66, 0.13);
}

.mce-content-body .lds-ring {
  display: inline-block;
  position: relative;
  width: 20px;
  height: 20px;
}

@keyframes lds-ring {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.mce-content-body .lds-ring div {
  box-sizing: border-box;
  display: block;
  position: absolute;
  width: 18px;
  height: 18px;
  margin: 3px;
  border: 3px solid var(--color-gray-888, #888);
  border-radius: 50%;
  animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  border-color: var(--color-gray-888) transparent transparent transparent;
}

.mce-content-body .lds-ring div:nth-child(1) {
  animation-delay: -0.45s;
}

.mce-content-body .lds-ring div:nth-child(2) {
  animation-delay: -0.3s;
}

.mce-content-body .lds-ring div:nth-child(3) {
  animation-delay: -0.15s;
}

.mce-content-body .statusView-content-wrap {
  border-radius: 3px;
  box-sizing: border-box;
  margin: 0 0 -6px 0;
  padding: 2px 4px;
  font-size: 11px;
  font-weight: 700;
  line-height: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: uppercase;
  width: unset !important;
  display: inline-block;
  max-width: -moz-available;
  max-width: -webkit-fill-available;
  max-width: fill-available;
}

#tinymce .statusView-content-wrap > * {
  pointer-events: none;
  user-select: none;
}

.mce-content-body .statusView-content-wrap[text=''] > span {
  opacity: 0.5;
}

.mce-content-body .statusView-content-wrap[color='neutral'] {
  color: var(--wiki-status-neutral-color);
  background-color: var(--wiki-status-neutral-bg-color);
}

.mce-content-body .statusView-content-wrap[color='purple'] {
  color: var(--wiki-status-purple-color);
  background-color: var(--wiki-status-purple-bg-color);
}

.mce-content-body .statusView-content-wrap[color='blue'] {
  color: var(--wiki-status-blue-color);
  background-color: var(--wiki-status-blue-bg-color);
}

.mce-content-body .statusView-content-wrap[color='red'] {
  color: var(--wiki-status-red-color);
  background-color: var(--wiki-status-red-bg-color);
}

.mce-content-body .statusView-content-wrap[color='yellow'] {
  color: var(--wiki-status-yellow-color);
  background-color: var(--wiki-status-yellow-bg-color);
}

.mce-content-body .statusView-content-wrap[color='green'] {
  color: var(--wiki-status-green-color);
  background-color: var(--wiki-status-green-bg-color);
}

.mce-content-body del {
  padding: 3px;
  background-color: color-mix(in srgb, #fbe9eb 80%, var(--theme-hack-bg-color, #fbe9eb));
  color: var(--theme-hack-bg-color, var(--color-gray-444));
  text-decoration: line-through;
  display: inline-block;
}

.mce-content-body ins {
  padding: 3px;
  background-color: color-mix(in srgb, #ecfdf0 80%, var(--theme-hack-bg-color, #ecfdf0));
  color: var(--theme-hack-bg-color, var(--color-gray-444));
  text-decoration: underline;
  display: inline-block;
}

/** Контекстные меню для таблиц .wiki-table-context-menu[role=presentation] */

.wiki-table-context-menu[role='presentation'] {
  position: absolute;
  z-index: 98;
  box-shadow:
    rgb(9 30 66 / 25%) 0px 4px 8px -2px,
    rgb(9 30 66 / 31%) 0px 0px 1px;
  display: flex;
  flex-flow: row nowrap;
  column-gap: 2px;
  padding: 2px;
  background: var(--theme-hack-bg2-color, #fff);
  width: 225px;
  will-change: top, left;
  font: var(--wiki-text-font);
  color: var(--user-content-color, var(--default-color));
  border-radius: 5px;
  user-select: none;
}

.wiki-table-context-menu[role='presentation'][contentEditable='false'][data-mce-selected] {
  outline: none;
  cursor: default;
}

.wiki-table-context-menu[role='presentation'] .menu-item-wrapper {
  position: relative;
  display: flex;
  flex-flow: row nowrap;
}

.wiki-table-context-menu[role='presentation'] .menu-item {
  display: flex;
  flex-flow: row nowrap;
  column-gap: 10px;
  cursor: pointer;
  opacity: 1;
  transition: background 0.2s ease;
  align-items: center;
  justify-content: space-between;
  border-radius: 5px;
  flex-shrink: 0;
}

.wiki-table-context-menu[role='presentation'] .menu-item-wrapper > .menu-item > .arrow {
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 4px solid #666;
  transition: transform 0.2s ease;
}

.wiki-table-context-menu[role='presentation'] .menu-item * {
  user-select: none;
  pointer-events: none;
}

.wiki-table-context-menu[role='presentation'] .menu-item > .check-icon {
  display: none;
}

.wiki-table-context-menu[role='presentation'] .menu-item.checked > .check-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  scale: 0.7;
}

.wiki-table-context-menu[role='presentation'] .menu-item-wrapper.has-sub-menu.open > .menu-item > .arrow {
  transform: rotate(-90deg);
}

.wiki-table-context-menu[role='presentation'] .menu-item:hover {
  background: var(--color-gray-eee, #eee);
}

.wiki-table-context-menu[role='presentation'] .menu-item-wrapper.has-sub-menu.open > .sub-menu {
  display: flex;
}

.wiki-table-context-menu[role='presentation'] .menu-item-wrapper > .sub-menu {
  display: none;
  flex-flow: column nowrap;
  position: absolute;
  top: -110px;
  background: var(--theme-hack-bg2-color, #fff);
  padding: 2px;
  row-gap: 2px;
  width: 260px;
  left: 4px;
  box-shadow:
    rgb(9 30 66 / 25%) 0px 4px 8px -2px,
    rgb(9 30 66 / 31%) 0px 0px 1px;
  border-radius: 5px 5px 5px 0;
}

.wiki-table-context-menu[role='presentation'] .menu-item-wrapper > .sub-menu.down {
  top: 40px;
  border-radius: 0 5px 5px 5px;
}

.wiki-table-context-menu[role='presentation'] svg,
.wiki-table-context-menu[role='presentation'] svg * {
  pointer-events: none;
}

.wiki-table-context-menu[role='presentation'] svg:hover {
  color: var(--color-gray-222, #222);
}

.wiki-table-context-menu[role='presentation'] .menu-item {
  padding: 5px;
  font-size: 14px;
}

.wiki-table-context-menu[role='presentation'] .menu-item > .menu-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  scale: 0.8;
}

.wiki-table-controllers-wrapper {
  display: flex;
  position: absolute;
  gap: 1px;
  background: var(--color-gray-fff, #fff);
  user-select: none;
}

.wiki-table-controllers-wrapper.wiki-table-controllers-y {
  z-index: 10;
}

.wiki-table-controllers-wrapper.wiki-table-controllers-x {
  z-index: 12;
}

.wiki-table-controllers-wrapper.wiki-table-controllers-x {
  flex-flow: column nowrap;
  max-width: calc(100% + 25px);
  overflow: hidden;
}

.wiki-table-controllers-wrapper.wiki-table-controllers-x > .row {
  display: flex;
  flex-flow: row nowrap;
}

.wiki-table-controllers-wrapper.wiki-table-controllers-y > .col {
  display: flex;
  flex-flow: column nowrap;
}

.wiki-table-controllers-wrapper.wiki-table-controllers-y {
  flex-flow: row nowrap;
}

.wiki-table-controllers-wrapper > div > .select.wide {
  width: 48px;
}

.wiki-table-controllers-wrapper > div > .select {
  height: 11px;
  width: 11px;
  background-color: var(--theme-hack-bg-color, #f4f5f7);
  box-sizing: border-box;
  border: 1px solid var(--color-gray-eee, #eee);
  flex-shrink: 0;
  cursor: pointer;
  user-select: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

.wiki-table-controllers-wrapper.remove-button-hovered > div > .header[data-selected],
.wiki-table-controllers-wrapper.remove-button-hovered > div > .select.merge-controller,
.wiki-table-controllers-wrapper.remove-button-hovered > div > .select[data-selected] {
  border-color: #e2483d;
  background: #fd9892;
}

.wiki-table-controllers-wrapper > .row > .header.align-middle {
  align-items: center;
}

.wiki-table-controllers-wrapper > .col > .header.align-middle {
  justify-content: center;
}

.wiki-table-controllers-wrapper > .row > .header.align-bottom {
  align-items: flex-end;
}

.wiki-table-controllers-wrapper > .col > .header.align-bottom {
  justify-content: flex-end;
}

.wiki-table-controllers-wrapper > div > .header.text-center {
  text-align: center;
}

.wiki-table-controllers-wrapper > div > .header.invisible {
  display: none;
}

.wiki-table-controllers-wrapper .table-controller.header.merge-controller,
.wiki-table-controllers-wrapper .table-controller.select.merge-controller {
  border-color: #5a8acd;
  background: #83b7ff;
  opacity: 0.8;
}

.wiki-table-controllers-wrapper > .row[data-type='remove'] > .remove,
.wiki-table-controllers-wrapper > .col[data-type='remove'] > .remove {
  background-color: #f1f2f4;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.wiki-table-controllers-wrapper > .row[data-type='remove'] > .remove:hover,
.wiki-table-controllers-wrapper > .col[data-type='remove'] > .remove:hover {
  background-color: #c9372c;
}

.wiki-table-controllers-wrapper > .row[data-type='remove'] > .remove > svg,
.wiki-table-controllers-wrapper > .col[data-type='remove'] > .remove > svg {
  fill: #263248;
  transition: fill 0.2s ease;
}

.wiki-table-controllers-wrapper > .row[data-type='remove'] > .remove:hover > svg,
.wiki-table-controllers-wrapper > .col[data-type='remove'] > .remove:hover > svg {
  fill: #fff;
}

.wiki-table-controllers-wrapper > .col[data-type='select'] {
  width: 11px;
}

.wiki-table-controllers-wrapper > .col[data-type='select'].wide {
  width: 48px;
  color: var(--color-gray-222, black);
}

.wiki-table-controllers-wrapper > .row[data-type='add'],
.wiki-table-controllers-wrapper > .col[data-type='add'],
.wiki-table-controllers-wrapper > .row[data-type='remove'],
.wiki-table-controllers-wrapper > .col[data-type='remove'] {
  margin-bottom: 3px;
}

.wiki-table-controllers-wrapper > .row[data-type='add'],
.wiki-table-controllers-wrapper > .col[data-type='add'],
.wiki-table-controllers-wrapper > .row[data-type='remove'],
.wiki-table-controllers-wrapper > .col[data-type='remove'],
.wiki-table-controllers-wrapper > .row[data-type='header'],
.wiki-table-controllers-wrapper > .col[data-type='header'] {
  display: none;
  will-change: display;
}

.wiki-table-controllers-wrapper > div[data-type='select'] {
  display: flex;
  will-change: display;
}

.wiki-table-controllers-wrapper > div[data-type='select'].invisible {
  display: none;
}

.wiki-table-controllers-wrapper > .row[data-type='add'].visible,
.wiki-table-controllers-wrapper > .col[data-type='add'].visible,
.wiki-table-controllers-wrapper > .row[data-type='remove'].visible,
.wiki-table-controllers-wrapper > .col[data-type='remove'].visible,
.wiki-table-controllers-wrapper > .row[data-type='header'].visible,
.wiki-table-controllers-wrapper > .col[data-type='header'].visible {
  display: flex;
}

.wiki-table-controllers-wrapper > div > .header {
  height: 11px;
  width: 11px;
  background-color: var(--theme-hack-bg-color, #f4f5f7);
  box-sizing: border-box;
  border: 1px solid var(--color-gray-eee, #eee);
  flex-shrink: 0;
  cursor: default;
  display: flex;
  flex-flow: column nowrap;
  justify-content: flex-start;
  align-items: flex-start;
  font: var(--wiki-text-font);
  padding: 8px;
  word-break: break-word;
}

.wiki-table-controllers-wrapper > .col > .header {
  padding: 8px;
}

.wiki-table-controllers-wrapper > div > .header > p {
  width: 100%;
  margin: 0;
  color: var(--color-gray-222, black);
}

.wiki-table-controllers-wrapper > .row > .remove *,
.wiki-table-controllers-wrapper > .col > .remove *,
.wiki-table-controllers-wrapper > .row > .add *,
.wiki-table-controllers-wrapper > .col > .add * {
  pointer-events: none;
}

.wiki-table-controllers-wrapper > .row[data-type='remove'],
.wiki-table-controllers-wrapper > .row[data-type='add'] {
  height: 20px;
}

.wiki-table-controllers-wrapper > .col[data-type='remove'],
.wiki-table-controllers-wrapper > .col[data-type='add'] {
  width: 20px;
}

.wiki-table-controllers-wrapper > .row > .add,
.wiki-table-controllers-wrapper > .col > .add {
  height: 20px;
  width: 20px;
  box-sizing: border-box;
  flex-shrink: 0;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 5px;
}

.wiki-table-controllers-wrapper > div > .remove {
  height: 16px;
  width: 16px;
  box-sizing: border-box;
  flex-shrink: 0;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.wiki-table-controllers-wrapper > .row > .add:hover,
.wiki-table-controllers-wrapper > .col > .add:hover {
  opacity: 0.8;
  background-color: #0f66dd;
  box-shadow:
    rgb(9 30 66 / 25%) 0px 4px 8px -2px,
    rgb(9 30 66 / 31%) 0px 0px 1px;
}

.wiki-table-controllers-wrapper > .row > .add > svg:first-child,
.wiki-table-controllers-wrapper > .col > .add > svg:first-child {
  display: block;
}

.wiki-table-controllers-wrapper > .row > .add > svg:last-child,
.wiki-table-controllers-wrapper > .col > .add > svg:last-child {
  display: none;
  fill: white;
}

.wiki-table-controllers-wrapper > .row > .add:hover > svg:first-child,
.wiki-table-controllers-wrapper > .col > .add:hover > svg:first-child {
  display: none;
}

.wiki-table-controllers-wrapper > .row > .add:hover > svg:last-child,
.wiki-table-controllers-wrapper > .col > .add:hover > svg:last-child {
  display: block;
}

.wiki-table-controllers-wrapper > .row > .header:last-child,
.wiki-table-controllers-wrapper > .row > .select:last-child {
  margin-right: 100px;
}

.wiki-table-controllers-wrapper > .row > .select:last-child {
  visibility: hidden;
}

.wiki-table-controllers-wrapper > .row > .select:hover,
.wiki-table-controllers-wrapper > .col > .select:hover {
  border-color: #5a8acd;
  background: #83b7ff;
  opacity: 0.8;
}

.wiki-table-controllers-wrapper > .row > .header[data-selected],
.wiki-table-controllers-wrapper > .col > .header[data-selected],
.wiki-table-controllers-wrapper > .row > .select[data-selected],
.wiki-table-controllers-wrapper > .col > .select[data-selected] {
  border-color: #5a8acd;
  background: #83b7ff;
  color: white;
}

.wiki-table-controllers-wrapper.wiki-table-controllers-y > .add {
  position: absolute;
  left: -7px;
  top: -14px;
  width: 14px;
  height: 14px;
  background-color: var(--default-color-red, red);
}

#tinymce .macros-panel.wikimarkdown > .extension-container > .macros-actions {
  width: unset;
  margin-left: auto;
  display: flex;
  flex-flow: row nowrap;
  column-gap: 3px;
}

#tinymce .macros-panel.wikimarkdown > .extension-container {
  display: flex;
  flex-flow: row nowrap;
  justify-content: flex-start;
  column-gap: 6px;
}

#tinymce .macros-panel.wikimarkdown > .extension-container > span {
  flex-basis: 0;
  flex-shrink: initial;
  flex-grow: 0;
  position: relative;
}

#tinymce .macros-panel.wikimarkdown > .macros-body {
  padding: 0 10px 10px 10px;
  display: flex;
  flex-flow: row nowrap;
  column-gap: 10px;
}

#tinymce .macros-panel.wikimarkdown > .macros-body > .body-edit {
  display: flex;
  flex-basis: auto;
  flex-grow: 2;
}

#tinymce .macros-panel.wikimarkdown > .macros-body > .body-edit > textarea {
  width: 100%;
  height: 350px;
  min-height: 100%;
  resize: vertical;
  outline: none;
  background: var(--color-gray-fff, #fff);
  font: var(--wiki-text-font);
  color: var(--user-content-color, var(--default-color));
}

#tinymce .macros-panel.wikimarkdown > .macros-body > .body-preview-wrapper {
  display: none;
  flex-basis: 50%;
  flex-grow: 0;
  overflow: auto;
  flex-flow: column;
  flex-shrink: 1;
  background: var(--color-gray-fff, #fff);
  padding: 0 3px;
}

#tinymce .macros-panel.wikimarkdown > .macros-body > .body-preview-wrapper.visible {
  display: flex;
}

.mce-content-readonly .macros-panel.wikimarkdown > div.macros-body > div.body-edit {
  display: none;
}

.mce-content-readonly .macros-panel.wiki-tabs {
  display: none;
}

.mce-content-body .table-wrap {
  overflow-x: auto;
}

.mce-content-body .temporary-hidden {
  visibility: hidden;
}

.mce-content-readonly .code-sample-wrapper {
  position: relative;
}

.mce-content-readonly .code-sample-copy-button {
  position: absolute;
  top: 4px;
  right: 4px;
  visibility: hidden;
  border: none;
  padding: 0;
  background: none;
  outline: inherit;
  cursor: pointer;
  color: var(--color-gray-444);
}

.mce-content-readonly table {
  border-collapse: collapse;
}

.mce-content-readonly .code-sample-wrapper:hover .code-sample-copy-button {
  visibility: visible;
}

.mce-content-body a,
.mce-content-body a:visited,
.mce-content-body a:active {
  color: var(--color-href);
}

/* Вставка */

html:has(> #tinymce) .wiki-format-paste-button {
  position: absolute;
  background: var(--color-gray-fff, #fff);
  padding: 4px 3px 1px 7px;
  z-index: 999;
  cursor: pointer;
  color: var(--color-gray-444, #222f3e);
  border-radius: 3px;
  box-shadow:
    0 4px 8px -2px rgba(9, 30, 66, 0.25),
    0 0 1px rgba(9, 30, 66, 0.31);
}

html:has(> #tinymce) .wiki-format-paste-button :first-child {
  margin-right: 2px;
}

html:has(> #tinymce) .wiki-paste-dropbox-menu {
  margin: 2px 0 4px 0;
  position: absolute;
  z-index: 9999;
  max-width: 280px;
  background: var(--color-gray-fff, #fff);
  top: 0px;
  box-shadow:
    rgb(9 30 66 / 25%) 0px 4px 8px -2px,
    rgb(9 30 66 / 31%) 0px 0px 1px;
  box-sizing: border-box;
  overflow: auto;
  max-height: 90vh;
  font-weight: 400;
  overflow-x: hidden;
  display: block;
  box-sizing: border-box;
  background-color: inherit;
  border-radius: 3px;
  box-shadow:
    0 4px 8px -2px rgba(9, 30, 66, 0.25),
    0 0 1px rgba(9, 30, 66, 0.31);
}

html:has(> #tinymce) .wiki-paste-dropbox-menu .paste-dropbox-menu__item {
  position: relative;
  display: flex;
  align-items: center;
  font-size: 14px;
  padding: 8px 34px 8px 40px;
  cursor: pointer;
  border: none;
  outline: none;
  background: var(--color-gray-fff, #fff);
  display: flex;
  flex-flow: row wrap;
  width: 100%;
  text-align: left;
  color: var(--default-color);
}

html:has(> #tinymce) .wiki-paste-dropbox-menu .paste-dropbox-menu__item svg {
  position: absolute;
  left: 14px;
}

html:has(> #tinymce) .wiki-paste-dropbox-menu .paste-dropbox-menu__item:hover {
  background: var(--color-gray-eee, rgb(244, 245, 247));
}

#tinymce .format-paste-item-hidden {
  display: none;
}
