#apaPlan .menu {
    position: relative;
    box-shadow: 0 0 0 1px #CCC;
    overflow: hidden;
}

.layout_menu_btn {
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

#apaPlan .menu .label_button .butt {
    position: relative;
    border: none;
    cursor: pointer;
}

#apaPlan .menu .label_button:hover>.butt.of {
    background: #EEE;
}

#apaPlan .leaf {
    position: absolute;
    left: 0px;
    /* top: 30px; */
    width: 100%;
    height: 100%;
    z-index: 1;
}

.basket .box_img {
    pointer-events: none;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    /* центрируем содержимое по горизонтали */
}

.basket .box_img,
#plans .box_img {
    margin-left: auto;
    margin-right: auto;
}

#plans .box_img {
    position: relative;
}

#plans .box_img img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* контейнер плана занимает всю доступную ширину колонки,
   а фактический размер ограничивается инлайн-стилем width: min(100%, Xpx) */
#plans .get_height_this_block {
    max-width: 100%;
}

/* Центрируем и фиксируем накладки мебели/размеров поверх плана */
#plans img.meb,
#plans img.dim {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
}

.basket .ex_imgbox {
    user-select: none;
}

#apaPlan .leaf .basket {
    position: relative;
    display: inline-block;
    width: 100%;
    height: 100%;
    background: none;
}

#apaPlan .leaf input[name="leafswipe"] {
    display: none;
}

#planRen {
    position: relative;
    margin-bottom: 10px;
    display: none;
}

#planRen .item {
    position: relative;
    display: inline-block;
    cursor: pointer;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin: 4px;
}

#planRen .item.sel {
    width: 9px;
    height: 9px;
}

.width_inherit {
    width: inherit;
}

@keyframes animatedBackground {
    0% {
        background-position: 0 0
    }

    100% {
        background-position: 0px 600px
    }
}

@-moz-keyframes animatedBackground {
    0% {
        background-position: 0 0
    }

    100% {
        background-position: 0px 600px
    }
}

@-webkit-keyframes animatedBackground {
    0% {
        background-position: 0 0
    }

    100% {
        background-position: 0px 600px
    }
}

@-o-keyframes animatedBackground {
    0% {
        background-position: 0 0
    }

    100% {
        background-position: 0px 600px
    }
}

.fonr {
    background-image: url('../../../../img/loaderr.png') !important;
    animation: animatedBackground 18s linear infinite;
    -moz-animation: animatedBackground 18s linear infinite;
    -webkit-animation: animatedBackground 18s linear infinite;
    -o-animation: animatedBackground 18s linear infinite;
    pointer-events: none;
    background-repeat: repeat !important;
}

