/*** Very Large Screens **/

@media only screen and (min-width: 1600) {
  .visible-xlg {
    display: block !important;
  }
  .hidden-xlg {
    display: none !important;
  }
}

@media only screen and (min-width: 1824px) {
  body, .page-container {
    height: 100%;
  }
  /** Side bar widget **/
  .footer-widget {
    position: fixed;
  }
  /** Tables **/
  .table {
    th {
      font-size: 14px;
    }
    td {
      font-size: 14px;
      &.small-cell {
        width: 42px;
      }
    }
    th.small-cell {
      width: 42px;
    }
  }
  /** Controls **/
  .checkbox label:before {
    top: 0.5px;
  }
  /** Tiles **/
  .tiles.margin-reset {
    margin-left: 51px;
  }
  /** Only Demo Purpose **/
  .demo-map {
    min-height: 100%;
  }
  .error-main {
    margin-top: 40%;
  }
  .visible-xlg {
    display: block !important;
  }
  .hidden-xlg {
    display: none !important;
  }
}

/*** Desktops & Laptops ***/
@media (min-width: 980px) {
  /*** Page sidebar ***/
  .menu-non-fixed .page-sidebar {
    margin-top: 0;
    padding-top: 58px;
  }
  .page-sidebar {
    display: inline-block;
    float: left;
    position: fixed;
    // width: 250px;
    width: auto;
    margin-top: 54px;
    padding-bottom: 0;
  }
  .menu-non-fixed .footer-widget {
    z-index: 100;
  }
  .page-sidebar {
    .page-sidebar-wrapper {
      display: inline-block;
      float: left;
      height: 100%;
      // width: 50px;
      width: auto;
    }
    &.fixed {
      position: fixed;
    }
    ul {
      // width: 250px;
    }
  }
  /*** Page content ***/
  .page-content {
    margin-left: 82px;
    min-height: 100%;
    &.no-min-height {
      min-height: auto;
    }
  }
  .full-width-page .page-content {
    margin-left: 0px !important;
  }
  .inner-menu {
    padding-top: 60px;
  }
  /** Const size button for medium devices **/
  .btn-cons-md {
    min-width: 120px;
  }
}

/*** General tablets and phones ***/
@media (max-width: 979px) {
  /*** Body ***/
  body {
    margin: 0px !important;
  }
  /*** Page header ***/
  .header {
    margin: 0 !important;
    .nav {
      li.dropdown i {
        display: inline-block;
        position: relative;
        top: 1px;
        right: 0px;
      }
      margin-bottom: 0px !important;
    }
  }
  /*** Page container ***/
  .page-container {
    margin: 0 !important;
    padding: 0 !important;
  }
  .fixed-top .page-container {
    margin-top: 0px !important;
  }
  /*** Page content ***/
  .page-content {
    margin-top: 0;
  }
  .tiles {
    margin-right: 0px;
    &.added-margin {
      margin-right: 0px;
    }
  }
  .page-content .admin-bar .admin-bar-inner {
    margin-right: 0px;
  }
  .scrollup {
    left: 235px;
  }
}

