/*Адаптация для мобильного*/

@media screen and (max-width: 1400px) {

    .file-details {
        max-width: 80%;
    }

}

@media screen and (max-width: 1100px) {

    .chat_head{
        display: none;
    }

    .dispatcher_main_section{
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
    }

    .chat.main_section_page {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
    }

    .profile_wrap {
        width: 320px !important;
    }

    .status_content_h3 {
        font-size: 24px;
    }

    .sidebar-group.mobile-open {
        opacity: 1;
        right: 0;
        visibility: visible;
    }

    .login-left,
    .login-right {
        width: 50%;
    }


    .settings-tab .nav-tabs .nav-link {
        margin-right: 20px;
    }

    .chat .chat-body .messages .chats .audio_block {
        width: 350px;
    }

    #burger-btn{
        margin-right: 5px;
    }
}

@media screen and (max-width: 900px) {

    .search_chat {
        margin: 7px 0 10px;
    }

    .main-wrapper .content .sidebar-group {
        width: 290px;
    }

    .contactBtn {
        width: 275px;
    }

    .chatlist_second_block {
        -webkit-box-flex: 1;
        -ms-flex: 1;
        flex: 1;
        width: 100%;
        max-width: 200px;
    }

    .sidebar-menu {
        display: none;
    }

    .main-wrapper {
        left: 0;
    }

    .burger-content {
        display: block;
    }

    .search_chat {
        margin-left: 15px;
    }

    .sidebar-menu-phone {
        display: block;
        width: 100%;
        height: 100%;
        position: fixed;
        z-index: 99999;
        background-color: #EFF2F7;
        padding: 30px;
        -webkit-transform: translateX(-300%);
        -ms-transform: translateX(-300%);
        transform: translateX(-300%);
        -webkit-transition: -webkit-transform 0.6s;
        transition: -webkit-transform 0.6s;
        -o-transition: transform 0.6s;
        transition: transform 0.6s;
        transition: transform 0.6s, -webkit-transform 0.6s;
        -webkit-transition-delay: 0.1s;
        -o-transition-delay: 0.1s;
        transition-delay: 0.1s;
        overflow: hidden;
    }

    .darkmode .sidebar-menu-phone {
        background-color: #333;
    }

    .is-active {
        -webkit-transform: translateX(0%);
        -ms-transform: translateX(0%);
        transform: translateX(0%);
    }

    .lexivo-logo {
        height: 25px;
        margin-top: 5px;
        background-image: url(../../images/logos/Logo.svg);
        background-repeat: no-repeat;
        background-size: contain;
        background-position: left;
    }

    .mobile-links {
        margin-top: 40px;
    }

    .burger-link {
        color: black !important;
        text-decoration: none;
        font-size: 20px;
        display: inline;
    }

    .darkmode .burger-link {
        color: white !important;
    }

    .burger-menu-logo img{
        -webkit-filter: invert(1);
        filter: invert(1)
    }

    .darkmode .burger-menu-logo img{
        -webkit-filter: invert(0);
        filter: invert(0);
    }

    .burger-link img {
        -webkit-filter: invert(1);
        filter: invert(1);
    }

    .darkmode .burger-link img {
        -webkit-filter: invert(0);
        filter: invert(0);
    }
    .burger-link-logout img {
        -webkit-filter: invert(0);
        filter: invert(0);
    }

    .burger-link .material-icons {
        font-size: 22px;
    }



}

@media screen and (max-width: 700px) {
    .chat .chat-body .messages .chats .audio_block {
        width: 100%;
    }
}

