body {
    font-family: Tahoma!important;
}
body.admin {
    font-size: 14px;
}
.modal_container {
    width: 100%;
    -webkit-border-radius: 13px;
    -moz-border-radius: 13px;
    border-radius: 13px;
    overflow: hidden;
    border: 1px solid #C4C4C4;
}
.auth_main_container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
}
.auth_form_container {
    width: 413px;
    max-width: 90%;
    margin: 0 15px;
}
.serv_modal_title {
    background: #17564B;
}
.serv_modal_title h3 {
    color: #fff;
    text-align: center;
    padding: 15px;
    font-size: 24px;
    line-height: 1;
}
.custom-select:before {
    content: '|';
    display: block;
    color: red;
}
.serv_modal_body {
    padding: 30px;
}
.serv_modal_body label {

    font-style: normal;
    font-weight: normal;
    font-size: 14px;
    line-height: 17px;
    color: #17564B;
}
.serv_modal_body .form-control {
    background: #FFFEFE;
    border: 1px solid #C4C4C4;
    box-sizing: border-box;
    border-radius: 6px;
}
.serv_modal_body .btn.btn-primary{
    background: #17564B;
    border-radius: 21px;
    font-style: normal;
    font-weight: bold;
    font-size: 14px;
    line-height: 17px;
    color: #FFFFFF;
    text-align: center;
    border: none;
    width: 215px;
    text-align: center;
    padding: 15px;
    margin: 0 auto;
    float: none;
    display: block;
    margin-top: 35px;
}
header {
    background: #17564B;
    padding: 10px;
    opacity: 1;
}

.admin-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
}

.admin-logo-link:hover {
    text-decoration: none;
    color: white;
}

.admin-logo {
    height: 32px;
    width: auto;
    margin-right: 10px;
    filter: brightness(0) invert(1);
}

.admin-logo-link h3 {
    margin: 0;
    color: white;
    font-size: 24px;
}

.btn.header_left_button {
    display: flex;
    flex-flow: column;
    align-items: center;
}
.header_left_actions {
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-start;
}
.btn.header_left_button small {
    padding-top: 5px;
    color: #fff;
    font-size: 10px;
}
.main_project_info {
    display: flex;
    flex-flow: column;
    align-items: center;
}
.main_project_info_title {
    text-align: center;
    font-style: normal;
    font-weight: normal;
    font-size: 24px;
    color: #FFFFFF;
    line-height: 1;
}
.main_project_info_name {
    background: #C4C4C4;
    border-radius: 7px;
    font-style: normal;
    font-weight: bold;
    font-size: 18px;
    line-height: 22px;
    color: #0F0E0E;
    border: 1px solid #C4C4C4;
}
.main_project_info_name.form-control {
    max-width: 314px;
    height: auto;
    font-style: normal;
    font-weight: bold;
    font-size: 18px;
    line-height: 22px;
    color: #0F0E0E;
    padding: 5px;
    text-align: center;
}
.header_right_actions .custom-select {
    background: transparent;
    color: white;
    border: none;
    width: auto;
    box-shadow: none;
    display: inline-block;
    display: flex;
    flex: unset;
    flex-flow: row nowrap;
    align-items: center;
}
.header_right_actions .custom-select + .input-group-append {
    margin-left: -34px!important;
}
.header_right_actions .custom-select + .input-group-append label {
    background: none;
    border: none;
    pointer-events: none;
}
.header_right_actions .input-group {
    display: flex;
    flex: unset;
    flex-flow: row nowrap;
    align-items: center;
    width: auto;
    margin-right: 25px;
    margin-bottom: 0!important;
}
.header_right_actions {
    display: flex;
    flex: unset;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: flex-end;
    padding: 0;
}
.header_right_actions .input-group small {
    color: #fff;
    font-weight: 100;
    font-size: 70%;
    line-height: 1;
}
.header_right_actions .custom-select option {
    color: #000;
    background: #fff;
    font-size: 13px;
    padding: 4px;
    border-bottom: 1px solid white;
}
.header_right_actions .custom-select {
    font-weight: bold;
}
.auth_info_container {
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-start;
    align-items: center;
}
.auth_name_container span {
    color: #fff;
}
.auth_icon_container {
    padding: 0 5px;
}
.auth_icon_container img {
    width: 25px;
    height: 25px;
    opacity: 1;
    margin: 0 5px;
    display: block;
    text-align: center;
}
.auth_menu_container {
    position: absolute;
    top: 85%;
    width: 207px;
    right: 0;
    font-size: 13px;
    display: none;
}
.auth_menu_container.open {
    display: block;
}
.main_details_table td {
    border: 1px solid #C4C4C4;
    padding: 9px 3px;
    font-size: 13px;
    text-align: center;
}
.main_details_table th {
    background: #C4C4C4;
    font-size: 13px;
    padding: 3px 7px;
    text-align: center;
}
.main_details_table {
    border-spacing: 6px 6px;
    border-collapse: separate;
    margin-top: 30px;
    width: 100%;
}
.main_details_table tr td:first-child {
    background: #17564B;
    color: #fff;
    text-align: center;
}
.rangel_items_container {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: stretch;
}
.rangel_items_container input[type="number"] {
    width: 78px;
    background: #FFFEFE;
    border: 1px solid #C4C4C4;
    box-sizing: border-box;
    border-radius: 6px;
    text-align: center;
}
.rangel_item_container {
    margin: 0 9px;
}
.rangel_image_container {
    margin-bottom: 5px;
}
.glue_table_select {
    width: 100px;
}
.main_details_table .mr-sm-2 {
    margin-right: 0!important;
}
.main_details_table .custom-control-label::after {
    width: 23px;
    height: 23px;
}
.main_details_table .custom-control-label::before {
    width: 23px;
    height: 23px;
}
.main_details_table .form-group {
    margin-bottom: 0;
}
.auth_menu_container {
    z-index: 3;
}
.index_action_button {
    width: 60px;
    height: 60px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
    background-color: #17564B;
    margin-bottom: 14px;
}
.index_action_button img {
    width: 100%;
}
.main_actions_button {
    margin-top: 30px;
}
.adds_menu_container {
    background: #C4C4C4;
    border-radius: 13px;
    width: 300px;
    position: absolute;
    padding: 30px;
    top: 60px;
    right: 43px;
    z-index: 4;
    display: none;
}
.adds_menu_container.open {
    display: block;
}
.adds_menu_button {
    width: 100%;
    background: #17564B;
    border-radius: 21px;
    color: white;
    text-align: left;
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-start;
    align-items: center;
}
.adds_menu_button:not(:last-child) {
    margin-bottom: 15px;
}
.main_actions_button {
    display: flex;
    flex-flow: column;
    align-items: flex-end;
}
.add_new_details {
    position: relative;
}
.add_new_details.open {
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
    z-index: 5;
}
.adds_menu_button:before {
    content: ' ';
    width: 31px;
    height: 31px;
    display: block;
    background-image: url(../img/icons/adds_menu_button.svg);
    background-repeat: no-repeat;
    background-position: center;
    -webkit-background-size: contain;
    background-size: contain;
    left: -6px;
    position: relative;
}
.transition_middle {
    -webkit-transition-property: all;
    -moz-transition-property: all;
    -ms-transition-property: all;
    -o-transition-property: all;
    transition-property: all;
    -webkit-transition-delay: 0ms;
    -moz-transition-delay: 0ms;
    -ms-transition-delay: 0ms;
    -o-transition-delay: 0ms;
    transition-delay: 0ms;
    -webkit-transition-duration: 300ms;
    -moz-transition-duration: 300ms;
    -ms-transition-duration: 300ms;
    -o-transition-duration: 300ms;
    transition-duration: 300ms;
    -webkit-transition-timing-function: linear;
    -moz-transition-timing-function: linear;
    -ms-transition-timing-function: linear;
    -o-transition-timing-function: linear;
    transition-timing-function: linear;
}



