/* mobile UI */

#mobile-sidebar-account {
  display: none;
}

#mobile-nav-toggle {
  display: none;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  z-index: 1;
  padding: 17px 20px;
  position: absolute;
  right: 0;
  height: 100%;
}

#mobile-nav-toggle:hover {
  cursor: pointer;
}

/* Rotate first bar */
.change .bar1 {
  -webkit-transform: rotate(-45deg) translate(-5px, 6px);
  -ms-transform: rotate(-45deg) translate(-5px, 6px);
      transform: rotate(-45deg) translate(-5px, 6px);
}

/* Fade out the second bar */
.change .bar2 {
  opacity: 0;
}

/* Rotate last bar */
.change .bar3 {
  -webkit-transform: rotate(45deg) translate(-5px, -6px);
  -ms-transform: rotate(45deg) translate(-5px, -6px);
      transform: rotate(45deg) translate(-5px, -6px);
}

.bar {
  width: 25px;
  height: 2px;
  background-color: #181828;
  -webkit-transition: 0.4s;
  -o-transition: 0.4s;
  transition: 0.4s;
}

.bar2 {
  -webkit-transition: 0.1s;
  -o-transition: 0.1s;
  transition: 0.1s;
}

@media screen and (max-width: 900px) {
  #pay-invoice {
    float: none;
    margin: 10px 0 0 0;
  }
}

@media screen and (max-width:778px) {
  #mobile-sidebar-account {
    display: inline-block;
  }

  .header .logo {
    left: 20px;
  }

  .wrapper {
    min-width: 0;
  }

  .downloadable {
    width: 160px;
  }

  .usermenu {
    display: none;
  }

  #page-holder > .wrapper {
    border-left: none;
    overflow: hidden;
  }

  .sidebar {
    z-index: 100;
    width: 230px;
    right: -230px;
    position: absolute;
    top: 0;
    opacity: 0;
    margin-left: 0;
    text-align: center;
    background: #484940;
    -webkit-transition: all .2s ease-in-out;
    -o-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;
  }

  .sidebar li a:after {
    content: none;
  }

  .sidebar.slide-from-right {
    right: 0;
    opacity: 1;
  }

  .panel-head h2 {
    margin-right: 40px;
  }

  .icon-summary {
    text-align: left;
  }

  #view-cameras-button {
    float: none !important;
  }

  #mobile-nav-toggle {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
  }

  /* stuff from app web view styles */
  .rhs-summary {
    display: none;
  }

  .checkbox.indented {
    margin-left: 0;
  }

  form {
    max-width: 100vw;
  }

  form input {
    max-width: 100%;
    display: block;
  }

  form input.slimField {
    margin-bottom: 5px;
    display: block !important;
  }

  form input:focus {
    outline: none !important;
  }

  #view {
    margin: 0 auto;
    padding: 20px;
    width: 100%;
    min-height: 100vh;
  }

  #page-holder {
    width: 100%;
  }

  #page-holder > .wrapper {
    max-width: 100%;
    min-width: 100%;
    border-left: none;
  }

  .form-control.selector .btn:focus {
    border: none !important;
  }

  #page-holder .form-group .label {
    display: block;
  }

  #page-holder .form-group .no-label {
    margin-left: 0;
    max-width: 80%;
  }

  #page-holder .form-group .form-control:not(#cameras) {
    width: 100%;
  }

  .ng-message {
    margin-left: 0;
  }
  /* end web view */

  .open>.dropdown-menu {
    max-width: 100%;
  }

  .dropdown-menu>li>a {
    white-space: normal;
  }

  .nav-tabs>li {
    margin-top: 10px;
  }
}

@media screen and (max-width: 595px) {
  .saving {
    background: rgba(255,255,255,1);
  }

  .saved {
    background: rgba(191, 231, 110, 1);
  }

  #cloudAdapterForm {
    margin: 48px auto 0;
  }
}

/* end mobile UI */