/* Landscape view of all tablet devices */
@media (min-width: 768px) and (max-width: 1024px) {
  /*** Body ***/
  body {
    padding-top: 0px;
  }
  /*** Page sidebar ***/
  .page-sidebar .btn-navbar {
    &.collapsed .arrow {
      display: none;
    }
    .arrow {
      position: absolute;
      right: 25px;
      width: 0;
      height: 0;
      top: 50px;
      border-bottom: 15px solid #5f646b;
      border-left: 15px solid transparent;
      border-right: 15px solid transparent;
    }
  }
  .header-seperation {
    display: none !important;
  }
  .page-sidebar {
    position: absolute;
    width: 50px;
    margin: 0;
    overflow: visible !important;
    .slimScrollDiv {
      overflow: visible !important;
      .page-sidebar-wrapper {
        overflow: visible !important;
      }
    }
    .page-sidebar-wrapper > ul {
      width: 50px;
      margin: 0;
      padding-top: 60px;
      > li {
        > a {
          padding: 13px;
          color: #fff;
        }
        a i {
          color: #fff;
        }
      }
    }
    .user-info {
      display: none;
    }
    .page-sidebar-wrapper {
      > {
        p, .status-widget, .notification-alert {
          display: none;
        }
        ul li {
          span {
            &.title, &.arrow {
              display: none;
            }
          }
          ul li span {
            &.title, &.arrow {
              display: inline;
            }
          }
          span.badge {
            display: none;
          }
        }
      }
      ul li span.label {
        display: none;
      }
    }
    .profile-wrapper {
      display: none;
    }
    background-color: #0aa699 !important;
    .page-sidebar-wrapper > {
      ul > li {
        > a:hover, &:hover > a {
          background: #0b9c8f;
        }
        &.open > a, > a:hover, &:hover > a {
          padding: 13px;
        }
        > ul.sub-menu {
          position: absolute;
          margin-top: -46px;
          margin-left: 50px;
          width: auto;
          z-index: 100;
          min-width: 250px;
        }
      }
      .side-bar-widgets {
        display: none;
      }
    }
  }
  .footer-widget {
    display: none !important;
  }
  .inner-menu-always-open {
    .page-sidebar .page-sidebar-wrapper {
      display: inline-block;
      float: left;
      width: 50px;
      height: 100%;
    }
    .inner-menu {
      display: inline-block;
      float: left;
      margin-top: 20px;
      margin-left: 0;
    }
    .page-content {
      margin-left: 250px;
    }
  }
  /*** Page content ***/
  .page-content {
    margin-left: 50px;
    margin-top: 0px;
    min-height: 911px;
    .content {
      padding-top: 54px;
    }
  }
  .inner-menu-layout .page-content {
    margin-left: 250px;
  }
  .inner-menu {
    margin-left: 50px;
  }
  .visible-tablet {
    display: block !important;
  }
  .scrollup {
    left: 36px;
  }
  .table {
    td.small-cell, th.small-cell {
      width: 40px;
    }
  }
}

/* Portrait view of all tablet devices */

@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: portrait) {
  .page-sidebar .page-sidebar-wrapper {
    display: inline-block;
    float: left;
    width: 250px;
    height: 100%;
  }
  .inner-menu-always-open {
    .page-sidebar {
      .page-sidebar-wrapper {
        background-color: #0aa699 !important;
      }
      .slimScrollDiv {
        overflow: visible !important;
        .page-sidebar-wrapper {
          overflow: visible !important;
        }
      }
      .page-sidebar-wrapper > ul {
        width: 50px;
        margin: 0;
        padding-top: 60px;
        > li {
          > a {
            padding: 13px !important;
            color: #fff;
          }
          a i {
            color: #fff;
          }
        }
      }
      .user-info {
        display: none;
      }
      .page-sidebar-wrapper {
        > {
          p, .status-widget, .notification-alert {
            display: none;
          }
          ul li {
            span {
              &.title, &.arrow {
                display: none;
              }
            }
            ul li span {
              &.title, &.arrow {
                display: inline;
              }
            }
            span.badge {
              display: none;
            }
          }
        }
        ul li span.label {
          display: none;
        }
      }
      .profile-wrapper {
        display: none;
      }
      .page-sidebar-wrapper > {
        ul > li {
          > a:hover, &:hover > a {
            background: #0b9c8f;
          }
          &.open > a, > a:hover, &:hover > a {
            padding: 13px;
          }
          > ul.sub-menu {
            position: absolute;
            margin-top: -46px;
            margin-left: 50px;
            width: auto;
            z-index: 100;
            min-width: 250px;
          }
        }
        .side-bar-widgets {
          display: none;
        }
      }
    }
    .inner-menu {
      margin-top: 15px;
    }
    .page-content {
      margin-left: 0;
    }
  }
  .header-seperation {
    width: 100% !important;
    display: block !important;
    position: fixed;
    z-index: 999;
    text-align: center;
  }
  .logo {
    margin-right: auto;
    margin-left: auto;
    margin-top: 18px;
  }
  .header-quick-nav {
    display: none;
  }
  .header .notifcation-center {
    margin-left: 15px;
  }
  .page-sidebar {
    display: none;
  }
  .page-content .content {
    padding-top: 95px;
  }
  .page-sidebar {
    position: fixed;
    width: 260px;
    background-color: #1b1e24 !important;
    .user-info {
      display: inline-block;
    }
    > {
      p, .status-widget {
        display: block;
      }
      .notification-alert {
        display: inline-block;
      }
    }
    .page-sidebar-wrapper {
      > ul li span {
        &.title {
          display: inline-block;
        }
        &.arrow {
          display: inline-block;
          float: right;
        }
        &.badge {
          display: inline-block;
        }
      }
      ul li span.label {
        display: inline-block;
      }
      > ul {
        width: 260px;
        padding-top: 0px !important;
      }
    }
    .profile-wrapper {
      display: inline-block;
    }
    .page-sidebar-wrapper > .side-bar-widgets {
      display: block;
      width: 250px;
    }
  }
  .footer-widget {
    display: block;
  }
  .page-sidebar {
    .page-sidebar-wrapper > ul > li {
      > a {
        padding: 11.5px 31px 11.5px 31px;
        color: #8B91A0;
        &:hover {
          background: #1b1e24;
        }
      }
      &:hover > a {
        background: #1b1e24;
      }
      &.open > a, > a:hover, &:hover > a {
        padding: 11.5px 31px 11.5px 31px;
      }
      > {
        a i {
          color: #8B91A0;
        }
        ul.sub-menu {
          position: relative;
          margin: 0px;
        }
      }
    }
    &.mini-mobile .side-bar-widgets {
      display: none;
    }
    overflow: scroll !important;
    -webkit-overflow-scrolling: touch;
  }
  .inner-menu {
    margin-left: 0px;
    margin-top: 60px;
  }
  .inner-menu-layout .page-content {
    margin-left: 200px;
  }
  .scrollup {
    left: 244px;
  }
  .page-content {
    margin: 0px;
    .content {
      padding: 25px;
      padding-top: 95px;
    }
  }
  .widget {
    margin-right: 0px;
  }
  .column-seperation > div[class*="col-"] {
    border-right: none;
  }
  /** Profile Page **/
  .user-profile-pic {
    text-align: center;
  }
  .user-mini-description {
    h3, h5 {
      text-align: center;
    }
  }
  /** Login Page **/
  .login-container {
    padding: 0 10px;
  }
  .spacing-bottom-sm {
    margin-bottom: 20px;
  }
  .error-wrapper {
    margin-bottom: 0px;
    padding: auto;
  }
  .widget-item.narrow-margin {
    margin-right: auto;
  }
  .page-content.condensed {
    margin-left: 0px;
  }
  body.boxed-layout {
    .header {
      width: 100%;
      padding: 0 !important;
    }
    .container {
      padding-left: 0;
      padding-right: 0;
      margin: 0;
      width: 100%;
    }
  }
}