@media screen and (max-width: 640px) {

    .phoneArrowBack{
        display: block;
    }

    body {
        font-size: 13px;
        padding-left: 0;
    }

    .chatlist_second_block{
        max-width: 92%;
    }

    .dis_arrow_back{
        display: block !important;
    }

    .main-wrapper .content {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-flow: column wrap;
        flex-flow: column wrap;
    }

    .main-wrapper .content .sidebar-group {
        width: 100%;
    }

    .chat, .right-sidebar {
        display: none;
        width: 100%;
    }

    .main-wrapper .content .sidebar-group .sidebar {
        width: 100%;
    }

    .right-sidebar .sidebar-body .pl-4,
    .right-sidebar .sidebar-body .pr-4 {
        padding: 0 !important;
    }

    .sidebar-body {
        padding: 10px 15px;
    }

    .header {
        padding: 15px 15px;
        height: 130px;
        overflow: initial;
        background-color: #650681;
        background-image: none;
    }

    .header-top {
        margin-bottom: 20px;
    }

    .header_button {
        bottom: -18px;
    }

    .nav.nav-tabs.chat-tabs .nav-item .nav-link,
    .nav.nav-tabs.chat-tabs .nav-item .nav-link.active {
        font-size: 14px;
        padding-right: 8px;
    }

    .chat .chat-header {
        padding: 15px 0 10px;
    }

    .chat .chat-body {
        padding: 20px 15px 58px;
    }


    .chat .chat-body .messages .chats {
        margin-bottom: 1rem;
    }

    .status_update {
        display: none;
    }

    .chat {
        min-width: 0;
    }

    .chat .chat-footer {
        width: 100%;
        background-color: #fff;
        padding: 10px 15px;
        top: inherit;
    }

    .contact_profile_icon {
        top: 44px;
        left: 50px;
    }

    .right-sidebar {
        width: 100%;
        padding-right: 0;
    }

    body .sidebar-group .sidebar .list-group-item .users-list-body h5 {
        font-size: 16px;
    }

    .chat .chat-body .messages .chats {
        max-width: 100%;
    }

    .account-page .container-fluid {
        height: 100%;
    }

    .account-page .container-fluid > div {
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        -webkit-align-items: center;
        height: 100%;
    }

    .left-sidebar.hide-left-sidebar {
        margin-left: -991px;
    }

    .chat.show-chatbar {
        display: block;
        margin-left: 0;
    }

    .chat.hide-chatbar {
        margin-left: -991px;
        display: none;
    }

    .right-sidebar.hide-right-sidebar {
        margin-right: -991px;
    }

    .right-sidebar.show-right-sidebar {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
    }

    .sidebar-menu {
        width: 65px;
        padding: 20px 10px;
    }

    .chat.video-screen {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        display: -webkit-flex;
        padding: 5px 15px;
    }

    .chat.video-screen .chat-body {
        padding: 0;
    }

    .settings-option {
        display: block;
    }

    .chat.status-middle-bar {
        display: none !important;
    }

    .keyboard-item, .keyboard-item {
        margin-bottom: 14px;
    }

    #middle1 {
        height: 102%;
    }

    #headerDispatcher{
        font-size: 14px;
    }

    .phone-header {
        margin-bottom: 10px;
        height: 43px;
    }

    .settings-control.full-options ul li {
        padding: 10px 20px 0;
    }


    .settings-control.full-options {
        padding: 0;
    }

    .left_side {
        display: flex;
    }

    .chat_sidebar {
        overflow: hidden;
    }

    #chatContactList, #dispatchersList {
        overflow-y: scroll !important;
        overflow-x: hidden !important;
    }

    .contactBtn {
        margin-right: 5px;
        width: 98%;
    }

    .chat .chat-header .user-details figure {
        margin-right: 5px;
    }

    .chat .chat-header .chat-options ul > li > #callContactBtn {
        margin-right: 5px;
    }


    .avatar {
        width: 2rem;
        height: 2rem;
    }

    #chatHead {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-between;
    }

    .chat .chat-body {
        padding: 20px 0 0 !important;
    }

    .main-wrapper .content .sidebar-group {
        width: 100%;
        height: 100%;
    }

    audio {
        width: 100%;
    }


    .contact-close_call {
        display: block;
        margin-top: 10px;
        margin-right: 10px;
    }

    .scroll-down {
        margin-left: -33px;
    }


    .profile-left {
        display: none !important;
    }

    .group-avatar {
        display: none;
    }

    .ivr-text {
        word-break: break-all;
    }

    .cards-row {
        display: block;
    }

    .billing-card {
        margin-bottom: 20px;
    }

    #table_templates, #table_card, #table-history {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    #table-history {
        width: 100% !important;
    }

    .fs-bottom-login{
        font-size: 10px;
    }

    .logo-login-dark{
        display: none;
    }

    .login-left-right {
        display: block;
    }

    .left-chat-title {
        padding: 5px 5px;
    }

    .burger-menu {
        margin: 0 15px 0;
    }

    .left-chat-title {
        margin: 0 15px 0;
    }

    .sidebar .user-list .user-list-item {
        padding: 10px 10px 10px 10px;
    }

    .login-right {
        margin-bottom: 40px;
    }

    .search_chat {
        margin-left: 0;
    }

    .chat .chat-header {
        display: block;
    }

    .chat .mob-auto {
        max-width: 25%;
    }

    .avatar-group {
        padding-top: 20px;
        padding-left: 35px;
    }

    .status-title {
        margin-left: 0 !important;
    }

    .send-btn_status {
        width: 48px;
        height: 48px;
        margin-left: 8px;
        font-size: 20px;
    }

    .missed-call-widget .card-body,
    .other-call-widget .card-body {
        padding: 30px 8px;
    }

    .avatar-group.group-col {
        padding-top: 0;
        padding-left: 15px;
    }

    .missed-call-widget .card-body h6,
    .other-call-widget .card-body h6 {
        font-size: 13px;
    }

    .sidebar-menu {
        width: 100%;
        height: 58px;
        top: inherit;
        bottom: 0;
        -webkit-box-shadow: 0 0 5px 2px rgba(66, 11, 161, 0.2);
        box-shadow: 0 0 5px 2px rgba(66, 11, 161, 0.2);
        padding: 10px 15px;
    }

    .sidebar-menu .logo-col {
        display: none;
    }

    .menus-col {
        height: auto;
        -ms-flex-pack: distribute;
        justify-content: space-around;
        -webkit-justify-content: space-around;
    }

    .chat-menus {
        margin-top: 0;
    }

    .chat-menus ul li a span,
    .bottom-menus ul > li > a > span {
        display: none;
    }

    .chat-menus ul li a span.material-icons,
    .bottom-menus ul li a span.material-icons {
        display: block;
    }

    .chat-menus ul li {
        display: inline-block;
    }

    .chat-menus ul li + li,
    .bottom-menus ul li + li {
        margin-left: 10px;
        margin-top: 0;
    }

    .chat-menus ul li a {
        width: 40px;
        height: 40px;
    }

    .chat-menus ul li a img {
        width: 20px;
    }

    .bottom-menus ul li {
        display: none;
    }

    .bottom-menus ul li:last-child {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        display: -webkit-flex;
    }

    .bottom-menus {
        width: auto;
        display: block;
    }

    .bottom-menus .chat-profile-icon {
        width: 40px;
        height: 40px;
    }

    .bottom-menus ul li {
        float: left;
    }

    .sidebar-body {
        padding-bottom: 60px;
    }

    .chat .chat-body {
        padding: 20px 0 120px;
    }

    .chat .chat-body .messages .chat-profile-name h6 {
        font-size: 14px;
    }

    .report-col {
        margin-top: 15px;
    }

    .chat .chat-body .messages .download-col ul {
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        -webkit-flex-wrap: wrap;
    }

    .login-left {
        width: 100%;
        height: 100% !important;
        position: absolute;
    }

    .login-right {
        display: none;
    }

    .account-content {
        max-width: 100%;
        padding: 0;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-between;
    }

    .account-content-login {
        padding: 0 15px 15px;
        -webkit-box-align: end;
        -ms-flex-align: end;
        align-items: end;
    }

    .otp-box .digit-group input {
        margin: 0 10px;
    }

    .chat_form {
        border-radius: 0;
    }

    .chat .chat-header .user-details h5 {
        font-size: 14px;
    }

    .right-sidebar .right-sidebar-wrap {
        margin-bottom: 0;
    }

    .call-user-avatar {
        width: 50px;
        height: 57px;
    }

    .record-time span {
        width: 100px;
        height: 40px;
        font-size: 13px;
        line-height: 40px;
    }

    .record-time span:before {
        width: 15px;
        height: 15px;
        left: 16px;
        top: 13px;
    }

    .record-time span:after {
        width: 7px;
        height: 7px;
        left: 20px;
        top: 17px;
    }

    .chat.video-screen .chat-header .chat-options {
        margin-top: 20px;
        margin-left: 0;
    }

    .chat.video-screen .chat-header .chat-options .mr-5 {
        margin-right: 20px !important;
    }

    .video-screen-inner {
        padding: 15px;
        height: calc(100vh - 255px);
    }

    .call-user-avatar {
        left: 15px;
        top: 15px;
    }

    .record-time {
        top: 15px;
        right: 15px;
    }

    .video-call-action ul li a {
        width: 40px;
        height: 40px;
    }

    .video-call-action ul li {
        margin: 0 2px;
    }

    .video-call-action ul li a .material-icons {
        font-size: 18px;
    }

    .video-group-member .call-user-avatar {
        width: 50px;
        height: 57px;
    }

    .call-action-group {
        width: 20px;
        height: 20px;
    }

    .call-action-group .material-icons {
        font-size: 10px;
    }

    .group-call-tab .nav-tabs .nav-link {
        padding: 6px 20px;
    }

    .group-call-tab .nav-tabs .nav-link + .nav-link {
        margin-left: 5px;
    }

    .profile-card,
    .settings-card {
        margin: 0 15px 17px;
    }

    .settings-card {
        margin-bottom: 80px;
    }

    .settings-option {
        padding: 0 15px 15px;
    }

    .chat.settings-main .settings-form {
        padding-bottom: 60px;
    }

    .page-header h5 {
        font-size: 18px;
    }

    .settings-delete .btn-delete {
        margin-top: 15px;
        float: left;
    }

    .volume-col .inner-volume-col {
        width: 40px;
        height: 140px;
    }

    .volume-col #volume .ui-slider-handle {
        width: 15px;
        height: 15px;
    }

    .volume-col #player {
        top: 10px;
    }

    .volume-col .material-icons {
        margin-top: 10px;
    }

    .volume-col {
        bottom: 80px;
    }

    .chat.video-screen {
        padding-left: 0;
    }

    .status-text {
        max-width: 90%;
        font-size: 12px;
    }

    .carousel-indicators li {
        width: 33px;
    }

    .bottom-message-col {
        max-width: 100%;
        padding: 0;
        margin: 0;
    }

    .logout-btn {
        margin-top: 10px;
    }

    .main-wrapper .content .sidebar-group {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        position: relative;
        z-index: 105;
        width: 100%;
        max-width: 100%;
        min-width: 255px;
    }


    .footer-menu-chat{
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
    }

    .burger-content{
        display: none;
    }

    .burger-content-2{
        display: block;
    }

    .open-close-sidebar {
        display: none;
    }

    #call-controls{
        height: 91%;
        width: 60%;
    }
}

