.b-head,
.g-centered,
.b-footer {
    min-width: 270px;
}
/* Begin styles for responsive header */
.b-logo,
.b-logo > a {
    width: 142px;
    height: 41px;
    z-index: 23;
}
.b-logo > a {
    display: block;
}
.b-head.mobile {
    min-width: 270px;
    z-index: 1001;
    user-select: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
}
#menu-button,
#menu-input-button {
    display: none;
}
#menu-button {
    position: relative;
    display: none;
    height: 22px;
    width: 24px;
    background-color: #8e8e8e;
    cursor: pointer;
}
#menu-button:before,
#menu-button:after {
    content: '';
    position: absolute;
    display: block;
    height: 5px;
    width: 100%;
    top: 4px;
    left: 0;
    background-color: #fff;
}
#menu-button:after {
    top: auto;
    bottom: 4px;
}
#menu-input-button:checked + label + ul {
    visibility: visible;
    opacity: 1;
    pointer-events: all;
}
.b-head.g-centered.mobile.fixed {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    box-sizing: border-box;
    padding: 0 20px;
    background-color: #fff;
    -webkit-box-shadow: 0px 1px 9px 1px rgba(199,197,199,1);
    -moz-box-shadow: 0px 1px 9px 1px rgba(199,197,199,1);
    box-shadow: 0px 1px 9px 1px rgba(199,197,199,1);
}
.b-head.g-centered.mobile.fixed > .b-top-menu {
    right: 20px;
}
.b-head.g-centered.mobile.fixed > .b-logo {
    left: 20px;
}
/* End styles for responsive header */