.modal-header {
    background: #17564B;
    color: #fff;
    text-align: center;
}
.modal-content {
    border-radius: 14px!important;
    background: #fff;
    overflow: hidden;
    border: none;
    outline: none;
}
.modal-title {
    width: 100%;
}
.modal-dialog.full {
    width: 97%;
    max-width: 97%;
    min-width: 97%;
    height: 97%;
}
.full .modal-content {
    height: 97%;
}
.order_checkout_table {
    padding: 9px 30px;
}
.order_checkout_table h4 {
    font-style: normal;
    font-weight: bold;
    font-size: 18px;
    line-height: 29px;
    color: #000000;
}
.order_checkout_table .main_details_table {
    margin-top: 0;
    margin-bottom: 30px;
}
.order_checkout_table .main_details_table td {
    padding: 15px 4px;
}

.boot_modal_container .modal-footer .row {
    width: 100%;
}
.confirm_order_button:before {
    background-image: url(../img/icons/send.svg);
    height: 21px;
    width: 21px;
    margin-left: 9px;
    margin-right: 9px;
}
.confirm_order_button {
    width: 213px;
    height: 51px;
    float: right;
}
.modal-header {
    height: 65px;
}
.modal-footer {
    height: 100px;
}
.modal-body {
    height: calc(100% - 131px);
    overflow-y: scroll;
    opacity: 1;
}
/*
.modal-open .modal {
    overflow: hidden;
}
*/
.modal.show .modal-dialog {
    margin: 1.5% auto;
}
.order_checkout_comment {
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-start;
}
.order_checkout_comment textarea {
    height: 71px;
    color: #000;
    font-size: 13px;
}
.order_checkout_comment label {
    font-style: normal;
    font-weight: normal;
    font-size: 13px;
    line-height: 17px;
    color: #000000;
    padding-right: 9px;
}
.order_checkout_info {
    display: flex;
    flex-flow: column;
    justify-content: center;
}
.order_checkout_item b {
    font-size: 13px;
}
.order_checkout_item small {
    font-size: 11.3px;
}
.order_checkout_info_container {
    display: flex;
    flex-flow: column;
    justify-content: center;
}
.order_checkout_comment {
    margin-bottom: 0;
}
.modal-dialog.standart {
    max-width: 609px;
}
.standart_service_button {
    background: #17564B;
    border-radius: 21px;
    font-style: normal;
    font-weight: bold;
    font-size: 14px;
    line-height: 17px;
    color: #FFFFFF;
    text-align: center;
    border: none;
    width: 215px;
    text-align: center;
    padding: 15px;
    margin: 0px auto;
    float: right;
    display: block;
}
.standart .modal-footer {
    height: auto;
}
.modal_clear_render_template {
    position: relative;
}
.modal_clear_render_template > button.close {
    position: absolute;
    top: 9px;
    right: 9px;
    opacity: 1;
    z-index: 5;
}
.handlers_variant_container {
    background-color: #17564B;
    padding: 0;
    height: 100%;
}
.handler_item_name {
    color: #fff;
    padding-left: 15px;
}
.modal-content.modal_clear_render_template .modal-body {
    padding: 0;
}
.handlers_variant_item_container {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    padding-top: 0;
}
.handlers_variant_item_container:not(:last-child) {
    margin-bottom: 15px;
    border-bottom: 1px solid #C4C4C4;
    padding: 15px;
    padding-top: 0;
}
.handlers_variant_item_container:first-child {
    padding-top: 15px;
}
.item_handler_checked_inner {
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
    background-color: #fff;
    width: 31px;
    height: 31px;
}
.handlers_variant_item_container > div:first-child {
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
}
.item_handler_checked_inner.active:before {
    content: ' ';
    background-color: red;
    width: 21px;
    height: 21px;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
    display: block;
}
.modal_clear_render_template .modal-body .col-md-3 {
    height: 100%;
    padding-right: 0;
}
.modal_clear_render_template .modal-body > .row {
    height: 100%;
}
.modal_clear_render_template .modal-body {
    overflow: hidden;
}
.handler_detail_image {
    max-width: 85%;
    margin: 15px auto;
    max-height: 95%;
    height: 100%;
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
}
.text_handlers_info_container {
    border-top: 1px solid #C4C4C4;
}
.handlers_variant_container {
    font-size: 13px;
}
.handler_item_image img {
    width: 41px;
    height: 41px;
}
.handler_parametrs_container {
    padding-top: 15px;
    opacity: 1;
    padding-right: 15px;
    padding-left: 15px;
}
.handler_parametrs_container label {
    font-size: 13px;
}
.text_handlers_info_container > .col-md-8 {
    padding: 0;
}
.text_handlers_info_container > .col-md-4 {
    padding: 0;
}
.modal_clear_render_template .modal-body .col-md-4:last-child {
    border-left: 1px solid #C4C4C4;
    padding-left: 0;
    max-height: 100%;
}
.set_details_handlers {
    padding: 10px;
    height: 100%;
    overflow: hidden;
    overflow-y: scroll;
    max-width: 97%;
}
.set_details_handlers h4 {
    font-size: 14px;
    font-weight: bold;
    opacity: 1;
    padding-bottom: 9px;
}
.set_details_handlers td {
    font-size: 13px;
}
.set_details_handlers td img {
    height: 16px;
    width: 16px;
    display: block;
}
.handlers_image_container {
    height: calc(100% - 300px);
}
.text_handlers_info_container {
    height: 237px;
    overflow: hidden;
    opacity: 1;
}
.account_info_container .nav.nav-tabs {
    display: flex;
    flex-flow: column;
    justify-content: flex-start;
    align-items: flex-start;
    border-radius: 9px;
    overflow: hidden;
}
.account_info_container .nav.nav-tabs li {
    width: 100%;
    border: 1px solid #C4C4C4;
    text-align: left;
    color: #17564B;
}
.account_info_container .nav.nav-tabs li a.active {
    color: white;
    background: #17564B;
    opacity: 1;
    border: none;
    border-radius: 0;
}
.account_info_container .nav.nav-tabs li a {
    width: 100%;
    text-align: left;
    color: #17564B;
    padding-top: 15px;
    padding-bottom: 15px;
    border-radius: 9px;
    opacity: 1;
}
.account_main_header {
    margin-top: 30px;
}
.auth_name_container span {
    font-size: 13px;
}
.main_details_table.account_orders_table {
    margin-top: 0;
}
.add_new_project_button {
    width: 195px;
    opacity: 1;
    float: right;
    margin-bottom: 15px;
}
footer {
    width: 100vw;
    padding: 15px;
    border-top: 3px solid #17564B;
    position: fixed;
    bottom: 0;
    left: 0;
    min-height: 60px;
    background: white;
    z-index: 9;
}
.btn, .btn:before {
    -webkit-transition-property: all;
    -moz-transition-property: all;
    -ms-transition-property: all;
    -o-transition-property: all;
    transition-property: all;
    -webkit-transition-delay: 0ms;
    -moz-transition-delay: 0ms;
    -ms-transition-delay: 0ms;
    -o-transition-delay: 0ms;
    transition-delay: 0ms;
    -webkit-transition-timing-function: linear;
    -moz-transition-timing-function: linear;
    -ms-transition-timing-function: linear;
    -o-transition-timing-function: linear;
    transition-timing-function: linear;
    -webkit-transition-duration: 300ms;
    -moz-transition-duration: 300ms;
    -ms-transition-duration: 300ms;
    -o-transition-duration: 300ms;
    transition-duration: 300ms;
}
.btn:hover:before {
    width: 43px;
}
.btn:hover {
    color: white;
}
.material_image_container img {
    width: 54px;
    height: 54px;
    opacity: 1;
}
.material_new_modal_container .col-md-3 {
    padding-right: 0px;
}
.material_new_modal_container .material_image_container {
    -webkit-border-radius: 9px;
    -moz-border-radius: 9px;
    border-radius: 9px;
    overflow: hidden;
    border: 1px solid #C4C4C4;
    width: 54px;
    height: 54px;
    margin: 0 auto;
}
.material_new_modal_container .row {
    margin: 0;
}
.material_new_modal_container .col-md-9 {
    padding-left: 0;
    height: 100%;
}
.material_new_modal_container table td {
    vertical-align: middle;
    text-align: center;
    opacity: 1;
    font-size: 13px;
}
.material_new_table_container {
    width: 100%;
    max-height: 100%;
    overflow: hidden;
    overflow-y: scroll;
}
.material_new_modal_container .col-md-9 > .material_new_table_container_row {
    height: 100%;
}
.table.table-bordered {
    max-height: 100%;
}
.material_new_modal_container .material_type_list_container {
    background: #17564B;
    display: flex;
    flex-flow: column;
    justify-content: space-between;
}
.material_new_modal_container .material_type_list_container .card-header {
    background: #17564B;
    border-bottom: 1px solid white;
}
.material_new_modal_container .material_type_list_container .card-header button {
    color: #fff;
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-start;
    align-items: center;
}
.material_type_list_container .card {
    border: none;
}
.material_new_modal_container .material_type_list_container .card-header button img {
    width: 23px;
    border: 1px solid white;
    padding: 3px;
    display: block;
    margin-right: 9px;
}
.material_new_modal_container  thead th {
    text-align: center;
}
.material_type_list_child {
    padding-left: 45px;
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-start;
    align-items: center;
    cursor: pointer;
}
.material_type_list_child > img {
    width: 23px;
    height: 23px;
    border: 1px solid black;
    padding: 3px;
    margin-right: 9px;
}
.material_search_button {
    border: 1px solid #fff;
    float: right;
    width: 165px;
    margin-right: 15px;
}
.materials_search_container {
    color: #fff;
    padding: 15px;
    margin-top: 10px;
    margin-bottom: 15px;
}
.material_search_input {
    margin: 14px auto;
}
.material_search_button:before {
    background-image: url(../img/icons/search.svg);
    width: 25px;
    height: 25px;
    left: -4.1px;
    padding-left: 19px;
}
.material_filter_button:before {
    background-image: url(../img/icons/filter.svg);
    width: 21px;
    height: 21px;
}
.material_filter_button {
    float: right;
}
.table_details_tds_edit_container button img {
    display: block;
    width: 15px;
    height: 15px;
}
.table_details_tds_edit_container {
    position: relative;
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
    padding-right: 19px;
    text-align: center;
    padding-left: 19px;
}
.table_details_tds_edit_container button {
    display: none;
    position: absolute;
    right: -5px;
}
.table_details_tds_edit_container:hover button {
    display: block;
}
.table_details_tds_edit_container .card.card-body {
    position: absolute;
    right: 0;
    top: 25px;
    z-index: 10;
    background-color: #17564B;
}
.table_details_tds_edit_container .card.card-body input {
    padding: 9px;
    font-size: 13px;
    font-weight: 400;
    text-align: center;
}
.version_popover_container {
    display: flex;
    flex-flow: column-reverse;
    justify-content: flex-start;
}
.version_popover_container a:not(:first-child) {
    padding-bottom: 9px;
}
body {
    padding-bottom: 45px;
}
.table_edit_sizes_separator {
    padding: 5px 0;
    color: white;
    text-align: center;
}
.main_subtitle_container {
    margin-top: 45px;
    font-size: 19px;
    margin-bottom: 9px;
    font-weight: bold;
}
.constructor_page_main_container .main_details_table {
    margin-top: 5px;
}
.main_work_desktop {
    justify-content: center;
    margin-top: 27px;
    opacity: 1;
}
.main_work_desktop.nav-tabs .nav-link.active {
    color: white;
    background-color: #17564a;
    border-color: #17564a;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
    outline: none;
}
.main_work_desktop.nav-tabs {
    border-color: #17564a;
}
.main_work_desktop.nav-tabs .nav-link {
    border-color: #17564a;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
    color: #17564a;
}
.main_work_desktop.nav-tabs .nav-item {
    margin-bottom: -1px;
    margin-right: 3px;
    margin-left: 3px;
}
.main_work_desktop.nav-tabs .nav-link:focus, .nav-tabs .nav-link:hover {
    border-color: #17564a5e;
}
.materials_filters_container {
    position: relative;
}
.materials_filters_container .card.card-body {
    position: absolute;
    left: 96%;
    bottom: -37px;
    background: #C4C4C4;
    z-index: 10;
    width: 400px;
    height: 349px;
    box-shadow: 0 0 15px gray;
}
.material_added_list {
    position: absolute;
    top: 0;
    background: #C4C4C4;
    right: 15px;
    height: 100%;
    width: 35px;
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-start;
    align-items: stretch;
}
.material_new_table_container_row {
    padding-right: 35px;
}
.material_added_list_header {
    min-width: 35px;
}
.material_added_list_header img {
    width: 30px;
    transform: rotate(90deg);
    display: block;
    margin: 47.5vh auto;
}
.material_added_list.open {
    width: 75%;
    box-shadow: 0 0 65px #716d6d;
}
.material_added_list table {
    width: calc(100% - 35px);
    height: 100%;
    margin: 0;
}
#add_new_material .modal_clear_render_template > button.close {
    position: absolute;
    top: -3px;
    right: -8px;
    opacity: 1;
    z-index: 5;
}
.material_added_list table {
    width: calc(100% - 35px);
    height: auto;
    margin: 0;
    max-height: unset;
}
.material_added_list_header {
    border-right: 1px solid white;
}
.material_added_list.open .material_added_list_header img {
    transform: rotate(-90deg);
}
.rangel_input_container {
    display: none;
}
.details_table_header_title {
    padding-left: 30px;
}
.details_table_header_title_inner {
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-start;
    align-items: center;
}
.details_table_header_title_inner img {
    margin-left: 15px;
}
.detail_table_part_tds_sizes_container {
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-start;
    align-items: flex-start;
}
.detail_table_part_tds_sizes_container div {
    margin: 0 5px;
}
.detail_table_part_tds_width {
    display: flex;
    flex-flow: column;
    justify-content: flex-start;
    align-items: center;
}
.detail_table_part_tds_length {
    display: flex;
    flex-flow: column;
    justify-content: flex-start;
    align-items: center;
}
.detail_table_part_tds_width img {
    height: 24px;
    margin-top: 3px;
    opacity: 1;
}
.detail_table_part_tds_length img {
    transform: rotate(90deg);
    height: 21px;
    margin-top: 4px;
}
.detail_table_part_tds_width_input {
    display: flex;
    flex-flow: column;
    justify-content: flex-start;
    align-items: center;
}
.detail_table_part_tds_width_input img {
    width: 25px;
    margin-bottom: 5px;
    opacity: 1;
}
.detail_table_part_tds_length_input {
    display: flex;
    flex-flow: column;
    justify-content: flex-start;
    align-items: center;
}
.detail_table_part_tds_length_input img {
    width: 25px;
    margin-top: 9px;
    opacity: 1;
    transform: rotate(90deg);
}
.rangel_item_container {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    margin-top: 9px;
}
.rangel_items_container {
    flex-flow: column;
}
.rangel_image_container {
    margin-right: 5px;
}
.materials_band_selector {
    width: 175px;
}
.glue_band_selector {
    width: 75px;
}
.rangel_input_style {
    width: 78px;
}
.handlers_variant_container_column {
    position: absolute;
    left: -15px;
    top: 0;
    z-index: 9;
}
.handlers_variant_container_column_scroll {
    position: absolute;
    top: 50%;
    right: 0;
}
.handlers_variant_container_column_scroll img {
    width: 25px;
}
.handlers_variant_container {
    padding-right: 30px;
    overflow: hidden;
}
.handlers_variant_container:after {
    width: 1px;
    height: 100%;
    content: ' ';
    display: block;
    position: absolute;
    top: 0;
    right: 30px;
    z-index: 9;
    background: #fff;
}
.modal_clear_render_template .modal-body .col-md-3 {
    width: 43px;
}
.modal_clear_render_template .modal-body .col-md-3.open {
    width: 100%;
}
.modal_clear_render_template .modal-body .col-md-3.open .handlers_variant_container_column_scroll {
    -webkit-transform: rotate(90deg);
    -moz-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    -o-transform: rotate(90deg);
    transform: rotate(90deg);
}
.modal_clear_render_template .modal-body .col-md-3 .handlers_variant_container_column_scroll {
    -webkit-transform: rotate(-90deg);
    -moz-transform: rotate(-90deg);
    -ms-transform: rotate(-90deg);
    -o-transform: rotate(-90deg);
    transform: rotate(-90deg);
}
.col-md-12.main_handlers_info_container {
    padding-left: 59px;
}
.modal_clear_render_template .modal-body .handler_parametrs_container .col-md-4:last-child {
    border: none;
}
.main_loader_container {
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.85);
}
#handlers_setted_list_table tr.active {
    background: rgba(5,5,5,0.4);
}
.handlers_window_actions > .form-group {
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-start;
    align-items: center;
}
.handlers_window_actions > .form-group label {
    margin-right: 15px;
    margin-bottom: 0;
}
.handlers_window_actions {
    margin: 9px;
}
.handlers_window_actions > .form-group select {
    width: 195px;
}
.handlers_main_parametrs_bar {
    border-bottom: 1px solid #C4C4C4;
}
.cube_isometric_container svg {
    width: 70px;
    height: 36px;
    opacity: 1;
}
.add_handlers_input_label_formula {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
    position: relative;
}
.add_handlers_input_label_formula img {
    height: 21px;
}
.formula_input_container {
    position: absolute;
    right: 0;
    top: 24px;
    display: none;
}
.formula_input_container.open {
    display: block;
}
.formula_input_container input {
    border: 1px solid #17564B;
}
.handler_icon_info_image:hover + .handlers_modal_system_coordinate_info {
    display: block;
}
.handlers_modal_system_coordinate_info {
    width: 400px;
    height: 185px;
    position: absolute;
    top: 30px;
    border: 1px solid lightgray;
    left: 54px;
    display: none;
    border-radius: 9px;
    box-shadow: 0 0 5px lightgray;
}
.handler_icon_info_image {
    width: 34px;
    height: 34px;
    opacity: 0.9;
    margin-top: 15px;
    display: block;
}

