@media screen and (max-width: 992px) {


    .DoctorGUI_AppointmentModal .modal-lg {
        width:98%;
    }

    .DoctorGUI_AppointmentModal .modal-lg  .input_bx_area textarea {
        height: 60px;
    }

    .doctorservices.modal-open .full_width.mobile-flex {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: start;
        -ms-flex-pack: start;
        justify-content: flex-start;
    }

    .doctorservices.modal-open .full_width.mobile-flex .lbl_span {
          width: 170px;
      }

    .doctorservices.modal-open .lbl_span {
        min-width: 170px;
    }

    .calendar_white_main,
    .calendar_white_scroll {
        /*height: calc(100vh - 300px) !important;*/
        overflow: auto !important;
        max-height: 100vh;
        height:100vh;
    }

    .content_messages .content_messages__footer .box_textarea textarea {
        height: 100px;
    }

    .content_messages .content_messages__body {
        /*height: calc(100vh - 447px);*/
        max-height: 70vh;
        height: 100%;
    }

    .content_messages .content_messages__header .box__checkout_parametrs .btn_commun:hover {
        /*background: #1e6cca;*/
        
        padding-right:15px;
    }

    .maxw300p {
        max-width: 100%;
    }

    .maxw300p > div.ng-valid-time {
        display: flex;
        justify-content: center;

    }

    .appointmentForm .popup_picker {
        max-width: 100% !important;
    }

    button.mobile-show {
        display: block;
        width: 100%;
        margin: 5px auto;
    }

    .desktop-show {
        display: none;
    }

    .modal .full_width .input_bx_area .input_button {
        margin-top: 5px;
        margin-right: 0;
        width: 100%;
    }

    .appointmentForm .full_width .input_bx_area input {
        margin-right: 0 !important;
    }

    .full_width.mobile-flex .lbl_span {
        width: 100%;
    }

    .appointmentForm .select2-container,
    .appointmentForm input[type="text"],
    .appointmentForm select,
    .appointmentForm textarea {
        max-width: 100% !important;
        width: 100% !important;
    }

    .appointmentForm .form-control.datepicker.hasDatepicker,
    .appointmentForm input[type="text"].hasTimepicker {
        max-width: 100% !important;
        width: 100% !important;
    }

    .appointmentForm .full_width,
    .appointmentForm .full_width .input_bx_area,
    .appointmentForm .full_width.with-patient {
        width: 100% !important;
    }

    .home_icon {
        margin-right: 0;
        padding: 10px;
    }



    .row.widget-row {
        display: flex;
    }

    .row.widget-row .widget .col-lg-3 {
        display: none;
    }

    .row.widget-row .widget .calendar-widget,
    .row.widget-row .widget #do-not-disturb,
    .row.widget-row .widget .clock-widget {
        width: 100%;
    }

    .static-list .navbar.navbar-default ul {
        align-items: flex-end;
        margin: 0;
        display: flex;
        flex-direction: column;
        padding-right: 20px;
    }

    .row.widget-row {
        padding: 0;
    }


    .d-flex .box_search {
        padding-left: 0 !important;
    }

    .d-flex .box_search input {
        padding: 8px 5px;
    }

    .box_btn_newsend {
        padding-left: 0 !important;
    }

    .sitebar_messages__header .d-flex {
        justify-content: space-between !important;
        margin-left: 10px;
    }

    .sitebar_messages .sitebar_messages__header .box_btn_newsend {
        width: auto;
        height: auto;
    }

    .sitebar_messages .sitebar_messages__header .box_search .btn_search {
        right: -7px;
    }

    .sitebar_messages .sitebar_messages__header .box_select {
        width:100px;}

    .sitebar_messages .sitebar_messages__header .box_search {
        margin-right: 30px;
        flex:auto;
        width: 100px;
    }

    .sitebar_messages .sitebar_messages__header .box_btn_newsend .btn_newsend {
        width: 25px;
    }

}

