@media (max-width: 991px){
    .login form{
        float: initial;
        margin: 12vh auto;
    }
    .chat{
        width: 100vw;
        position: relative;
        padding: 0px;
        margin: 0px;
        height: calc(100vh - 75px);
        min-height: initial;
        margin-left: -20px;
    }
    .chat .chat-list{
        width: 100%;
        position: absolute;
        left: 0px;
        top: 62px;
        height: calc(100% - 62px);
        overflow-y: auto;
        z-index: 100;
        background: #fff;
        transition: .3s ease 0s;
        margin: 0px;
    }
    .chat .chat-list .chat-title{
        position: relative;
    }
    .chat .chat-list .chat-title h3{
        display: none;
    }
    .chat .chat-list select{
        margin-top: 18px;
    }
    .chat .chat-menu{
        padding: 0px;
        border-bottom: 1px solid #EEEEEE;
        margin-bottom: 0px;
        position: sticky;
        top: 0px;
    }
    .chat .chat-menu.no-list .menu-list{
        display: none;
    }
    .chat .chat-menu.no-list .menu{
        width: 25%;
    }
    .chat .chat-menu .menu-list{
        display: block;
    }
    .chat .chat-menu .menu{
        width: 20%;
        background: #fff;
        padding: 12px 8px;
    }
    .chat .chat-menu .menu > .inner{
        padding: 20px 0px 0px;
    }
    .chat .chat-menu .menu > .inner i{
        margin: 0 auto;
        right: 0;
    }
    .chat .chat-menu .menu.active{
        color: #1352A8;
    }
    .chat .chat-menu .menu.active:after{
        content: '';
        position: absolute;
        bottom: 0px;
        left: 0px;
        width: 100%;
        border-bottom: 2px solid #1352A8;
    }
    .chat .chat-menu .badge{
        top: 6px;
        right: 2px;
    }
    .chat .chat-info{
        /* display: none; */
    }
    .chat .chat-box{
        width: 100%;
        box-shadow: none
    }
    .chat .chat-box .msg-box{
        padding-top: 15px;
    }
    .chat .panel-box .panel-head{
        padding: 9px 15px 16px;
    }
    .chat .panel-box .panel-body .btn-box .btn {
        margin: 10px 5px;
    }
    .chat .chat-list .user-box, .chat .chat-list .user-box.active{
        box-shadow: none;
        border: 0px;
        border-bottom: 1px solid #ECECEC;
        border-radius: 0px;
        margin-bottom: 0px;
    }
    .chat .chat-info .video-call{
        position: fixed;
        top: 0px;
        left: 0px;
        width: 100vw;
        z-index: 3000;
        background: linear-gradient(205deg, #2B8AD3, #1352A8);
        color: #fff;
        padding: 15px;
        display: none;
    }
    .chat .chat-info .video-call .name{
        padding-left: 80px;
        padding-right: 80px;
    }
    .chat .chat-info .video-call .img{
        left: 25px;
    }
    .chat .chat-info .video-call .actions{
        display: none;
    }
    .chat .chat-info .video-call .btn-mobile-back{
        display: block;
        position: absolute;
        font-size: 30px;
        top: 6px;
        left: 0px;
    }
    .chat .chat-info .video-call .actions-mobile{
        display: block;
        position: absolute;
        right: 0px;
        top: 6px;
    }
    .chat .chat-info .video-call .actions-mobile i{
        margin: 6px 8px;
        width: 18px;
        height: 18px;
        cursor: pointer;
    }
    .chat .chat-info .video-call .actions .btn{
        background: transparent !important;
        color: #fff !important;
        margin: 0px !important;
        padding: 0px;
        text-align: center;
    }
    .chat .chat-info .video-call .actions .btn-icon{
        padding-top: 27px;
        padding-left: 0px;
        position: relative;
    }
    .chat .chat-info .video-call .actions .btn-icon i{
        position: absolute;
        top: 0px;
        left: 0;
        right: 0;
        margin: 0 auto;
        -webkit-transform: none;
        -moz-transform: none;
        -ms-transform: none;
        -o-transform: none;
        transform: none;
    }
    .chat .chat-info .video-call .actions .btn-icon i.icon-call-blue{
        background-image: url('../images/icon-call.svg');
        width: 24px;
        height: 24px;
    }
    .chat .chat-info .video-call .actions .btn-icon i.icon-video-blue{
        background-image: url('../images/icon-video.svg');
        width: 24px;
        height: 24px;
    }
    .chat .chat-info .video-call .actions{
        margin-top: 15px;
    }
    .chat .chat-info #map{
        display: none;
        overflow: hidden;
        position: fixed !important;
        z-index: 3000;
        top: 75px;
        height: calc(100vh - 75px);
        width: 100vw;
    }
    .chat .panel-box > .panel{
        line-height: 22px;
    }
    .chat .step{
        width: calc(100% + 30px);
        position: relative;
    }
    .chat .step .col{
        padding-left: 50px;
        position: relative;
        display: inline-block;
        padding-bottom: 20px;
    }
    .chat .step .col:last-child{
        padding-bottom: 0px;
    }
    .chat .step .col::before{
        content: '';
        width: 20px;
        height: 20px;
        border: 6px solid #1352A8;
        border-radius: 50%;
        left: 15px;
        top: 2px;
        position: absolute;
        background: #fff;
        z-index: 1;
    }
    .chat .step .col::after{
        content: '';
        width: 2px;
        height: 100%;
        background: #1352A8;
        position: absolute;
        left: 24px;
        top: calc(-100% + 5px);
        z-index: 0;
    }
    .chat .step .col:first-child::after{
        display: none;
    }
    .chat .step .col.active ~ .col::before{
        border-color: #CACACA;
    }
    .chat .step .col.active ~ .col::after{
        background-color: #CACACA;
    }
    .chat .step hr, .chat .step div:not(.col){
        display: none;
    }
    .chat .step .col span{
        width: 50%;
        display: inline-block;
        float: left;
    }
    #video-call .me{
        top: 12px;
        right: 12px;
        width: 110px;
        height: 140px;
        max-width: 100%;
        overflow: hidden;
    }
    #video-call .time{
        bottom: 110px;
        left: 0;
        right: 0;
        margin: 0 auto;
        text-align: center;
        padding-bottom: 0px;
    }
    #video-call .time i{
        display: none;
    }
    #video-call .vdo{
        width: auto;
        left: 50%;
        -webkit-transform: translateX(-50%);
        -moz-transform: translateX(-50%);
        -ms-transform: translateX(-50%);
        -o-transform: translateX(-50%);
        transform: translateX(-50%);
    }
    
    .for-ambulance .login form{
        margin-top: 30vh;
    }

    /* puu 2020-11-27 */
    #video-call .me{
        left: 12px;
        right: auto;
    }
    #video-call.is-zoom {
        z-index: 25000;
    }
}