header {
    background: #17564B;
    padding: 10px;
    opacity: 1;
}
.btn.header_left_button {
    display: flex;
    flex-flow: column;
    align-items: center;
}
.header_left_actions {
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-start;
}
.btn.header_left_button small {
    padding-top: 5px;
    color: #fff;
    font-size: 10px;
}
.header_right_actions .custom-select {
    background: transparent;
    color: white;
    border: none;
    width: auto;
    box-shadow: none;
    display: inline-block;
    display: flex;
    flex: unset;
    flex-flow: row nowrap;
    align-items: center;
}
.header_right_actions .custom-select + .input-group-append {
    margin-left: -34px!important;
}
.header_right_actions .custom-select + .input-group-append label {
    background: none;
    border: none;
    pointer-events: none;
}
.header_right_actions .input-group {
    display: flex;
    flex: unset;
    flex-flow: row nowrap;
    align-items: center;
    width: auto;
    margin-right: 25px;
    margin-bottom: 0!important;
}
.header_right_actions {
    display: flex;
    flex: unset;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: flex-end;
    padding: 0;
}
.header_right_actions .input-group small {
    color: #fff;
    font-weight: 100;
    font-size: 70%;
    line-height: 1;
}
.header_right_actions .custom-select option {
    color: #000;
    background: #fff;
    font-size: 13px;
    padding: 4px;
    border-bottom: 1px solid white;
}
.header_right_actions .custom-select {
    font-weight: bold;
}
.header_right_actions .custom-select option {
    color: #000;
    background: #fff;
    font-size: 13px;
    padding: 4px;
    border-bottom: 1px solid white;
}
.custom-select:before {
    content: '|';
    display: block;
    color: red;
}
.header_right_actions .custom-select {
    background: transparent;
    color: white;
    border: none;
    width: auto;
    box-shadow: none;
    display: inline-block;
    display: flex;
    flex: unset;
    flex-flow: row nowrap;
    align-items: center;
}
.header_right_actions .input-group {
    display: flex;
    flex: unset;
    flex-flow: row nowrap;
    align-items: center;
    width: auto;
    margin-right: 25px;
    margin-bottom: 0!important;
}
.auth_info_container {
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-start;
    align-items: center;
}
.auth_icon_container img {
    width: 25px;
    height: 25px;
    opacity: 1;
    margin: 0 5px;
    display: block;
    text-align: center;
}
.auth_name_container span {
    color: white;
}
.exit_admin_container {
    margin-right: 2%;
    margin-left: 2%;
}
.exit_admin_container a {
    color: black;
    background-color: white;
    padding: 10px 15px;
    border-radius: 21px;
    font-size: 15px;
    font-weight: 400;
}
.header-admin-title h3 {
    color: white;
}
.admin-table {
    border-spacing: 6px 6px;
    border-collapse: separate;
    /*margin-top: 30px;*/
    width: 100%;
}
.admin-table.table-sm {
    border-spacing: 1px 1px;
}
.admin-table > thead > tr > th {
    background: #C4C4C4;
    font-size: 13px;
    padding: 3px 7px;
    text-align: center;
    white-space: normal !important;
    word-wrap: break-word;
    vertical-align: middle;
}

