/*     Responsive     */
@media screen and (max-width: 700px) {
  .row-card-no-pd {
    [class*=col-] .card:after {
      width: 0px !important;
    }
    .card {
      border-bottom-width: 1px;
      &:last-child {
        border-bottom-width: 0px;
      }
    }
  }
}

@media screen and (min-width: 991px) {
  .main-header .logo-header {
    line-height: 52px;
    background: $transparent-bg !important;
  }
  .toggle-nav-search {
    display: none;
  }
  #search-nav {
    display: block !important;
  }
  .sidebar {
    .scroll-element {
      opacity: 0;
      transition: all .2s;
    }
    &:hover .scroll-element {
      opacity: 1;
    }
  }
  .sidebar[data-background-color] {
    &:before {
      background: rgba(255, 255, 255, 0.2) !important;
      z-index: 1000;
    }
  }
}

@media screen and (max-width: 991px) {
  .main-header {
    .logo-header {
      background: $white-color;
      border-bottom: 1px solid #f1f1f1;
      &[data-background-color]{
        border-bottom: 1px solid rgba(255,255,255,0.2) !important;
      }
    }
  }
  .sidebar {
    position: fixed;
    left: 0 !important;
    right: 0;
    -webkit-transform: translate3d(-270px, 0, 0);
    -moz-transform: translate3d(-270px, 0, 0);
    -o-transform: translate3d(-270px, 0, 0);
    -ms-transform: translate3d(-270px, 0, 0);
    transform: translate3d(-270px, 0, 0) !important;
    transition: all .5s;
    padding-top: 0px;
    &:before {
      background: none;
    }
  }
  .nav_open .sidebar {
    -webkit-transform: translate3d(0px, 0, 0);
    -moz-transform: translate3d(0px, 0, 0);
    -o-transform: translate3d(0px, 0, 0);
    -ms-transform: translate3d(0px, 0, 0);
    transform: translate3d(0px, 0, 0) !important;
    border-right: 1px solid #f1f1f1;
  }
  .sidebar .sidebar-wrapper {
    padding-top: 0px;
    .sidebar-content {
      padding-top: 0px !important;
    }
    .scroll-element.scroll-y {
      top: 0px !important;
    }
  }
  .nav_open {
    overflow: hidden !important;
    .main-panel, .main-header {
      -webkit-transform: translate3d(240px, 0, 0);
      -moz-transform: translate3d(240px, 0, 0);
      -o-transform: translate3d(240px, 0, 0);
      -ms-transform: translate3d(240px, 0, 0);
      transform: translate3d(240px, 0, 0) !important;
    }
  }
  .quick_sidebar_open .quick-sidebar {
    width: 350px;
  }
  .main-header {
    transition: all .5s;
  }
  .main-panel {
    width: 100%;
    transition: all .5s;
    > .content {
      padding: 20px 0;
    }
    .page-header {
      .dropdown-menu {
        &:after {
          right: 16px !important;
        }
      }
    }
  }
  .main-header .logo-header {
    display: flex;
    width: 100% !important;
    text-align: left;
    position: relative;
    justify-content: center;
    background: $white-color;
    .navbar-toggler {
      position: absolute;
      top: auto;
      height: 100%;
      left: 15px;
      opacity: 1;
      display: block;
    }
    .more {
      opacity: 1;
      position: absolute;
      right: 15px;
      color: #545454;
      cursor: pointer;
      display: inline-block;
      width: unset;
      line-height: 56px;
    }
    .navbar-brand {
      position: unset !important;
    }
    .big-logo{
      .logo-img {
        width: 35px;
        height: 35px;
      }
    }
  }
  .nav-search {
    width: 100%;
    margin-right: 0 !important;
  }
  .navbar-header {
    border-top: 1px solid #eee;
    position: absolute;
    width: 100%;
    background: $white-color;
    transform: translate3d(0, -200px, 0) !important;
    transition: all .5s;
  }
  .topbar_open {
    .navbar-header {
      transform: translate3d(0, 56px, 0) !important;
      padding: 10px;
      border-bottom: 1px solid #eee;
      .navbar-nav {
        > .nav-item {
          .nav-link {
            i {
              font-size: 19px;
            }
          }
          &:last-child {
            .nav-link {
              padding: 0px !important;
            }
            .quick-sidebar-toggler {
              padding-left: 5px !important;
            }
          }
        }
      }
    }
    .toggle-nav-search {
      display: list-item;
    }
    #search-nav {
      text-align: center;
      width: 100%;
      padding: 10px 15px 0px;
      order: 1;
    }
    .main-panel {
      transform: translate3d(0, 115px, 0) !important;
    }
    > .content {
      margin-top: 0px !important;
    }
  }
  .nav_open.topbar_open .main-panel {
    transform: translate3d(240px, 125px, 0) !important;
  }
  .navbar-header .navbar-nav {
    width: 100%;
    flex-direction: row;
    justify-content: center;
    margin-left: 0px !important;
    position: relative;
    .dropdown {
      position: unset;
    }
    .dropdown-menu {
      position: absolute;
      left: 0;
      right: 0;
      margin: 0 auto;
      max-width: 280px;
    }
  }
  .profile-pic span {
    display: none;
  }
  .navbar-minimize{
    display: none;
  }
  .page-title{
    font-size: 18px;
  }
  .card {
    .card-title {
      font-size: 16px;
    }
  }
  .mail-wrapper {
    .mail-option {
      .email-filters-left {
        width: 50%;
        .btn-group {
          margin-bottom: 10px;
        }
      }
    }
  }

  /* Dropzone */
  .dropzone {
    padding: 20px 15px !important;
    .dz-message {
      .message {
        font-size: 23px;
      }
      .note {
        font-size: 15px;
      }
    }
  }
}

