main > .container, main > .container-fluid
{
    padding: 70px 15px 20px;
}

.footer {
    background-color: #f5f5f5;
    font-size: .9em;
    height: 60px;
}

.footer > .container, .footer > .container-fluid {
    padding-right: 15px;
    padding-left: 15px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px #212529;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px #212529;
    border-bottom-width: 0;
}

.grid-view th,
.grid-view td:last-child {
    white-space: nowrap;
}

.grid-view .filters input,
.grid-view .filters select {
    min-width: 50px;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.navbar form > button.logout {
    padding-top: 7px;
    color: rgba(255, 255, 255, 0.5);
}

@media(max-width:767px) {
    .navbar form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 10px 0;
    }
}

.navbar form > button.logout:focus,
.navbar form > button.logout:hover {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
}

.navbar form > button.logout:focus {
    outline: none;
}

/* style breadcrumb widget as in previous bootstrap versions */
.breadcrumb {
    background-color: var(--bs-gray-200);
    border-radius: .25rem;
    padding: .75rem 1rem;
}

.breadcrumb-item > a
{
    text-decoration: none;
}


/* Индикатор загрузки, который занимает весь экран */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8); /* Полупрозрачный фон */
    z-index: 9999; /* Должен быть поверх всего контента */
    display: none; /* Скрыть по умолчанию */
    justify-content: center;
    align-items: center;
}

.loader {
    display: block;
    width: 20px;
    height: 20px;
    position: relative;
    border-radius: 50%;
    color: #FF3D00;
    animation: fill 1s ease-in infinite alternate;
}
.loader::before , .loader::after {
    content: '';
    position: absolute;
    height: 100%;
    width: 100%;
    border-radius: 50%;
    left: 48px;
    top: 0;
    animation: fill 0.9s ease-in infinite alternate;
}

.loader::after {
    left: auto;
    right: 48px;
    animation-duration: 1.1s;
}

@keyframes fill {
    0% {  box-shadow: 0 0 0 2px inset }
    100%{ box-shadow: 0 0 0 10px inset }
}

.select2-container--default .select2-selection--multiple {
    position: relative; /* Чтобы контейнер select2 был базой для позиционирования спиннера */
}


#loading-spinner {
    position: absolute;
    top: 50%; /* Центрирование по вертикали */
    right: 80px; /* Отступ от правого края контейнера select2 */
    transform: translateY(-50%); /* Центрирование по вертикали */
    z-index: 1000; /* Убедитесь, что спиннер находится выше других элементов */
}

/* Общие стили для пагинации */
.pagination {
    display: flex;
    padding-left: 0;
    list-style: none;
    border-radius: .25rem;
}

.pagination li {
    margin: 0;
}

.pagination li a, .pagination li span {
    display: block;
    padding: .5rem .75rem;
    line-height: 1.25;
    text-decoration: none;
    color: #007bff;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: .25rem;
}