@media (max-width: 767px){
    .login form{
        padding: 60px 30px;
        margin: 9vh auto;
    }
    .login .login-head{
        margin-bottom: 30px;
    }
    header{
        width: 100%;
        right: -100%;
        max-width: 100%;
        box-shadow: 0 2px 4px 0 rgba(210,210,210,0.50);
        background: linear-gradient(205deg, #2B8AD3, #1352A8);
        height: 75px;
        overflow-y: hidden;
        z-index: 2000;
    }
    body{
        background-image: none;
    }
    .navbar{
        height: 60px;
    }
    .navbar .navbar-header{
        padding: 3px 20px;
    }
    .navbar .navbar-brand{
        height: 45px;
    }
    .navbar .navbar-toggle{
        margin: 0px;
        border: 0px;
        padding: 15px 0px;
        background: transparent !important;
    }
    .navbar .navbar-toggle .icon-bar{
        background-color: #000;
        border-radius: 0px;
        height: 2px;
    }
    .navbar #menu{
        width: 100vw;
        height: calc(100vh - 75px);
        position: fixed;
        z-index: 2000;
        top: 0px;
        padding: 20px 0px;
        text-align: center;
        background: #FFFFFF;
        overflow-y: auto;
        margin-top: 75px;
        z-index: 2000;
        right: -100%;
    }
    body #menu, body header, body{
        transition: .3s ease 0s;
    } 
    .navbar .nav-menu-brand{
        display: block;
        width: 90px;
        margin: 0 auto;
    }
    .navbar .nav-menu-brand img{
        width: 100%;
    }
    .navbar li a{
        font-weight: 500;
        font-size: 14px;
        color: #555555;
        padding: 18px 15px;
    }
    .navbar #menu ul{
        padding: 30px 0px;
        margin: 0px auto 10px;
        width: calc(100% - 40px);
    }
    .navbar .navbar-social{
        display: block;
    }
    .navbar .navbar-nav.navbar-right{
        margin: 0px;
    }
    .navbar-user{
        text-align: left;
        border-bottom: 1px solid #DADADA;
        margin: 0px auto;
        padding-bottom: 10px;
        width: calc(100% - 40px);
        padding-top: 0px;
    }
    .navbar .navbar-brand{
        position: relative;
        top: 4px;
        padding: 10px;
        width: auto;
        height: 60px;
        padding-left: 0px;
    }
    .navbar .navbar-brand img{
        height: 100%;
        width: auto;
    }
    #nav-seting li:not(.lang){
        display: none;
    }
    .navbar .navbar-toggle .icon-bar{
        background: #fff;
    }
    .navbar .navbar-toggle{
        margin-top: 12px;
    }
    #nav-seting{
        top: 20px;
        right: 65px;
    }
    #nav-seting .lang > .inner{
        color: #fff;
        padding: 8px 10px 5px;
    }
    #wrapper{
        width: 100%;
        height: auto;
        overflow: hidden;
        margin: 0px;
        padding: 0px 5px;
        border-radius: 0px;
    }
    body{
        overflow-y: auto;
    }
    body.slide-bar #wrapper{
        opacity: 0;
        transition: .3s ease 0s;
    }
    .page-name{
        display: none;
    }
    .text-icon{
        margin-bottom: 12px;
        display: inline-block;
    }
    .btn{
        text-transform: uppercase;
    }
    .navbar .navbar-toggle button{
        background: transparent;
        border: 0px;
        box-shadow: none;
    }
    header .navbar{
        margin-bottom: 0px;
        height: auto;
    }
    header .user-img{
        width: 35px;
        height: 35px;
        border-radius: 50%;
        overflow: hidden;
        border: 2px solid #fff;
        position: relative;
        margin-top: -11px;
    }
    #nav-seting .lang > .inner.active {
        background: rgba(255,255,255,0.3);
        border-radius: 3px;
        color: #fff;
    }
    header .navbar ul li .overlay{
        display: none !important;
    }
    .navbar #menu ul{
        padding: 0px 15px;
        margin: 0px;
        width: 100%;
    }
    header .navbar ul li a{
        color: #000 !important;
        text-align: left;
        padding-top: 20px;
        padding-bottom: 20px;
    }
    header .navbar ul li:not(:first-child){
        border-top: 1px solid #ECECEC;
    }
    header .navbar ul li{
        padding-left: 5px;
    }
    form label{
        margin-bottom: 10px;
    }
    .tab .tab-head{
        white-space: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
    }
    .tab .tab-head > .inner{
        display: inline-flex;
        float: initial;
    }
    .topic{
        margin-bottom: 10px;
    }
    .topic .title{
        margin-top: 8px;
    }
    .topic .btn{
        padding: 5px 15px;
        margin-top: 3px;
    }
    .topic .btn-icon{
        padding-left: 0px;
    }
    .topic .btn-icon i{
        transform: none !important;
        top: 0px !important;
        position: relative !important;
    }
    .topic .btn-icon span{
        display: none;
    }
    .modal .modal-footer .btn{
        min-width: auto;
        width: calc(50% - 10px);
    }
    .empty img {
        width: 220px !important;
        max-width: 100%;
    }
    .input-group.is-picker {
        max-width: 150px;
    }
    .login #nav-seting .lang > .inner.active{
        background: #1090FF;
        color: #fff;
    }
    .login #nav-seting .lang > .inner{
        color: #000;
    }
    header .navbar #menu ul.dropdown-menu{
        padding: 0px;
    }
    header .navbar #menu ul.dropdown-menu a{
        padding-top: 20px;
        padding-bottom: 20px;
        
    }
    header .navbar #menu ul.dropdown-menu a.has-icon{
        padding-left: 40px;
        
    }
    header .navbar-nav>li>.dropdown-menu li {
        padding-left: 15px;
    }
    .for-ambulance .login #nav-seting .lang > .inner{
        color: #fff;
    }
    .for-ambulance .login form{
        margin-top: 20vh;
    }
    .upload .upload-btn button{
        text-transform: initial;
    }
    .upload .upload-file .file img{
        height: 100px;
    }
    .form-search-table{
        width: 100%;
        position: relative;
        margin-bottom: 15px;
    }
    .form-search-table .form-group{
        width: calc(50% - 5px) !important;
        margin-bottom: 10px;
        margin-right: 5px !important;
    }
    .form-search-table .form-group:nth-child(even){
        margin-left: 5px !important;
        margin-right: 0px !important;
    }
    .form-search-table .form-group.is-search{
        width: 100% !important;
        margin: 0px !important;
    }
    .form-search-table .form-group.is-search .btn{
        width: 100%;
    }
    .form-search-table .form-group.is-full{
        width: 100% !important;
        margin-right: 0px !important;
        margin-left: 0px !important;
    }
    .form-search-table .input-group.is-picker{
        max-width: 100%;
    }
    .form-filter{
        width: 100%;
        color: #1352A8;
        font-size: 14px;
        line-height: 17px;
        position: relative;
        /* display: block; */
        font-weight: 500;
        text-align: center;
        background: #f1f1f1;
        padding: 10px;
        margin-bottom: 10px;
        cursor: pointer;
    }
    .form-filter > .inner{
        position: relative;
        padding-right: 30px;
        display: inline-block;
    }
    .form-filter i{
        position: absolute;
        right: 0px;
        top: 0px;
    }
    header .navbar ul li.logout{
        display: block;
    }
    form .form-group.is-inline{
        margin-right: 0px;
    }
    footer{
        display: none;
    }

    .history{
        padding-top: 0px;
    }
    .history .user-box{
        display: none;
    }
    .history .user{
        padding-left: 0px;
        padding-top: 55px;
    }
    .history .user .img{
        top: 0px;
        -webkit-transform: none;
        -moz-transform: none;
        -ms-transform: none;
        -o-transform: none;
        transform: none;
    }
    .history .chat .chat-menu .menu{
        width: 25% !important;
    }
    .history .chat .chat-menu .menu.menu-list{
        display: none !important;
    }
    .new-case .form-group.is-inline{
        margin-right: 10px;
    }
    .home-menu .box{
        width: calc(50% - 18px);
    }
    .hidden-mobile{
        display: block;
    }
    .hidden-desktop{
        display: none;
    }
    #call-receive{
        width: calc(100% - 20px);
    }
}

@media (max-width: 520px){
    form .btn-box{
        margin-left: -5px;
        margin-right: -5px;
        text-align: center;
    }
    form .btn-box .btn{
        width: calc(50% - 12px);
        margin: 5px;
        min-width: initial;
    }
    .chat .photo .item{
        width: calc(33.33% - 7px);
        margin: 2px;
    }
    .tab .tab-head.is-box{
        width: 100%;
        overflow-x: hidden;
        margin-bottom: 5px;
    }
    .tab .tab-head.is-box > .inner{
        width: 50%;
        text-align: center;
        display: inline-block;
        float: left;
    }
    .step-box{
        margin-left: -8px;
        width: calc(100% + 16px);
    }
}