body {
  background-color: var(--bg-alt, green);
}
body .ic-frame:not([stroke-width]) {
  stroke-width: 0.5px;
}
body .settings-nav .ic-line,
body .ic-line,
body .ic-frame {
  stroke: --ic-line;
}
body .settings-nav .ic-fill,
body .ic-fill {
  fill: --ic-fill;
}
#detail-txt {
  position: relative;
}
.settings-tab div {
  margin-top: 40px;
  margin-bottom: 40px;
}
.settings-tab div.danger {
  padding: 20px;
  text-align: center;
  background-color: #f2dede;
}
#connected-wifi-name svg {
  margin-left: 10px;
  vertical-align: middle;
}
.hdr-delete-btn {
  white-space: nowrap;
  margin-right: 8px;
  margin-top: 16px;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: end;
      justify-content: flex-end;
  margin-left: auto;
}
.pencil {
  vertical-align: sub;
}
.settings-tab {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 20vw;
}
.settings-tab .btn {
  margin: 8px 0px;
}
.settings-nav {
  position: fixed;
  bottom: 0vw;
  left: 20vw;
  max-height: 20vw;
}
.settings-nav > div {
  -ms-transform: scale(0.75);
      transform: scale(0.75);
  margin: 0px 16px;
}
.settings-nav svg {
  min-width: 48px;
  min-height: 48px;
}
.page-right,
.page-left {
  opacity: 0;
}
body.ap-settings #ap-tab,
body.client-settings #client-tab {
  color: #c17e39;
  --ic-line: #c17e39;
  --ic-frame: #c17e39;
  --ic-fill: #c17e39;
}
.body-content-settings {
  position: absolute;
  overflow-x: hidden;
  overflow-y: auto;
  top: var(--hdr-height);
  left: 4vw;
  bottom: 20vw;
  right: 4vw;
}
.body-content-settings #detail-img {
  display: none;
}
.body-content-settings .main-head {
  -ms-flex-direction: column;
      flex-direction: column;
}
.body-content-settings .main-head h1 {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
      align-items: center;
  margin-bottom: 0;
}
.body-content-settings .main-head h1 span {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
      align-items: center;
}
.body-content-settings .main-head h1 #gateway_name {
  margin-left: 10px;
}
.body-content-settings .main-head h1 #edit-btn {
  margin-left: 40px;
}
.body-content-settings .main-content-settings .version {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
      align-items: center;
}
.body-content-settings .main-content-settings hr {
  border-top-color: #cccccc;
  width: 350px;
  margin-left: 0px;
}
.body-content-settings .main-content-settings .left-col {
  display: inline-block;
  min-width: 160px;
  line-height: 1.6em;
}
.body-content-settings .main-content-settings .muted {
  font-style: italic;
  color: #919191;
}
.body-content-settings .main-content-settings .center {
  text-align: center;
}
.body-content-settings .main-content-settings #versionInfo {
  padding-top: 8px;
  padding-bottom: 20px;
}
.body-content-settings .main-content-settings a {
  text-decoration: underline;
}
.page-details h1 {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
      align-items: center;
}
#gateway_image_sm svg {
  min-width: 32px;
  -ms-transform: scale(0.85);
      transform: scale(0.85);
}
h1 .item-edit svg {
  -ms-transform: scale(0.8);
      transform: scale(0.8);
}
.page-details h1 {
  margin-left: 0px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 416px) {
  .page-details h1 {
    margin-right: auto;
  }
}
.page-details .item-edit {
  opacity: 0.8;
}
@media (max-width: 416px) {
  .settings-tab {
    transition: opacity 80ms ease-in, transform 160ms ease-in;
  }
  .page-left {
    opacity: 0;
  }
  .page-right {
    opacity: 0;
  }
  .main.page {
    position: absolute;
    top: 32px;
    left: 0;
    bottom: 0;
    right: 0;
  }
  .main-head h1 {
    width: 88vw;
    max-width: 88vw;
  }
  .bottom-bar {
    left: 0;
  }
  #lights-cont {
    left: 0;
  }
  #notEmptyBtn {
    margin-left: 10vw;
  }
}
@media (min-width: 600px) {
  #gateway_image_sm svg {
    -ms-transform: unset;
        transform: unset;
  }
  h1 .item-edit svg {
    -ms-transform: unset;
        transform: unset;
  }
  .main-head {
    padding: unset;
  }
  .main-head h1 {
    margin-top: 0;
  }
  .main-head .hdr-delete-btn {
    margin-top: 3rem;
  }
  .main-content-settings {
    position: relative;
    -ms-flex: 1 0 auto;
        flex: 1 0 auto;
  }
  .main-content-settings #detail-img {
    display: unset;
  }
  .main-content-settings #detail-img svg {
    margin-top: 3vw;
    max-width: 200px;
    max-height: 180px;
  }
  .settings-tab {
    opacity: unset;
    visibility: hidden;
  }
  .body-content-settings {
    left: var(--nav-width);
    bottom: 0;
    padding-left: 4vw;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
        flex-direction: column;
  }
  #detail-txt {
    overflow-y: auto;
    overflow-x: hidden;
    position: absolute;
    top: 4vw;
    bottom: 0;
    left: 0;
    right: 5vw;
    -ms-overflow-style: none;
  }
  #detail-txt::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
  }
  #detail-txt .btn {
    margin: 20px 0px;
    -ms-flex-item-align: start;
        align-self: flex-start;
  }
  #detail-txt .btn-default {
    min-width: 220px;
  }
  #detail-txt #showUpdate_btn button {
    margin-top: 4px;
    margin-bottom: 24px;
  }
  .main.page {
    height: 100%;
    position: absolute;
    left: 280px;
    right: 0;
  }
}
@media (min-width: 600px) and (max-width: 899px) {
  body.ap-settings #detail-txt {
    top: 25vw;
  }
  body.ap-settings #ap-settings {
    visibility: visible;
  }
  body.client-settings #detail-img {
    display: none;
  }
  body.client-settings #client-settings {
    visibility: visible;
  }
  .settings-nav {
    -ms-flex-direction: column;
        flex-direction: column;
    right: 5vw;
    left: unset;
    top: 30vw;
  }
  .settings-nav > div {
    margin: 16px 0;
    min-height: 48px;
    -ms-transform: unset;
        transform: unset;
  }
  .settings-nav svg + span {
    display: none;
  }
  .body-content {
    padding-left: 0;
  }
  #groupSelect {
    position: relative;
  }
}
@media (max-height: 800px) {
  .shadow-top {
    box-shadow: inset 0px 4px 3px -5px rgba(0, 0, 0, 0.5);
  }
  .shadow-bottom {
    box-shadow: inset 0px -4px 3px -5px rgba(0, 0, 0, 0.5);
  }
  .shadow-top.shadow-bottom {
    box-shadow: inset 0px 4px 3px -5px rgba(0, 0, 0, 0.5), inset 0px -4px 4px -5px rgba(0, 0, 0, 0.5);
  }
}
body.static-nav {
  position: absolute;
  width: 100%;
}
/*#detail-img {
	width: 216px;
}

#detail-img svg {
	width: 100%;
}*/
#unlockGateway {
  margin-top: 1.5em;
}
#unlockGateway p {
  margin: 0;
}
#authAllowed {
  opacity: 0;
  display: none;
  padding: 8px 16px;
  color: white;
  background-color: cornflowerblue;
  border-radius: 16px;
  transition: opacity 100ms ease-in;
}
body.gw-unlocked #authAllowed {
  opacity: 1;
  display: unset;
}
body.gw-unlocked #unlockGateway button {
  opacity: 0.3;
}
@media (min-width: 900px) {
  .main-head h1 {
    padding-left: unset;
  }
  .settings-nav {
    -ms-flex-direction: row;
        flex-direction: row;
    right: 9vw;
    left: unset;
    top: unset;
    bottom: 4vw;
  }
  .settings-nav > div {
    margin: 0 32px;
    -ms-transform: unset;
        transform: unset;
  }
  .settings-nav svg + span {
    display: unset;
  }
  .settings-tab {
    display: none;
    padding: 24px 16px;
  }
  #detail-txt {
    background-color: #f4f4f4;
    top: 1vw;
    left: 24vw;
    right: 0;
    bottom: 13vw;
  }
  body.ap-settings #ap-settings {
    visibility: visible;
    display: unset;
  }
  body.client-settings #client-settings {
    visibility: visible;
    display: unset;
  }
}
@media (min-width: 900px) and (min-height: 875px) {
  #detail-txt {
    background-color: unset;
  }
}
@media (min-width: 1200px) {
  #detail-txt {
    left: 300px;
    max-width: 538px;
    right: 0;
    bottom: 13vw;
  }
  .settings-nav {
    right: unset;
    left: 680px;
  }
}
