.tab-pane > .modal-title-local:first-child {
    display: none;
}

.container.content-body.report_container {
    max-width: 100%;
}

.report {
    position: relative;
    min-height: 6rem;
}

.report_container .card-body {
    padding-bottom: 0;
}

.report-table-container {
    overflow-x: scroll;
}

.report-table {
    font-size: 0.8em;
    overflow-y: auto;
}

.report-table th[data-name=checkbox] {
    text-align: center;
}

.report-table thead th {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    background: white;
    box-shadow: inset 0 -2px 0 #dee2e6;
    border-top: none;
    border-bottom: none;
}

.report-table tbody tr:first-child td {
    border-top: none;
}

.modal {
    padding: 0 2em;
    overflow-x: hidden;
    overflow-y: auto;
}

/*Заставляем вторую и последующую всплывашки быть наверху до окончания загрузки*/
.modal + .modal-backdrop {
    z-index: 10000;
}

.modal + .modal-backdrop + .modal {
    z-index: 10010;
}

.modal-dialog {
    max-width: initial;
}

.modal-content {
    margin: auto;
    width: 60rem;
    max-width: 100%;
}

.modal-body .dropzone {
    width: 100%;
}

.file_preview {
    display: inline-block;
    line-height: 1.5;
    font-size: 1.5rem;
}

.report-table .al {
    text-align: left;
}

.report-table .ar {
    text-align: right;
}

.report-table .ac {
    text-align: center;
}

.report_settings .list-group {
    background-color: #fff6b2;
    min-height: 30%;
}

.report_settings .list-other .badge {
    display: none;
}

.report .report_loader {
    display: none;
    color: #007bff;
    position: absolute;
    /*vertical-align: middle;*/
    text-align: center;
    font-size: 3rem;
    background: rgba(0, 0, 0, 0.3);
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
}

.report.refreshing .report_loader {
    display: block;
}

.action_loader {
    display: none;
    vertical-align: middle;
}

.btn.refreshing .action_loader {
    display: inline-block;
}

select.filter-form-item {
    max-width: 200px;
}

.display_readonly {
    background-color: #eee;
}

.display_readonly > span {
    display: block;
    padding: .375rem .75rem;
    background-color: transparent;
    border: 1px solid #aaa;
    border-radius: 4px;
    font-weight: initial;
}

label {
    width: 100%;
}

label.required {
    font-weight: bold;
}

label.required > .select2, label.required > .input-group > div.form-control > .select2 {
    font-weight: initial;
}

label.required:before {
    content: "*";
    color: red;
}

.was-validated .configure-select2:invalid + .select2 .select2-selection {
    border: 1px solid #dc3545 !important;
    margin: -1px;
}

.was-validated .configure-select2:valid + .select2 .select2-selection {
    border: 1px solid #28a745 !important;
    margin: -1px;
}

/**:focus{*/
/*  outline:0;*/
/*}*/
.report .filters_form .add_filter_value {
    display: none;
}

.report .filters_form.condition_type_in .add_filter_value {
    display: initial;
}

select + .select2 {
    display: block;
    width: 100% !important;
}

.select2-container.select2-container--default.select2-container--open {
    z-index: 10000;
}

select + .select2.select2-container--default .select2-selection--single {
    height: auto;
}

select + .select2.select2-container--default .select2-selection--single .select2-selection__rendered {
    padding: .375rem 1.5rem .375rem .75rem;
    height: 2.25rem;
    line-height: normal;
}

select + .select2.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 2.25rem;
}


label + .item_select_icon {
    padding: 1.875rem 1.5rem .375rem .75rem;
    /* height: 2.25rem; */
    line-height: normal;
    display: inline-block;
    vertical-align: top;
    height: 100%;
}

.report_content .filters_form .input-group .form-control {
    width: 10rem;
    min-width: 130px; /* fix small browser font */
    line-height: 1;
}

.report_content .limit_select_holder {
    padding: 0;
}

.report_content .limit_select_holder .select2-selection--single {
    border: inherit;
}


label > .input-group > div.form-control {
    padding: 0;
}

label > .input-group > div.form-control .select2-selection--single {
    border: inherit;
}

[data-toggle=buttons] > .btn input[type=radio], [data-toggle=buttons] > .btn input[type=checkbox] {
    position: absolute;
    visibility: hidden;
}


label.hidden {
    display: none;
}

textarea {
    height: initial;
    min-height: initial;
    max-height: initial;
}

/*
MOBILE UI
 */
@media (max-width: 800px), (max-height: 600px) {
    html, body {
        margin: 0;
        padding: 0;
        width: 100%;
        height: 100%;
    }


    .navbar-expand {
        flex-flow: row wrap;
    }

    .report_content > .form-inline > div {
        max-width: 100vw;
    }

    .report-table-container {
        overflow-x: visible;
        overflow-y: auto;
        height: auto !important;
    }
}