﻿@media (max-width: 767px) {
    body {
        background-color: #fff !important;
    }

    .panel-body {
        font-family: "Helvetica Neue",Helvetica,Arial,sans-serif !important;
        padding: 1em 1.5em;
        margin-bottom: 3em;
    }

    .panel-narrow {
        padding: 0 !important;
    }

    .form-actions-narrow {
        margin: 0 !important;
    }

    .login-position {
        position: relative !important;
        width: 100%;
    }

    .login-title {
        padding: 15px 5px;
    }

    .login-inputs {
        margin-bottom: -0.5em;
    }

    .login-content {
        box-shadow: none;
    }

    .row {
        margin-bottom: 0;
    }

    .row-login-info span {
        padding: 35px 10px 10px;
    }

    select.form-control, input.form-control, .select2.form-control, .datepicker.form-control {
        font-size: 15px !important;
        color: rgb(51,51,51) !important;
        border: 1px solid #ccc !important;
        border-radius: 4px;
        height: 50px;
    }

    .form-control:focus {
        color: #212529 !important;
        background-color: #fff !important;
        border-color: #66afe9 !important;
        outline: 0 !important;
        box-shadow: 0 0 5px 1px #2e8bc54d !important;
    }

    .select2-container .select2-selection--single {
        height: 50px !important;
        border-radius: 4px !important;
        line-height: 50px;
    }

    .select2-selection__rendered {
        line-height: 45px !important
    }

    .select2-selection__arrow {
        height: 42px !important;
    }

    .col-md-1, .col-md-2, .col-md-3,
    .col-md-4, .col-md-5, .col-md-6,
    .col-md-7, .col-md-8, .col-md-9,
    .col-md-10, .col-md-11, .col-md-12 {
        margin-top: 15px;
    }

    .line-green, .line-orange, .line-blue {
        margin-top: 10px;
    }

    #calendar {
        width: 95% !important;
    }

    .fc-center h2 {
        font-size: 26px;
        width: fit-content;
    }

    .fc-day-number {
        font-size: 11px;
    }

    .fc-day-grid-event {
        margin: 1px 0px 0px 0px;
    }

    .margin-mobile-bottom {
        margin-bottom: 15px;
    }

    .margin-mobile-radio {
        margin-top: 45px;
    }

    .form-actions {
        background-color: transparent;
        padding: 5px;
        margin: 3em 0;
    }

    .page-header {
        position: relative;
        padding: 25px;
        height: 175px;
        margin-bottom: -20px;
        background-color: #fff !important;
        background-position-y: 85%;
        background-position-x: 95%;
    }

    .breadcrumb {
        display: none;
    }

    .line-header {
        display: none;
    }

    .page-title {
        width: 70%;
        top: 45px;
    }

    .fc-center {
        margin-top: 30px
    }

    .fc-icon {
        font-family: Segoe UI-Light !important;
        font-size: 14px !important;
        top: -3px !important;
    }

    .mobile-menu-top {
        width: 100%;
        height: 40px;
        background: linear-gradient(to right,#2e8bc5,#18badd);
        top: 0;
        position: fixed;
        display: block;
        overflow: hidden;
        z-index: 199;
    }

    .mobile-menu-bottom {
        width: 100%;
        height: 50px;
        background-color: #fff;
        bottom: 0;
        position: fixed;
        padding: 16px 10px;
        display: block;
        overflow: hidden;
        z-index: 199;
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 1), 0 6px 20px 0 rgba(0, 0, 0, 0.3);
    }

    .mobile-arrow-return {
        font-size: 25px;
        color: #356982;
        top: -50px;
        left: 2px;
        position: relative;
    }

    .mobile-dropdown-menu {
        width: 100%;
        background-color: #fff;
        bottom: 50px;
        position: fixed;
        padding: 10px;
        display: block;
        overflow: hidden;
    }

    .btn-mobile100 {
        width: 100%;
        text-align: center;
        padding: 13px 16px;
        line-height: 1.33;
        font-size: 16px;
        margin: 0 0 1em 0;
    }

    .btn-mobile50 {
        width: 48%;
        text-align: center;
        padding: 11px 10px;
        line-height: 1.33;
        font-size: 15.5px;
        margin: 0;
    }

    .btn-mobile33 {
        width: 30.2%;
        text-align: center;
        padding: 11px 8px;
        line-height: 1.33;
        font-size: 15.5px;
        margin: 0;
    }

    .mobile-warning {
        width: 100%;
        height: 30px;
        display: none;
        margin: -2px 1px -2px 1px;
        border-radius: 0px;
        padding: 3px;
    }

    .new-circle {
        display: none;
        width: 45px;
        height: 45px;
        font-size: 30px;
        color: #fff;
        border-radius: 40px;
        padding: 8px 10px;
        background-color: #0f70adc9;
        bottom: 67px;
        position: fixed;
        right: 20px;
        z-index: 99;
    }

    .menu-avatar-icon-mobile {
        font-size: 50px;
        border: solid 1px whitesmoke;
        color: whitesmoke;
        padding: 0.5em;
        border-radius: 50%;
    }

    .textarea-default {
        margin-bottom: 10px;
    }

    .menu-user-photo-mobile {
        text-align: center;
        margin-top: 20px;
    }

        .menu-user-photo-mobile > img {
            border: solid 1px #fff;
            border-radius: 50%;
        }

    #image_edit, #image_crop {
        width: 95%;
        position: relative;
        left: 35px;
    }

    #icon_avatar {
        margin-left: 50px !important;
    }

    .back-to-login {
        margin-top: 2em;
    }

    .btn-new-position {
        width: 100%;
        padding: 0px 0px 0 15px;
        margin: -2em 0 3em 0px;
    }

    .dataTables_length {
        position: relative;
        z-index: 10;
    }

    .dataTables_paginate {
        margin: 0 -15px !important;
    }

    .select2-selection__clear span {
        position: absolute;
        top: -5px;
        right: 2px;
    }

    .input-wrapper i {        
        font-size: 15px;
    }

    .icon-share-weight {
        padding: 14px 11px;
    }

    .weight-chart {
        width: 100%;
    }

    .weight-fields {
        width: 100%;
    }

    .weight-ellipsis {
        position: relative;
        top: 6px;
        left: 1px;
    }

    .last-weight-panel,
    .diff-weight-panel {
        width: 50%;
    }

    .btn-update-weight {
        font-size: 15px;
        top: -3.8em;
    }

    .notes-html, .problems-html, .textarea-viewer {
        font-size: 13px;
    }

    .problems-html {
        color: #767676;
        font-weight: normal;
    }

    /*scrolling tabs*/
    .tabs-positions {
        margin: 2.5em -5px 0 -5px;
    }

    .tab-scroll-container {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        white-space: nowrap;
    }

    .tab-scroll-panel, .nav-tabs {
        display: flex;
        flex-wrap: nowrap;
    }

    .tab-scroll-left,
    .tab-scroll-right {
        background: none;
        border: none;
        outline: none;
        cursor: pointer;
        display: none;
        position: relative;
        top: 10px;
    }

        .tab-scroll-left i,
        .tab-scroll-right i {
            font-size: 20px;
            color: #2e8bc5;
        }

    .scroll-left:hover,
    .scroll-right:hover {
        background-color: #f5f5f5;
    }

    .tab-scroll-left {
        padding-right: 10px;
    }

    .tab-scroll-right {
        padding-left: 10px;
    }

    .tab-margin {
        margin-top: 1em;
    }

    .tab-margin-narrow {
        margin: 2em 1em -2em 1em !important;
    }

    .tbl-meal thead tr {
        font-size: 12px;
    }

        .tbl-meal thead tr th {
            padding: 8px 0 !important;
        }

    .tbl-meal tbody tr,
    .tbl-meal tfoot tr {
        font-size: 10px;
    }

        .tbl-meal tbody tr td {
            padding: 10px 0 !important;
        }

        .tbl-meal tfoot tr td {
            padding: 8px 0 !important;
        }

    .tbl-meal .action-ellipsis {
        padding: 6px 14px 6px 10px;
    }

    .quantity-button {
        height: 25px;
    }

    .row-meal-details {
        margin: 10px 0px;
        height: 5em;
        display: inherit;
    }

        .row-meal-details:first-child {
            margin: 20px 0px 10px 0px;
        }

        .row-meal-details .col-md-6 {
            margin-top: 0px;
        }

    .meal-card {
        padding: 15px;
    }

    .meal-result-bar {
        font-size: 10px;
        font-weight: normal;
    }

    .total-kcal {
        font-size: 11px;
    }

    .meal-info-ref + span {
        font-size: 10px;
        top: -5px;
    }

    .meal-info-ref {
        width: 37px;
        height: 11px;
    }

    .meal-info-ref-container {
        float: none;
        margin-left: 0px;
    }

        .meal-info-ref-container:last-child {
            margin-bottom: 10px;
        }

    .col-all-details {
        width: 100%;
        height: 5em;
        font-size: 12px;
    }

        .col-all-details p {
            font-size: 13px;
        }

    .expand-details {
        margin-left: -5px;
    }

    .expander-container {
        padding: 0px;
    }

    #mealModal .modal-footer {
        padding: 15px 10px;
    }

    .empty-meal {
        font-size: 12px;
        margin-bottom: 10px;
    }

        .empty-meal img {
            width: 80px;
            height: 64px;
        }

    #dietaryRecall .tab-margin,
    #notes .tab-margin {
        margin-top: 2em;
    }

        #notes .tab-margin .row {
            margin-top: -1em;
        }


    .dtfc-fixed-left {
        border-right: solid 1px #ddd;
    }

    #consultViewerForm .panel-body,
    #editConsultForm .panel-body,
    #startConsultForm .panel-body {
        margin-top: 1em;
    }

    .bmi-classification {
        position: relative;
    }

    #tblConsult tr td a img,
    #tblPatient tr td a img {
        margin: 0 2px 0 0;
    }

    .td-name-grid {
        width: 102%;
    }

    .name-grid {
        font-size: 14.5px;
        left: 2px;
        top: 1px;
    }

    .dataTable > tbody > tr > td {
        padding: 5px 3px;
    }

    .dataTables_paginate > ul > li:first-child > a,
    .dataTables_paginate > ul > li:last-child > a {
        padding: 5px 10px !important;
    }

    .table-position {
        padding: 30px 0px 20px 0px;
    }

    .btn-dialog:last-child {
        margin-left: 10px;
    }

    .label-status-mobile {
        position: relative;
        top: -2px;
    }

    .diff-weight-panel {
        text-align: right;
    }

    .lbl-med-record-title {
        margin-bottom: 1.2em;
        margin-left: 1px;
        margin-top: 15px;
    }

    .row-all-details:last-child {
        margin-bottom: 1.5em;
    }

    .med-record-actions {
        margin: 3em auto 2em auto;
    }

    .row-meal-result-bar {
        margin: -1.5em 0.5em 1.5em 0.5em !important;
    }

    .person-card {
        height: unset !important;
    }

    .person-content-card {
        height: unset !important;
    }   

    .row-profile .col-md-2.col-sm-2 {
        width: 100%;
    }

    .row-profile .col-md-10.col-sm-10 {
        width: 100%;
    }
}