/* Переопределение стилей floatThead для переноса текста */
.floatThead-container {
    overflow-x: hidden !important;
}
.floatThead-container > .admin-table.floatThead-table {
    border-spacing: 0;
}
.floatThead-container > .admin-table.floatThead-table th {
    padding-bottom: 6px;
}
.floatThead-container thead tr th,
.admin-table.floatThead-table > thead > tr > th,
.floatThead-wrapper .admin-table > thead > tr > th,
body.admin .admin-table > thead > tr > th,
body.admin .table.admin-table > thead > tr > th {
    white-space: normal !important;
    word-wrap: break-word !important;
}

/* Перенос текста для ячеек таблицы */
.admin-table-info td,
body.admin .admin-table-info td,
body.admin .table.admin-table-info td {
    white-space: normal !important;
    word-wrap: break-word !important;
}

.floatThead-container tbody tr td,
.admin-table.floatThead-table > tbody > tr > td,
.floatThead-wrapper .admin-table > tbody > tr > td,
body.admin .admin-table > tbody > tr > td,
body.admin .table.admin-table > tbody > tr > td {
    white-space: normal !important;
    word-wrap: break-word !important;
}
.admin-table-info td:first-child {
    background: #17564B;
    color: #fff;
    text-align: center;
}
.admin-table-info.no-first-td td:first-child {
    background: #FFF !important;
    color: #000 !important;;
}
.admin-table-info td {
    border: 1px solid #C4C4C4;
    padding: 9px 3px;
    font-size: 13px;
    text-align: center;
    min-width: 100px;
}
.table-sm .admin-table-info td {
    min-width: 48px;
    padding: 3px 2px;
}
.table_edit_button {
    display: none;
    background: none;
    border: none;
    box-shadow: none;
    position: absolute;
    right: 5px;
    transition-property: all;
    transition-duration: 300ms;
    transition-timing-function: linear;
}
.admin-table-info td:hover .table_edit_button,
.table_td_with_edit:hover .table_edit_button {
    display: block !important;
}
.table_edit_button img {
    max-height: 14px;
}
.table_td_with_edit {
    position: relative;
}
.table_td_with_edit_inner {
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
    position: relative;
    padding-right: 9px;
}
.table_td_with_edit .collapse {
    position: absolute;
    top: 95%;
    right: 0;
    opacity: 1;
    z-index: 15;
}
.table_td_with_edit_collapse {
    position: absolute;
    right: 0;
    min-width: 320px;
    max-width: 400px;
}

/* Для первых четырех столбцов попапы открываются влево */
tr > td:nth-child(1) .table_td_with_edit .collapse,
tr > td:nth-child(2) .table_td_with_edit .collapse,
tr > td:nth-child(3) .table_td_with_edit .collapse,
tr > td:nth-child(4) .table_td_with_edit .collapse {
    left: 0;
    right: auto;
    z-index: 100500;
}