.line_pre {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.preload_crm {
    min-height: 200px;
    padding: 15px 10px 10px 20px;
    max-width: 450px;
}

.preload_inbox {
    border-radius: 5px;
    background-color: #e7e7e7;
}

.preload_crm_kn_top {
    margin: 10px 0 10px 10px;
    height: 35px;
    flex-grow: 1;
}

.preload_crm_kn_ct {
    margin: 5px 20px 5px 0;
    height: 8px;
    flex-grow: 1;
}

.preload_crm_kn_c {
    margin: 0 10px 20px 0;
    height: 35px;
    flex-grow: 1;
}

.preload_kn_d {
    margin: 0 10px;
    height: 35px;
    width: 35px;
}

.preload_kn_dop {
    justify-content: center;
}

.preload_name {
    margin: 20px 0 10px 0;
    height: 35px;
    max-width: 273px;
    width: 100%;
}

.preload_cvi {
    margin: 65px auto 50px auto;
    height: 40px;
    max-width: 280px;
    width: 100%;
}

.preload_cena {
    margin: 20px 0 10px 0;
    height: 45px;
    max-width: 230px;
    width: 100%;
}

.preload_status {
    height: 35px;
    width: 140px;
}

.preload_kn_add {
    margin: 20px 0 10px 0;
    height: 45px;
    max-width: 250px;
    width: 100%;
}

.preload_info_deals {
    height: 8px;
    max-width: 220px;
    width: 100%;
}

.preload_hr {
    border-top: 1px solid #ddd;
    margin: 20px 0 20px -20px;
}

.wrap_preload_info {
    margin: 10px 85px 10px 20px;
}

.preload_info {
    margin-bottom: 60px;
}

.preload_inbox {
    overflow: hidden;
    position: relative;
    opacity: 0;
    animation: ani 0.5s forwards;
}

.preload_inbox::after {
    content: "";
    position: absolute;
    left: 200%;
    top: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(270deg, #e7e7e7 20%, #fff 55%, #fff 55%, #e7e7e7 80%);
    animation: blink 1.5s infinite ease-in-out;
}

@keyframes blink {
    from {
        left: -150%;
    }

    to {
        left: 100%;
    }
}

@keyframes ani {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.pre_hide {
    display: none;
}

#exportModal .mod .html {
    position: relative;
    padding: 40px;
    border-radius: 9px;
    background: #fff;
    color: #000;
    width: 250px;
    height: 276px;
    /* margin-bottom: 605px; */
}

.kn_sel_status_crm {
    padding: 12px 15px;
    text-align: center;
    border: 1px solid #50A3D9;
    cursor: pointer;
    margin: 10px 0 0 0;
    border-radius: 3px;
    font-size: 16px;
}

.kn_sel_status_crm:hover {
    background-color: #EBECEC;
}

.kn_sel_status_crm_sel {
    background-color: #50A3D9 !important;
}



.arrow_back_com {
    display: inline-block !important;
}

.arrow_back_mob {
    display: none !important;
}

@media all and (max-width: 900px) {
    .arrow_back_com {
        display: none !important;
    }

    .arrow_back_mob {
        display: inline-block !important;
    }

    #apaPlan .menu {
        margin: 0 30px 0 20px;
        margin-bottom: -1px;
    }
}


.btn_ipoteka {
    padding-left: 10px;
    height: 44px;
    line-height: 40px;
    text-align: left;
    box-sizing: border-box;
    cursor: pointer;
}

.btn_ipoteka .mort_arrow {
    width: 13px;
}

.my_scroll_levels {
    max-height: 200px;
    padding: 1px;
    overflow: auto;
    padding-right: 10px;
    max-width: 100vw;
    overflow: hidden;
    overflow-x: auto;
    white-space: nowrap;
    padding: 2px;
}

.my_scroll_levels::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

.my_scroll_levels::-webkit-scrollbar-track {
    background: #fff;
}

.my_scroll_levels::-webkit-scrollbar-thumb {
    background-color: #C3C4C4;
    /* цвет бегунка */
    border-radius: 10px;
    /* округлось бегунка */
}

.type_view_label {
    text-wrap: nowrap;
}

.mobile_visible,
.mobile_visible_flex {
    display: none;
}

@media all and (max-width: 900px) {
    .sort_menu.mob {
        display: flex;
    }

    .sort_menu.com {
        display: none;
    }

    .box_display {
        display: none;
    }

    .link_table_row_row .mobile {
        display: none;
    }

    .mobile_visible {
        display: block !important;
    }

    .mobile_visible_flex {
        display: flex !important;
    }

    .mobile_hidden {
        display: none !important;
    }


    .rooming_cell {
        flex-direction: column;
        align-items: baseline;
        align-self: center;
    }

    .rooming_label {
        font-size: 18px;
    }

    .summ_mobile_cell {
        padding-left: 15%;
        flex-direction: column;
        align-items: center;
        align-self: center;
    }
}

@media all and (min-width: 901px) {
    .parentApaContent {
        overflow: visible;
    }

    .sort_menu.mob,
    .link_table_row_row .mobile {
        display: none;
    }

    .sort_menu.com {
        display: flex;
    }
}

.sort_menu {
    flex-direction: row;
}

.sort_menu_item {
    font-weight: normal;
    /* margin-left: auto;
    margin-right: auto; */
    font-size: 12px;
}

.sorter_header {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.card_header {
    padding-top: 20px;
    padding-bottom: 0px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
}

.card_room_area_row {
    padding-top: 10px;
    padding-bottom: 10px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    font-size: 18px;
}

.cards_card_row {
    padding-bottom: 10px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
}

.cards_tags_row {
    padding-top: 10px;
    padding-bottom: 20px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px 12px;
}

.list_plan_container {
    position: relative;
    vertical-align: top;
    list-style: none;
    font-style: normal;

    width: 75px;
    height: 75px;
    padding: 20px 5px;
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: center;
}

.empty_results {
    display: none;
    flex-wrap: nowrap;
    margin-top: 50px;
    justify-content: space-around;
}

.empty_results .title {
    text-transform: uppercase;
    color: #ccc;
    font-weight: bold;
    font-size: 15px;
    margin-top: 10px;
    margin-left: 15px;
}

/* ==========================
   Desktop: фиксированный правый блок и независимый скролл
   ========================== */
@media all and (min-width: 901px) {

    /* Правый блок (панель цены и кнопок) — без внутренней прокрутки, раскрывается по контенту */
    #apaContent {
        position: static;
        top: auto;
        max-height: none;
        overflow-y: visible;
        overflow-x: visible;
        padding-right: 0px;
        /* небольшой правый отступ, чтобы не прилипало к скроллу */
        padding-left: 0px;
        /* добавляем левый отступ от разделителя */
        box-sizing: border-box;
    }

    /* Делаем правую колонку адаптивной, чтобы всё помещалось по ширине */
    .parentApaContent {
        width: 100%;
        max-width: 560px;
        min-width: 260px;
        box-sizing: border-box;
    }

    /* Левый блок с планом — прокручивается только при переполнении */
    #apaPlan {
        max-height: none;
        overflow: visible !important;
    }

}

