
/* =========================================================
   1. تنظیمات عمومی متن‌های مخلوط (فارسی و انگلیسی) - از پرامپت قبلی
   ========================================================= */
body#tinymce.mce-content-body,
.mce-content-body {
    direction: rtl !important;
    text-align: right !important;
}

.mce-content-body p,
.mce-content-body li,
.mce-content-body h1,
.mce-content-body h2,
.mce-content-body h3,
.mce-content-body h4,
.mce-content-body h5,
.mce-content-body h6 {
    direction: rtl;
    text-align: right;
    unicode-bidi: plaintext; /* تشخیص هوشمند جهت متن‌های ترکیبی (En/Farsi) */
}


/* =========================================================
   2. اصلاح لیست‌ها و Bullet Pointها (ویرایشگر و صفحه نهایی)
   ========================================================= */
.mce-content-body ul,
.mce-content-body ol,
.wiki-content ul,
.wiki-content ol,
#main-content ul,
#main-content ol {
    direction: rtl !important;
    text-align: right !important;
    padding-right: 30px !important; /* انتقال دایره‌ها به سمت راست */
    padding-left: 0 !important;
    margin-right: 0 !important;
}

.mce-content-body li,
.wiki-content li,
#main-content li {
    direction: rtl !important;
    text-align: right !important;
    unicode-bidi: plaintext !important; /* حفظ قابلیت Mixed Writing داخل لیست‌ها */
}

/* =========================================================
   انتقال خود جدول به سمت راست صفحه (Alignment of the table container)
   ========================================================= */

/* انتقال جدول‌های کانفلوئنس به سمت راست صفحه */
.wiki-content table.confluenceTable,
#main-content table.confluenceTable,
.mce-content-body table.confluenceTable {
    direction: rtl !important;
    margin-right: 0 !important;   /* حذف فاصله از سمت راست */
    margin-left: auto !important;  /* هل دادن جدول به سمت راست */
    float: right !important;       /* قرارگیری در سمت راست */
    clear: both !important;        /* جلوگیری از تداخل با عناصر شناور دیگر */
}

/* برای اطمینان از اینکه والد جدول نیز مانع راست‌چین شدن نشود */
.wiki-content .table-wrap,
#main-content .table-wrap {
    direction: rtl !important;
    text-align: right !important;
}



