body
{
    font-family: 'Roboto', 'Inter', -apple-system, BlinkMacSystemFont, 'Roboto', 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
}

p {
    font-size: 1rem;
}

.hide {
    display: none;
}

.no-select {
  -webkit-user-select: none; /* Chrome/Safari */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* IE/Edge */
  user-select: none; /* Стандартный синтаксис */
}

.container-fit {
    width: fit-content;
    min-width: 500px;
    margin-right: auto;
    padding-right: 15px;
    padding-left: 15px;
}

.f-24 {
    font-size: 24px !important;
}

@media (min-width: 992px)
{
    .admin-main {
        padding-left: 0px;
    }

    .admin-header
    {
        padding: 0px 0.5rem;
    }

    body.sidebar-pinned .admin-header,
    body.sidebar-pinned .admin-main
    {
        padding-left: 0px;
    }
}

@media (max-width: 992px)
{
    .admin-header .sidebar-toggle
    {
        display: block;
    }
}

.admin-sidebar .menu .menu-item.active {
   background: none;
}

.admin-sidebar .menu .menu-item.active .menu-icon {
    background-color: rgba(0, 0, 0, .03);
}

li.nav-item:hover {
    border-radius: 5px;
    background-color: #f3f5f8;
    transition: 0.5s background-color ease;
    color: #333;
}

body.pace-done.modal-open {
    padding-right: 0px !important;
}

.modal .close {
    /* position: sticky;
    margin-left: auto; */
    font-size: 1.5rem;
}

/* Кнопки */

.btn-1c {
    background-color: #ffdf01;
}

/* Меню */

.main_menu_wrapper {
    width: calc(100% - 2rem - 40px);
    max-height: 100%;
	display: flex;
	flex-direction:  column;
	flex-wrap: wrap;
	justify-content: flex-start;
	align-items: stretch;
    overflow: hidden;
    padding-top: 0.5rem;
}

.menu_head {
    display: flex;
    align-items: center;
}

.menu_head_title {
    color: #2e384d;
}

.menu_head_icon {
    padding: 0px 5px;
    border-radius: 5px;
    background-color: rgb(240, 240, 240);
}

/* .active {
    background-color: rgb(31, 31, 31) !important;
} */

#slideMainMenu .modal, #slideMainMenu .modal-dialog {
    height: initial;
    min-height: 100%;
}

#slideMainMenu .modal-content {
    min-height: 100vh;
}

.active .icon-placeholder {
    color: #fafafa !important;
}

.menu_head_icon .icon-placeholder {
    font-size: 21px;
}

.menu_head_title {
    margin-left: 0.5rem;
    font-weight: bold;
}

.menu_ul {
    list-style: none;
    font-size: 1rem;
}

.menu_ul li a:hover {
    color: #3867d6;
}

.menu_ul .sub_menu {
    list-style: none;
    margin: 0px;
    padding: 0px 0px 0px 10px;
}

.glass {
    background: rgba(255, 255, 255, 0.71) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: blur(5.6px) !important;
    -webkit-backdrop-filter: blur(5.6px) !important;
}

/* Формы и поля */

.form-control::placeholder {
    color: #d2dae2;
}

.auto-expand {
    min-height: 40px;
    max-height: fit-content;
    resize: vertical;
}

/* Таблицы */

.table {
    margin-bottom: 0px;
}

.table thead th {
    border-bottom: none;
}

.table thead th, .table tfoot th {
    font-size: .8rem;
    font-weight: 500;
    letter-spacing:normal;
    text-transform: uppercase;
    color: #174069;
}

.table th, .table td {
    padding: .6rem;
    vertical-align: inherit;
}

/* Подсказки */

.input-hint {
    margin: 0px 0px 0px 5px;
    font-size: 11px;
    opacity: 0.75;
}

/* Tom select */

.ts-dropdown-content::-webkit-scrollbar {
    width: 4px;
    /* ширина scrollbar */
}

.ts-dropdown-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.ts-dropdown-content::-webkit-scrollbar-thumb {
    background-color: rgb(167, 167, 167);
    border-radius: 20px;
    border: 3px solid #989faa;
}