@media screen and (min-width: 856px) {
  .mail-wrapper {
    .aside-nav {
      display: block !important;
    }
  }
}
@media screen and (max-width: 856px) {
  .mail-wrapper {
    flex-direction: column;
    .page-aside {
      width: 100%;
      height: unset;
      min-height: unset;
      border-bottom: 1px solid #eee;
      border-left: 0;
      border-right: 0;
      background: $transparent-bg;
      padding-top: 0px;
      padding-bottom: 0px;
      .aside-header {
        padding-top: 25px;
        padding-bottom: 25px;
        background: #f1f1f1;
      }
      .aside-nav {
        background: $white-color;
        padding-top: 15px;
        padding-bottom: 15px;
      }
    }
    .mail-content {
      width: 100%;
      .inbox-head{
        flex-direction: column;
        align-items: left;
        h3 {
          font-size: 18px;
        }
        form {
          margin-left: 0px !important;
          margin-top: 15px;
        }
      }
      .email-head{
        h3 {
          font-size: 18px;
        }
      }
      .email-compose-fields {
        padding: 20px 15px;
      }
    }
    .mail-option {
      flex-direction: column;
      .email-filters-left {
        width: 100%;
        margin-bottom: 10px;
      }
    }
    .toggle-email-nav {
     display: inline-block !important;
   }
   .table-inbox {
    tr {
      td {
        .badge {
          margin-top: 5px;
          float: left;
        }
      }
    }
  }
}
}

@media screen and (max-width: 767px){
  .wizard-container {
    margin-left: 15px;
    margin-right: 15px;
  }
  .main-panel {
    .page-header {
      flex-direction: column;
      align-items: normal;
      position: relative;
      min-height: 43px;
      justify-content: center;
      .breadcrumbs {
        margin-left: 0px;
        padding-top: 15px;
        padding-left: 5px;
        padding-bottom: 0px;
        border-left: 0px;
      }
      .btn-group-page-header{
        position: absolute;
        right: 0px;
      }
    }
  }
  .footer .container-fluid{
    flex-direction: column;
    .copyright {
      margin-left: 0 !important;
      margin-top: 10px;
      margin-bottom: 15px;
    }
  }
}

@media screen and (max-width: 576px){
  #chart-container {
    min-height: 250px;
  }

  .form-check-inline {
    display: flex;
    flex-direction: column;
    align-items: left;
  }

  #calendar {
    .fc-toolbar {
      display: flex;
      flex-direction: column;
      %fc-position-margin {
        margin: auto;
        margin-bottom: 15px;
      }
      .fc-left {
        @extend %fc-position-margin;
        order: 1;
      }
      .fc-right {
        @extend %fc-position-margin;
        order: 3;
      }
      .fc-center {
        @extend %fc-position-margin;
        order: 2;
      }
    }
  }
}

@media screen and (max-width: 350px){
  .quick_sidebar_open .quick-sidebar {
    width: 100%;
    padding: 20px;
  }
}

