:root {
  --color-bg-light: #e8f0f7;
  --color-element-light: white;
  --color-element-alt-light: #ffffff;
  --color-element-highlight-light: #bfc5da;
  --color-light-on-light: #efd18f;
  --color-button-light: #a7b8c1;
  --color-active-btn-light: #ededed;
  --color-button-selected-light: #55626b;
  --color-button-highlight-light: #b0b0b0;
  --color-text-light: #3e4e52;
  --color-text-selected-light: #eeeeee;
  --color-text-disabled-light: #acacac;
  --color-text-alt-light: #969696;
  --color-text-danger-light: #eeeeee;
  --color-text-highlight-light: #e6bc63;
  --color-danger-light: #d85656;
  --color-header-light: #55626b;
  --color-header-text-light: #f5f5f5;
  --color-footer-light: white;
  --color-navbar-bg-light: #2f3e49;
  --color-navbar-bg-highlight-light: #3a4f60;
  --color-navbar-button-light: #3e4c57;
  --color-navbar-text-light: #e8f0f7;
  --color-dashboard-button-light: #d2d9e0;
  --color-dashboard-button-highlight-light: #b0b0b0;
  --color-settings-selected-menu-light: #c17e39;
  --color-time-slice-light: #b3c4cd;
  --color-time-slice-hover-light: #d4dde5;
  --color-text-table-details-light: #3e4e52;
  --color-device-box-header-light: #baa48d;
  --color-device-box-body-light: #f4f5f4;
  --color-device-toggle-light: white;
  --color-button-top-light: #55626b;
  --color-button-top-highlight-light: #a7b8c1;
  --color-bg-dark: #6f6969;
  --color-element-dark: #848180;
  --color-element-alt-dark: white;
  --color-element-highlight-dark: #b9b6b5;
  --color-light-on-dark: #f5e2b8;
  --color-button-dark: #848180;
  --color-active-btn-dark: #72706f;
  --color-button-selected-dark: #b9b6b5;
  --color-button-highlight-dark: #b9b6b5;
  --color-text-dark: #e1e1e1;
  --color-text-selected-dark: #292929;
  --color-text-disabled-dark: #bababa;
  --color-text-alt-dark: #292929;
  --color-text-danger-dark: #e1e1e1;
  --color-text-highlight-dark: #e6bc63;
  --color-danger-dark: #d85656;
  --color-header-dark: #55626b;
  --color-header-text-dark: #f5f5f5;
  --color-footer-dark: #9f9a98;
  --color-navbar-bg-dark: #4d4d4d;
  --color-navbar-bg-highlight-dark: #5b5b5b;
  --color-navbar-button-dark: #848180;
  --color-navbar-text-dark: #e8f0f7;
  --color-dashboard-button-dark: #7a7675;
  --color-dashboard-button-highlight-dark: #928f8f;
  --color-settings-selected-menu-dark: #b28352;
  --color-time-slice-dark: #9f9a98;
  --color-time-slice-hover-dark: #848180;
  --color-text-table-details-dark: #e1e1e1;
  --color-device-box-header-dark: #baa48d;
  --color-device-box-body-dark: #4d4d4d;
  --color-device-toggle-dark: #848180;
  --color-button-top-dark: #6f6969;
  --color-button-top-highlight-dark: #b9b6b5;
  --color-bg-slate: #0b1120;
  --color-element-slate: #1e293a;
  --color-element-alt-slate: #334155;
  --color-element-highlight-slate: #1fa6e7;
  --color-light-on-slate: #f5e2b8;
  --color-button-slate: #1e293a;
  --color-active-btn-slate: #1fa6e7;
  --color-button-selected-slate: #1fa6e7;
  --color-button-highlight-slate: #1fa6e7;
  --color-text-slate: #c7d1dd;
  --color-text-selected-slate: #c7d1dd;
  --color-text-disabled-slate: #acacac;
  --color-text-alt-slate: #1fa6e7;
  --color-text-danger-slate: #c7d1dd;
  --color-text-highlight-slate: #1fa6e7;
  --color-danger-slate: #d85656;
  --color-header-slate: #1fa6e7;
  --color-header-text-slate: #f5f5f5;
  --color-footer-slate: #334155;
  --color-navbar-bg-slate: #1e293a;
  --color-navbar-bg-highlight-slate: #293953;
  --color-navbar-button-slate: #1fa6e7;
  --color-navbar-text-slate: #c7d1dd;
  --color-dashboard-button-slate: #1fa6e7;
  --color-dashboard-button-highlight-slate: #334155;
  --color-settings-selected-menu-slate: #1fa6e7;
  --color-time-slice-slate: #334155;
  --color-time-slice-hover-slate: #1e293a;
  --color-text-table-details-slate: #1fa6e7;
  --color-device-box-header-slate: #1fa6e7;
  --color-device-box-body-slate: #1e293a;
  --color-device-toggle-slate: #0b1120;
  --color-button-top-slate: #1fa6e7;
  --color-button-top-highlight-slate: #334155;
  --color-bg-contrast: #000000;
  --color-element-contrast: #ffffff;
  --color-element-alt-contrast: #ffffff;
  --color-element-highlight-contrast: #00ff00;
  --color-light-on-contrast: #f5e2b8;
  --color-button-contrast: #00ff00;
  --color-active-btn-contrast: #00ff00;
  --color-button-selected-contrast: #00ff00;
  --color-button-highlight-contrast: #00ff00;
  --color-text-contrast: #000000;
  --color-text-selected-contrast: #ffffff;
  --color-text-disabled-contrast: #3e4e52;
  --color-text-alt-contrast: #000000;
  --color-text-danger-contrast: #ff0000;
  --color-text-highlight-contrast: #00ff00;
  --color-danger-contrast: #b92121;
  --color-header-contrast: #ffffff;
  --color-header-text-contrast: #000000;
  --color-footer-contrast: #000000;
  --color-dashboard-button-contrast: #00ff00;
  --color-dashboard-button-highlight-contrast: #00ffff;
  --color-settings-selected-menu-contrast: #00ff00;
  --color-navbar-bg-contrast: #000000;
  --color-navbar-bg-highlight-contrast: #000000;
  --color-navbar-button-contrast: #1fa6e7;
  --color-navbar-text-contrast: #c7d1dd;
  --color-time-slice-contrast: #334155;
  --color-time-slice-hover-contrast: #1e293a;
  --color-text-table-details-contrast: #1fa6e7;
  --color-button-top-contrast: #1fa6e7;
  --color-button-top-highlight-contrast: #0b1120;
  --color-bg: var(--color-bg-light);
  --color-element: var(--color-element-light);
  --color-element-alt: var(--color-element-alt-light);
  --color-element-highlight: var(--color-element-highlight-light);
  --color-light-on: var(--color-light-on-light);
  --color-button: var(--color-button-light);
  --color-active-btn: var(--color-active-btn-light);
  --color-button-selected: var(--color-button-selected-light);
  --color-button-highlight: var(--color-button-highlight-light);
  --color-text: var(--color-text-light);
  --color-text-selected: var(--color-text-selected-light);
  --color-text-disabled: var(--color-text-disabled-light);
  --color-text-alt: var(--color-text-alt-light);
  --color-text-danger: var(--color-text-danger-light);
  --color-text-highlight: var(--color-text-highlight-light);
  --color-danger: var(--color-danger-light);
  --color-header: var(--color-header-light);
  --color-header-text: var(--color-header-text-contrast);
  --color-footer: var(--color-footer-light);
  --color-dashboard-button: var(--color-dashboard-button-light);
  --color-dashboard-button-highlight: var(--color-dashboard-button-highlight-light);
  --color-settings-selected-menu: var(--color-settings-selected-menu-light);
  --color-navbar-bg: var(--color-navbar-bg-light);
  --color-navbar-bg-highlight: var(--color-navbar-bg-highlight-light);
  --color-navbar-button: var(--color-navbar-button-light);
  --color-navbar-text: var(--color-navbar-text-light);
  --color-time-slice: var(--color-time-slice-light);
  --color-time-slice-hover: var(--color-time-slice-hover-light);
  --color-device-box-header: var(--color-device-box-header);
  --color-device-box-body: var(--color-device-box-body);
  --color-device-toggle: var(--color-device-toggle-light);
}
:root {
  --default-margin: 16px;
  --default-padding: 16px;
  --head-color: #55626b;
  --text-color: white;
  --active-view-display: none;
}
::-webkit-scrollbar {
  width: 12px;
}
::-webkit-scrollbar-track {
  background: var(--color-element);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb {
  background: var(--color-text);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-alt);
}
body .active-view .content-head {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: end;
      justify-content: end;
  padding: 8px;
}
body .active-view #themeSelect {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: end;
      justify-content: end;
  padding: 4px;
  height: 30px;
}
input {
  color: var(--color-text) !important;
  background-color: var(--color-element) !important;
  border: none !important;
  box-shadow: none !important;
}
input::-webkit-input-placeholder {
  color: var(--color-text);
}
input:-ms-input-placeholder {
  color: var(--color-text);
}
input::placeholder {
  color: var(--color-text);
}
.btn-link {
  margin: 0;
  padding: 0;
  text-align: left;
}
.btn-link:focus {
  outline: 0;
}
.btn {
  background-color: var(--color-button) !important;
  color: var(--color-text);
  border: none;
  border-radius: 4px !important;
}
.btn:hover {
  background-color: var(--color-button-highlight) !important;
  color: var(--color-text);
}
.btn-danger {
  background-color: #b71f0e !important;
  color: var(--color-text-selected);
}
.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 {
  color: var(--color-text);
  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 svg {
  --ic-line: var(--color-danger) !important;
}
.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: var(--color-element);
  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: var(--color-text-alt);
  transition: width 0.5s ease-in-out;
  border-radius: 8px;
}
.search-progress #dbg-info {
  position: absolute;
  top: 10px;
  left: 10px;
  color: white;
  display: -ms-grid;
  display: grid;
  grid-gap: 10px;
  grid-auto-flow: column;
}
svg,
img {
  --lg-line: var(--color-text) !important;
  --lg-frame: var(--color-text) !important;
  --lg-fill: var(--color-text) !important;
  --ic-line: var(--color-text) !important;
  --ic-frame: var(--color-text) !important;
  --ic-fill: var(--color-text) !important;
}
#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(--color-header);
}
#overview .content-body {
  background-color: var(--color-bg);
  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 {
  color: var(--color-text);
  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: var(--color-element);
  border-radius: 10px;
  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: var(--color-text-alt);
  -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 {
  color: var(--color-text-alt);
  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 a {
  color: var(--color-text-alt) !important;
}
#overview .content-body #overviewViews #gw-help-infos {
  color: var(--color-text);
  margin: 10px;
  position: absolute;
  bottom: 35px;
  background-color: var(--color-element);
  border-radius: 10px;
  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(--color-header);
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
      align-items: center;
}
#gateway .content-head .btn-link {
  color: white !important;
  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;
  color: var(--color-text);
  background-color: var(--color-bg);
}
#gateway .content-body .gw-info {
  display: none;
  -ms-flex-direction: column;
      flex-direction: column;
}
#gateway .content-body .gw-info i {
  font-size: 80%;
}
@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 .gw-dialog .btn-link {
  color: var(--color-text-alt) !important;
}
#gateway .content-body .gw-dialog a {
  color: var(--color-text-alt) !important;
}
#gateway .content-body .gw-dialog #passwordField {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: row;
      flex-direction: row;
  -ms-grid-column: 1;
      grid-column: 1;
  background-color: var(--color-element);
}
#gateway .content-body .gw-dialog #passwordField #password {
  border: none;
  box-shadow: none;
  background-color: var(--color-element);
}
#gateway .content-body .gw-dialog #passwordField #showPassword {
  display: -ms-flexbox;
  display: flex;
  padding: 7px;
  background-color: var(--color-element);
  color: var(--color-text);
  border-radius: 4px;
  margin-left: 4px;
}
#gateway .content-body .gw-dialog #passwordField #showPassword svg:hover {
  opacity: 0.5;
}
#gateway .content-body #passwordField {
  background-color: var(--color-element);
  border-radius: 5%;
}
#gateway .content-body #gwIp {
  color: var(--color-text-alt) !important;
}
#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: var(--color-text-alt);
}
#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: var(--color-element);
  border-radius: 10px;
  color: var(--color-text);
  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: 430px) {
  /* 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 #gwList::-webkit-scrollbar {
    display: none;
  }
  #overview .content-body #overviewViews #gwList {
    scrollbar-width: none;
  }
  #overview .content-body #overviewViews #gw-help {
    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 #showPassword {
    -ms-grid-column: 1;
        grid-column: 1;
    -ms-grid-row: 3;
        grid-row: 3;
  }
  #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;
  }
}
