/*
 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
 * For licensing, see https://ckeditor.com/legal/ckeditor-oss-license
 */

.ck-content .table table {
  margin-top: 0;
  margin-bottom: 0;
}

/*
 This is a fix of a bug with multiple instances of the editor added when users is changing fields order.
 Works for RTC.
 */
.ck-editor-sidebar-wrapper .form-item .ck.ck-editor:nth-child(n+3) {
  display: none;
}

.ck-presence-list-container .ck.ck-presence-list:nth-child(n+3) {
  display: none;
}
/*
 End of:
 This is a fix of a bug with multiple instances of the editor added when users is changing fields order.
 Works for RTC.
 */

.ck-content .ck-suggestion-marker-formatBlock {
  box-shadow: -0.2em 0 0 0 var(--ck-color-base-background), -0.4em 0 0 0 var(--ck-color-suggestion-marker-format-border)!important;
}

.ck-content .ck-suggestion-marker-formatBlock.ck-suggestion-marker--active {
  box-shadow: -0.2em 0 0 0 var(--ck-color-base-background),-0.4em 0 0 0 var(--ck-color-suggestion-marker-format-border-active)!important;
}

.ck-comments-archive-dropdown .ck-editor__main > :is(.ck-editor__editable, .ck-source-editing-area) {
  min-height: unset;
}

.ck.ck-user__img {
  box-sizing: border-box;
}

.ck-toolbar-container .ck.ck-toolbar {
  border: 1px solid var(--ck-color-toolbar-border)!important;
  border-bottom: 0!important;
}

.ck-editor-container {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  position: relative;
}

.ck-editor-container .ck-editor-instance {
  width: 100%;
  height: 100%;
  overflow-x: auto;
}

.ck-editor-container .ck-editor-instance .ck-content{
  word-break: break-word;
  overflow-y: auto;
}

.ck-editor-container .ck-editor-instance .ck-editor,
.ck-editor-container .ck-editor-instance .ck-editor .ck-editor__main,
.ck-editor-container .ck-editor-instance .ck-editor .ck-editor__main .ck-content {
  box-sizing: border-box;
  height: 100%;
}

.ck-comment__input .ck-editor__main > :is(.ck-editor__editable, .ck-source-editing-area) {
  max-height: none;
}
