.wysiwyg-editor-preview {
    min-height: unset !important;
    max-height: 200px;
    max-width: 70dvw;
    overflow: auto;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #2996cc !important;
}

/*
    Фикс для плагина Issue Dynamic edit
    Правки ширины блоков в описании задачи, чтобы кликабельная область была по контентной части.
*/
.issue.details .attributes .splitcontent .splitcontentleft .value {
    display: inline-flex !important;
    width: 100%;
}
.issue.details .attributes .splitcontent .splitcontentleft .text_cf {
    margin-bottom: 4px;
}
.issue.details .attributes .splitcontent .splitcontentleft .value p {
 margin: 0;
}
.issue.details  #issue-blocked-fields .attribute,
.issue.details .description > p {
    display: inline-flex !important;
}

.issue.details:not(.child) .subject:has(div) {
    position: relative;
    z-index: 0;
    display: inline-flex !important;
}
.issue.details .subject h3::first-letter {
    text-transform: uppercase;
}
.issue.details  .attributes {
    width: 100%;
}
.issue.details  #content > h2.inline-flex {
    margin-top: 0 !important;
}

/* Сортировка комментариев */
#history .comments-sorting {
    position: relative;
    z-index: 1;
    top: 40px;
    max-width: 120px; 
    margin-left: auto; 
    padding: 8px 0 8px;
    white-space: nowrap;
}

#history .tabs {
    width: 60%;
}

@media screen and (max-width: 380px) {
    #history {
        display: flex;
        flex-direction: column;
    }

    #history .comments-sorting {
        position: static;
        order: 1;
        margin-bottom: 12px;
        padding-top: 0;
    }

    #history .tabs {
        order: 0;
        width: 100%;
    }

    #history > *:not(.comments-sorting, .tabs) {
        order: 2;
    }
}

/* Фиксы */
table.list.issues td.buttons,
table.list.time-entries td.buttons {
    text-align: center;
}


/* Стили для наблюдателей */
#users_for_watcher label {
    position: relative;
}
#users_for_watcher label.watcher-bordered {
    border-bottom: 1px solid;
}
