
/* MEDIA QUERIES */

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

    body {
        position: relative;
    }

    .sidebar-left {
        display: none;
    }

    .body-content {
        margin-left: 0;
        width: 100%;
    }

    .sidebar-collapsed .sidebar-left {
        display: none;
    }

    .sidebar-collapsed .body-content {
        margin-left: 0;
    }

    .sidebar-collapsed .header-section {
        margin-left: 0;
    }

    .sidebar-open section {
        overflow-x: hidden;
    }

    .sidebar-open .sidebar-left {
        display: block;
    }

    .sidebar-open .body-content {
        margin-left: 240px;
    }
    
    /* 顶部导航响应式样式 */
    .top-navigation .side-navigation {
        overflow-x: auto;
        white-space: nowrap;
    }
    
    /* 下拉菜单响应式样式 */
    .dropdown-menu {
        position: static !important;
        float: none !important;
        width: 100% !important;
        margin-top: 0 !important;
        background-color: #3a3a3a !important;
        border: 1px solid #4a4a4a !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        overflow: hidden;
    }
    
    /* 通知区域响应式样式 */
    .notification-wrap {
        margin-left: 5px;
    }
    
    .left-notification {
        margin-right: 5px;
    }
    
    .right-notification {
        margin-left: 5px;
    }

    .btn-demo {
        margin-bottom: 20px;
    }
}

