svg {
  -webkit-backface-visibility: initial;
          backface-visibility: initial;
}
.lg-line {
  fill: unset;
}
.page-left {
  opacity: 0;
  -ms-transform: translateX(-100%);
      transform: translateX(-100%);
  overflow-y: hidden;
}
.page-right {
  opacity: 0;
  -ms-transform: translateX(100%);
      transform: translateX(100%);
}
#dbgInfo {
  position: fixed;
  top: 4px;
  right: 4px;
  color: #fff;
  opacity: 0.5;
}
.header {
  position: static;
  height: 48px;
  min-height: 48px;
  max-height: 48px;
  background-color: #55626b;
  --ic-line: #dadada;
  padding: 0 8px;
}
.header .btn-back {
  z-index: 3;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
      align-items: center;
  text-decoration: none;
  height: 24px;
  position: absolute;
  margin: auto 0;
}
@media (max-width: 1199px) {
  .header .btn-back {
    top: 12px;
  }
}
.header .btn-back span {
  margin-left: 8px;
  color: #dadada;
  font-size: 18px;
}
@media (min-width: 1200px) {
  .header .btn-back {
    --ic-line: #55626b;
    position: absolute;
    top: 72px;
    left: 16px;
  }
  .header .btn-back span {
    color: #55626b;
  }
}
.header .topic {
  margin-left: auto;
  font-size: 18px;
}
@media (min-width: 417px) {
  .header .topic {
    font-size: 22px;
    margin: auto;
  }
}
@media (min-width: 1200px) {
  .header {
    height: 32px;
    min-height: 32px;
    max-height: 32px;
  }
}
body.gateways .btn-back {
  visibility: hidden;
}
.view {
  -ms-flex: 1 0 auto;
      flex: 1 0 auto;
  position: fixed;
  top: 48px;
  left: 0;
  right: 0;
  bottom: 0;
  transition: opacity 0.2s ease-out, transform 0.25s ease-in-out;
  background-color: #e8f0f7;
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
}
@media (min-width: 1200px) {
  .view {
    top: 32px;
  }
}
.view-gateways {
  overflow-y: auto;
}
.view-gateways .gw-connected {
  --ic-line: #baa48d;
  display: none;
  position: absolute;
  top: 8px;
  right: 8px;
}
.view-gateways .connected .gw-connected {
  display: unset;
}
.view-login {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
      flex-direction: column;
  padding: 2vw 16px;
}
.view-login .gw-image {
  margin-left: 25%;
  margin-right: 25%;
  margin-bottom: 48px;
}
.view-login .form-group {
  display: inline;
}
.view-login .text-danger {
  display: block;
}
.view-login input {
  display: unset;
}
@media (min-width: 417px) {
  .view-login input {
    max-width: 12em;
    margin-right: 8px;
  }
}
.view-login .selected-gateway i {
  display: block;
  font-size: 14px;
  opacity: 0.5;
}
@media (max-width: 430px) {
  .view-login .text-danger {
    margin-top: 4px;
  }
  .view-login #signInButton {
    position: absolute;
    top: 56px;
    right: 0;
    min-width: 120px;
  }
  .view-login #link-lostpw {
    position: fixed;
    top: 200px;
  }
}
@media (min-width: 600px) and (max-width: 899px) {
  .view-login {
    padding-left: 15%;
    padding-right: 15%;
    padding-top: 0;
    top: 96px;
  }
}
@media (min-width: 600px) {
  .view-login .selected-gateway {
    margin-bottom: 16px;
  }
  .view-login .control-group {
    margin-bottom: 8px;
  }
  .view-login .row {
    max-width: 600px;
  }
  .view-login .gw-image {
    margin-left: 35%;
    margin-right: 35%;
  }
}
@media (min-width: 900px) and (max-width: 1199px) {
  .view-login.input-focus {
    padding-top: 48px;
  }
  .view-login.input-focus .gw-image {
    display: none;
  }
}
@media (min-width: 900px) {
  .view-login {
    padding: 13vw 25%;
  }
}
.view-password-change {
  overflow: auto;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
      align-items: center;
  -ms-flex-pack: center;
      justify-content: center;
}
.view-password-change > div {
  max-width: 95%;
  padding-top: 1em;
}
@media (max-height: 500px) {
  .view-password-change > div .pw-sec-info {
    display: none;
  }
}
@media (min-width: 600px) {
  .view-password-change > div {
    max-width: 80%;
  }
}
@media (min-width: 900px) {
  .view-password-change > div {
    max-width: 400px;
  }
  .view-password-change > div .pw-sec-info {
    margin-bottom: 2.5em;
  }
}
.view-password-reset {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
      flex-direction: column;
  padding: 2vw 16px;
  overflow-y: auto;
}
.view-password-reset .gw-info {
  position: relative;
  margin-bottom: 32px;
}
.view-password-reset .gw-info span {
  position: absolute;
  left: 88px;
}
.view-password-reset .gw-info i {
  font-size: 14px;
  margin-left: 88px;
  display: block;
  opacity: 0.5;
}
.view-password-reset .btn-danger {
  min-height: 40px;
}
@media (min-width: 600px) {
  .view-password-reset {
    padding-left: 25%;
    padding-right: 25%;
    padding-top: 0;
    top: 96px;
  }
  .view-password-reset .btn-danger {
    margin-top: 32px;
    margin-left: 25%;
    margin-right: auto;
  }
}
.view-password-reset .success-info {
  display: none;
  color: #5cb85c;
  margin-top: 32px;
}
@media (min-width: 900px) {
  .view-password-reset .success-info {
    margin: 32px 48px;
  }
}
.view-password-reset .error-info {
  display: none;
  color: #b73622;
  margin-top: 32px;
}
@media (min-width: 900px) {
  .view-password-reset .error-info {
    margin: 32px 48px;
  }
}
.view-password-reset.has-error .error-info {
  display: unset;
}
.view-password-reset.success .btn-danger {
  display: none;
}
.view-password-reset.success .success-info {
  display: unset;
}
.view-install {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
      flex-direction: column;
}
.phoscon-logo {
  height: 15%;
  max-height: 128px;
  transition: opacity 100ms ease-out, transform 300ms ease-out;
  margin: 32px;
  text-align: center;
}
.phoscon-logo svg {
  transition: transform 300ms linear;
  -ms-transform-origin: 50% 43%;
      transform-origin: 50% 43%;
}
.search-progress {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
      flex-direction: column;
  -ms-flex-align: center;
      align-items: center;
  max-width: 700px;
  margin: 0 48px;
  opacity: 0;
  z-index: 0;
  height: 0;
}
.search-progress #searchDiv {
  width: 100%;
  height: 64px;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: distribute;
      justify-content: space-around;
  -ms-flex-direction: column;
      flex-direction: column;
  transition: opacity 300ms ease-out;
}
@media (min-width: 600px) {
  .search-progress {
    margin: 0 auto;
  }
  .search-progress #searchDiv {
    width: 82%;
  }
}
.scan-active .search-progress {
  opacity: 1;
  height: initial;
}
.scan-active .phoscon-logo {
  -webkit-filter: hue-rotate(45deg);
          filter: hue-rotate(45deg);
  -ms-transform: scale(0.5);
      transform: scale(0.5);
}
.scan-active #ph-logo-text {
  opacity: 0;
}
.scan-active #ph-bar {
  opacity: 0;
}
@keyframes spin-logo {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(359deg);
  }
}
.phoscon-logo svg {
  height: 100%;
  min-height: 80px;
}
.gw-image {
  max-width: 260px;
  transition: opacity 100ms ease-out, transform 200ms ease-out;
}
#gateways {
  padding: 0;
  padding-bottom: 150px;
  max-width: 700px;
  /* 3 x (16 + 200 + 16) */
  -ms-flex-item-align: center;
      align-self: center;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -ms-flex: 1 1 auto;
      flex: 1 1 auto;
  margin-left: auto;
  margin-right: auto;
}
#gateways li {
  /* background-color: papayawhip; */
  padding: 8px;
  border-radius: 2px;
  background-color: #f4f5f4;
  width: 200px;
  font-size: 120%;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
      flex-direction: column;
  -ms-flex-align: center;
      align-items: center;
  margin: 16px;
  -ms-flex-order: 0;
      order: 0;
  position: relative;
  transition: opacity 300ms ease-out, transform 100ms ease-out;
}
#gateways.sm li {
  -ms-transform: scale(0.5);
      transform: scale(0.5);
  width: 120px;
}
#gateways.lg li {
  -ms-transform: scale(1.5);
      transform: scale(1.5);
  width: 300px;
}
#gateways li .gw-icon {
  width: 80%;
  -ms-transform: scale(0.8);
      transform: scale(0.8);
  min-height: 80px;
}
#gateways li.not-reachable {
  opacity: 0.5;
  -ms-flex-order: 1;
      order: 1;
}
/* handy landscape */
@media (min-width: 501px) and (max-width: 768px) and (max-height: 768px) {
  .phoscon-logo {
    display: none;
  }
  #gateways {
    margin-top: 32px;
  }
  #gateways li {
    width: 150px;
  }
}
/* handy portrait */
@media (max-width: 500px) {
  .phoscon-logo {
    display: block;
    margin: 32px;
  }
  #gateways {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
        flex-direction: column;
    -ms-flex-align: center;
        align-items: center;
  }
}
/* when virtual keyboard is visible */
@media (max-width: 599px) {
  .gw-image {
    display: none;
  }
  .main {
    /*transform: translateY(-310px);*/
  }
}
label {
  font-weight: 400;
}
.page-header {
  margin-bottom: 4em;
}
.main {
  vertical-align: middle;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
      flex-direction: column;
  -ms-flex-align: center;
      align-items: center;
  height: 100%;
}
input:required {
  box-shadow: none;
  border-color: #8c8c8c;
}
input:invalid {
  box-shadow: none;
  border-color: #8c8c8c;
}
#gateways:empty + p {
  display: inherit;
}
#gateways li .item-name + div {
  font-size: 80%;
  opacity: 0.5;
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  text-overflow: ellipsis;
}
.view-search {
  -ms-flex-direction: column;
      flex-direction: column;
  -ms-flex-align: center;
      align-items: center;
}
.view-search p {
  text-align: center;
  margin: 32px 32px;
}
.scroll-grad {
  position: fixed;
  bottom: 0;
  height: 200px;
  max-height: 20%;
  width: 100%;
  background: linear-gradient(rgba(255, 255, 255, 0) 10%, #e8f0f7 50%);
}
#progress {
  position: relative;
  -ms-flex: 1;
      flex: 1;
  background-color: rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  height: 16px;
  overflow: hidden;
}
#progressBar {
  position: absolute;
  top: 0px;
  bottom: 0px;
  width: 0%;
  background-color: #55626b;
  transition: width 0.5s ease-in-out;
  box-sizing: border-box;
}
#dbg-info .subnet {
  margin: 8px 16px;
  font-size: 95%;
}
#dbg-info .subnet i {
  padding-left: 4px;
}
.view-install input {
  max-width: 4em;
  display: inline;
}
.gw-image-install {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: center;
      justify-content: center;
}
.gw-image-install svg {
  max-width: 80%;
}