@media screen and (max-width: 768px) {

    .left_box {
        width: 35%;
    }

    .right_box {
        width: 65%;
    }


    #returnToList {
        display: none;
        background: #1A60C0;
        color: #fff !important;
        padding: 5px 10px;
        font-size: 13px;
        width: 100px;
        margin: 0 auto;
    }

    .right_box_wrapper,
    .left_box_wrapper {
        width: 100%;
    }

    .right_box_wrapper {
        display: none;
    }

    #returnToList.mobile-show {
        display: block;
        /*margin-top: 5px;*/
        width:auto;
    }

    .right_box_wrapper.mobile-show {
        display: block;
    }

    .left_box_wrapper.mobile-hide {
        display: none;
    }


    #doctorPatientsTable_wrapper {
        overflow: auto;
    }

    #patientListContainer .btn-group.pull-right {
        z-index: 9;
    }

    #patientListContainer .col-lg-12 {
        padding: 0 5px;
    }

    #doctorPatientModal .row {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-between;
        -webkit-box-align: start;
        -ms-flex-align: start;
        align-items: flex-start;
    }

    #doctorPatientModal .row .col-lg-3 {
        margin-bottom: 0;
    }

    .appointmentForm .full_width.mobile-flex .input_bx_area input {
        margin-top: 0 !important;
        width: 20px !important;
    }

    .appointmentForm .full_width.mobile-flex .input_bx_area .lbl_span {
        width: 250px;
    }

    #doctorPatientModal .col-lg-12 {
        padding: 0 5px;
    }

    .mobile-flex {
        display: flex;
        flex-direction: row !important;
        align-items: center !important;
    }

    .calendar_header_mobile {
        display: block;
    }

    .calendar_header_desktop {
        display: none;
    }

    #doctorPatientModal .col-lg-12 .col-lg-9 {
        width: 100%;
    }

    .modal .full_width input,
    .modal .full_width select,
    .modal .select2-container,
    .modal .input_bx_area,
    .modal .hasDatepicker,
    .modal .full_width textarea {
        width: 100% !important;
        max-width: 100% !important;
    }

    .large-dialog {
        min-width: 100% !important;
    }

    .appointmentForm .full_width,
    .appointmentForm .full_width .input_bx_area,
    .appointmentForm .full_width.with-patient {
        display: flex;
        flex-direction: column;
    }

    .calendar_white_main > div:first-child,
    .calendar_white_main > div:first-child > div,
    .calendar_white_main > div:first-child > div > div,
    .calendar_white_main > div:first-child > div > div > div,
    .calendar_white_main > div:first-child > div > div > div table,
    .calendar_white_main > div:first-child > div > div > div table > tbody td,
    .calendar_white_main > div:first-child > div > div > div table > tbody td .calendar_white_colheader {
        height: 40px !important;
        /*overflow: auto !important;*/
    }

    .calendar_white_scroll > div > div:nth-child(2) {
        overflow: auto !important;
    }

    #calendars {
        overflow: hidden;
    }

    #calendars > div {
        overflow: auto;
        border: none;
    }

    /*.calendar_white_main > div:first-child > div > div > div table,
    .calendar_white_scroll > div > div:nth-child(2) table {
        table-layout: inherit !important;
    }

    .calendar_white_main > div:first-child > div > div > div table > tbody td,
    .calendar_white_scroll > div > div:nth-child(2) table td {
        min-width: 100px !important;
    }*/
    .calendar_white_main > div:nth-child(2) {
        top: 40px !important;
    }

    #navigator .navigator_white_month:nth-child(4) {
        display: none;
    }

    #doctor-home-wrapper.d-flex,
    .row__tableInfo_message.ng-scope {
        display: none;
    }

    .dynamic-list .navbar-default .navbar-nav > li > a {
        text-align: center;
    }

    .dynamic-list .navbar-default .navbar-nav > li {
        padding: 0 20px;
    }

    .dynamic-list .navbar.navbar-default ul {
        padding-left: 0 !important;
        margin: 0;
    }

    .content_messages .content_messages__footer .box_textarea .btn_send .icon_send {
        -webkit-background-size: contain !important;
        background-size: contain !important;
        background-repeat: no-repeat;
    }

    .sitebar_messages .sitebar_messages__header .box_search input {
        margin-left: 10px;
    }

    .item-block-wrapper .item_block:first-child {
        margin-right: 5px;
    }

    .item-block-wrapper .item_block:last-child {
        margin-left: 5px;
    }

    .widget-clock .square {
        padding-bottom: 30% !important;
    }

    #doctor-home-wrapper {
        padding-top: 0 !important;
    }

    .dash-content_tabs {
        padding: 5px !important;
    }

    .nav-cal-wrapper #calendars {
        margin-left: 0 !important;
        margin-top: 20px !important;
    }

    .navigator_white_main {
        padding-top: 5px;
        width: 100% !important;
        display: flex;
        justify-content: space-around;
        overflow: auto;
        flex-wrap: wrap;
        height: auto !important;
        border-top: 1px solid #A0A0A0;

    }

    .navigator_white_month {
        margin-bottom: 15px;
        border: 1px solid #fff5f5;
    }

    #appointment_scheduler .navbar.navbar-default ul {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-between;
    }

    #appointment_scheduler .navbar.navbar-default ul .pull-right {
        display: none;
    }

    #appointment_scheduler .nav-cal-wrapper {
        display: flex;
        flex-direction: column;
    }

    #appointment_scheduler .navbar.navbar-default {
        height: auto !important;
    }

    .content_messages__header.ng-scope {
        display: flex;
        flex-direction: column;
    }

    .content_messages__header.ng-scope .box__checkout_parametrs {
        margin-left: auto;
        padding-right:10px;
    }

    #appointment_scheduler .navbar.navbar-default #toolbar_print {
        background: #1A60C0;
        color: #fff;
    }

    #wait {
        padding: 5%;
    }

    #wait img {
        width: 90vw;
        height: auto;
        display: block;
    }

    .content_messages .content_messages__header {
        padding: 0;
    }

    .content_messages .content_messages__footer .box_textarea {
        width: 95%;
        padding-right: 50px;
    }

    .content_messages .content_messages__footer .box_textarea .btn_send {
        width: 45px;
        height: 45px;
        min-width: 45px;
    }

    .content_messages .content_messages__body .list__content_message .item.admin .row_message .message_wrapper {
        padding: 8px;
    }

    .content_messages .content_messages__body .list__content_message,
    .content_messages .content_messages__footer {
        padding: 10px;
        -webkit-overflow-scrolling: auto;
    }

    #doctor-home-wrapper .widget-row {
        padding: 0;
    }

    .item-block-wrapper .item_block {
        flex-direction: column;
        width: 100%;
        margin-bottom: 15px;
        padding: 0;
    }

    .widget-clock .square {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
        width: 100%;
    }

    .widget-clock svg {
        position: relative !important;
    }

    .dash-content_tabs {
        padding: 15px !important;
    }

    .doctorservices .dash-content_tabs,
    .doctorservices .patientListContainer > .col-md-12 {
        padding: 0 !important;
    }

    .row__tableInfo_message {
        padding: 10px;
    }

    .row.widget-row {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
    }

    #doctor-home-wrapper .widget-row .widget .calendar-widget {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
    }

    .widget-clock svg {
        position: relative;
    }

    .right_box {
        width: 100%;
        margin-top: 5px;
    }

    .content_messages .content_messages__header .item_user {
        width: 100%;
        padding: 0 10px;
        display:none;
    }

    .sitebar_messages .sitebar_messages__body .list_users_messages {
        /*height: calc(100vh - 255px);*/
        overflow: auto;
        max-height: 300px;
    }

    .sitebar_messages__header + .sitebar_messages__body .list_users_messages {
        /*height: calc(100vh - 365px);*/
        max-height: 300px;
        overflow: auto;
    }

    .sitebar_messages__header .d-flex {
        margin-left: 0;
    }

    .sitebar_messages .sitebar_messages__header .box_btn_newsend {
        width: 50px;
        margin-right: 15px;
    }

    .messages_wrapper.ng-scope {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
    }
    

        .sitebar_messages.left_box {
        width: 100%;
        padding-right: 0;
    }

    .header-pannel-wrapper {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-between;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        height: 30px;
        width: 100%;
        margin-bottom: 10px;
        margin-top: 5px;
        border-top: 1px solid #dfdfdf;
        padding: 0 15px 0 15px;
    }

    .btn.btn-default.dash-content-btn.hvr-sweep-to-right {
        display: none;
    }

    .btn.btn-default.dash-content-btn.hvr-sweep-to-right.mobile-btn {
        display: block;
        margin-top: 15px;
    }

    .messages_wrapper {
        padding: 0;
    }

    .services_heading h1 {
        font-size: 22px !important;
        margin-left: 20px !important;
        padding-left: 0 !important;
    }

    .navbar.navbar-default ul {
        padding-left: 0;
    }

    .logon-inner {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -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;
        width: 100%;
    }

    .logon-inner .carousel-indicators {
        left: 50%;
        top: auto;
    }

    .logon-inner form {
        margin-top: 20px;
    }

    .logon-inner form .col-6 {
        width: 100%;
    }

    .logon-inner .contact-us-wrapper {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        width: 100%;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
    }

    .logon-inner .reverse-blcok {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: reverse;
        -ms-flex-direction: column-reverse;
        flex-direction: column-reverse;
    }

    .contact-us-wrapper {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        width: 100%;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
    }

    .contact-us-wrapper .col-5.contact-fld {
        width: 50%;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-between;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        height: auto;
    }

    .contact-us-wrapper .col-5 .col-3 {
        width: 30%;

    }

    .contact-us-wrapper .col-5 .col-3 img {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
        width: 100%;
    }

    .contact-us-wrapper .col-5 .col-7 {
        width: 70%;
    }

    .contact-us-wrapper .col-5 .col-2 {
        width: 100%;
        text-align: center;
        display: block;
        height: 25px;
    }

    .contact-us-wrapper .col-5 .col-2 img {
        padding-top: 0px;
        transform: rotate(90deg);
        float: none;
        margin-top: -45px;
    }

    .contact-us-wrapper .col-7 form {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        width: 100%;
    }

    .contact-us-wrapper .col-7 form .col-6 {
        width: 100%;
    }

    .contact-us-wrapper .col-7 form .col-6 button {
        width: 49%;
    }

    .header-pannel-wrapper {
        display: flex !important;
    }
    .container.ui-droppable{
        /*display:none;*/
    }

    .sitebar_messages .sitebar_messages__header {
        padding-left: 5px;
    }

    .content_messages .content_messages__footer .box_textarea .btn_send {
        width: 28px;
        height: 28px;
        min-width: 28px;
    }

    .content_messages .content_messages__footer .box_textarea .btn_send .icon_send {
        width: 16px;
        height: 16px;
    }

    .dynamic-list .navbar-default {
        position: absolute;
        overflow: hidden;
        z-index: 999;
        -webkit-transition: all 0.5s;
        -moz-transition: all 0.5s;
        -ms-transition: all 0.5s;
        -o-transition: all 0.5s;
        transition: all 0.5s;
        left: -50%;
        width: 30%;
        margin-top: 0;
        padding-bottom: 10px;
    }

    .dynamic-list .navbar-default ul.ng-scope {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        width: 100%;
    }

    .dynamic-list .navbar-default ul.ng-scope li:nth-child(5) {
        display: none;
    }

    .open-menu .dynamic-list .navbar.navbar-default {
        width: 50%;
        left: 0;
        -webkit-transition: all 0.5s;
        -moz-transition: all 0.5s;
        -ms-transition: all 0.5s;
        -o-transition: all 0.5s;
        transition: all 0.5s;
    }

    /*Mobile Menu*/
    .mobile-menu {
        width: 40px;
        height: 28px;
        position: relative;
        right: 0;
        top: 0;
        background: #fff;
        border-radius: 0;
        -webkit-transition: all 0.5s;
        -moz-transition: all 0.5s;
        -ms-transition: all 0.5s;
        -o-transition: all 0.5s;
        margin-top: 15px;
        transition: all 0.5s;
    }

    .mobile-menu span {
        height: 3px;
        width: 28px;
        position: absolute;
        left: 7px;
        background: #000;
        -webkit-transition: all .8s;
        -moz-transition: all .8s;
        -ms-transition: all .8s;
        -o-transition: all .8s;
        transition: all .8s;
    }

    .mobile-menu span.mm-top {
        top: 5px;
    }

    .open-menu .mobile-menu {
        width: 30px;
        margin-left: 10px;
        margin-top: 15px;
    }

    .open-menu .mobile-menu span {
        margin-left: 0;
    }

    .home_icon {
        margin-top: 15px !important;
    }

    .open-menu .mobile-menu span.mm-top {
        -webkit-transform: rotate(45deg);
        -moz-transform: rotate(45deg);
        -ms-transform: rotate(45deg);
        -o-transform: rotate(45deg);
        transform: rotate(45deg);
        -webkit-transform-origin: 0 0;
        -moz-transform-origin: 0 0;
        transform-origin: 0 0;
    }

    .mobile-menu span.mm-med {
        top: 14px;
    }

    .open-menu .mobile-menu span.mm-med {
        display: none;
    }

    .mobile-menu span.mm-bot {
        top: 23px;
    }

    .open-menu .mobile-menu span.mm-bot {
        -webkit-transform: rotate(-45deg);
        -moz-transform: rotate(-45deg);
        -ms-transform: rotate(-45deg);
        -o-transform: rotate(-45deg);
        transform: rotate(-45deg);
        -webkit-transform-origin: 0 100%;
        -moz-transform-origin: 0 100%;
        transform-origin: 0 100%;
        top: 24px;
    }

    .menu-list-wrapper {
        display: flex;
        width: 100%;
    }

    .dynamic-list,
    .static-list {
        width: 100%;
        display: flex;
        -webkit-box-flex: 1;
        -ms-flex: 1;
        flex: 1;
        overflow: hidden;
    }

    .static-list {
        display: flex !important;
    }

    .static-list .navbar.navbar-default {
        position: relative;
        width: 100%;
        border: none;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: end;
        -ms-flex-pack: end;
        justify-content: flex-end;
    }

    .static-list .navbar.navbar-default .hvr-underline-from-left:before {
        display: none;
    }

    .static-list .navbar.navbar-default .navbar-nav > li {
        width: 155px;
        margin-bottom: 10px;
        display: inline-flex;
    }

    .static-list .navbar.navbar-default .navbar-nav > li > a {
        background: #1A60C0;
        color: #fff;
        text-align: center;
        width: 130px;
    }

    /*****************/
    .item-block-wrapper {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
    }

    .widget-clock .square {
        padding-bottom: 65% !important;
    }

    .col-10.logo {
        text-align: center;
        display: block;
        margin: 0 auto;
        float: none;
    }

    .col-10.logo a {
        margin-bottom: 10px;
    }

    .col-10.logo a img {
        width: 100%;
    }

    .logon-inner {
        padding: 0 5px;
    }

    .logon-inner .col-6.login-left {
        width: 100%;
    }

    .contact-us-wrapper .col-5.contact-fld {
        width: 100%;
    }

    .contact-us-wrapper > .col-7 {
        width: 100%;
    }

    .box_select {
        width: 100%;
    }

    .sitebar_messages__header .d-flex {
        width: 100%;
        justify-content: space-between;
    }

    .sitebar_messages__header .d-flex .box_search {
        flex: 1;
        margin-right: 40px;
        padding-left: 0;
    }

    .sitebar_messages .sitebar_messages__header .box_btn_newsend {
        width: auto;
    }

    /*Doc's Main Pag*/
    .sitebar_messages .sitebar_messages__header {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction:row;
        -webkit-box-align: start;
        -ms-flex-align: start;
        align-items: flex-start;
    }
    .mobile-only {
        display: block;
    }

}

@media screen and (max-width: 500px) {
    .sitebar_messages .sitebar_messages__body .list_users_messages {
        max-height: calc(100vh - 255px);
        height:100%;
        overflow: auto;
    }

    .sitebar_messages__header + .sitebar_messages__body .list_users_messages {
        max-height: calc(144vh - 365px);
        height:100%;
        overflow: auto;
    }

    .calendar_white_main,
    .calendar_white_scroll {
        max-height: calc(100vh - 300px) !important;
        height:100%;
        overflow: auto !important;
    }

    .content_messages .content_messages__body {
        max-height: calc(144vh - 447px);
        height:100%;
    }
}