/* Tom Select */
.ts-wrapper .ts-control {
    min-height: 55px;
    display: flex;
    align-items: center;
    padding: 10px 13px;
    border-radius: 6px;
    border-color: #e5e7eb;
}

.ts-wrapper.focus .ts-control {
    border-color: #605dff;
    box-shadow: none;
}

.ts-wrapper.multi .ts-control [data-value] {
    background: #ecf0ff;
    color: #605dff;
    border: 0;
    border-radius: 4px;
    box-shadow: none;
    text-shadow: none;
}

.ts-wrapper.plugin-remove_button .item .remove {
    border-color: rgba(96, 93, 255, .2) !important;
}

.ts-dropdown .optgroup-header {
    font-weight: 600;
    color: #605dff;
}

.dark .ts-control, .dark .ts-dropdown, .dark .ts-control input {
    background: #0c1427;
    border-color: #172036;
    color: #fff;
}

.dark .ts-wrapper.multi .ts-control [data-value] {
    background: #15203c;
    color: #fff;
}

.dark .ts-dropdown .active {
    background: #15203c;
    color: #fff;
}

.dark .ts-dropdown .dropdown-input {
    background: #0c1427;
    border-color: #172036;
    color: #fff;
}

/* Jodit */
.jodit-container:not(.jodit_inline) {
    border-color: #e5e7eb;
    border-radius: 6px;
}

.jodit-wysiwyg {
    font-family: var(--font-body);
    font-size: 15px;
}

/* متن نامه (خروجی Jodit) — بازگرداندن استایل‌هایی که reset تیلویند حذف می‌کند */
.letter-body p { margin-bottom: 12px; }
.letter-body ul { list-style: disc; padding-inline-start: 25px; margin-bottom: 12px; }
.letter-body ol { list-style: decimal; padding-inline-start: 25px; margin-bottom: 12px; }
.letter-body a { color: #605dff; text-decoration: underline; }
.letter-body table { border-collapse: collapse; margin-bottom: 12px; }
.letter-body td, .letter-body th { border: 1px solid #e5e7eb; padding: 6px 10px; }
.dark .letter-body td, .dark .letter-body th { border-color: #172036; }
.letter-body hr { margin: 12px 0; border-color: #e5e7eb; }

/* چت */
.chat-conversations { max-height: 600px; overflow-y: auto; }
.chat-conversation-text { min-width: 0; }
.chat-messages { height: 500px; overflow-y: auto; }
.chat-bubble { max-width: 80%; }
.chat-text { white-space: pre-line; overflow-wrap: anywhere; }

/* تصویر پروفایل */
.avatar { object-fit: cover; }