tr > td:nth-child(1) .table_td_with_edit_collapse,
tr > td:nth-child(2) .table_td_with_edit_collapse,
tr > td:nth-child(3) .table_td_with_edit_collapse,
tr > td:nth-child(4) .table_td_with_edit_collapse {
    left: 0;
    right: auto;
    z-index: 100500;
}
.table_td_with_edit_collapse .card {
    max-height: 400px;
    overflow-y: auto;
    z-index: 100500;
}

/* Для последней строки таблицы popup открывается вверх.
   :not(:first-child) — когда строка в таблице ОДНА, открывать вверх нельзя:
   попапу некуда идти, он уезжает выше контейнера .admin-table-scroll и тот
   его обрезает — на экране видно только нижний край карточки с кнопкой
   сохранения (жалоба «не видно всё окно», фильтр по одному клиенту). */
tbody tr:last-child:not(:first-child) .table_td_with_edit_collapse {
    top: auto;
    bottom: 0;
    z-index: 100500;
}

/* Раскрытая карточка редактирования выносится во всплывающий слой (JS,
   admin/js/main.js): position: fixed по координатам ячейки. Иначе её режет
   любой overflow-родитель — .admin-table-scroll, а в медиа-запросах он ещё и
   с !important, так что «отключить обрезание» надёжно не получается. */
.table_td_with_edit_collapse.is-floating {
    position: fixed !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 100600;
    box-shadow: 0 10px 30px rgba(23, 32, 44, .22);
}

/* Карточка не должна вылезать за экран по высоте на маленьких мониторах. */
.table_td_with_edit_collapse .card {
    max-height: min(400px, 70vh);
}
.admin_created_button a:before {
    content: ' ';
    width: 31px;
    height: 31px;
    display: block;
    background-image: url(../../img/icons/adds_menu_button.svg);
    background-repeat: no-repeat;
    background-position: center;
    -webkit-background-size: contain;
    background-size: contain;
    left: -6px;
    position: relative;
}
.admin_created_button a {
    background: #17564B;
    border-radius: 21px;
    color: white;
    text-align: left;
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-start;
    align-items: center;
    width: 10%;
    min-width: 130px;
    margin-top: 30px;
    margin-bottom: 10px;

}
.admin-delte-button {
    max-height: 20px;
}
.admin-table-scroll {
    width: 100%;
    /* max-height: calc(100vh - 200px); */ /* DISABLED - allow tables to grow to full content height */
    overflow-x: auto;
    /* overflow-y: auto; */ /* DISABLED - use page scroll instead of container scroll */
}

/* Fix floatThead wrapper to prevent table from expanding it */
.floatThead-wrapper {
    width: 100% !important;
    max-width: 100% !important;
}

.table-responsive {
    position: relative;
}

.admin-add-block-flex-container {
    display: flex;
    flex-flow: row nowrap;
    margin-bottom: 20px;
}
.admin-add-block {
    display: flex;
    flex-flow: row nowrap;
}
.admin-add-block-flex-container .admin-add-block:first-child {
    margin-left: 0 !important;
}
.admin-add-block-flex-container .admin-add-block {
    margin-left: 20px;
    display: flex;
    flex-flow: column;
}
.admin-add-block-flex-container .admin-add-block select {
    min-width: 200px;
}
.admin-add-title {
    margin: 30px 0;
}
.admin-filters-row {
    margin-top: 30px;
}
.admin-filters-row .col-md-12 {
    display: flex;
    justify-content: space-around;
}
.admin-filters-block {
    display: flex;
    flex-flow: column;
}
.admin-hidden {
    display: none;
}
.admin-add-block input[type="checkbox"] {
    width: 20px;
}
.btn-pass-generation {
    margin-left: 10px;
}
.filters-btn button {
    margin-bottom: 10px;
}
.admin-tab-content {
    margin-top: 20px;
}
.admin-flex-column {
    display: flex;
    flex-flow: column;
    margin-right: 20px;
}
.admin-not-column {
    display: flex;
    flex-flow: row nowrap!important;
}
.dropdown-menu-admin {
    left: 100%!important;
    top: -100%!important;
    padding: 0;
}
.admin-menu {
    display: block;
    width: 100%;
}

.admin-menu .nav {
    flex-direction: column;
}

.admin-menu .nav-item {
    position: relative;
}

.admin-menu li a {
    background-color: #17564b !important;
    color: white !important;
    min-height: 50px;
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    border-radius: 4px;
    margin-bottom: 2px;
    transition: background-color 0.2s ease;
}

.admin-menu li a:hover {
    background-color: #1a6155 !important;
    color: white !important;
}

.admin-menu .dropdown-toggle {
    position: relative;
    cursor: pointer;
}

.admin-menu .dropdown-toggle:after {
    content: "+";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
    transition: transform 0.3s ease;
}

.admin-menu .nav-item.dropdown.show .dropdown-toggle:after {
    content: "-";
    transform: translateY(-50%) rotate(0deg);
}

.admin-menu li {
    margin-bottom: 5px!important;
    list-style: none;
}

.admin-menu .dropdown-menu-admin {
    display: none;
    position: static;
    background: #f8f9fa;
    border: none;
    box-shadow: none;
    margin-top: 0;
    margin-left: 15px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.admin-menu .nav-item.dropdown.show .dropdown-menu-admin {
    display: block;
    max-height: 400px;
    overflow-y: auto;
}

.admin-menu .dropdown-menu-admin a {
    background-color: #f8f9fa !important;
    color: #17564b !important;
    padding: 8px 16px;
    margin-bottom: 1px;
}

.admin-menu .dropdown-menu-admin a:hover {
    background-color: #e9ecef !important;
    color: #17564b !important;
}

.admin-menu .dropdown-menu-admin a.active {
    background-color: #17564b !important;
    color: white !important;
}
.list-group-item.active, .dropdown-toggle.active {
    background-color: white!important;
    border: 1px #17564b solid !important;
    color: #17564b !important;
}
.select2-container {
    width: 450px;
}
body {
    padding-bottom: 70px;
}
.hide_this_type {
    display: none!important;
}

.btn-custom-green {
    background: #17564B;
    border-radius: 21px;
    color: white;
}
.has-error input, .has-error select, .has-error textarea { border-color: red; }
.has-error .help-block-error { color: red; }


/* fraola */
.fr-wrapper > div:first-child,
.fr-box .second-toolbar #logo {
    display:none !important;
}
.has-error .fr-box { border: 1px solid red; }
/* fraola */

#yii2-file-title-editor { background: #FFF; }

.modal-xxl {
    max-width: 80%;
}

.btn-xs,
.btn-group-xs > .btn {
    padding: 1px 5px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 3px;
}