.pagination li a:hover, .pagination li span:hover {
    color: #0056b3;
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.pagination .active a, .pagination .active span {
    z-index: 1;
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}

.pagination .disabled a, .pagination .disabled span {
    color: #6c757d;
    background-color: #fff;
    border-color: #dee2e6;
}

/* Дополнительные стили для 'next' и 'previous' */
.pagination .next a, .pagination .prev a {
    display: block;
    padding: .5rem .75rem;
    text-align: center;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: .25rem;
}

.pagination .next.disabled a, .pagination .prev.disabled a {
    color: #6c757d;
    background-color: #fff;
    border-color: #dee2e6;
    cursor: not-allowed;
}

.site-login {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    background-color: #f9f9f9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}
.site-login h1 {
    margin-bottom: 30px;
    font-size: 24px;
    text-align: center;
    font-weight: bold;
}
.site-login .form-group {
    margin-bottom: 20px;
}
.site-login .btn-primary {
    width: 100%;
    padding: 10px;
    font-size: 16px;
}
.site-login .help-block-error {
    color: red;
}

.field-loginform-username,
.field-loginform-password {
    width: 100%;
}

.select2-container--krajee-bs5 .select2-selection {
    width: 100% !important; /* Принудительно установите ширину */
}

.select2-container--krajee-bs5 {
    width: 100% !important; /* Убедитесь, что контейнер тоже занимает 100% */
}
.form-group .select2-container .select2-selection--multiple .select2-selection__rendered {
    display: block;
    width: 100% !important;
}
.form-group .select2-container .select2-selection--single{
    display: block;
    height: 35px;
}

.status-active {
    background-color: inherit; /* Зеленый фон */
}

.status-inactive {
    background-color: #f8d7da; /* Красный фон */
}
.table-danger .detail-view {
    background-color: #f8d7da; /* Красный фон */
}

.action-buttons {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.bm-tokens .select2-container {
    width: 100% !important; /* Устанавливаем ширину контейнера на 100% */
}

.bm-tokens .select2-dropdown {
    width: auto !important; /* Автоматическая ширина для выпадающего списка */
}

.bm-tokens .select2-selection {
    min-width: 300px; /* Устанавливаем минимальную ширину для выбранных элементов */
}
.bm-tokens .select2-selection__choice {
    white-space: nowrap; /* Отключаем перенос текста */
    max-width: none; /* Убираем ограничение на ширину */
    overflow: visible; /* Отключаем обрезку текста */
}

.bm-tokens .select2-container .select2-selection--multiple .select2-selection__rendered li {
    display: block; /* Каждое значение на отдельной строке */
    width: 100%; /* Устанавливаем ширину 100%, чтобы каждый элемент отображался полностью */
}

.bm-tokens .select2-selection__choice__remove {
    float: none; /* Кнопка удаления рядом с текстом */
    display: inline; /* Устанавливаем кнопке удаления inline-стиль */
}

.bm-tokens .select2-selection__choice {
    margin-right: 0; /* Убираем лишние отступы, чтобы не было пустого пространства */
    padding-right: 20px; /* Делаем место для кнопки удаления */
    word-break: break-all; /* Переносим длинные слова, если они слишком длинные */
}

.pager-block {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
}
.pager-block  .per-page-block{
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
    flex-direction: row;
}
.pager-block  .per-page-block div.title{
    display: flex;
    align-items: center;
}
.pager-block  .per-page-block .per-page{
    width: 100px;
    margin-left: 5px;
}

.client-view a.bm-token-link,
.client-view a.bm-account-link {
    text-decoration: none;
    color: inherit;
}
.client-view a.bm-token-link:hover,
.client-view a.bm-account-link:hover {
    text-decoration: underline;
}

.header-block {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    align-content: center;
    flex-wrap: nowrap;
}
.header-block .main-title {
    font-weight: 600;
    font-size: 2.5rem;
}

.dashboard-block .title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 20px;
    margin-top: 10px;
}

.dashboard-block .client-stat {
    display: flex;
}

.dashboard-block .client-stat .card {
    margin-right: 15px;
}

.dashboard-block .client-stat .card .card-header {
    font-weight: bold;
    font-size: 18px;
}

.dashboard-filters {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: flex-end;
    align-items: flex-end;
}

.dashboard-filters .date-picker-block {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
}

.dashboard-filters .date-picker-block .date-block,
.dashboard-filters .group-filter {
    margin-right: 15px;
}

.dashboard-filters .buyers-filter,
.dashboard-filters .accounts-filter {
    width: 25%;
    margin-right: 15px;
}

.dashboard-filters .buyers-filter .select2-search__field,
.dashboard-filters .accounts-filter .select2-search__field {
    width: 100% !important;
    display: flex;
}

.filter-account-class{
    margin-top: 5px;
    padding: 10px 5px !important;
}

.filter-account-class .select2-container--krajee-bs5 .select2-selection {
    height: 35px;
}

#accounts-field-single .form-group .select2-container .select2-selection--multiple .select2-selection__rendered {
    display: contents;
}

.commission-fields {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    align-items: center;
    justify-content: space-between;
}
.commission-fields>div {
    width: 49%;
}

.commission-history-btn {
    margin-bottom: 5px;
}

.row-fields {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
}

.row-fields .field-block {
    width: 50%;
}

.mr-10 {
    margin-right: 10px;
}

.disabled-row {
    opacity: 0.6;
    pointer-events: none; /* Отключает кликабельность */
    background-color: #f8f9fa !important; /* Серый фон для наглядности */
}

.disabled-row .log-btn {
    pointer-events: auto; /* Включает кликабельность для кнопки лога */
    opacity: 1;           /* Сохраняет стандартную видимость кнопки */
}

.account-stats {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
}

.account-stats span {
    width: 20%;
}

.language-icon {
    width: 25px;
    height: 20px;
}

.disabled-btn {
    opacity: 0.6; /* Делаем кнопку визуально неактивной */
    cursor: not-allowed; /* Курсор 🚫 при наведении */
}

.disabled-btn * {
    pointer-events: none; /* Отключаем клики только внутри кнопки */
}

.action-buttons.order-actions {
    width: 30%;
}

.action-buttons.client-account-actions {
    width: 60%;
}

.order-actions select {
    width: 40%;
    border: 1px #09050433 solid;
}
.client-account-actions .input-group.date {
    width: 30%;
    border: 1px #09050433 solid;
}

.order-actions #order-update-btn {
    width: 55%;
}

