.header {
    z-index: 99999!important;
}

.nav-header {
    z-index: 100000!important;
}

.table tr.active {
    --bs-text-opacity: .4;
    border-left: 3px solid rgba(var(--bs-success-rgb), var(--bs-text-opacity));
}

.table tr.unactive {
    --bs-text-opacity: .4;
    border-left: 3px solid rgba(var(--bs-danger-rgb), var(--bs-text-opacity));
}

.profile-avatar__default {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    font-size: 0.9375rem;
    border-radius: 100px;
    overflow: hidden;
}

.profile-avatar__default svg {
    width: 100%;
    height: 100%;
    text-rendering: optimizeSpeed
}

.profile-avatar__default.avatar__default {
    width: 57px;
    height: 57px
}

.profile-avatar__default.avatar__mini {
    width: 32px;
    height: 32px
}

.user-avatar {
    position: relative;
    display: inline-block
}

.user-avatar > * {
    border-radius: 50%;
    padding: 0;
    overflow: hidden;
    border: none;
    min-width: 32px;
    min-height: 32px
}

.slogan {
    line-height: 1.2;
}

.text-black-900 {
    color: rgba(0, 0, 0, .9);
}

.text-black-700 {
    color: rgba(0, 0, 0, .7);
}

.off-page .error-text {
    font-size: 75px;
}

.text-right {
    text-align: right;
}

.form-field-table {
    padding: 20px 40px;
    background-color: #f7f7f7;
}


@media only screen and (max-width: 991px) {
    .off-page .error-text {
        font-size: 60px;
    }
}

@media only screen and (max-width: 575px) {
    .off-page .error-text {
        font-size: 40px;
    }
}

.filter-box {
    padding: 20px;
    background-color: #f7f7f7;
    border-radius: 10px;
    display: none;
    margin-bottom: 60px;
}

.filter-box.__active {
    display: block;
}

.form-control:focus {
    box-shadow: 0 0 0 .25rem rgba(13, 110, 253, .25);
    border-color: transparent;
}



/* стили DropDown */
.dropdown .btn-link svg {
    transition: all .2s ease;
}


.dropdown .btn-link:hover svg {
    transform: scale(1.3);
    transition: all .2s ease;
}

.table-responsive {
    overflow-x: auto;
    position: relative;
}

.table-responsive .dropdown-menu {
    position: absolute !important;
    transform: translate3d(0, 0, 0);
}

.table-responsive .dropdown-menu-end {
    right: 0;
    left: auto !important;
}

/* стили Select2 */


.form-floating .select2-container--bootstrap-5.select2-container--open ~ label,
.form-floating .select2-container--bootstrap-5.select2-container--focus ~ label,
.form-floating .select2-container--bootstrap-5.has-value ~ label{
    color: rgba(var(--bs-body-color-rgb), 0.65);
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}



.form-floating .select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered,
.form-floating .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered .select2-selection__choice{
    color: var(--text);
    line-height: 1.7;
    font-size: 0.9rem;
    padding-top: 0.7rem;
}
.form-floating .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered .select2-selection__choice{
    padding: .35em .65em;
    line-height: 1.1;
    border-radius: 5px;
    gap: 10px;
}


.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered .select2-selection__choice .select2-selection__choice__remove {
    width: .55rem;
    height: .55rem;
}


.form-floating .select2-container--bootstrap-5.select2-container--open ~ label::after,
.form-floating .select2-container--bootstrap-5.select2-container--focus ~ label::after,
.form-floating .select2-container--bootstrap-5.has-value ~ label::after {
    position: absolute;
    inset: 1rem 0.375rem;
    z-index: -1;
    height: 1.5em;
    content: "";
    background-color: var(--bs-body-bg);
    border-radius: var(--bs-border-radius);
}

.form-floating .select2-container--bootstrap-5.has-value .select2-selection--multiple .select2-selection__rendered,
.form-floating .select2-container--bootstrap-5.select2-container--open .select2-selection--multiple .select2-selection__rendered,
.form-floating .select2-container--bootstrap-5.select2-container--focus .select2-selection--multiple .select2-selection__rendered {
    padding-top: 1.625rem;
}


.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered .select2-selection__placeholder {
    display: none;
}

.select2-container--bootstrap-5.select2-container--focus .select2-selection, .select2-container--bootstrap-5.select2-container--open .select2-selection {
    border-color: transparent;
}

.form-floating > .select2-container--bootstrap-5 .select2-selection--single {
    line-height: 1.25;
    padding: 1rem 0.75rem;
    border-color: #e6e6e6;
    border-radius: .5rem;
}