/* ifurn-custom--checkbox-1 */
.ifurn-custom--checkbox-1 .tgl {
    display: none;
}
.ifurn-custom--checkbox-1 .tgl,
.ifurn-custom--checkbox-1 .tgl:after,
.ifurn-custom--checkbox-1 .tgl:before,
.ifurn-custom--checkbox-1 .tgl *,
.ifurn-custom--checkbox-1 .tgl *:after,
.ifurn-custom--checkbox-1 .tgl *:before,
.ifurn-custom--checkbox-1 .tgl + .tgl-btn {
    box-sizing: border-box;
}
.ifurn-custom--checkbox-1 .tgl::-moz-selection,
.ifurn-custom--checkbox-1 .tgl:after::-moz-selection,
.ifurn-custom--checkbox-1 .tgl:before::-moz-selection,
.ifurn-custom--checkbox-1 .tgl *::-moz-selection,
.ifurn-custom--checkbox-1 .tgl *:after::-moz-selection,
.ifurn-custom--checkbox-1 .tgl *:before::-moz-selection,
.ifurn-custom--checkbox-1 .tgl + .tgl-btn::-moz-selection,
.ifurn-custom--checkbox-1 .tgl::selection,
.ifurn-custom--checkbox-1 .tgl:after::selection,
.ifurn-custom--checkbox-1 .tgl:before::selection,
.ifurn-custom--checkbox-1 .tgl *::selection,
.ifurn-custom--checkbox-1 .tgl *:after::selection,
.ifurn-custom--checkbox-1 .tgl *:before::selection,
.ifurn-custom--checkbox-1 .tgl + .tgl-btn::selection {
    background: none;
}
.ifurn-custom--checkbox-1 .tgl + .tgl-btn {
    outline: 0;
    display: block;
    width: 4em;
    height: 2em;
    position: relative;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.ifurn-custom--checkbox-1 .tgl + .tgl-btn:after,
.ifurn-custom--checkbox-1 .tgl + .tgl-btn:before {
    position: relative;
    display: block;
    content: "";
    width: 50%;
    height: 100%;
}
.ifurn-custom--checkbox-1 .tgl + .tgl-btn:after {
    left: 0;
}
.ifurn-custom--checkbox-1 .tgl + .tgl-btn:before {
    display: none;
}
.ifurn-custom--checkbox-1 .tgl:checked + .tgl-btn:after {
    left: 50%;
}

.ifurn-custom--checkbox-1 .tgl-flip + .tgl-btn {
    padding: 2px;
    transition: all 0.2s ease;
    font-family: sans-serif;
    perspective: 100px;
}
.ifurn-custom--checkbox-1 .tgl-flip + .tgl-btn:after,
.ifurn-custom--checkbox-1 .tgl-flip + .tgl-btn:before {
    display: inline-block;
    transition: all 0.4s ease;
    width: 100%;
    text-align: center;
    position: absolute;
    line-height: 2em;
    font-weight: bold;
    color: #fff;
    position: absolute;
    top: 0;
    left: 0;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 4px;
}
.ifurn-custom--checkbox-1 .tgl-flip + .tgl-btn:after {
    content: attr(data-tg-on);
    background: #02C66F;
    transform: rotateY(-180deg);
}
.ifurn-custom--checkbox-1 .tgl-flip + .tgl-btn:before {
    background: #FF3A19;
    content: attr(data-tg-off);
}
.ifurn-custom--checkbox-1 .tgl-flip + .tgl-btn:active:before {
    transform: rotateY(-20deg);
}
.ifurn-custom--checkbox-1 .tgl-flip:checked + .tgl-btn:before {
    transform: rotateY(180deg);
}
.ifurn-custom--checkbox-1 .tgl-flip:checked + .tgl-btn:after {
    transform: rotateY(0);
    left: 0;
    background: #7FC6A6;
}
.ifurn-custom--checkbox-1 .tgl-flip:checked + .tgl-btn:active:after {
    transform: rotateY(20deg);
}
/* ifurn-custom--checkbox-1 */

.text-vertical {
    -ms-writing-mode: tb-rl;
    -webkit-writing-mode: vertical-rl;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    padding: 10px;
    margin-right: 10px;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100%;
    background: #17564B;
    z-index: 1000;
    transition: left 0.3s ease;
    overflow-y: auto;
    padding: 20px 0;
}

.mobile-menu.open {
    left: 0;
}

.mobile-menu-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
}

.mobile-menu .menu-item {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu .menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
}

.mobile-menu .menu-item-toggle {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu .menu-item-main {
    background: rgba(255, 255, 255, 0.05);
    font-size: 14px;
    padding: 10px 20px;
}

.mobile-menu .submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0, 0, 0, 0.2);
}

.mobile-menu .submenu.open {
    max-height: 500px;
}