/* 针对移动设备的额外响应式样式 */
@media screen and (max-width: 768px) {
    
    /* 顶部导航容器 */
    .header-section {
        padding: 0 10px;
        flex-wrap: wrap;
        height: auto;
        min-height: 60px;
        padding: 5px 10px;
    }
    
    /* Logo样式 */
    .logo, .icon-logo {
        padding: 0 10px;
        min-width: 80px;
    }
    
    /* 主导航列表 */
    .top-navigation .side-navigation {
        order: 3;
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        margin-top: 5px;
        margin-bottom: 5px;
        padding: 5px 0;
        background-color: #3a3a3a;
        border-radius: 4px;
    }
    
    /* 导航项样式 */
    .side-navigation > li {
        margin: 0 5px;
    }
    
    /* 导航链接样式 */
    .side-navigation > li > a {
        padding: 6px 10px !important;
        font-size: 13px !important;
    }
    
    /* 下拉菜单项样式 */
    .dropdown-menu li a {
        padding: 8px 15px !important;
        font-size: 13px !important;
    }
    
    /* 通知区域样式 */
    .notification-wrap {
        margin-left: auto;
        margin-right: 0;
        order: 2;
    }
    
    /* 快捷操作按钮样式 */
    .dropdown-toggle {
        padding: 4px 6px !important;
        font-size: 11px !important;
    }
    
    /* 隐藏快捷操作按钮文本 */
    .dropdown-toggle span {
        display: none !important;
    }
    
    /* 调整图标间距 */
    .dropdown-toggle i {
        margin-right: 0 !important;
    }
    
    /* iframe容器高度调整 */
    .iframe-main {
        height: calc(100vh - 120px);
    }
    
    /* 响应式表格样式 */
    .layui-table {
        font-size: 12px;
    }
    
    .layui-table th,
    .layui-table td {
        padding: 6px 4px;
    }
    
    /* 响应式表单样式 */
    .layui-form-item {
        margin-bottom: 15px;
    }
    
    .layui-input,
    .layui-textarea {
        font-size: 13px;
        padding: 6px 10px;
    }
    
    /* 响应式按钮样式 */
    .layui-btn {
        padding: 0 12px;
        font-size: 12px;
        height: 32px;
        line-height: 32px;
    }

    .left-sideinner {
        padding: 5px 10px;
    }

    .left-sideinner .search-content input {
        background: #fff;
        border: 0;
    }

    .sticky-header .header-section {
        left: 0;
    }

    .sticky-header.sidebar-open .header-section {
        left: 240px;
    }

    .sticky-header .right-notification {
        margin-right: 0px;
    }

    .non-sticky-header .sidebar-left-info {
        margin-top: 60px;
    }

    .non-sticky-header  .side-navigation {
        margin-top: 0px;
    }

    .non-sticky-header .sidebar-left .search-content {
        margin-top: 60px;
    }


    .sticky-sidebar  {
        position: absolute;
    }


    .wide-full {
        width: auto;
    }

    .gallery li{
        width: 45%;
    }

}


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

    .search-content {
        position: relative;
    }

    .search-content input {
        background:#fff;
    }

    .sidebar-left .search-content  {
        display: block;
    }

    .breadcrumb-wrapper, .search-content {
        display: none;
    }

    .mail-box aside {
        display: block;
    }

    .mail-box .sm-side , .mail-box .lg-side, .profile-desk .p-aside, .profile-desk .p-short-info{
        width: 100% ;
        display: inline-block;
    }

    .profile-timeline ul li .avatar-desk .gallery a {
        margin-bottom: 10px;
    }

    .profile-follow, .profile-value-info {
        text-align: center;
        position: static;
        margin-bottom: 10px;
    }

    .profile-intro {
        padding: 20px 0;
    }

    .fb-timeliner {
        display: none;
    }

    .compose-mail .compose-options {
        top: 26px;
    }

    /* full calendar fix */
    .fc-header-right {
        right:15px;
        position: absolute;
    }

    .fc-header-left .fc-button {
        margin: 0px !important;
        top: 0px !important;
    }

    .fc-header-right .fc-button {
        margin: 0px !important;
        top: -50px !important;
    }

    .fc-state-active, .fc-state-active .fc-button-inner, .fc-state-hover, .fc-state-hover .fc-button-inner {
        background: none !important;
        color: #FFFFFF !important;
    }

    .fc-state-default, .fc-state-default .fc-button-inner {
        background: none !important;
    }

    .fc-button {
        border: none !important;
        margin-right: 2px;
    }

    .fc-view {
        top: 0px !important;
    }

    .fc-button .fc-button-inner {
        margin: 0px !important;
        padding: 2px !important;
        border: none !important;
        margin-right: 2px !important;
        background-color: #fafafa !important;
        background-image: -moz-linear-gradient(top, #f2f2f2, #f2f2f2) !important;
        background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#f2f2f2), to(#f2f2f2)) !important;
        background-image: -webkit-linear-gradient(top, #f2f2f2, #f2f2f2) !important;
        background-image: -o-linear-gradient(top, #f2f2f2, #f2f2f2) !important;
        background-image: linear-gradient(to bottom, #f2f2f2, #f2f2f2) !important;
        filter: progid:dximagetransform.microsoft.gradient(startColorstr='#f2f2f2', endColorstr='#f2f2f2', GradientType=0) !important;
        -webkit-box-shadow: none !important;
        -moz-box-shadow: none !important;
        box-shadow: none !important;
        -webkit-border-radius: 2px !important;
        -moz-border-radius: 2px !important;
        border-radius: 2px !important;
        color: #fff !important;
        border: none !important;
        text-shadow: none !important;
        text-align: center;
    }

    .fc-button.fc-state-disabled .fc-button-inner,
    .fc-header-left .fc-button .fc-button-inner{
        color: #bcbbbb !important;
    }

    .fc-button.fc-state-active .fc-button-inner {
        background-color: #e5e4e4 !important;
        background-image: -moz-linear-gradient(top, #e5e4e4, #dddcdc) !important;
        background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#e5e4e4), to(#dddcdc)) !important;
        background-image: -webkit-linear-gradient(top, #e5e4e4, #dddcdc) !important;
        background-image: -o-linear-gradient(top, #e5e4e4, #dddcdc) !important;
        background-image: linear-gradient(to bottom, #e5e4e4, #dddcdc) !important;
        filter: progid:dximagetransform.microsoft.gradient(startColorstr='#e5e4e4', endColorstr='#dddcdc', GradientType=0) !important;
    }

    .fc-content {
        margin-top: 50px;
    }

    .fc-header-title h2 {
        line-height: 40px !important;
        font-size: 15px !important;
    }

    .fc-header {
        margin-bottom:0px !important;
    }

    .fc-header-left, .fc-header-center, .fc-header-right {
        width: 100%;
        display: block;
    }

    .fc-header-title h2 {
        margin-top: -35px;
    }


    .fc-header-right .fc-state-default .fc-button-inner,
    .fc-header-left .fc-state-default:hover .fc-button-inner{
        background: #53D192 !important;
        border-color: #53D192;
        border-style: none solid;
        color: #fff!important;
    }


    .fc-header-right .fc-state-default .fc-button-inner:hover,
    .fc-header-right .fc-state-active  .fc-button-inner{
        background: #2f9f67 !important;
        border-color: #2f9f67;
        border-style: none solid;
        color: #fff;
    }

    .mail-box aside {
        height: auto;
    }

    .gallery {
        margin: 0;
    }
    .gallery li{
        width: 100%;
        margin: 0 0 20px 0;
    }

}

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

    .compose-mail .compose-options {
        top: 26px;
    }

}

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

    .compose-mail .compose-options {
        top: 26px;
    }
}


@media only screen and  (max-width: 479px) {
    .state-information {
        display: inline-block;
        margin-top: 20px;
        position: static;
        width: 100%;
    }
    .state-information .state-graph {
        float: left;
        margin-left: 0;
        margin-right: 30px;
        text-align: center;
    }

    .notification-menu li:nth-child(2) .dropdown-menu {
        margin-right: 0px !important;
    }
    .notification-menu .dropdown-title {
        min-width: 265px;
        padding: 0;
    }
    .error-wrapper .icon-404,
    .error-wrapper .icon-500 {
        width: 100%;
    }

    .error-wrapper .icon-404 {
        margin: 0;
    }

    .body-500 .error-wrapper h2 {
        margin: -5px 0 30px -6px;
    }

    .login-social-link a.facebook {
        margin-right: 20px;
    }
    .mail-box aside {
        display: block;
    }

    .mail-box .sm-side , .mail-box .lg-side, .profile-desk .p-aside, .profile-desk .p-short-info{
        width: 100% ;
        display: inline-block;
    }

    .profile-timeline ul li .avatar-desk .gallery a {
        margin-bottom: 10px;
    }

    .profile-follow, .profile-value-info {
        text-align: center;
        position: static;
    }

    .profile-intro {
        padding: 20px 0;
    }

    .notification-menu .info-number {
        padding: 0px 10px;
    }

    .team-list li a {
        text-align: center;
    }

    .fc-header-title h2 {
        margin-top: -35px;
    }

    button.btn {
        margin-bottom: 10px;
    }

}

@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;
    }

    .d-none {
        display: none;
    }



}

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

    .d-none {
        display: none;
    }

}