.account-balances-form {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-around;
    align-items: center;
}
.account-balances-form .balance-accounts {
    width: 78%;
}
.account-balances-form .balances-submit {
    width: 20%;
}

.amount-withdraw,
.amount-clear,
.amount-top-up {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-end;
    justify-content: space-between;
}

.withdraw-amount-block,
.top-up-amount-block {
    display: flex;
    flex-direction: column;
    width: 60%;
}

.mass-actions {
    display: flex;
    border-top: 1px solid rgba(143, 143, 143, 0.18);
    border-bottom: 1px solid rgba(143, 143, 143, 0.18);
    padding: 5px 0;
    flex-direction: row;
    justify-content: flex-start;
    margin: 15px 0;
    align-items: center;
}
.mass-actions button {
    margin-left: 15px;
}

.amount-withdraw .amount-withdraw-btn,
.amount-top-up .amount-top-up-btn,
.full-withdraw .full-withdraw-btn {
    width: 35%;
}

.full-withdraw {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #605f5f59;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

#fullWithdrawConfirmModal .modal-dialog {
    width: 25%;
    display: flex;
    top: 10rem;
}
.selected-top-up-accounts,
.selected-withdraw-accounts,
.selected-clear-accounts,
.selected-erp-accounts {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
}

.selected-top-up-accounts span,
.selected-withdraw-accounts span,
.selected-clear-accounts span,
.selected-erp-accounts span {
    align-items: center;
    display: flex;
    width: 18%;
    border: 1px solid black;
    margin: 5px 5px 5px 0;
    padding: 5px;
    flex-direction: row;
    justify-content: center;
    border-radius: 4px;
}

.accounts-type-charts {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.chart-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    flex-direction: row;
}

.chart-item {
    width: 400px; /* Ширина одного графика */
    min-height: 400px; /* Чтобы график не схлопывался */
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.update-accounts .btn-group .dropdown-menu.kv-checkbox-list.show {
    padding: 15px;
}

.action-buttons .select2-container--krajee-bs5 {
    width: 70% !important;
}

.client-account-actions {
    display: flex;
    flex-direction: row;
    width: 100%;
    flex-wrap: wrap;
}

.client-account-actions .left-actions {
    width: 60%;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.client-account-actions .right-actions {
    display: flex;
    width: 40%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.client-accounts-header {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    align-content: center;
    justify-content: space-between;
}

.total-balance-switch {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.field-client-multi-dropdown .form-group .select2-container .select2-selection--multiple .select2-selection__rendered{
    display: contents;
}

#client-field-multi .form-group .select2-container .select2-selection--multiple .select2-selection__rendered {
    display: contents;
}
.stat-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.month-filter {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-end;
}

.buyer-filter-td,
.client-filter-td {
    max-width: 250px;
    min-width: 150px;
}

.buyer-filter-td .select2-container .select2-selection--multiple .select2-selection__rendered,
.client-filter-td .select2-container .select2-selection--multiple .select2-selection__rendered {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-wrap: wrap;
    max-height: 35px;
    align-content: flex-end;
}
.buyer-filter-td .select2-container .select2-selection--multiple .select2-selection__rendered .select2-search.select2-search--inline,
.client-filter-td .select2-container .select2-selection--multiple .select2-selection__rendered .select2-search.select2-search--inline {
    width: 2px;
}

.buyer-select-dropdown .s2-togall-button.s2-togall-select,
.client-select-dropdown .s2-togall-button.s2-togall-select {
    display: none;
}

.select2-container--krajee-bs5 .client-select-dropdown .select2-results > .select2-results__options {
    overflow-y: unset !important;
}

.select2-bulk-actions,
.client-select2-bulk-actions {
    padding: 5px 10px;
    border-bottom: 1px solid #ddd;
    display: flex;
    flex-direction: column;
}
.buyer-select-filter,
.client-select-filter {
    max-width: 150px;
}
.month-stats-td {
    text-align: end;
}

.month-form {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-end;
}

.month-export {
    display: flex;
    align-items: flex-end;
}

.buyer-date-filter {
    flex-direction: column;
}

.submit-block {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
}

.clear-account-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    margin-right: 10px;
    border-radius: 4px;
    padding: 0 5px;
    border: 1px solid #d53a3a3b;
}

.clear-amount-block {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    font-size: 17px;
}

.clear-account-info .info-balance,
.clear-amount-block .info-balance {
    align-items: center;
    display: flex;
    border: 1px solid #c33a3a;
    margin: 5px 5px 5px 0;
    padding: 1px 5px;
    flex-direction: row;
    justify-content: center;
    border-radius: 4px;
    background-color: #dc3545;
    color: white;
}

.transaction-header {
    display: flex;
    justify-content: space-between;
}

.btn-group .dropdown-menu.kv-checkbox-list.show {
    padding: 15px;
}