@media (max-width: 767px) {
  .page-sidebar .page-sidebar-wrapper {
    display: inline-block;
    float: left;
    width: 250px;
    height: 100%;
  }
  .inner-menu-always-open {
    .page-sidebar {
      .page-sidebar-wrapper {
        width: 50px;
        ul {
          background-color: #0aa699;
        }
      }
      .slimScrollDiv {
        overflow: visible !important;
        .page-sidebar-wrapper {
          overflow: visible !important;
        }
      }
      .page-sidebar-wrapper > ul {
        width: 50px;
        margin: 0;
        padding-top: 17px;
        height: 100%;
        > li {
          > a {
            padding: 13px !important;
            color: #fff;
          }
          a i {
            color: #fff;
          }
        }
      }
      .user-info {
        display: none;
      }
      .page-sidebar-wrapper {
        > {
          p, .status-widget, .notification-alert {
            display: none;
          }
          ul li {
            span {
              &.title, &.arrow {
                display: none;
              }
            }
            ul li span {
              &.title, &.arrow {
                display: inline;
              }
            }
            span.badge {
              display: none;
            }
          }
        }
        ul li span.label {
          display: none;
        }
      }
      .profile-wrapper {
        display: none;
      }
      .page-sidebar-wrapper > {
        ul > li {
          > a:hover, &:hover > a {
            background: #0b9c8f;
          }
          &.open > a, > a:hover, &:hover > a {
            padding: 13px;
          }
          > ul.sub-menu {
            position: absolute;
            margin-top: -46px;
            margin-left: 50px;
            width: auto;
            z-index: 100;
            min-width: 250px;
          }
        }
        .side-bar-widgets {
          display: none;
        }
      }
    }
    .inner-menu {
      display: inline-block;
      float: left;
      margin-top: 20px;
    }
    .page-content {
      margin-left: 0;
    }
  }
  .inner-menu {
    display: none;
  }
  /*** Page header ***/
  .header {
    .navbar-inner .container-fluid {
      margin-left: 10px !important;
      margin-right: 10px !important;
    }
    .top-nav .nav {
      margin-top: 0px;
      margin-right: 5px;
    }
    .nav > li > .dropdown-menu {
      &.notification {
        &:after, &:before {
          margin-right: 180px;
        }
        margin-right: -180px;
      }
      &.inbox {
        &:after, &:before {
          margin-right: 140px;
        }
        margin-right: -140px;
      }
      &.tasks {
        &:after, &:before {
          margin-right: 90px;
        }
        margin-right: -90px;
      }
    }
  }
  .header-seperation {
    width: 100% !important;
    z-index: 999;
    text-align: center;
    min-height: 60px;
    display: block !important;
  }
  .header .notifcation-center {
    margin-left: 15px;
  }
  .logo {
    margin-right: auto;
    margin-left: auto;
    margin-top: 16px;
  }
  .header-quick-nav, .page-sidebar {
    display: none;
  }
  /*** Page content ***/
  .page-content .content {
    padding: 8px;
    padding-top: 95px;
  }
  /*** Page title	***/
  .page-title {
    margin-bottom: 20px;
  }
  /*** Portlet form action ***/
  .portlet-body.form .form-actions {
    padding-left: 15px;
  }
  .page-sidebar {
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }
  .form-horizontal .form-actions {
    padding-left: 180px;
  }
  .no-margin-grid .row-fluid [class*="span"] {
    width: 100% !important;
    margin: 0px;
    margin-bottom: 10px;
  }
  .tiles.margin-reset {
    margin-left: 0px;
  }
  /** Profile Page **/
  .user-profile-pic {
    text-align: center;
  }
  .user-mini-description {
    h3, h5 {
      text-align: center;
    }
  }
  /** email **/
  .email-body {
    padding: 8px !important;
  }
  /** Login Page **/
  .login-container {
    padding: 0 10px;
  }
  .table {
    td.small-cell, th.small-cell {
      width: 42px;
    }
  }
  .error-wrapper {
    margin-bottom: 0px;
    min-height: 624px;
    height: 624px;
  }
  .widget-item.narrow-margin {
    margin-right: auto;
  }
  .page-content.condensed {
    margin-left: 0px;
  }
  .scrollup {
    display: none;
  }
  body.boxed-layout {
    .header {
      width: 100%;
      padding: 0 !important;
    }
    .container {
      padding: 0;
      width: 100%;
    }
  }
}

