﻿/* @define ClientsEditor */
.ClientsEditor {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-height: 100vh;
}

.ClientsEditor-body {
    display: flex;
    flex: 1 1 auto;
    min-height: 1em;
    height: 100%;
}

.ClientsEditor-tabContent {
    padding-top: 15px;
    padding-left: 15px;
    height: 100%;
    overflow-x: hidden;
}

.ClientsEditor-tabPane {
    height: 100%;
}

.ClientsEditor-tabsBlock {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
}

/* stylelint-disable plugin/selector-bem-pattern -- using the descendant or child selectors violates SUIT conventions */
.ClientsEditor-tabsBlock > div {
    flex-grow: 0;
}

.ClientsEditor-tabsBlock div.tab-content {
    flex-grow: 1;
    overflow-y: auto;
    max-height: 100%;
}
/* stylelint-enable plugin/selector-bem-pattern */

.ClientsEditor-markedForDeletionBanner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    margin-bottom: 15px;
    background: #fdf2d1;
    border: 1px solid #fceec0;
    border-radius: 4px;
}

.ClientsEditor-markedForDeletionBannerText {
    margin-right: 15px;
    font-size: 14px;
    color: #806420;
}

.ClientsEditor-editorPaneHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ClientsEditor-editorPaneHeaderText {
    margin: 0;
}

.ClientsEditor-restrictionCountBadge {
    margin-left: 5px;
    font-weight: 500;
    font-size: 9px;
    background: #ddd;
    min-width: 22px;
}

@media (width <= 992px) {
    .ClientsEditor-body {
        flex-direction: column;
    }

    .ClientsEditor-treeSelector {
        height: 300px;
    }

    .ClientsEditor-editorPane {
        padding-top: 15px;
        border-top: 1px solid var(--border-subtle);
    }
}
