:root {
  --header-height: 70px;
}
[data-bs-theme="light"], [data-bs-theme="dark"] {
    /* --bs-emphasis-color-rgb: 204,204,204; */
    --bs-success-rgb: 11,159,3;
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

html {
    font-size: 0.9rem; /* Изменяет размер для всего документа */
    color: #2A2F5B;
}

/*CSS reset*/
body, div, ul, ol, li, h1, h2, h3, h4, h5, h6, form, fieldset, input, textarea, p, th, td {
	margin: 0;
	padding: 0;
}

table.result {
    font-size: 0.85rem;
    th.sorting { cursor: pointer; }
}

/* td, th { border: 1px solid rgb(235, 235, 235); } */
th { vertical-align: middle; }

a {
    text-decoration: none;
}
a.disabled{
    pointer-events: none;
    cursor: default;
}

/* Fonts */
@font-face {
    font-family: Roboto-regular; /* Имя шрифта */
    src: url(/public/fonts/font_roboto_regular.woff); /* Путь к файлу со шрифтом */
}
  
@font-face {
    font-family: Roboto-bold; /* Имя шрифта */
    src: url(/public/fonts/font_roboto_bold.woff); /* Путь к файлу со шрифтом */
}

@media (min-width: 1500px) {
    .wrapper { max-width: 1366px; margin: 0 auto; }
    section .wrapper { margin-top: var(--header-height); }
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 3;
    background: #2d2d2d;
}
header > .navbar { min-height: var(--header-height); }

.table-sm > :not(caption) > * > * {
    padding: 0.25rem 0.5rem;
}

.breadcrumb-item a { color: #343293; }

.navbar-nav .nav-item ul li a {
    position: relative;
    padding-left: 38px;
}
.navbar-nav .nav-item ul li a::before {
    position: absolute;
    content: "";
    width: 7px;
    height: 1px;
    background: #1d2939;
    top: 14px;
    left: 21px;
}
.navbar-nav .nav-item .nav-link, .navbar-nav .nav-item .navbar-brand {
    padding: 0.75rem 1.25rem !important;
    color: rgba(255, 255, 255, 0.5);
}
.navbar-nav .nav-item .nav-link.active, .navbar-nav .nav-item .nav-link.show {
    color: #0295e3 !important;
    background-color: #ffeb04 !important;
    font-weight: 600;
}
.navbar-nav .nav-item .nav-link.disabled, .navbar-nav .nav-item .navbar-brand.disabled {
    color: rgba(255, 255, 255, 0.2);
}
.navbar-nav .nav-item:not(.user-menu) .nav-link:focus, .navbar-nav .nav-item:not(.user-menu) .nav-link:hover {
    color: rgba(255, 255, 255, 1);
    background: rgba(185, 185, 185, 0.18);
}
.navbar-nav .nav-item.dropdown:not(.user-menu) { cursor: pointer; }
.dropdown:not(.bootstrap-select):hover .dropdown-menu { display: block; margin-top: 5px; }
.dropdown-menu-center { transform: translateX(-50%); left: 50%; }
.dropdown-item.active, .dropdown-item:active {
    color: #0295e3;
    background-color: transparent;
}
.dropdown-item:focus, .dropdown-item:hover {
    background-color: #ddd;
}

.user-block { position: absolute; right: 0; }

.head-btn { padding: 0.5rem 1rem; }
.btn-primary { --bs-btn-bg: #0295e3; --bs-btn-border-color: #0295e3; }
.btn-primary:hover { --bs-btn-hover-bg: #0085cd; --bs-btn-hover-border-color: #0085cd; }
.btn-primary:disabled { --bs-btn-disabled-bg: #0295e3; --bs-btn-disabled-border-color: #0295e3; }
.btn-outline-primary { --bs-btn-color: #0295e3; --bs-btn-border-color: #0295e3; }
.btn-outline-primary:hover { --bs-btn-hover-bg: #0295e3; --bs-btn-hover-border-color: #0295e3; }
.btn-outline-primary:disabled { --bs-btn-disabled-color: #0295e3; --bs-btn-disabled-border-color: #0295e3; }

.fa-btn {
    cursor: pointer;
    padding: 0.2rem 0.4rem;
    margin: 0 0.2rem;
    border: none;
    border-radius: 0.375rem;
    color: #fff;
}
.fa-btn-primary { background-color: #0295e3; }
.fa-btn-secondary { background-color: #6c757d; }
.fa-btn-danger { background-color: #dc3545; }
.fa-btn.disabled { opacity: 0.5; cursor: default; pointer-events: none; }

.auth {
    width: 450px;
    margin: 75px auto 0;
    padding: 30px;
    border-radius: 5px;
    border: var(--bs-border-width) solid var(--bs-border-color);
    text-align: center;
    background-color: var(--bs-tertiary-bg);

    p {
        display: block;
        text-align: center;
        margin: 0 auto;
    }
    h1 {
        margin-bottom: 30px;
        color: #a7a7a7;
    }
    input[type=submit] {
        padding: 10px 30px;
        margin-top: 15px;
        border-radius: 5px;
        border: none;
        background-color: var(--bs-primary);
        color: #ffffff;
        cursor: pointer;
        transition: 0.25s;
    }
    input[type=submit]:hover { box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); transition: 0.25s; }
}

.sorting {
    i { opacity: 0.5; }
    i.active { opacity: 1; }
    .fa-sort-up { margin-top: 3px; margin-bottom: -6px; }
    .fa-sort-down { margin-top: -6px; }
}

.logo-wrap { margin: 3rem 0 6rem 0; }
.logo-wrap img { width: 30%; }

.hide { display: none !important; }

.user-menu .dropdown-item.active {
    color: #fff;
    background-color: #1565C0;
    border-radius: 0.25rem;
}

.tab-content { border: 1px solid #dee2e6; border-top: none; }
.nav-tabs .nav-link { border-bottom: none; }

.form-control, .form-select {
    height: inherit !important;
    /* padding: 0.25rem 2.25rem 0.5rem 0.75rem; */
}
.form-control::placeholder {
    opacity: 0.7;
}
.form-control:disabled {
    color: #21252975;
}

/* .select2-search { display: none !important; } */
.select2-container {
    .select2-selection {
        border-color: var(--bs-border-color);
        border-radius: var(--bs-border-radius);
    }
    .select2-selection__choice {
        margin-bottom: 0 !important;
        padding: .1em .4em !important;
    }
    .select2-selection__choice__remove {
        width: 0.5rem !important;
        height: 0.5rem !important;
    }
    .select2-container--disabled .select2-selection {
        background-color: var(--bs-secondary-bg);
    }
    .select2-container--disabled .select2-selection .select2-selection__rendered {
        color: #21252975;
    }
}
.is-invalid + .select2-container .select2-selection,
.is-invalid + .select2-container--focus .select2-selection,
.is-invalid + .select2-container--open .select2-selection {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(.375em + .1875rem) center;
    background-size: calc(.75em + .375rem) calc(.75em + .375rem);
}

.required-label {
    color: #dc3545;
    font-size: 1.2em;
    line-height: 0;
    margin-left: 5px;
}