@media (max-height: 700px) and (min-width: 992px) {

    .chat-menus ul li + li {
        margin-top: 10px;
    }

    .chat-menus ul li a {
        width: 35px;
        height: 35px;
    }

    .darkmode .chat-menus ul li a {
        width: 35px;
        height: 35px;
    }

    .chat-menus ul li a span.material-icons, .bottom-menus ul li a span.material-icons {
        font-size: 18px;
    }

    .dark_modeMoon {
        width: 18px;
    }

    .darkmode .dark-mode-toggle {
        width: 35px;
        height: 35px;
    }

    .dark-mode-toggle {
        width: 35px;
        height: 35px;
    }

    .darkmode .add-contacts-btn {
        width: 35px;
        height: 35px;
    }

    .add-contacts-btn {
        width: 35px;
        height: 35px;
    }

}


@media (max-width: 600px) {
    .chat .chat-body .messages .chats .audio_block {
        width: 300px;
    }
}

@media screen and (max-width: 576px) {
    .chat-menus ul li + li,
    .bottom-menus ul li + li {
        margin-left: 7px;
    }

    .otp-box .digit-group input {
        margin: 0 7px;
    }
    .chatlist_second_block{
        max-width: 90%;
        min-width: 315px;
    }
}

@media (max-height: 600px){
    .phone-keyboard {
        width: 175px;
        margin: auto;
    }

    .keyboard-item, .keyboard-item {
        width: 45px;
        height: 45px;
        margin-bottom: 10px;
        font-size: 22px;
    }

    .keyboard-smalitem, .keyboard-smalitem {
        width: 45px;
        height: 45px;
    }
}
