.ck-editor .ck-toolbar {
    flex-wrap: wrap !important;
    max-width: 100% !important;
}

.field-post_body.form-row.form-row {
    width: 100%;
    overflow: visible;
}
.field-post_body.form-row > div > .flex-container > label {
    display: none;
}

.ck-editor-container {}
.ck-reset {}
.ck-editor__top {}
.ck-reset_all {}
.ck-editor__top.ck-reset_all {}

.ck.ck-toolbar {
    overflow: visible !important;
}
.ck.ck-toolbar .ck-toolbar__items {
    width: 100%;
    flex-wrap: wrap;
}
.ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items {
    flex-wrap: wrap !important;
}

/* wrapper کلی ادیتور */
.ck-editor {
    width: 100% !important;
    max-width: 100% !important;
}

/* خود CKEditor */
.ck-editor .ck-editor {
    width: 100% !important;
    max-width: 100% !important;
}

/* ناحیه اصلی */
.ck-editor .ck-editor__main {
    width: 100% !important;
    max-width: 100% !important;
}

/* editable area */
.ck-editor .ck-editor__editable {
    min-height: 300px;
    max-width: 100% !important;
    box-sizing: border-box;
    overflow-x: auto;
}

/* toolbar */


/* جلوگیری از بیرون‌زدگی */
.form-row .django_ckeditor_5,
.form-row .ck-editor,
.form-row .ck-editor__main {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;

}

/* برای پنل‌های راست‌چین */
[dir="rtl"] .django_ckeditor_5,
[dir="rtl"] .ck,
[dir="rtl"] .ck-editor {
    direction: rtl;
}