/*** Phones ***/
@media (max-width: 480px) {
  .page-title h3 {
    width: 80%;
  }
  .page-content .content {
    padding: 8px;
    padding-top: 93px;
    overflow-x: hidden;
  }
  .page-sidebar {
    overflow-x: hidden;
  }
  .tiles.margin-reset {
    margin-left: 0px;
  }
  .column-seperation > div[class*="span"] {
    border-right: none;
  }
  table {
    th.unseen, td.unseen {
      display: none !important;
    }
  }
  .row-fluid {
    margin-bottom: 10px;
  }
  .small {
    width: 100px !important;
  }
  .medium {
    width: 150px !important;
  }
  .large {
    width: 200px !important;
  }
  .huge {
    width: 246px !important;
    font-size: 24px !important;
    height: 36px !important;
    line-height: 36px !important;
    padding: 22px 8px !important;
  }
  select {
    &.small {
      width: 114px !important;
    }
    &.medium {
      width: 164px !important;
    }
    &.large {
      width: 214px !important;
    }
  }
  .btn-cons {
    min-width: 110px;
  }
  .btn-large {
    padding: 9px 15px;
  }
  /* Force table to not be like tables anymore */
  .no-more-tables {
    table, thead, tbody, th, td, tr {
      display: block;
    }
    thead tr {
      position: absolute;
      top: -9999px;
      left: -9999px;
    }
    tr! {}
    &.table-bordered td {
      border-left: 1px solid #eee;
      border-bottom: 1px solid #eee;
    }
    td {
      /* Behave like a "row" */
      border: none;
      border-bottom: 1px solid #eee;
      position: relative;
      white-space: normal;
      text-align: left;
      &:before {
        /* Now like a table header */
        position: absolute;
        /* Top/left values mimic padding */
        top: 6px;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
        content: attr(data-title);
      }
    }
    .text-right, .text-center {
      text-align: left !important;
    }
  }
  /* Hide table headers (but not display: none;, for accessibility) */
  /*
  Label the data
  */
  .table-flip-scroll {
    .cf:after {
      visibility: hidden;
      display: block;
      font-size: 0;
      content: " ";
      clear: both;
      height: 0;
    }
    * {
      html .cf, &:first-child + html .cf {
        zoom: 1;
      }
    }
    table {
      width: 100%;
      border-collapse: collapse;
      border-spacing: 0;
    }
    th {
      width: auto !important;
      border-radius: 0px !important;
      margin: 0;
      vertical-align: top;
    }
    td {
      margin: 0;
      vertical-align: top;
    }
    th {
      text-align: left;
    }
    table {
      display: block;
      position: relative;
      width: 100%;
    }
    thead {
      display: block;
      float: left;
    }
    tbody {
      display: block;
      width: auto;
      position: relative;
      overflow-x: auto;
      white-space: nowrap;
    }
    thead tr, th {
      display: block;
    }
    tbody tr {
      display: inline-block;
      vertical-align: top;
    }
    td {
      display: block;
      min-height: 1.25em;
      text-align: left;
    }
    th {
      border-bottom: 0;
      border-left: 0;
    }
    td {
      border-left: 0;
      border-right: 0;
      border-bottom: 0;
      border-radius: 0px !important;
    }
    tbody tr {
      border-left: 1px solid #babcbf;
    }
    th:last-child!, td:last-child! {}
  }
  /* sort out borders */
  /** Profile Page **/
  .user-profile-pic {
    text-align: center;
  }
  .user-mini-description {
    h3, h5 {
      text-align: center;
    }
  }
  /** email **/
  .email-body {
    padding: 8px !important;
  }
  /** lockscreen **/
  .lockscreen-wrapper .profile-wrapper {
    margin-bottom: 8px;
  }
  .image-responsive-width {
    width: auto;
  }
  .xs-image-responsive-width {
    width: 100%;
  }
  .scrollup {
    right: 0px;
    bottom: 20px;
  }
}