.mobile-menu .menu-subitem {
    padding: 10px 30px;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-menu .submenu-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

/* Desktop responsive styles */
@media (min-width: 1260px) {
    body.admin header .container-fluid .header_right_actions {
        position: absolute;
        width: calc(100% - 360px) !important;
        max-width: 600px !important;
        right: 32px;
        z-index: 1000;
        top: 14px;
        text-align: right;
        display: block !important;
    }
    .header_right_actions .custom-select + .input-group-append {
        margin-left: -13px !important;
    }
    body.admin header .header_right_actions .input-group > small {
        font-size: 12px;
    }
    body.admin header .header_right_actions .input-group > * {
        display: inline-block;
        font-size: 12px;
    }
    body.admin header .header_right_actions .input-group-append {
        max-width: 32px;
    }
    body.admin header .header_right_actions .custom-select {
        height: auto !important;
        padding: 0;
        margin-bottom: 2px;
    }
    body.admin header .container-fluid .header_right_actions > div.exit_admin_container {
        min-width: 64px !important;
        width: 64px !important;
        margin-right: 16px;
    }
    body.admin header .container-fluid .header_right_actions > div.auth_info_container > div.auth_name_container {
        width: calc(100% - 30px) !important;
        padding: 0;
        display: inline-block;
        text-align: right;
        white-space: nowrap;
    }
    body.admin header .container-fluid .header_right_actions > div.auth_info_container > div.auth_icon_container {
        width: 24px !important;
        padding: 0;
        display: inline-block;
    }
    body.admin header .container-fluid .header_right_actions > div.auth_info_container > div.auth_icon_container img {
        height: 14px;
        width: 14px;
    }
    body.admin header .container-fluid .header_right_actions > div.auth_info_container {
        width: auto !important;
        min-width: 120px !important;
        max-width: 320px !important;

    }
    body.admin header .container-fluid .header_right_actions > div {
        display: inline-block !important;
        width: 120px !important;
        min-width: 120px !important;
        max-width: 120px !important;
        margin: 0;
        text-align: center;
    }
}

@media (min-width: 768px) and (max-width: 1259px) {
    /* Fix horizontal scroll for floatThead in this range */
    .admin-table-scroll {
        overflow-x: auto !important;
    }

    /* Отменяем overflow-x для таблиц внутри .admin-table-scroll - скроллится только контейнер */
    body.admin .admin-table-scroll table.admin-table,
    body.admin .floatThead-wrapper table.admin-table {
        overflow-x: visible !important;
        display: table !important;
    }

    body.admin header .container-fluid .header_right_actions {
        position: absolute;
        width: calc(100% - 360px) !important;
        max-width: 600px !important;
        right: 64px;
        z-index: 1000;
        top: 16px;
        text-align: right;
        display: block !important;
    }

    .header_right_actions .custom-select + .input-group-append {
        margin-left: -13px !important;
    }
    body.admin header .header_right_actions .input-group > * {
        display: inline-block;
    }
    body.admin header .header_right_actions .input-group-append {
        max-width: 32px;
    }
    body.admin header .header_right_actions .custom-select {
        height: auto !important;
    }
    body.admin header .container-fluid .header_right_actions > div.exit_admin_container {
        margin-right: 16px;
    }
    body.admin header .container-fluid .header_right_actions > div.auth_info_container > div.auth_name_container {
        display: inline-block;
        text-align: right;
    }
    body.admin header .container-fluid .header_right_actions > div.auth_info_container > div.auth_icon_container {
        display: inline-block;
    }
    body.admin header .container-fluid .header_right_actions > div.auth_info_container > div.auth_icon_container img {
        height: 14px;
        width: 14px;
    }
    body.admin header .container-fluid .header_right_actions > div.auth_info_container {
        margin-right: 8px;
    }
    body.admin header .container-fluid .header_right_actions > div {
        display: inline-block !important;
        margin: 0;
        text-align: center;
    }
}

/* Mobile responsive styles */
@media (min-width: 576px) and (max-width: 768px) {
    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: inline-block;
    }

    /* Header adjustments */
    header {
        padding: 5px;
    }

    .header-admin-title h3 {
        font-size: 18px;
        margin: 0;
    }

    .header_right_actions {
        flex-direction: column;
        align-items: flex-end;
    }

    body.admin div.header-admin-title .admin-logo-link {
        min-width: 280px !important;
        width: 280px !important;
        max-width: 280px !important;
    }

    div.card.state-collapsed {
        margin: 0 4px !important;
    }
    .state-collapsed a.btn.collapsed {
        padding: 4px !important;
    }


    body.admin header .container-fluid .header-admin-title {
        min-width: 100% !important;
    }
    body.admin header .container-fluid .header_right_actions {
        position: absolute;
        width: calc(100% - 280px) !important;
        max-width: 100% !important;
        right: 4px;
        z-index: 1000;
        top: 45px;
        text-align: right;
    }
    .auth_icon_container img {
        height: 14px;
        width: 14px;
    }
    body.admin header .container-fluid .header_right_actions > div.exit_admin_container {
        width: 48px !important;
        min-width: 48px !important;
    }
    body.admin header .container-fluid .header_right_actions > div {
        display: inline-block !important;
        margin: 0 auto;
        text-align: center;
    }
    body.admin header .header_right_actions {
        width: calc(100% - 200px) !important;
        max-width: initial !important;
        display: block!important;
    }

    .header_right_actions .input-group {
        margin-bottom: 5px;
        min-width: 120px;
        font-size: 12px;
        width: 30%;
    }

    .auth_name_container, .auth_icon_container {
        display: inline-block;
    }

    .header_right_actions .custom-select {
        display: inline-block !important;
    }

    .header_right_actions .custom-select + .input-group-append {
        width: 32px;
        display: inline-block !important;
        margin-left: -10px !important;
    }

    .header_right_actions .input-group small {
        font-size: 11px;
    }

    .header_right_actions .custom-select {
        font-size: 12px;
        padding: 0.25rem 0.5rem;
        height: auto;
    }

    .header_right_actions .input-group-text {
        padding: 0.25rem 0.5rem;
    }

    .auth_info_container {
        margin-bottom: 5px;
        font-size: 12px;
    }

    .auth_info_container span {
        font-size: 12px;
    }

    .exit_admin_container {
        font-size: 12px;
    }

    .exit_admin_container a {
        padding: 4px 8px;
        font-size: 12px;
        text-decoration: none;
    }

    /* Container and layout adjustments */
    .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }

    /* Form adjustments */
    .serv_modal_body {
        padding: 15px;
    }

    .serv_modal_body .btn.btn-primary {
        width: 100%;
        margin-top: 20px;
    }

    /* Table adjustments */
    .table-responsive {
        border: none;
    }

    .table {
        font-size: 12px;
    }

    .table th,
    .table td {
        padding: 0.5rem 0.25rem;
        white-space: nowrap;
    }

    /* Button adjustments */
    .btn {
        font-size: 12px;
        padding: 0.375rem 0.5rem;
    }

    .btn-group .btn {
        margin: 2px;
    }

    /* Sidebar and navigation */
    .col-md-12.col-lg-4.col-xl-2 {
        display: none;
    }

    .col-md-12.col-lg-8.col-xl-10 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* Breadcrumbs */
    .breadcrumb {
        padding: 0.5rem 0.75rem;
        margin-bottom: 0.5rem;
        font-size: 12px;
    }

    /* Form controls */
    .form-control {
        font-size: 14px;
    }

    .form-group {
        margin-bottom: 0.75rem;
    }

    /* Modal adjustments */
    .modal-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
    }

    .modal-body {
        padding: 15px;
    }
}
@media (max-width: 576px) {
    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: inline-block;
    }
    
    /* Header adjustments */
    header {
        padding: 5px;
    }
    
    .header-admin-title h3 {
        font-size: 18px;
        margin: 0;
    }
    
    .header_right_actions {
        flex-direction: column;
        align-items: flex-end;
    }

    div.header-admin-title h3 {
        display: none;
    }

    div.card.state-collapsed {
        margin: 0 4px !important;
    }
    .state-collapsed a.btn.collapsed {
        padding: 4px !important;
    }

    body.admin header .container-fluid .header_right_actions {
        position: absolute;
        width: 100% !important;
        right: 6px;
        z-index: 1000;
        top: 45px;
        text-align: right;
    }
    body.admin header .container-fluid .header_right_actions > div.exit_admin_container {
        min-width: 48px !important;
        width: 48px !important;
    }
    body.admin header .container-fluid .header_right_actions > div {
        display: inline-block !important;
/*        width: 33% !important;
        min-width: 33% !important;
        max-width: 33% !important;

 */
        margin: 0 auto;
        text-align: right;
    }
    body.admin header .header_right_actions {
        width: 100% !important;
        max-width: initial !important;
        display: block!important;
        margin: 0 auto;
    }

    .header_right_actions .input-group {
        margin-bottom: 5px;
        min-width: 120px;
        font-size: 12px;
        width: 30%;
    }

    .auth_name_container, .auth_icon_container {
        display: inline-block;
    }

    .header_right_actions .custom-select {
        display: inline-block !important;
    }

    .header_right_actions .custom-select + .input-group-append {
        width: 32px;
        display: inline-block !important;
        margin-left: -10px !important;
    }
    
    .header_right_actions .input-group small {
        font-size: 11px;
    }
    
    .header_right_actions .custom-select {
        font-size: 12px;
        padding: 0.25rem 0.5rem;
        height: auto;
    }
    
    .header_right_actions .input-group-text {
        padding: 0.25rem 0.5rem;
    }
    
    .auth_info_container {
        margin-bottom: 5px;
        font-size: 12px;
    }
    
    .auth_info_container span {
        font-size: 12px;
    }
    
    .exit_admin_container {
        font-size: 12px;
    }
    
    .exit_admin_container a {
        padding: 4px 8px;
        font-size: 12px;
        text-decoration: none;
    }
    
    /* Container and layout adjustments */
    .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    /* Form adjustments */
    .serv_modal_body {
        padding: 15px;
    }
    
    .serv_modal_body .btn.btn-primary {
        width: 100%;
        margin-top: 20px;
    }
    
    /* Table adjustments */
    .table-responsive {
        border: none;
    }
    
    .table {
        font-size: 12px;
    }
    
    .table th,
    .table td {
        padding: 0.5rem 0.25rem;
        white-space: nowrap;
    }
    
    /* Button adjustments */
    .btn {
        font-size: 12px;
        padding: 0.375rem 0.5rem;
    }
    
    .btn-group .btn {
        margin: 2px;
    }
    
    /* Sidebar and navigation */
    .col-md-12.col-lg-4.col-xl-2 {
        display: none;
    }
    
    .col-md-12.col-lg-8.col-xl-10 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    /* Breadcrumbs */
    .breadcrumb {
        padding: 0.5rem 0.75rem;
        margin-bottom: 0.5rem;
        font-size: 12px;
    }
    
    /* Form controls */
    .form-control {
        font-size: 14px;
    }
    
    .form-group {
        margin-bottom: 0.75rem;
    }
    
    /* Modal adjustments */
    .modal-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
    
    .modal-body {
        padding: 15px;
    }
}