.ts-control {
    border-color: #dce4ec;
    border-radius: 0.25rem;
}

.ts-control input::placeholder {
    color: #d2dae2;
}

.ts-dropdown.dropup {
    bottom: 100%;
    top: auto;
}

.ts-wrapper.single.input-active .ts-control, .ts-wrapper.single.input-active .ts-control input {
    cursor: pointer;
}

.ts-dropdown .active {
    color: #11243b;
    background-color: #d2ddec;
}

.focus .ts-control {
    border-color: #95aac9;
    box-shadow: none;
    outline: 0;
}

.ts-wrapper.multi .ts-control > div {
    border-radius: 2px;
    background-color: #e3ebf6;
}

.ts-wrapper.plugin-remove_button:not(.rtl) .item .remove {
    border-color: #cdd5e1;
}

.ts-wrapper.single .ts-control:not(.rtl):after {
    right: calc(.75rem + 0px);
}
.ts-wrapper.single .ts-control:after {
    border-color: #b1c2d9 transparent transparent;
}

.ts-wrapper.single.dropdown-active .ts-control:after {
    border-color: transparent transparent #b1c2d9;
}

.disabled .ts-control {
    background-color: #edf2f9 !important;
    opacity: 1;
}

/* Select2 */

.select2-selection__rendered .select2-selection__choice:first-child {
    margin-left: 0px;
}

/* Карточка квартиры */

.section-one {
    margin-top: 1rem;
    margin-bottom: 1rem;
    background-color: rgba(255, 218, 121, 0.3);
    border-radius: 5px;
}

.section-two {
    margin-top: 1rem;
    margin-bottom: 1rem;
    border-radius: 5px;
    background-color: rgba(143, 255, 121, 0.3);
}

/* Квартирограмма */

.chess {
    display: flex;
    column-gap: 1em;
    grid-template-columns: 1fr 1fr;
}

.chess_discounts {
    display: inline-flex;
    overflow: auto;
}

.chess_discounts .chess_flat_cell {
    margin: 0px auto;
}

.chess_discounts .chess_flat {
    width: 40px;
    height: 42px;
    min-width: 45px;
    padding: 5px;
    font-size: 0.7rem;
}

.chess_discounts table {
    border-collapse: collapse ;
    border-spacing: 0;
}

.chess_discounts table .chess_flat {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5px;
    font-size: 1rem;
}

.chess table {
    flex-grow: 1;
}

.chess_legend_verticals tr th {
    padding: 5px 10px;
}

.chess_legend_floor {
    padding: 0px 1em 0px 0px;
    font-weight: 700;
}

.chess_flat {
    display: flex;
    flex-direction: column;
    min-width: 70px;
    padding: 5px 10px;
    font-size: 0.8rem;
    background-color: #e1e3e5;
}

.red {
    background-color: red;
}

.status-0 {
    background-color: #e1e3e5;
}

.status-1 {
    background-color: #20bf6b;
    color: #fff;
}

.status-2 {
    background-color: #ff5e57;
    color: #fff;
}

.status-3 {
    background-color: #ffcf55;
}

.status-4 {
    background-color: #ff9f1a;
}

.status-5 {
    background-color: #ba04f1;
    color: #fff;
}

.chess_flat .number {
    border-radius: 5px;
    background-color: rgba(0,0,0,0.1);
}

/* Галерея */

.card_box_images {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
}

.card_image {
    flex-basis: calc((100% / 2) - 1rem);
    max-width: 340px;
    padding: 10px;
    background-color: #F6F8F9;
}

.card_image_box {
    height: calc(100% - 80px);
    padding: 10px;
    overflow: hidden;
}

.card_image_box .image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: calc(.25rem - 0px);
}

.card_image .card_header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: nowrap;
    align-items: center;
    height: 40px;
    padding: 10px;
}

.card_image .card_footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: nowrap;
    align-items: center;
    height: 40px;
    padding: 10px;
}

.card_control_element {
    font-size: 1.2rem;
    color: #a4b0be;
}