@media (max-width: 320px) {
  .header .nav > li.dropdown .dropdown-toggle {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
}

/*** Retina Display Images **/

@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 200 / 100), only screen and (min-device-pixel-ratio: 2) {
  .grid.simple .grid-title .tools a {
    background: url('../img/icon/portlet-tray-2x.png');
    background-size: 199px 57px;
  }
  .tiles .controller a, .widget-item .controller a {
    position: relative;
    background: url('../img/icon/portlet-tray-2x.png');
    background-size: 199px 57px;
  }
  .iconset {
    background: url('../img/icon/top-trayx2.png');
    background-size: 394px 29px;
  }
  .status-icon {
    background: url('../img/icon/status2x.png');
    background-size: 79px 16px;
  }
  .scrollup {
    background: url('../img/pullup2x.png');
    background-size: 57px 27px;
  }
  .alert .close {
    background: url("../img/icon/noti-cross-2x.png") no-repeat scroll 0 0 transparent;
    background-position: -9px -10px;
    width: 10px;
    height: 9px;
    position: relative;
    opacity: 0.8;
    background-size: 114px 29px;
  }
  .checkbox label::after {
    top: 1.5px;
  }
}

@media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-resolution: 144dpi) {
  .select2-search input, .select2-search-choice-close {
    background-image: none;
    background-repeat: no-repeat !important;
    background-size: none !important;
  }
  .select2-container .select2-choice {
    abbr, .select2-arrow b {
      background-image: none;
      background-repeat: no-repeat !important;
      background-size: none !important;
    }
  }
  .select2-search input {
    background-position: none !important;
  }
}

@media (max-width: 500px) {
  #Parks.grid .mix {
    width: 100%;
    padding-top: 53%;
  }
  .drop_down {
    display: none;
  }
}

@media (max-width: 1000px) {
  #Parks.list .meta {
    width: 150px;
  }
}

@media (max-width: 840px) {
  #Parks.list .meta {
    &.region, &.rec {
      display: none;
    }
  }
}

@media (max-width: 540px) {
  #Parks.list .meta.area {
    display: none;
  }
}