@media (max-width: 576px) {
    /* Extra small devices adjustments */
    .auth_form_container {
        width: 100%;
        max-width: 100%;
        margin: 0 10px;
    }
    
    .serv_modal_title h3 {
        font-size: 20px;
        padding: 10px;
    }
    
    .serv_modal_body {
        padding: 20px 15px;
    }
    
    /* Hide less important columns in tables */
    .table .d-none.d-sm-table-cell {
        display: none !important;
    }
    
    /* Stack form elements */
    .form-row > div {
        margin-bottom: 10px;
    }
    
    /* Adjust header layout for very small screens */
    header .row {
        flex-direction: column;
    }
    
    .header_right_actions {
        width: 100%;
        justify-content: space-between;
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .auth_info_container,
    .exit_admin_container {
        margin: 2px 0;
    }
    
    /* Make header even more compact on small screens */
    .header_right_actions {
        gap: 5px;
    }
    
    .header_right_actions .input-group {
        margin-bottom: 3px;
        min-width: 100px;
    }
    
    .auth_icon_container img {
        width: 12px;
        height: 12px;
    }
    
    /* Improve layout for very small screens */
    .header_right_actions {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-end;
    }
    
    .auth_info_container {
        display: flex;
        align-items: center;
        gap: 5px;
    }
    
    /* Special styles for obj_goods page - complete rewrite for better responsiveness */
    .obj-goods-page {
        overflow-x: hidden;
    }
    
    .obj-goods-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
        margin: 0 -15px; /* Compensate for container padding */
        padding: 0 15px;
    }
    
    .obj-goods-table {
        width: 100%;
        table-layout: auto;
        font-size: 10px;
    }
    
    .obj-goods-table th,
    .obj-goods-table td {
        padding: 2px 4px;
        font-size: 10px;
        vertical-align: middle;
        white-space: nowrap;
        min-width: 0;
    }
    
    /* Essential columns get more space */
    .obj-goods-table .mobile-essential {
        min-width: 60px;
    }
    
    /* ID columns are narrower */
    .obj-goods-table th:nth-child(1),
    .obj-goods-table td:nth-child(1),
    .obj-goods-table th:nth-child(2),
    .obj-goods-table td:nth-child(2) {
        width: 50px;
        min-width: 50px;
    }
    
    /* Product name column */
    .obj-goods-table th:nth-child(3),
    .obj-goods-table td:nth-child(3) {
        min-width: 120px;
        max-width: 150px;
        word-wrap: break-word;
        white-space: normal;
    }
    
    /* 3D container column */
    .obj-goods-3d-container {
        width: 120px !important;
        height: 120px !important;
        overflow: hidden;
        padding: 2px !important;
    }
    
    .obj-goods-3d-container .list-item {
        margin: 0;
        padding: 0;
        box-shadow: none;
        width: 100%;
        height: 100%;
    }
    
    .obj-goods-3d-container .list-item > div {
        width: 116px !important;
        height: 116px !important;
    }
    
    .obj-goods-3d-container img {
        max-width: 100%;
        max-height: 40px;
        display: block;
        margin: 2px auto 0;
    }
    
    /* Actions column */
    .obj-goods-table .mobile-essential:last-child {
        width: 60px;
        min-width: 60px;
    }
    
    /* Hide less important columns on mobile */
    .obj-goods-table .mobile-hide {
        display: none;
    }
    
    /* Show essential columns only */
    .obj-goods-table .mobile-essential {
        display: table-cell;
    }
    
    /* Filters for obj_goods on mobile */
    .obj-goods-filters {
        margin-bottom: 15px;
    }
    
    .obj-goods-filter-form label {
        font-size: 12px;
        margin-bottom: 3px;
    }
    
    .obj-goods-search {
        font-size: 12px;
        padding: 5px 8px;
        margin-bottom: 5px;
    }
    
    .obj-goods-select {
        font-size: 12px;
        height: 120px;
        margin-bottom: 10px;
    }
    
    .obj-goods-filter-buttons {
        display: flex;
        gap: 5px;
        flex-wrap: wrap;
    }
    
    .obj-goods-filter-buttons .btn {
        flex: 1;
        min-width: 80px;
    }
}

/* Desktop and tablet styles for obj_goods */
@media (min-width: 769px) {
    .obj-goods-table .mobile-hide {
        display: table-cell;
    }
    
    .obj-goods-table {
        font-size: 12px;
    }
    
    .obj-goods-table th,
    .obj-goods-table td {
        padding: 4px 6px;
        font-size: 12px;
    }
    
    .obj-goods-3d-container {
        width: 160px !important;
        height: 160px !important;
    }
    
    .obj-goods-3d-container .list-item > div {
        width: 156px !important;
        height: 156px !important;
    }
    
    .obj-goods-3d-container img {
        max-height: 50px;
    }
    
    /* Better column widths for desktop */
    .obj-goods-table th:nth-child(1),
    .obj-goods-table td:nth-child(1),
    .obj-goods-table th:nth-child(2),
    .obj-goods-table td:nth-child(2) {
        width: 60px;
        min-width: 60px;
    }
    
    .obj-goods-table th:nth-child(3),
    .obj-goods-table td:nth-child(3) {
        min-width: 150px;
        max-width: 200px;
    }
    
    /* Hidden columns on desktop get normal width */
    .obj-goods-table .mobile-hide {
        min-width: 70px;
        max-width: 100px;
    }
}

@media (min-width: 1200px) {
    .obj-goods-table {
        font-size: 13px;
    }
    
    .obj-goods-table th,
    .obj-goods-table td {
        padding: 6px 8px;
        font-size: 13px;
    }
    
    .obj-goods-3d-container {
        width: 200px !important;
        height: 200px !important;
    }
    
    .obj-goods-3d-container .list-item > div {
        width: 196px !important;
        height: 196px !important;
    }
    
    .obj-goods-3d-container img {
        max-height: 60px;
    }
    
    /* Larger column widths for large screens */
    .obj-goods-table th:nth-child(1),
    .obj-goods-table td:nth-child(1),
    .obj-goods-table th:nth-child(2),
    .obj-goods-table td:nth-child(2) {
        width: 70px;
        min-width: 70px;
    }
    
    .obj-goods-table th:nth-child(3),
    .obj-goods-table td:nth-child(3) {
        min-width: 200px;
        max-width: 250px;
    }
    
    .obj-goods-table .mobile-hide {
        min-width: 80px;
        max-width: 120px;
    }
}

/* Fix for developer console and layout issues */
.admin-menu {
    position: relative !important;
    flex: 0 0 auto !important;
    max-width: none !important;
}

/* Ensure content area doesn't overflow */
.col-md-12.col-lg-8.col-xl-10 {
    overflow-x: hidden;
}

/* Fix layout shifting when dev tools open */
@media (max-height: 600px) {
    .obj-goods-3d-container {
        width: 100px !important;
        height: 100px !important;
    }
    
    .obj-goods-3d-container .list-item > div {
        width: 96px !important;
        height: 96px !important;
    }
    
    .obj-goods-table {
        font-size: 11px;
    }
    
    .obj-goods-table th,
    .obj-goods-table td {
        padding: 3px 4px;
        font-size: 11px;
    }
}

/* Fix dropdown menu positioning */
.dropdown-menu-admin {
    position: absolute;
    z-index: 1000;
    min-width: 200px;
    max-height: 400px;
    overflow-y: auto;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 2px;
}

/* Ensure dropdown doesn't go off-screen */
.nav-item.dropdown {
    position: relative;
}

.nav-item.dropdown .dropdown-menu-admin {
    top: 100%;
    left: 0;
    transform: none;
}

/* For dropdowns near the top of the page */
.nav-item.dropdown.dropup .dropdown-menu-admin {
    top: auto;
    bottom: 100%;
    margin-bottom: 2px;
    margin-top: 0;
}

/* Ensure dropdown menu items are properly styled */
.dropdown-menu-admin .list-group-item {
    border: none;
    border-radius: 0;
    padding: 8px 16px;
    display: block;
    width: 100%;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.dropdown-menu-admin .list-group-item:hover {
    background-color: #f8f9fa;
    color: #17564B;
}

.dropdown-menu-admin .list-group-item.active {
    background-color: #17564B;
    color: #fff;
}

/* Fix z-index issues */
.admin-menu {
    position: relative;
    z-index: 100;
}

.admin-menu .dropdown-menu-admin {
    z-index: 1050;
}

/* Responsive dropdown adjustments */
@media (max-width: 768px) {
    .dropdown-menu-admin {
        position: static;
        float: none;
        box-shadow: none;
        border: none;
        background-color: rgba(255, 255, 255, 0.95);
        margin-top: 0;
        max-height: none;
    }
    
    .nav-item.dropdown .dropdown-menu-admin {
        transform: none;
        top: auto;
        left: auto;
    }
}
/* Layout fixes for dev console open */

.table_td_with_edit_inner > span {
    min-width: 16px;
    min-height: 32px;
    display: inline-block;
}


/* Drag to scroll для таблиц - DISABLED, tables can grow naturally and text is selectable */
.admin-table-scroll {
    /* Убираем cursor: grab и drag-to-scroll функциональность */
    /* Таблицы теперь можно прокручивать обычным скроллом страницы */
}

.admin-table-scroll.grabbing {
    cursor: grabbing;
    /* Блокируем выделение только во время активного перетаскивания */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.admin-table-scroll.grabbing * {
    cursor: grabbing !important;
}