/* Дополнительные стили для очень широких экранов */
@media all and (min-width: 1400px) {
    .in_apa_table .cels.l {
        width: 65%;
    }

    .in_apa_table .cels.r {
        width: 35%;
    }

    .parentApaContent {
        max-width: 600px;
    }
}

/* Мобильные — стандартное поведение, без липкости и ограничений высоты */
@media all and (max-width: 900px) {
    #apaContent {
        position: static;
        max-height: none;
        overflow: visible;
    }

    #apaPlan {
        max-height: none;
        overflow: visible !important;
    }
    .my_scroll_levels {max-width: 93vw !important;}
}

.apa_on_level {
    position: relative;
    display: table-row;
    font-size: 14px;
    color: #000;
    fill: #000;
    width: 100%;
    text-decoration: none;
    overflow: hidden;
    background: none;
}

/** Кнопки листания в ипотеке */
.bx-wrapper .bx-pager.bx-default-pager a {
    background: #999;
}
.bx-wrapper .bx-pager.bx-default-pager a:hover,
.bx-wrapper .bx-pager.bx-default-pager a.active,
.bx-wrapper .bx-pager.bx-default-pager a:focus {
background: #999;
}
        
.bx-wrapper .bx-prev,
.bx-wrapper .bx-next {
    opacity: 0;
    background-size: 50px;
    background-repeat: no-repeat;
    /*
    -webkit-filter: drop-shadow( 0px 0px 5px #FFF ) drop-shadow( 0px 0px 4px #FFF ) drop-shadow( 0px 0px 3px #FFF ) drop-shadow( 0px 0px 2px #FFF ); 
    filter: drop-shadow( 0px 0px 5px #FFF ) drop-shadow( 0px 0px 4px #FFF ) drop-shadow( 0px 0px 3px #FFF ) drop-shadow( 0px 0px 2px #FFF ); 
    */
}
.bx-wrapper .bx-prev {
    left: 10px;
    background-position: center left;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' class='svg' viewBox='0 0 400 400' style='transform: rotate(0deg);'%3E%3Cpath fill='%23999' d='M238.77 276.73c3.65,3.65 3.65,9.58 0,13.23 -3.66,3.66 -9.58,3.66 -13.24,0l-89.96 -89.96 89.96 -89.96c3.66,-3.66 9.58,-3.66 13.24,0 3.65,3.65 3.65,9.58 0,13.23l-76.73 76.73 76.73 76.73z' /%3E%3C/svg%3E");
}
.bx-wrapper .bx-next {
    right: 10px;
    background-position: center right;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' class='svg' viewBox='0 0 400 400' style='transform: rotate(180deg);'%3E%3Cpath fill='%23999' d='M238.77 276.73c3.65,3.65 3.65,9.58 0,13.23 -3.66,3.66 -9.58,3.66 -13.24,0l-89.96 -89.96 89.96 -89.96c3.66,-3.66 9.58,-3.66 13.24,0 3.65,3.65 3.65,9.58 0,13.23l-76.73 76.73 76.73 76.73z' /%3E%3C/svg%3E");
}	

@media (max-width: 1229px) {
    .my_scroll_levels {max-width: 50vw;}
}