/* Shared rich-text editor surface; presentation only, never persisted into HTML. */
.news_description_result {
  gap: 10px;
  align-items: flex-start;
  --ck-color-base-background: #fff;
  --ck-color-toolbar-background: #f8fafc;
  --ck-color-base-border: #e2e6ee;
  --ck-color-focus-border: #7664c4;
  --ck-color-button-default-hover-background: #f0edf9;
  --ck-color-button-on-background: #ede8fa;
  --ck-border-radius: 6px;
}
:is(.news_description_result, .result_left, .ntf .ntf-desc) .ck.ck-editor {
  flex: 1 1 0;
  min-width: 0;
  width: auto !important;
  border: 1px solid #e2e6ee;
  border-radius: 12px;
  box-shadow: 0 3px 14px rgba(30,40,65,.04);
  background: #fff;
}
:is(.news_description_result, .result_left, .ntf .ntf-desc) .ck.ck-toolbar {
  border: 0 !important;
  border-bottom: 1px solid #e2e6ee !important;
  border-radius: 12px 12px 0 0 !important;
  padding: 3px 6px !important;
  --ck-ui-component-min-height: 28px;
}
/* Keep compact sizing scoped to the main toolbar, not dropdown panels. */
:is(.news_description_result, .result_left, .ntf .ntf-desc) .ck-editor__top .ck-toolbar > .ck-toolbar__items > .ck-button,
:is(.news_description_result, .result_left, .ntf .ntf-desc) .ck-editor__top .ck-toolbar > .ck-toolbar__items > .ck-dropdown > .ck-button {
  min-height: 28px;
  min-width: 28px;
  padding: 3px;
  margin-top: 0;
  margin-bottom: 0;
}
:is(.news_description_result, .result_left, .ntf .ntf-desc) .ck-editor__top .ck-toolbar > .ck-toolbar__items { align-items: center; }
:is(.news_description_result, .result_left, .ntf .ntf-desc) .ck.ck-editor__main > .ck-editor__editable {
  background: #fff !important;
  color: #273244;
  border: 0 !important;
  border-radius: 0 0 12px 12px !important;
  box-shadow: none !important;
  padding: 14px 16px !important;
  min-height: 180px;
  font-size: 14px;
  line-height: 1.5;
}
:is(.news_description_result, .result_left, .ntf .ntf-desc) .ck.ck-editor__main > .ck-editor__editable.ck-read-only {
  border-radius: 12px !important;
}
:is(.news_description_result, .result_left, .ntf .ntf-desc) .ck.ck-editor:focus-within {
  border-color: #9c8bd5;
  box-shadow: 0 0 0 3px rgba(118,100,196,.1);
}
:is(.news_description_result, .result_left, .ntf .ntf-desc) .ck-content .table { margin: 8px 0; }
:is(.news_description_result, .result_left, .ntf .ntf-desc) .ck-content .table table {
  border-collapse: collapse;
  border: 1px solid #e2e6ee;
}
:is(.news_description_result, .result_left, .ntf .ntf-desc) .ck-content .table table td,
:is(.news_description_result, .result_left, .ntf .ntf-desc) .ck-content .table table th {
  padding: 6px 10px;
  border: 1px solid #e2e6ee;
  vertical-align: top;
  line-height: 1.5;
}
:is(.news_description_result, .result_left, .ntf .ntf-desc) .ck-content .table table th {
  background: #f3f5fa;
  font-weight: 600;
}
:is(.news_description_result, .result_left, .ntf .ntf-desc) .ck-content .table table tbody tr:nth-child(even) {
  background: #fafbfe;
}
:is(.news_description_result, .result_left, .ntf .ntf-desc) .ck-content blockquote {
  border-left: 3px solid #9c8bd5;
  background: #f8f6fc;
  padding: 12px 18px;
  font-style: normal;
}
.news_description_result > .news-md-btn,
.news_description_result > i {
  flex: 0 0 auto;
  margin: 0 !important;
  padding: 9px;
  border: 1px solid #e2e6ee;
  border-radius: 8px;
  background: #fff;
  color: #5b4aa5;
}
.news_description_result > i:hover,
.news_description_result > .news-md-btn:hover { background: #f4f1fb; }
@media (max-width: 700px) {
  .news_description_result { flex-wrap: wrap; }
  :is(.news_description_result, .result_left, .ntf .ntf-desc) .ck.ck-editor { flex-basis: 100%; }
  :is(.news_description_result, .result_left, .ntf .ntf-desc) .ck.ck-editor__main > .ck-editor__editable { padding: 16px !important; }
}
@media print {
  :is(.news_description_result, .result_left, .ntf .ntf-desc) .ck.ck-editor { border: 0; box-shadow: none; }
  .news_description_result > i, .news_description_result > .news-md-btn { display: none; }
}

:is(.result_left, .ntf .ntf-desc) .ck.ck-editor {
  --ck-color-base-background: #fff;
  --ck-color-toolbar-background: #f8fafc;
  --ck-color-base-border: #e2e6ee;
  --ck-color-focus-border: #7664c4;
  --ck-color-button-default-hover-background: #f0edf9;
  --ck-color-button-on-background: #ede8fa;
  --ck-border-radius: 6px;
}
.ntf .ntf-desc .ck.ck-toolbar { background: #f8fafc !important; }
.ntf .ntf-desc .ck.ck-editor__main > .ck-editor__editable { min-height: 130px; }
