/* MEDIA QUERIES */

@media screen and (max-width: 768px) {
    body {
        position: relative;
    }
    .left-side {
        display: none;
    }
    .toggle-btn {
        display: block;
    }
    .main-content {
        margin-left: 0;
        width: 100%;
    }
    .left-side-collapsed .left-side {
        display: none;
    }
    .left-side-collapsed .main-content {
        margin-left: 0;
    }
    .left-side-collapsed .header-section {
        margin-left: 0;
    }
    .left-side-show section {
        overflow-x: hidden;
    }
    .left-side-show .left-side {
        display: block;
    }
    .left-side-show .main-content {
        margin-left: 240px;
    }
    .btn-demo {
        margin-bottom: 20px;
    }
    .left-sideinner {
        padding: 5px 10px;
    }
    .left-sideinner .searchform input {
        background: #fff;
        border: 0;
    }
    .sticky-header .header-section {
        left: 0;
    }
    .sticky-header.left-side-show .header-section {
        left: 240px;
    }
    .sticky-header .menu-right {
        margin-right: 15px;
    }
    .sticky-header .left-side {
        top: 60px;
    }
    .lock-wrapper {
        margin: 25% auto;
    }
    .sticky-left-side .custom-nav {
        margin-top: 0;
        margin-bottom: 0;
        padding-bottom: 15%;
    }
    .sticky-left-side .custom-nav.custom-nav-m {
        padding-bottom: 0;
    }
    .stepy-error {
        bottom: 50px;
    }
    .sticky-header .left-wrapper {
        left: 0px;
    }
    .sticky-header.left-side-show .left-wrapper {
        left: 240px;
    }
    .search-condition-container,
    .reset-condition-container {
        position: initial;
    }
    .main-content .menu-page {
        left: 0;
    }
    .notification-menu .dropdown-toggle img {
        display: none;
    }
    .notification-menu .dropdown-toggle {
        line-height: 2;
    }
    .searchform {
        position: relative;
    }
    .searchform input {
        background: #fff;
    }
    .notification-menu li:nth-child(4) {
        display: none;
    }
    .left-side .searchform,
    .left-side .logged-user {
        display: block;
    }
    .breadcrumb-wrapper {
        display: none;
    }
    .notification-menu .dropdown-menu:after {
        display: none;
    }
    /*calendar*/
    .fc-button-inner {
        padding: 0;
    }
    /*media gallery*/
    .media-gal .item {
        width: 100%;
    }
    .media-filter {
        margin: 25px 0;
    }
    .media-filter+.pull-right,
    .media-filter+.pull-right+.btn {
        float: left !important;
    }
    /*state info*/
    .state-info {
        position: static;
        width: 100%;
        margin-top: 15px;
    }
    .state-info .panel {
        width: 100%;
    }
    .lock-wrapper {
        margin: 40% auto;
    }
    .pricing-table {
        width: 100%;
        margin-left: 0;
    }
    .mail-box>aside,
    .mail-box>section {
        display: block;
        margin-bottom: 10px;
        width: 100%;
    }
    .mail-list {
        height: auto;
    }
    .search-condition-container,
    .reset-condition-container {
        position: initial;
    }
    .menu-button {
        display: block !important;
        position: fixed;
        bottom: 80px;
        left: 20px;
        width: 40px;
        height: 40px;
        line-height: 40px;
        border-radius: 50%;
        background-color: #1a82fc;
        font-size: 18px;
        color: #fff;
        text-align: center;
        box-shadow: 0 1px 3px 0 rgba(76, 120, 201, 0.5);
    }
    .sticky-header .wrapper {
        margin-left: 0;
    }
    .menu-page {
        display: none;
    }
    .fixed-menu ul {
        padding: 15px 0;
    }
    .fixed-menu li {
        height: 30px;
        line-height: 30px;
        text-align: center;
    }
    .fixed-menu li.active,
    .fixed-menu li.active:hover {
        background-color: #1a82fc;
    }
    .fixed-menu li:hover {
        background-color: #e1e3ea;
    }
    .fixed-menu li a {
        display: block;
        width: 100%;
        height: 100%;
        color: #272b33;
        transition: none;
    }
    .fixed-menu li.active a {
        color: #fff;
    }
    .card-content>.card-field {
        width: 100%;
    }
    .card-field .field-row>p:first-child {
        width: 30%;
    }
    .card-field .field-row>p:last-child {
        width: 60%;
    }
    .card-content .card-menu li {
        width: 50%;
        flex: auto;
        -webkit-flex: auto;
    }
}

