:root {
  --default-margin: 16px;
  --default-padding: 16px;
  --head-color: #55626b;
  --text-color: white;
  --active-view-display: none;
}
.btn-link {
  margin: 0;
  padding: 0;
  text-align: left;
}
.btn-link:focus {
  outline: 0;
}
.view,
.sub-view {
  display: var(--active-view-display);
  --active-view-display: none;
}
.view.active-view,
.sub-view.active-view {
  --active-view-display: grid;
}
.search-progress {
  opacity: 0;
  display: -ms-grid;
  display: grid;
  margin: var(--default-margin);
  transition: all ease 0.5s;
  transition-property: margin, opacity;
  grid-gap: 8px;
  -ms-grid-columns: auto 28px;
      grid-template-columns: auto 28px;
}
.search-progress.active-search {
  opacity: 1;
  margin: 35px 0;
  transition: all ease 0.5s;
}
.search-progress p {
  margin-top: 10px;
}
.search-progress #progress {
  background-color: rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  height: 16px;
  margin: auto 0px;
  position: relative;
  overflow: hidden;
}
.search-progress #progress #progressBar {
  width: 20%;
  position: absolute;
  top: 0px;
  bottom: 0px;
  background-color: #55626b;
  border-radius: 8px;
}
.search-progress #dbg-info {
  position: absolute;
  top: 5px;
  right: 5px;
  color: white;
  display: -ms-grid;
  display: grid;
  grid-gap: 10px;
  grid-auto-flow: column;
}
#overview {
  -ms-grid-rows: min-content auto;
      grid-template-rows: min-content auto;
  width: 100%;
  height: 100%;
}
#overview .content-head {
  min-height: 34px;
  background-color: var(--head-color);
}
#overview .content-body {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
      flex-direction: column;
  -ms-flex-align: center;
      align-items: center;
  padding: var(--default-padding);
}
#overview .content-body .ph-logo {
  max-height: 140px;
  width: auto;
}
#overview .content-body #overviewHead {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
      flex-direction: column;
  -ms-flex-align: center;
      align-items: center;
  margin-bottom: -50px;
  margin-top: 20px;
}
#overview .content-body #overviewViews {
  position: relative;
  -ms-flex-direction: column;
      flex-direction: column;
  -ms-flex-align: center;
      align-items: center;
  width: 100%;
  height: 100%;
}
#overview .content-body #overviewViews #gwList {
  -ms-grid-columns: (minmax(180px, 1fr))[auto-fit];
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  grid-auto-rows: 205px;
  grid-gap: 20px;
  position: absolute;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  overflow-y: auto;
  padding: 20px;
}
#overview .content-body #overviewViews #gwList .gw-list-item {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
      flex-direction: column;
  -ms-flex-pack: center;
      justify-content: center;
  -ms-flex-align: center;
      align-items: center;
  position: relative;
  background-color: #f4f5f4;
  padding: 10px;
  height: -webkit-max-content;
  height: -moz-max-content;
  height: max-content;
}
#overview .content-body #overviewViews #gwList .gw-list-item.not-reachable {
  opacity: 0.5;
}
#overview .content-body #overviewViews #gwList .gw-list-item .gw-icon {
  height: 100px;
  width: auto;
  margin-bottom: 10px;
}
#overview .content-body #overviewViews #gwList .gw-list-item .connected-svg {
  --ic-line: #baa48d;
  -ms-flex-item-align: start;
      -ms-grid-row-align: start;
      align-self: start;
  opacity: 0;
}
#overview .content-body #overviewViews #gwList .gw-list-item .connected-svg.connected {
  opacity: 1;
}
#overview .content-body #overviewViews .link-scan-gw {
  position: absolute;
  bottom: 0;
  right: 0;
  margin: 10px;
}
#overview .content-body #overviewViews #empty {
  -ms-flex: 1;
      flex: 1;
  -ms-flex-direction: column;
      flex-direction: column;
  -ms-flex-pack: center;
      justify-content: center;
  -ms-flex-align: center;
      align-items: center;
}
#overview .content-body #overviewViews #empty.active-view {
  --active-view-display: flex;
}
#overview .content-body #overviewViews #empty button {
  margin-top: var(--default-margin);
}
#overview .content-body #overviewViews #gw-help {
  position: absolute;
  bottom: 0px;
  cursor: pointer;
  margin: 10px;
}
#overview .content-body #overviewViews #gw-help-infos {
  margin: 10px;
  position: absolute;
  bottom: 35px;
  background-color: #f5f5f5;
  padding: 20px;
  z-index: 1;
}
#overview .content-body #overviewViews #gw-help-infos p:last-child {
  margin-top: 23px;
}
#gateway {
  -ms-grid-rows: min-content auto;
      grid-template-rows: min-content auto;
  width: 100%;
  height: 100%;
}
#gateway .content-head {
  min-height: 34px;
  padding: 8px;
  background-color: var(--head-color);
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
      align-items: center;
}
#gateway .content-head .btn-link {
  color: var(--text-color);
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
      align-items: center;
}
#gateway .content-head .btn-link svg {
  margin: 0 5px;
  --ic-line: white;
}
#gateway .content-head h4 {
  color: var(--text-color);
  -ms-flex: 1;
      flex: 1;
  margin: unset;
  text-align: center;
}
#gateway .content-body {
  display: -ms-grid;
  display: grid;
  -ms-grid-rows: min-content auto;
      grid-template-rows: min-content auto;
  -ms-flex-pack: center;
      justify-content: center;
  -ms-flex-line-pack: center;
      align-content: center;
  grid-gap: 20px;
}
#gateway .content-body .gw-info {
  display: none;
  -ms-flex-direction: column;
      flex-direction: column;
}
#gateway .content-body .gw-info i {
  font-size: 80%;
  opacity: 0.5;
}
@media (min-height: 424px) {
  #gateway .content-body .gw-info {
    display: -ms-flexbox;
    display: flex;
  }
}
#gateway .content-body .gw-svg {
  width: auto;
  height: 100%;
  display: none;
}
@media (min-height: 424px) {
  #gateway .content-body .gw-svg {
    display: inline;
  }
}
#gateway .content-body .gw-dialog {
  display: -ms-grid;
  display: grid;
  grid-gap: 20px;
}
#gateway .content-body .sub-view {
  -ms-grid-column: 2;
      grid-column: 2;
  grid-gap: 20px 0px;
  -ms-grid-rows: 150px max-content;
      grid-template-rows: 150px max-content;
}
#gateway .content-body .sub-view#pwInput .gw-dialog input {
  -ms-grid-column: 1;
      grid-column: 1;
}
#gateway .content-body .sub-view#pwInput .gw-dialog input.danger {
  border-color: #b73622;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
}
#gateway .content-body .sub-view#pwInput .gw-dialog input.danger:focus {
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ce8483;
}
#gateway .content-body .sub-view#pwInput .gw-dialog button:not('.btn-link') {
  -ms-grid-column: 2;
      grid-column: 2;
}
#gateway .content-body .sub-view#pwInput .gw-dialog .text-danger {
  -ms-grid-column-span: 2;
  -ms-grid-column: 1;
      grid-column: 1 / span 2;
}
#gateway .content-body .sub-view#pwReset .gw-dialog span {
  -ms-grid-column: 1;
      grid-column: 1;
  width: 300px;
}
#gateway .content-body .sub-view#pwReset .gw-dialog a {
  cursor: pointer;
}
#gateway .content-body .sub-view#pwReset .gw-dialog #resetError,
#gateway .content-body .sub-view#pwReset .gw-dialog #resetSuccess {
  -ms-grid-column: 1;
      grid-column: 1;
}
#gateway .content-body .sub-view#pwReset .gw-dialog #resetError button,
#gateway .content-body .sub-view#pwReset .gw-dialog #resetSuccess button {
  margin-top: 10px;
}
#gateway .content-body .sub-view#pwNewPw .gw-dialog .input-label {
  margin-bottom: -10px;
}
#gateway .content-body .sub-view#pwNewPw .gw-dialog button {
  width: -webkit-min-content;
  width: -moz-min-content;
  width: min-content;
}
#gateway .content-body .sub-view#pwNewPw .gw-dialog .pw-info {
  max-width: 60vw;
  color: #737373;
}
#gateway .content-body .sub-view#pwNewPw .gw-dialog a {
  padding: 20px 0px;
  cursor: pointer;
}
#gateway .content-body .sub-view#install #installInputs {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: (4em)[4];
      grid-template-columns: repeat(4, 4em);
  grid-gap: 5px;
}
#gateway .content-body .sub-view#install #find-ic-info {
  margin: 10px;
  position: absolute;
  bottom: 235px;
  right: 152px;
  background-color: #f5f5f5;
  padding: 20px;
  z-index: 1;
}
#gateway .content-body .sub-view#install .gw-dialog a {
  cursor: pointer;
}
#gateway .content-body .sub-view#install button {
  width: -webkit-min-content;
  width: -moz-min-content;
  width: min-content;
}
@media (max-height: 420px) and (min-width: 416px) {
  /* html {
    transform: rotate(-90deg);
    transform-origin: left top;
    width: 100vh;
    height: 100vw;
    overflow-x: hidden;
    position: absolute;
    top: 100%;
    left: 0; 
} */
}
@media (orientation: portrait) and (max-width: 599px), (max-height: 420px) {
  #overview .content-body .ph-logo {
    max-height: 80px;
  }
  #overview .content-body #overviewHead {
    margin-bottom: -125px;
  }
  #overview .content-body #overviewHead .search-progress.active-search {
    margin-bottom: 110px;
  }
  #overview .content-body #overviewHead .search-progress.active-search p {
    text-align: center;
    width: 110%;
  }
  #overview .content-body #overviewViews #gw-help {
    background-color: #e8f0f7;
    width: 100%;
    height: 40px;
    padding-top: 10px;
    text-align: center;
    bottom: -22px;
  }
  #overview .content-body #overviewViews .link-scan-gw {
    display: none;
  }
  #gateway .content-head h4 {
    text-align: right;
    padding-right: 5px;
  }
  #gateway .content-body {
    -ms-grid-columns: max-content;
        grid-template-columns: max-content;
    grid-gap: 20px 0;
  }
  #gateway .content-body .sub-view {
    -ms-grid-column: 1;
        grid-column: 1;
    margin: auto;
  }
  #gateway .content-body .sub-view#pwNewPw {
    -ms-grid-rows: 80px max-content;
        grid-template-rows: 80px max-content;
  }
  #gateway .content-body .sub-view#pwInput .gw-dialog button {
    -ms-grid-column: 1;
        grid-column: 1;
    width: -webkit-max-content;
    width: -moz-max-content;
    width: max-content;
  }
}
