/* had to use !important for some properties because default ckedtor styles get linked after custom styles. */
/* Github issue https://github.com/ckeditor/ckeditor5/issues/9358 */

.document-editor {
  color: #000;
}

.document-editor__toolbar {
  position: relative;
  z-index: 1;
  box-shadow: 0 0 5px hsla(0, 0%, 0%, .2);
  border-bottom: 1px solid var(--ck-color-toolbar-border);
}

.document-editor__toolbar .ck-toolbar {
  border: 0 !important;
  border-radius: 0 !important;
}

.document-editor__editable-container {
  padding: calc(2 * var(--ck-spacing-large));
  background: var(--ck-color-base-foreground);
  overflow-y: scroll;
}

.document-editor .ck-editor__editable {
  background: white;
  width: 748px;
  min-height: 12cm;
  padding: 25px !important;
  box-shadow: 0 0 5px hsla(0, 0%, 0%, 0.1);
  margin: 0 auto;
}

.document-editor.document-editor-preview .ck-editor__editable {
  background: white;
  width: 696px;
  min-height: auto;
  padding: 0 !important;
  border: none;
  box-shadow: none;
  margin: 0 auto;
}

.document-editor .ck-content,
.document-editor .ck-heading-dropdown .ck-list .ck-button__label {
  font: 16px/1.5 "Times New Roman"
}

.document-editor .ck-content h1,
.document-editor .ck-content h2,
.document-editor .ck-content h3,
.document-editor .ck-content h4,
.document-editor .ck-content h5,
.document-editor .ck-content h6 {
  line-height: 1.1;
}

.document-editor .ck-content h2,
.document-editor .ck-heading-dropdown .ck-heading_heading1 .ck-button__label {
  font-size: 2.18em;
}

.document-editor .ck-content h3,
.document-editor .ck-heading-dropdown .ck-heading_heading2 .ck-button__label {
  font-size: 1.75em;
}

.document-editor .ck-content h4,
.document-editor .ck-heading-dropdown .ck-heading_heading3 .ck-button__label {
  font-size: 1.31em;
}

.document-editor .ck-content p {
  font-size: 16px;
  line-height: 1.5;
}

.ck-content blockquote {
  margin-left: 40px !important;
  margin-right: 40px !important;
}

.ck-content ul, .ck-content ol {
  margin-left: 40px !important;
  padding: 0 !important;
}

.ck.ck-editor__editable_inline> :first-child {
  margin-top: 0 !important;
}

.ck.ck-editor__editable_inline> :last-child {
  margin-bottom: 0 !important;
}


/* used in pdf preview (frontend) and generation (backend) */
.conclusion-pdf *,
.conclusion-pdf *::before,
.conclusion-pdf *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.conclusion-pdf {
  color: #000;
  font-family: "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.5;
}

.conclusion-pdf p,
.conclusion-pdf h1,
.conclusion-pdf h2,
.conclusion-pdf h3,
.conclusion-pdf h4,
.conclusion-pdf h5,
.conclusion-pdf h6 {
  overflow-wrap: break-word;
}

.conclusion-pdf table,
.conclusion-pdf th,
.conclusion-pdf td {
  border: 1px solid #000;
  border-collapse: collapse;
}

.conclusion-pdf table {
  width: 100%;
}

.conclusion-pdf th,
.conclusion-pdf td {
  padding: 5px;
}