.form-floating > .select2-container--bootstrap-5 .select2-selection--single,
.form-floating > .select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered,
.form-floating > .select2-container--bootstrap-5 .select2-selection--multiple {
    height: calc(3.5rem + calc(var(--bs-border-width) * 2));
    min-height: calc(3.5rem + calc(var(--bs-border-width) * 2));
    padding-left: .35rem;
}
.form-floating > .select2-container--bootstrap-5 .select2-selection--multiple {
    height: auto;
    border-color: #e6e6e6;
    border-radius: .5rem;
}

.form-floating > .select2-container--bootstrap-5 .select2-selection--single .select2-selection__arrow {
    top: 17px;
}

.form-floating .select2-selection--clearable .select2-selection__clear {
    display: block;
}

/* стили меню */
.deznav {
    z-index: 9999!important;
}

.select2-item {
    display: flex;
    gap: 15px;
    align-items: center;
}
.select2-inn {
    font-size: 12px;
    color: #000;
    padding: 3px 5px;
    border-radius: 3px;
    background-color: #dcf7da;
    font-weight: 500;
}

.select2-code {
    font-size: 12px;
    color: #000;
    padding: 3px 5px;
    border-radius: 3px;
    background-color: #e2e2e2;
    font-weight: 500;
}

.checkbox-warranty {
    text-align: center;
}
.checkbox-warranty .form-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 20px;
    gap: 10px;
    position: relative;
}

.form-check.is-invalid label {
    color: var(--bs-form-invalid-color);
}

.address-box {
    padding: 20px;
    background-color: #f7f7f7;
    border-radius: 10px;
    overflow: hidden;
}

.address-box .form-check-input {
    background-color: #fff;
}
.address-box .form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.needs-validation .form-floating.is-invalid .form-control,
.needs-validation .form-floating.is-invalid .select2-selection--single,
.needs-validation .form-floating.is-invalid .select2-selection--multiple {
    border-color: var(--bs-form-invalid-border-color);
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMiAxMiIgd2lkdGg9IjEyIiBoZWlnaHQ9IjEyIiBmaWxsPSJub25lIiBzdHJva2U9IiNGRjJFMkUiPjxjaXJjbGUgY3g9IjYiIGN5PSI2IiByPSI0LjUiLz48cGF0aCBzdHJva2UtbGluZWpvaW49InJvdW5kIiBkPSJNNS44IDMuNmguNEw2IDYuNXoiLz48Y2lyY2xlIGN4PSI2IiBjeT0iOC4yIiByPSIuNiIgZmlsbD0iI0ZGMkUyRSIgc3Ryb2tlPSJub25lIi8+PC9zdmc+");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.invalid-feedback {
    position: absolute;
    bottom: -18px;
    font-size: 13px;
}

.form-address-row + .form-address-row {
    margin-bottom: 15px;
    padding-top: 15px;
    border-top: 1px solid #fff;
}
.modal {
    z-index: 99999;
}

#geomap-modal .modal-body{
    padding: 0;
}

#geomap-modal #geomap-address-info {
    padding: 1.875rem;
}

#geomap-map {
    width: 100%!important;
    height:600px;
    overflow: hidden;
}

.hidden {
    display: none!important;
}

.table-contracts thead th {
    font-size: .825rem;
    text-align: center;
}

.table-contracts td {
    padding: 12px 5px;
    font-size: 13px;
}

.form-insurant-add {
    padding: 10px 20px;
    border-radius: 5px;
    background-color: #f5f5f5;
}

.__relative {
    position: relative;
}

#insurant_info {
    position: absolute;
    bottom: -20px;
}

#reins_datediff:empty,
#insurants-check:empty,
#limit_option_desc:empty{
    display: none;
}

.btn-sanction-detail {
    cursor: pointer;
}
.modal-backdrop {
    z-index: 999999 !important;
}

.modal {
    z-index: 9999999 !important;
}
.insurant-sanctions_box .table-sm > :not(caption) > * > * {
    padding: 0.25rem 0.25rem !important;
}
.insurant-sanctions_box .table td, .insurant-sanctions_box .table th {
    font-size: 13px;
}

.insurant-sanctions_box .table tbody tr td:last-child,
.insurant-sanctions_box .table thead tr th:last-child{
    text-align: left!important;
}

.insurant-sanctions_hint {
    font-size: 13px;
    line-height: 1.2;
    color: #666;
    font-style: italic;
 }

.calc_details_short {
    display: flex;
    font-size: 13px;
    flex-direction: column;
    gap: 5px;
}

/* Стили для полей ручного ввода тарифов */
#int_program\:rate_manual.bg-light,
#int_program\:rate_excedent_manual.bg-light {
    background-color: #f8f9fa !important;
    cursor: not-allowed;
}

#int_program\:rate_manual:not(.bg-light),
#int_program\:rate_excedent_manual:not(.bg-light) {
    background-color: #fff !important;
    cursor: text;
}