/* Begin responsive header for logged state */
@media screen and (max-width: 870px) {
    .b-notification-wrap.g-centered {
        position: fixed;
    }
    #clients-table-wrapper {
        position: relative;
    }
    #clients-table-wrapper > div {
        padding-bottom: 20px;
        box-sizing: border-box;
        overflow-x: auto;
        overflow-y: hidden;
    }
    .b-users-table-head,
    #b-clients-wrapper,
    #control-panel,
    #history-table-wrapper,
    #clients-table-content  .b-rs-message-wrap {
        min-width: 850px;
    }
    #history-table-wrapper {
        margin: 0 !important;
    }
    .b-users-table-head {
        box-sizing: border-box;
    }
    .b-users-table-item {
        position: relative;
    }
    .b-clients-ajax-wrap.mobile .b-users-table-item {
        position: static;
    }
    #clients-table-wrapper:after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 30px;
        height: calc(100% - 20px);
        margin-bottom: -20px;
        /* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#ffffff+0,ffffff+100&0+1,1+100 */
        background: -moz-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 1%, rgba(255,255,255,1) 100%); /* FF3.6-15 */
        background: -webkit-linear-gradient(left, rgba(255,255,255,0) 0%,rgba(255,255,255,0) 1%,rgba(255,255,255,1) 100%); /* Chrome10-25,Safari5.1-6 */
        background: linear-gradient(to right, rgba(255,255,255,0) 0%,rgba(255,255,255,0) 1%,rgba(255,255,255,1) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
        filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00ffffff', endColorstr='#ffffff',GradientType=1 ); /* IE6-9 */
        z-index: 202;
    }
    #clients-table-wrapper.scroll-end:after {
        opacity: 0;
    }
    .b-rs-message-text {
        padding: 7px 20px;
        box-sizing: border-box;
    }
}
@media screen and (max-width: 840px) {
    .b-login-dropdown__item.mobile-nav-item {
        display: block;
    }
    .b-after-head-nav.g-horz-list {
        display: none;
    }
    .b-after-head-nav-wrap {
        padding-top: 0;
    }
    .b-profile-attention-messages-wrapper {
        text-align: center;
        height: 60px;
    }
    .b-profile-attention-messages-wrap {
        position: static;
        display: inline-block;
        margin: 0 auto;
        padding-top: 0;
        background-position-y: center;
        font-size: 0;
        white-space: nowrap;
        text-align: left;
    }
    .b-profile-attention-messages-wrap:before {
        content: '';
        display: inline-block;
        width: 0;
        height: 100%;
        min-height: 29px;
        vertical-align: middle;
    }
    .b-profile-attention-messages-red span {
        display: inline-block;
    }
    .b-profile-attention-messages-wrap > span  {
        font-size: 14px;
        white-space: normal;
        vertical-align: middle;
    }
    .b-profile-attention-messages-wrapper {
        width: 100%;
        padding: 10px 20px;
        box-sizing: border-box;
        background-color: #f3f3f3;
    }
    .b-profile-attention-messages-wrapper a {
        white-space: nowrap;
    }
    .b-profile-attention-messages-orange {
        height: auto;
    }
}
/* End responsive header for logged state */
@media screen and (max-width: 817px) {
    .b-connections-instr-wrap,
    .b-instr-border,
    .n-instrcactions_steps,
    .instr-tabs__item {
        width: 100% !important;
    }
    .n-instrcactions_steps {
        white-space: normal;
    }
    .n-instrcactions_steps:not(:first-child) {
        margin-top: 15px;
    }
    .n-instrcactions-title {
        padding: 14px 0 15px 0;
    }
    .b-instr-border {
        box-sizing: border-box;
    }
    .n-instrcactions-img {
        height: auto;
        width: 100%;
    }
    .b-instr-close {
        width: 15px;
        height: 15px;
        background-size: cover;
    }
}
@media screen and (max-width: 700px) {
    .b-content {
        border-top: 1px solid #f2f2f2;
    }
    .sub-navigation {
        padding: 20px 10px;
    }
    .b-after-head-nav__item-active > .b-2color-hors-line {
        display: none;
    }
    .b-after-head-nav__item-active {
        background: none;
    }
    /* Begin styles for responsive header */
    .b-head .b-login-dropdown,
    .b-head ul.main-mobile-menu {
        height: auto;
        width: 150px;
        right: 0;
        padding:  10px 0;
        border: 1px solid rgba(0, 0, 0, .06);
        border-radius: 3px;
        box-sizing: border-box;
        background-color: #fff;
        box-shadow: 0 1px 4px 0 rgba(0, 0, 0, .09);
    }
    .b-head ul.main-mobile-menu {
        display: block;
        top: 30px;
    }
    .b-head .main-mobile-menu li > a:hover {
        background-color: #0698e30d;
    }
    .b-head .b-login-dropdown  > li,
    .b-head .main-mobile-menu li {
        height: 40px;
        margin: 0;
        text-align: left;
    }
    .b-head .b-login-dropdown > li > a,
    .b-head .main-mobile-menu li > a,
    .b-after-head-nav__item-active > span {
        display: block;
        height: 40px;
        width: 100%;
        padding: 5px 15px;
        box-sizing: border-box;
        font: 600 15px Arial;
        line-height: 30px;
        color: #0698e3;
        cursor: pointer;
        transition: .3s;
    }
    .b-head .b-login-dropdown > li > a:hover {
        background-color: #0698e30d;
        color: #18c60f;
        outline: 0;
    }
    .b-top-menu {
        right: 0;
    }
    #menu-button {
        display: inline-block;
    }
    .b-head .b-top-menu {
        top: 17px;
        text-align: right;
    }
    #menu-button + .main-mobile-menu {
        position: absolute;
        padding: 10px 0;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
    }
    #menu-button + .main-mobile-menu:before,
    #menu-button + .main-mobile-menu:after {
        content: "";
        position: absolute;
        display: block;
        height: 0;
        width: 0;
        top: -5px;
        right: 5px;
        border-width: 0 5px 5px;
        border-style: solid;
        border-color: rgba(0, 0, 0, .06) transparent;
        visibility: inherit;
    }
    #menu-button + .main-mobile-menu:after {
        top: -4px;
        border-color: #fff transparent;
    }
    .b-head .b-top-menu-list,
    .b-head .g-horz-list > li {
        float: none;
    }
    .b-head .b-login-dropdown-nav {
        margin-top: 4px;
        margin-right: 25px;
    }
    .b-head .user-login-email {
        padding-top: 1px;
    }
    .b-head .b-big-login-nickname {
        padding: 0 16px 10px 21px;
    }
    .b-head .with-grey-triangle {
        background-position-y: 15px;
    }
    .b-head .b-login-dropdown.b-login-dropdown-level2 > li > a {
        line-height: 20px;
    }
    .b-head .b-login-dropdown.b-login-dropdown-level2 > li,
    .b-head .b-login-dropdown.b-login-dropdown-level2 > li > a {
        height: 50px;
    }
    /* End styles for responsive header */
    .b-login-wrap-checkbox {
        width: 100%;
    }
}
@media screen and (max-width: 690px) {
    .b-notif-text {
        width: 100%;
        max-width: 100%;
    }
    .b-notification-wrap.g-centered {
        text-align: left;
    }
    .b-later,
    .b-activate {
        min-width: 60px;
    }
}
@media screen and (max-width: 470px) {
    .sub-navigation__link {
        margin-right: 10px;
    }
}
@media screen and (max-width: 450px) {
    .b-head .user-login-email {
        display: none;
    }
    .b-head .b-blue-body-icon {
        height: 30px;
    }
    .b-head .b-big-login-nickname {
        padding: 0 16px 10px 15px;
    }
}
@media screen and (max-width: 440px) {
    .b-privacy-policy {
        padding-top: 10px;
        display: block;
    }
}
@media screen and (max-width: 430px) {
    .sub-navigation {
        height: auto;
    }
    .sub-navigation__link {
        margin-right: 20px;
        line-height: 25px;
    }
}
@media screen and (max-width: 400px) {
    .b-login-dropdown-level2-right-align {
        left: 0;
        top: 48px;
    }
    .b-profile-attention-messages-wrap {
        height: auto;
        min-height: 29px;
    }
}
@media screen and (max-width: 350px) {
    .title-info__button {
        font-size: 23px;
    }
    .b-privacy-policy a {
        padding-bottom: 10px;
        display: block;
    }
    .b-copyright {
        padding-top: 0;
    }
}
@media screen and (max-width: 330px) {
    .sub-navigation {
        height: auto;
    }
}