html {
    font-size: 14px; /* Вместо стандартных 16px */
}

.content-header h1 {
    font-size: 1.5rem;
}

.form-group.col-sm-1 {
    min-width: 165px!important;
}
.form-group .input-group {
    min-height: 33px!important;
}

.nav-treeview {
    background-color: rgba(255, 255, 255, 0.03)!important;
}

div.dataTables_scrollBody>table {
    margin-bottom: 10px!important;
}

.dataTables_wrapper {
    width: 100%;
    overflow-x: auto;
}

/* SumoSelect */
.SumoSelect {
    display: block;
    position: absolute;
    max-width: 100%;
    /*
    width: 100%;
    width: -moz-calc(100% - 7px);
    width: -webkit-calc(100% - 7px);
    width: calc(100% - 7px);
    */
}
.SumoSelect>.optWrapper {
    margin-top: 3px;
    width: 100%;
    /*
    width: -moz-calc(100% - 7px);
    width: -webkit-calc(100% - 7px);
    width: calc(100% - 7px);
    */
}
.SumoSelect>.CaptionCont {
    border: 1px solid #ced4da;
}
.SumoSelect .select-all {
    height: 40px;
}
.SumoSelect label {
    margin: 0;
}
.SumoSelect>.optWrapper>.options {
    max-height: 259px!important;
}
.SumoSelect>.optWrapper>.options li.opt.selected {
    background-color: #e5e5e5;
}
.SumoSelect label {
    font-weight: normal!important;
}

.modal-footer .SumoSelect {
    width: 70%;
}

td .SumoSelect {
    position: relative;
}


/* Player */
.player-general {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    justify-content: space-between;
    grid-gap: 1.1em;
    margin-bottom: 20px;
}
.player-card {
    position: relative;
    width: 100%;
    min-height: 492px;
    background-color: #fff;
    box-shadow: 0 0 1px rgba(0,0,0,.125),0 1px 3px rgba(0,0,0,.2);
    border: 0 solid rgba(0, 0, 0, .125);
    border-radius: .25rem;
}
.player-card .card-header {
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .5em 1em;
    height: 3em;
}
.player-card .card-body {
    height: calc(100% - 3em);
    overflow: auto;
    padding: .125em 2em 0 1em;
    color: #2f3033;
    font-weight: 500;
}


/* Контейнер строки (включает все поле-обертки) */
.form-filter.filter-v2 .row:not(.SumoSelect .row) {
    display: flex; /* Делаем элементы в строку с помощью flexbox */
    flex-wrap: wrap; /* Разрешаем перенос блоков на новую строку, если не хватает места */
    gap: 2px 15px; /* Добавляем расстояние между элементами как по горизонтали, так и по вертикали */
}

/* Обертка для поля и его подписи */
.form-filter.filter-v2 .field-wrapper {
    display: inline-flex; /* Выравнивание label и input в один ряд */
    align-items: center; /* Центрирование по вертикали */
    border: 1px solid #ccc; /* Рамка вокруг обертки */
    border-radius: 5px; /* Закругленные углы */
    padding: 0; /* Внутренние отступы */
    background-color: #fff; /* Белый фон обертки */
    height: auto; /* Высота устанавливается автоматически */
    /*flex: 1 1 auto;*/ /* Поле будет автоматически подстраиваться под своё содержимое */
    /*min-width: 250px;*/ /* Указываем минимальную ширину блока (защита от слишком узких элементов) */
    max-width: 100%; /* Максимальная ширина зависит от доступного места */
}

/* Стили для label */
.form-filter.filter-v2 .field-wrapper label:not(.SumoSelect label) {
    white-space: nowrap; /* Текст не переносится */
    /*margin-right: 8px;*/ /* Расстояние между label и полем */
    padding: 5px 10px; /* Внутренние отступы */
    background-color: #f0f0f0; /* Светло-серый фон для label */
    border-right: 1px solid #ccc; /* Разделительная граница между label и input */
    font-weight: bold; /* Выделение текста label */
    border-radius: 5px 0 0 5px; /* Скругление только левых углов */
}
.form-filter.filter-v2 .field-wrapper input + label:not(.SumoSelect label) {
    border-radius: 0;
    border-left: 1px solid #ccc; /* Разделительная граница между label и input */
}

/* Поле ввода (input/textarea/select) */
.form-filter.filter-v2 .field-wrapper input:not(.SumoSelect input),
.form-filter.filter-v2 .field-wrapper select:not(.SumoSelect) {
    height: 100%; /* Равняем высоту поля ввода с высотой обертки */
    border: none; /* Убираем собственную рамку поля */
    padding: 5px 5px 5px 10px;
    flex: 1; /* Поле ввода "растягивается", занимая всё оставшееся место внутри блока */
    background: #fff; /* Белый фон для поля ввода */
    border-radius: 0 5px 5px 0; /* Скругление правых краёв */
    outline: none; /* Убираем выделение рамки по умолчанию */
}
.form-filter.filter-v2 .field-wrapper input[type="checkbox"]:not(.SumoSelect input) {
    display: inline-block;
    width: 30px;
    height: 30px;
    position: relative;
    margin: 0 !important;
    border: none; /* Убирает границу */
    outline: none; /* Убирает фокусное обрамление */
    box-shadow: none; /* Убирает тень */
    transition: none; /* Убирает анимации */
}

/* Общие стили для выравнивания select */
.form-filter.filter-v2 .field-wrapper select:not(.SumoSelect)
{
    margin: 0; /* Убираем лишние отступы */
    appearance: none; /* Убираем базовые стили браузера */
    -webkit-appearance: none;
    -moz-appearance: none;
    box-shadow: none; /* Убираем лишние тени */
    background: #fff; /* Устанавливаем белый фон */
}

/* При фокусе на input, подчеркивается вся обертка */
.form-filter.filter-v2 .field-wrapper:focus-within {
    border-color: #007bff; /* Голубая рамка при фокусе */
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5); /* Тень для выделения */
}

/* Стили для label с иконкой */
.form-filter.filter-v2 label.col-form-label i {
    margin-right: 10px; /* Расстояние между иконкой и текстом */
    color: #6c757d; /* Цвет иконки */
}

/* Выровнять иконку и текст по вертикали */
.form-filter.filter-v2 label.col-form-label {
    display: flex;
    align-items: center;
}

/* Поле с иконкой при фокусе */
.form-filter.filter-v2 .field-wrapper input:focus:not(.SumoSelect input) {
    outline: none;
    border: 1px solid #80bdff;
    box-shadow: 0 0 3px rgba(128, 189, 255, 0.8);
}
.form-filter.filter-v2 .form-select-container {
    padding: 0;
    margin: 0;
    display: inline-block;
    width: 100%;
    height: 100%;
}

.form-filter.filter-v2 .SumoSelect {
    height: 31px!important;
}
.form-filter.filter-v2 .SumoSelect>.CaptionCont {
    border:none;
    height: 31px!important;
}
.form-filter.filter-v2 .SumoSelect.open>.optWrapper {
    top: 29px!important;
}
