.select_list_cats,
.select_tab_toolbar,
#open_sortable_sidebar,
#menu-icon,
.mobile_dropdown_users,
#left_header_section {
    display: none;
}
.return_portrait {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    right: 0;
    left: 0;
    text-align: center;
    z-index: 10;
    background-color: #fff;
}
    .return_portrait span {
        position: relative;
        top: calc(49vh - 30px);
        margin: auto;
        width: 300px;
        font-size: 21px;
        color: #646464;
        display: block;
    }
@media (max-width: 800px) {
    html {
        height: 100vh;
    }
    #home {
        display: none;
    }
    #echo_watermark_wrapper {
        bottom: 0;
        right: 15px;
    }
}
@media (max-width: 800px) /*and (orientation: portrait)*/ {
    #headbar {
        width: auto;
    }
    #open_sortable_sidebar {
        /*display: block;*/
        float: right;
        width: 39px;
        height: calc(100% - 16px);
        margin-top: 8px;
        cursor: pointer;
        border-left: 2px solid rgba(0, 0, 0, 0.1);
        background: url("https://d30y9cdsu7xlg0.cloudfront.net/png/61783-200.png") no-repeat center center;
        background-size: 45px;
        z-index: 9;
    }
    .sidebar, .sidebar_blur {
        position: fixed;
        width: 100vw;
        height: 65px;
        left: 0;
        /*top: 100%;*/
        top: auto;
        bottom: -65px;
    }
        .sidebar_flow {
            height: 65px;
            width: 100vw;
            background-color: rgba(208,215,220,0.8);/*#a8c1d5;*/
            -webkit-filter: blur(0px);
            -moz-filter: blur(0px);
            -o-filter: blur(0px);
            -ms-filter: blur(0px);
            filter: blur('../images/dynamic/ican_map.svg?blur');
        }
    .icons {
        margin: 7px 5px;
        float: left;
    }
    #apps {
        margin: 8px 10px 0;
    }
    #sort_container:before {
        position: absolute;
        top: 8px;
        display: inline-block;
        height: calc(100% - 16px);
        width: 2px;
        margin-left: -2px;
    }
    #sort_container {
        width: calc(100vw - 109px);
        height: 100%;
        float: left;
    }
    #sort_container .icons:first-child {
        margin: 7px 5px;
    }
    .Remove_apps {
        height: calc(100% - 125px);
        left: 0;
        width: 100vw!important;
    }
    .Apps_container {
        /*top: 55px;*/
        /*height: calc(100vh - 120px);*/
    }
        .Apps_container .apps_content {
            position: absolute;
            bottom: 0;
            width: calc(100% - 20px);
            height: auto;
            /*max-height: calc(100% - 15px);*/
            margin: 0 10px 75px;
        }
            .select_list_cats {
                position: relative;
                display: block;
                width: 250px;
                margin: auto;
                color: #646464;
                font-size: 18px;
                background-color: #fff;
                border-radius: 5px;
                border-bottom: 1px solid transparent;
                padding: 8px 15px;
                cursor: pointer;
            }
                .select_list_cats em {
                    position: absolute;
                    right: 10px;
                    font-size: 16px;
                }
                .select_list_cats em.fa-caret-up {
                    top: 5px;
                }
                .select_list_cats em.fa-caret-down {
                    bottom: 5px;
                }
            .Apps_container .splitter > li ul {
                margin-left: 0;
            }
            .select_list_cats + ul.list_cats {
                height: 0px;
                max-height: 210px;
                overflow-y: auto;
                text-align: center;
                transition: height .3s linear;

                position: absolute;
                background: #fff;
                width: 250px;
                left: calc(50% - 125px);
                box-shadow: 0px 2px 3px 0px rgba(0,0,0,.3);
                border-radius: 0 0 5px 5px;
                z-index: 9;
            }
                .Apps_container .splitter li {
                    display: block;
                    margin: 0;
                    padding: 10px 0;
                }
                .splitter ul li:first-child {
                    margin-left: 0;
                }
            .opened_list_cats {
                border-radius: 5px 5px 0 0;
                border-bottom-color: #e6e6e6;
            }
            .opened_list_cats + ul.list_cats {
                height: 75%;
                padding-top: 10px;
            }

            .Apps_container .splitter > li {
                padding: 3px 0 0;
                width: 100%;
            }
            ul.list_cats > li.selected span.menu-highlight {
                display: none;
            }
            .Apps_container .image-grid li {
                width: 105px;
                height: 140px;
                margin: 15px 20px 0;
            }
                .Apps_container .image-grid li div.img {
                    width: 90px;
                    height: 90px;
                    margin: auto;
                }
        #list_apps {
            /*max-height: calc(100vh - 210px);*/
            max-height: calc(100vh - 263px);
            overflow-y: auto;
            margin-bottom: 0;
        }
    .win_content {
        margin: 0px 10px;
    }
        .win_content .page_header {
            margin: 45px 0 0px;
            padding: 5px 8px;
        }
        .win_content .New_form_float._open,
        .win_content .Edit_form_float._open,
        .win_content .Extra_form_float {
            left: 10px!important;
            width: calc(100vw - 20px);
            /*top: 55px!important;*/
            height: calc(100% - 130px);
            overflow: auto;
        }
        .win_content .New_form_float.media_panel {
            z-index: 11!important;
            height: calc(50% - 50px);
            overflow: hidden;
        }
            .win_content .New_form_float.media_panel .inForm {
                width: 100%!important;
                height: calc(100% - 50px)!important;
                min-height: calc(50vh - 119px)!important;
                max-height: calc(50vh - 119px)!important;
            }
            .win_content .New_form_float.media_panel .footer_buts > div:first-child {
                width: auto;
            }
        .New_form_float .app_header,
        .Edit_form_float .app_header,
        .Extra_form_float .app_header {
            height: auto;
            min-height: 45px;
            padding: 0px 5px;
        }
        .app_header .form_float_title {
            width: calc(100% - 98px);
        }
            .form_float_title span[rel="_tags"] {
                margin-right: 5px;
            }
        .app_header .form_float_icons {
            margin-right: 5px;
        }
        .header_icons .Icon_map, .header_icons .Comm_map {
            width: 24px;
            height: 24px;
        }
        table.inner_table td {
            display: block!important;
            width: 100%;
        }
        .media_droparea {
            text-align: center;
        }
        .media_droparea .small_media_droparea {
            width: calc(100% - 20px);
        }
        .inForm {
            max-height: calc(100vh - 210px)!important;
            max-width: 100%!important;
        }

        .app_content:not(.embed-container), .sub_content {
            width: 100%;
        }

        .app_content, .sub_content {
            height: calc(100% - 165px);
            overflow: hidden;
            -webkit-transform: translateZ(0);
            -webkit-overflow-scrolling: touch;
        }
            .slimScrollDiv {
                position: relative;
                height: 100%;
            }
                .app_content div.header_buts {
                    min-height: 50px;
                    padding: 5px 5px 0px;
                }
                    .app_content .Link_Tabs {
                        position: relative;
                        display: inline-table;
                        padding: 0px 10px;
                        width: calc(100% - 26px - 124px);
                    }
                        .select_tab_toolbar {
                            position: relative;
                            display: block;
                            width: 100%;
                            max-width: 500px;
                            height: 35px;
                            margin: 5px 0 0;
                            background-color: #fff;
                            border-radius: 5px;
                            cursor: pointer;
                            color: #646464;
                        }
                            .select_tab_toolbar div {
                                width: calc(100% - 18px);
                                white-space: nowrap;
                                overflow: hidden;
                                text-align: left;
                                padding: 0 0 0 5px;
                                line-height: 35px;
                                color: #366e9d;
                                cursor: pointer;
                            }
                            .select_tab_toolbar em {
                                position: absolute;
                                right: 5px;
                                font-size: 16px;
                            }
                            .select_tab_toolbar em.fa-caret-up {
                                top: 6px;
                            }
                            .select_tab_toolbar em.fa-caret-down {
                                bottom: 6px;
                            }
                        .Link_Tabs.btn-toolbar > .btn,
                        .Link_Tabs.btn-toolbar > .btn-group,
                        .Link_Tabs.btn-toolbar > .input-group {
                            display: none;
                            /*width: calc(100% - 20px);*/
                            max-width: 500px;
                            background-color: #fff;
                            border-radius: 5px;
                            position: absolute;
                            top: 40px;
                            left: 10px;
                            margin: 0;
                            z-index: 1;
                            box-shadow: 1px 1px 5px 0px rgba(0,0,0,.2);
                        }
                            .Link_Tabs .btn-group label {
                                width: 100%;
                                line-height: 35px;
                                text-align: left;
                            }
                            .app_content .Link_Tabs .btn-group .checked:after {
                                display: none;
                            }

                    .app_header .header_icons._right li {
                        margin-left: 10px;
                    }
                    .app_header .header_icons._right li:first-of-type {
                        margin-left: 0;
                    }
                .app_content .table {
                    height: 100%;
                }
                    .app_content .table > .table {
                        height: calc(100% - 89px)!important;
                        display: block;
                        overflow: auto;
                    }
                    .Window[rel_id="app_28"] div.table .Users_list {
                        width: calc(100vw - 22px);
                    }
                        .Window[rel_id="app_28"] div.table .Users_list .users_div {
                            width: 100%;
                        }
                .win_content div.footer_buts {
                    margin-top: 0;
                    padding: 5px 5px 0;
                    background: #eceded;
                }
                .win_content form div.footer_buts {
                    padding: 5px;
                }
                    .footer_buts > div {
                        display: inline-block;
                    }
                    .footer_buts > div:first-child {
                        width: 35px;
                        padding-right: 0;
                    }
                        div[rel='help'] a.btn {
                            padding: 3px;
                        }
                        div[rel='help'] > div[table] {
                            display: none;
                        }
                    .footer_buts > div[rel="pager"] {
                        width: calc(100% - 35px - 50px);
                    }
                        .app_content .pagination li a,
                        .app_content .pagination li.disabled a,
                        .app_content .pagination li.disabled a:hover,
                        .app_content .pagination li.disabled a:focus {
                            padding: 0px 5px;
                            margin: 0 3px;
                        }
                    .footer_buts > div:last-child {
                        padding-left: 0px;
                        float: right;
                        line-height: 14px;
                    }
                    .footer_buts > div[rel="entry_counter"] div[rel="entries"] {
                        display: block;
                    }
                /*div.table > .footer_buts,*/
                .Window[rel_id="app_28"] div.table > .footer_buts {
                    height: 40px;
                    width: 100%;
                    margin-top: 0;
                    padding-top: 5px;
                    background: #eceded;
                    border-radius: 0 0 10px 10px;
                }
                    .Window[rel_id="app_28"] div.table .footer_buts [rel="entry_counter"] {
                        width: 100%;
                    }
                    .pagination > li > a {
                        margin-bottom: 0;
                    }
                .Window[rel_id="app_47"] .each_container,
                .Window[rel_id="app_47"] .info_tab,
                .info_tab {
                    max-height: calc(100% - 55px);
                }
                .Window[rel_id="app_25"] [rel='Tab4'] .custom_container {
                    max-height: calc(100vh - 235px);
                    margin: 10px 0;
                }
}
/*@media (max-width: 670px) and (orientation:landscape) {*/
@media (max-device-width: 670px) and (orientation: landscape) {

    /*body *:not(.return_portrait) {*/
        /*visibility: hidden!important;*/
    /*}*/
    /*.return_portrait {*/
        /*display: block!important;*/
        /*position: absolute;*/
        /*width: 300px;*/
        /*top: calc(50% - 30px);*/
        /*right: 0;*/
        /*left: 0;*/
        /*margin: auto;*/
        /*text-align: center;*/
        /*font-size: 21px;*/
        /*color: #fff;*/
    /*}*/
}