@media screen and (max-width: 640px) {
    .sticky-header .menu-left {
        width: 50%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .panel-body , .panel-container {
        width: 100%;
        padding-bottom: 15%;
        overflow-x: auto;
        overflow-y: hidden;
    }
    .panel-table .card-menu li {
        width: 50%;
        flex: auto;
        -webkit-flex: auto;
    }

    .modal.in .modal-dialog {
        width: 100% !important;
    }
    /*表单控件样式*/
    .form-flex.form-order-block {
        width: 100%;
    }
    .form-flex.form-order-block>label {
        min-width: 80px;
        width: 80px;
    }
    .form-flex.form-order-block .input-group {
        width: 90%;
    }
    form.search-form {
        position: relative;
        top: 0;
        left: 0;
    }
    form.search-form.pull-right {
        float: initial !important;
        display: block;
    }
    form .form-group.right-bottom,
    form .form-group.right-top {
        position: relative;
        right: 0;
        top: 0;
        bottom: 0;
        margin: 10px 0;
    }
    
    form.search-form select {
        display: inline-block;
        width: 80px;
    }
    form.search-form .form-group {
        display: inline-block;
    }
    /*弹窗内样式*/
    .ys-modal-coupon .target-ul>li .target-treat-info,
    .ys-modal-coupon .target-ul>li .target-doctor-info,
    .ys-modal-coupon .target-ul>li .target-patient-info {
        width: 80% !important;
    }
    .ys-modal-coupon .search-block > icon,
    .ys-modal-coupon .search-block > span {
        display: none !important;
    }
    .ys-modal-coupon .search-block>input {
        padding-left: 10px !important;
    }
    /*商城商品样式*/
    .container-wrapper {
        padding-left: 20px !important;
    }
    .goods-left>span {
        width: 30% !important; 
    }
    .goods-left>div {
        width: 60% !important;
    }
    .container-wrapper table {
        margin-left: 0 !important;
    }
}

@media screen and (max-width: 480px) {
    /*form wizard steps*/
    .widget-container .stepy-titles li,
    .stepy-titles li {
        width: 100%;
    }
    .directory-list li {
        display: inline-block;
        width: auto;
    }
    .directory-list li a {
        display: block;
        padding: 5px 10px;
        margin-bottom: 1px;
    }
    .search-condition-container,
    .reset-condition-container {
        position: initial;
    }
}

@media screen and (max-width: 479px) {
    /*calendar*/
    .fc-button-inner,
    .fc-button-content {
        padding: 0;
    }
    .fc-header-title h2 {
        font-size: 12px!important;
    }
    .fc .fc-header-space {
        padding-left: 0;
    }
    .fc-state-active,
    .fc-state-active .fc-button-inner,
    .fc-state-active,
    .fc-button-today .fc-button-inner,
    .fc-state-hover,
    .fc-state-hover .fc-button-inner {
        background: none repeat scroll 0 0 #FFFFFF !important;
        color: #32323A !important;
    }
    .fc-state-default,
    .fc-state-default .fc-button-inner {
        background: none repeat scroll 0 0 #FFFFFF !important;
    }
    .error-wrapper h1 img {
        width: 100%;
    }
    /*form wizard steps*/
    .widget-container .stepy-titles li,
    .stepy-titles li {
        width: 100%;
    }
    .directory-list li {
        display: inline-block;
        width: auto;
    }
    .directory-list li a {
        display: block;
        padding: 5px 10px;
        margin-bottom: 1px;
    }
    .search-condition-container,
    .reset-condition-container {
        position: initial;
    }
}

@media screen and (max-width: 360px) {
    .notification-menu li:first-child .dropdown-menu {
        margin-right: -90px;
    }
    .notification-menu li:nth-child(2) .dropdown-menu {
        margin-right: -45px;
    }
    .notification-menu li:nth-child(3) .dropdown-menu {
        margin-right: 0px;
    }
    .nav-tabs.nav-justified.nav-profile>li {
        float: none;
        display: block;
        width: auto;
    }
    .lock-wrapper {
        margin: 40% auto;
        max-width: 300px;
    }
    .lock-wrapper input,
    .lock-wrapper input:focus {
        width: 80% !important;
    }
    .lock-wrapper .locked {
        right: 70px;
    }
    .search-condition-container,
    .reset-condition-container {
        position: initial;
    }
}

@media screen and (max-width: 320px) {
    .lock-wrapper {
        margin: 40% auto;
        max-width: 300px;
    }
    .lock-wrapper input,
    .lock-wrapper input:focus {
        width: 80% !important;
    }
    .lock-wrapper .locked {
        right: 70px;
    }
    .media-filter li {
        margin-bottom: 10px;
        display: inline-block;
    }
    .media-filter+.btn-group .btn {
        margin-bottom: 5px;
    }
    .search-condition-container,
    .reset-condition-container {
        position: initial;
    }
}

@media screen and (max-width: 376px) {
    .btn-group.btn-group-filter {
        margin-bottom: 10px;
    }
    .search-condition-container {
        margin-bottom: 10px;
    }
}