/*общие стили проекта*/

/* Bootstrap's sans-serif font on Windows is "Segoe UI,"
which has support for the weights "normal" (400) and "semi-bold" (600) but not "medium" (500).
In situations like this, Chrome rounds up to "semi-bold" while Firefox rounds down to "normal."
Changing to 600 will achieve semi-bold in both browsers. */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-weight: normal;
}

/* фон сайта */
body {
    position: relative; /* Important for positioning the ::before pseudo-element */
}

body::before {
    content: "";
    position: fixed; /* Fix the background position so it doesn't scroll*/
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Place the background behind the body's content */
    background: linear-gradient(
            to bottom,
            rgba(108, 199, 248, 0.07),
            rgba(255, 217, 171, 0.01),
            rgba(255, 217, 171, 0.01),
            rgba(255, 217, 171, 0.01),
            rgba(255, 217, 171, 0.01),
            rgba(255, 217, 171, 0.01),
            rgb(255, 217, 171, 0.07)
    );
}

/* крошки */
ol.breadcrumb {
    border: 1px solid rgba(0, 0, 0, .125) !important;
    padding: .7rem 1rem;
}

/* джамбо */
.jumbotron {
    border: 1px solid rgba(0, 0, 0, .125) !important;
}

/*логотип из текстового символа*/
.font-icon {
    color: white !important;
    font-size: 8em !important;
}

/*
отступы для элементов инлайн форм
<form class="form-inline">{% bootstrap_form filter_form layout='inline' %}...
<form class="form-inline justify-content-center">{% bootstrap_form filter_form layout='inline' %}...
*/
.form-inline input, .form-inline select, .form-inline button, .form-inline a, .form-inline .form-check-label,
.form-inline .select2-selection--single, .select2-selection--multiple {
    margin-right: 0.4rem;
}


/*заголовки таблиц*/
table.table th {
    background-color: rgba(233, 236, 239, 0.63);
}

/*убрать зелёную галку валидных полей bs4*/
.form-control.is-valid, .was-validated .form-control:valid {
    background-image: none;
    padding-right: 0.5rem;
}

/*select2*/
/* у элементов multiple убирает резкое изменение высоты (FOUC - Flash Of Unstyled Content) */
select.django-select2[multiple] {
    height: 2.4rem !important;
    overflow-y: hidden; /* hide scrollbar Chrome */
    scrollbar-width: none; /* hide scrollbar Firefox */
}

select[multiple].django-select2 option {
    opacity: 0;
}

.select2-selection--single,
.select2-selection--multiple {
    height: 2.4rem !important;
    border-color: #ced4da !important;
}

.select2-selection--single .select2-selection__rendered,
.select2-selection--multiple .select2-selection__rendered {
    padding-top: .375rem;
    line-height: 1.5 !important;
}

.select2-selection--single .select2-selection__arrow,
.select2-selection--multiple .select2-selection__arrow {
    height: 38px !important;
    right: 4px !important;
}

.form-group.is-valid .select2-container--default .select2-selection--single,
.form-group.is-valid .select2-container--default .select2-selection--multiple {
    border-color: #28a745 !important;
}

.form-group.is-invalid .select2-container--default .select2-selection--single,
.form-group.is-invalid .select2-container--default .select2-selection--multiple {
    border-color: #dc3545 !important;
}

/*запрет выделения иконок*/
.material-icons, .unselectable {
    -ms-user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    user-select: none;
}

/*кнопки*/
.btn.disabled, .btn[disabled] {
    cursor: not-allowed;
}

/*убрать мелкие кнопки +1 -1 для input[type=number]*/
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

/*table sort arrows*/
th.asc a:after {
    content: " \2191";
    color: red;
}

th.desc a:after {
    content: " \2193";
    color: red;
}

/*blink animation*/
.blink {
    animation: loader_blink 1s linear infinite;
}

@keyframes loader_blink {
    0% {
        color: rgb(51, 51, 51);
    }
    50% {
        color: rgba(34, 34, 34, 0);
    }
    100% {
        color: rgb(51, 51, 51);
    }
}

/*additional color properties*/
:root {
    --aliceblue: aliceblue;
    --davy-grey: #495057;
    --goldenrod: goldenrod;
    --maroon: maroon;
}

/* отображение ошибок для виджетов RadioSelect, CheckboxSelectMultiple */
.is-invalid > .invalid-feedback {
    display: block;
}

/* Стиль для выпадающего меню */
.dropdown-menu {
    max-height: 94vh !important;
}

/* Стиль для выпадающего меню для мобильных устройств */
@media (max-width: 768px) {
    .dropdown-menu {
        max-height: 85vh !important;
    }
}