@media (max-device-width: 670px) {
    #header_gradient {
        height: 60px;
    }
    #headbar {
        width: calc(100% - 60px - 55px);
        float: left;
        overflow: hidden;
        display: none;
    }
        #headbar.ui-sortable-disabled .headbar_help:only-child {
            float: left;
            line-height: 18px;
            margin: 7px 0 0;
        }
        .uAvatar {
            width: 51px;
            height: 51px;
        }
    #header, #left_header_section {
        position: fixed;
        top: 0;
        right: -85vw;
        width: 85vw;
        max-width: 360px;
        height: 100%;
        background: rgba(0,0,0,.6) url('../images/static/trans_echo.png') no-repeat 50% 98%;
        background-size: 170px;
    }
    #header {
        right: -85vw;
    }
    #left_header_section {
        display: block;
        left: -85vw;
    }
    #header .navbar {
        padding: 10px 20px;
        margin: 0;
        border: none;
    }
        #header .navbar .top-nav {
            height: auto;
        }
            #header .navbar .top-nav .navbar-nav {
                height: auto;
                margin: 0;
            }
            ul.nav.navbar-nav:before {
                display: none;
            }
                #header .nav > li {
                    position: static;
                    display: inline-block;
                    width: 32%;
                    vertical-align: top;
                }
                #header .dropdown.users {
                    display: none;
                }
                    #header .navbar .nav > li > a {
                        position: static;
                        height: 44px;
                        width: 40px;
                        margin: 0 auto;
                    }
                    #header .navbar .nav > li.gateway > a {
                        padding-top: 2px;
                    }
                    #header .navbar .nav > li.search > a {
                        width: 32px;
                        padding-top: 6px;
                    }
                    #header .navbar .nav li a.user_avatar {
                        margin: 0 auto;
                        position: relative;
                    }
                        #header .navbar .nav li.dropdown .dropdown-menu {
                            width: calc(100% - 20px);
                            margin: 10px;
                        }
                        li.users ul.dropdown-menu.right,
                        li.commhub ul.dropdown-menu.right,
                        li.search ul.dropdown-menu.right {
                            right: 0;
                        }
                        #header .navbar .nav li.dropdown.gateway .dropdown-menu {
                            width: calc(100% - 20px);
                            right: 0px;
                        }
                            #header .navbar .nav li.dropdown.gateway .dropdown-menu li.header form > input {
                                width: calc(100% - 37px);
                            }
                        #header .search_form li.gateway_cont,
                        .gateway_comms,
                        .gateway_notifs,
                        .gateway_tasks{
                            width: 100%;
                        }
                        #header .navbar .nav li.dropdown .dropdown-menu:after,
                        #header .navbar .nav li.dropdown .dropdown-menu:before {
                            right: calc(82% - 11px);
                        }
                        #header .navbar .nav li.dropdown.gateway .dropdown-menu:after,
                        #header .navbar .nav li.dropdown.gateway .dropdown-menu:before {
                            right: calc(50% - 11px);
                        }
                        #header .navbar .nav li.dropdown.search .dropdown-menu:after,
                        #header .navbar .nav li.dropdown.search .dropdown-menu:before {
                            right: 16%;
                        }
                        #header .search_form li,
                        #header .search_results div {
                            width: 100%;
                        }
                        #header .search_results {
                            max-height: calc(100vh - 64px - 72px - 22px - 48px - 65px)!important;
                        }
                        #header .search_form .s_results,
                        #header li.Search_For,
                        #header .search_form .s_results,
                        #header li.SearchInFor {
                            padding: 8px 15px;
                            text-align: left;
                        }
                        #header .global-search input {
                            padding: 14px 0 13px 35px;
                        }
                        #header .global-search button {
                            top: 12px;
                        }

    .mobile_dropdown_users {
        display: block!important;
        opacity: 1!important;
        width: 35px;
        height: 35px;
        float: left;
        margin: 7px 10px 5px 10px;
    }
        .mobile_dropdown_users svg {
            width: 35px;
            height: 35px;
        }
        /*.mobile_dropdown_users.open path {*/
            /*fill: #3498da;*/
        /*}*/
    #left_header_section > a {
        display: none;
    }
    #left_header_section .dropdown-menu {
        display: block;
        width: calc(100% - 20px);
        height: auto;
        max-width: 360px;
        min-width: calc(100% - 20px);
        max-height: calc(100% - 80px)!important;
        /*overflow: hidden;*/
        border: none;
        color: #768399;

        top: 5px;
        right: auto;
        left: 10px;
    }
    #left_header_section .dropdown-menu:after,
    #left_header_section .dropdown-menu:before {
        top: 10px;
        right: -19px;
        border: solid transparent;
        content: " ";
        height: 0;
        width: 0;
        position: absolute;
        pointer-events: none;
    }
    #left_header_section .dropdown-menu:before {
        border-color: rgba(231, 231, 226, 0);
        border-left-color: #f3f5f6;
        border-width: 10px;
    }
        #left_header_section .dropdown-menu li.header {
            background: #f3f5f6;
            height: 38px;
            width: 100%;
            border-top-left-radius: 5px;
            border-top-right-radius: 5px;
            margin-bottom: 10px;
        }
            #left_header_section .dropdown-menu li.header form > div {
                width: 16px;
                height: 18px;
                display: inline-block;
                vertical-align: middle;
                margin: 0 7px;
            }
                #left_header_section .dropdown-menu li.header form > input {
                    width: calc(100% - 37px);
                    height: 31px;
                    display: inline-block;
                    margin: 4px 0 0 3px;
                    border: none;
                    background: transparent;
                    font-size: 17px;
                }
        #left_header_section .dropdown-menu li.online_users,
        #left_header_section .dropdown-menu li.offline_users {
            width: 100%;
            padding: 0 0 10px;
        }
        #left_header_section .dropdown-menu li.online_users:after {
            display: block;
            content: "";
            height: 1px;
            width: 95%;
            margin: 10px auto 0;
            background: #f3f5f6;
        }
            .togContent.opn {
                /* 233 = 42:.togUsers, 58:.online_users, 48:.header, 5:.dropdown-menu top, 80:echo logo, 60:I don't know why need this! */
                max-height: calc(100vh - 233px);
            }
                user {
                    padding-left: 0;
                }
                    .uAvatar, .uTitle {
                        padding-left: 5px;
                    }
                    .cube {
                        margin-left: 0;
                        width: 100%;
                        height: 46px;
                    }
                        .uActions .comm {
                            margin: 10px 10px 0;
                        }
                        .uActions .comm.cancel {
                            padding: 16px 6px 0;
                            margin: 0;
                            width: 30px;
                        }
                        .communication_icon.active {
                            padding: 4px 3px;
                            margin: 5px 3px;
                        }



    #menu-icon {
        display: block!important;
        opacity: 1!important;
        float: right;
        width: 35px;
        height: 25px;
        position: relative;
        margin: 13px 10px;
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
        -webkit-transition: .5s ease-in-out;
        -moz-transition: .5s ease-in-out;
        -o-transition: .5s ease-in-out;
        transition: .5s ease-in-out;
        cursor: pointer;
    }
    #menu-icon.open {
        margin: 13px 5px;
    }
        #menu-icon span {
            display: block;
            position: absolute;
            height: 4px;
            width: 100%;
            background: #fff;
            border-radius: 8px;
            opacity: 1;
            left: 0;
            -webkit-transform: rotate(0deg);
            -moz-transform: rotate(0deg);
            -o-transform: rotate(0deg);
            transform: rotate(0deg);
            -webkit-transition: .25s ease-in-out;
            -moz-transition: .25s ease-in-out;
            -o-transition: .25s ease-in-out;
            transition: .25s ease-in-out;
        }
        #menu-icon span:nth-child(1) {
            top: 0px;
        }
        #menu-icon span:nth-child(2),
        #menu-icon span:nth-child(3) {
            top: 10px;
        }
        #menu-icon span:nth-child(4) {
            top: 20px;
        }
        #menu-icon.open span:nth-child(1) {
            top: 10px;
            width: 0%;
            left: 50%;
        }
        #menu-icon.open span:nth-child(2) {
            -webkit-transform: rotate(45deg);
            -moz-transform: rotate(45deg);
            -o-transform: rotate(45deg);
            transform: rotate(45deg);
        }
        #menu-icon.open span:nth-child(3) {
            -webkit-transform: rotate(-45deg);
            -moz-transform: rotate(-45deg);
            -o-transform: rotate(-45deg);
            transform: rotate(-45deg);
        }
        #menu-icon.open span:nth-child(4) {
            top: 10px;
            width: 0%;
            left: 50%;
        }
}


@media (max-width: 500px) {
    .loginbox,
    .loginbox_blur {
        left: 0!important;
        right: 0;
        margin: auto;
        width: 95%;
    }
    .loginbox table {
        margin: 0;
    }
    .loginbox table td {
        padding: 5px 10px;
    }
    .loginbox .formelement {
        width: calc(100% - 38px);
        max-width: 266px;
    }

}
