:root {
  --default-padding: unset;
  --default-margin: unset;
  --main-views-padding-left: 54px;
  --main-views-padding-right: 16px;
  --main-views-width: 100%;
  --display-mq-desktop: inline;
  --display-mq-phone: none;
  --main-head-font-size: 155%;
  --main-head-min-height: 113px;
  --main-head-h1-margin-top: 32px;
  --main-head-del-btn-padding-right: 32px;
  --main-content-padding-top: 72px;
  --progress-time: 120s;
  --attribute-display: grid;
  --detail-img-margin: 0 4vw 0 2vw;
}
.placeholder {
  opacity: 0.4;
}
.mq-phone {
  display: var(--display-mq-phone) !important;
}
.mq-desktop {
  display: var(--display-mq-desktop) !important;
}
svg {
  position: relative;
}
svg.item-icon {
  -ms-transform: scale(0.9);
      transform: scale(0.9);
}
.main-head,
.main-head > h1,
.main-content {
  padding: var(--default-padding);
}
/* Scroll element */
.dev-scroll-cont {
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
}
/* shadow for .dev-scroll-cont */
.shadow-top {
  box-shadow: inset 0 4px 3px -5px rgba(0, 0, 0, 0.75);
}
.shadow-bottom {
  box-shadow: inset 0 -4px 4px -5px rgba(0, 0, 0, 0.75);
}
.shadow-top.shadow-bottom {
  box-shadow: inset 0 4px 3px -5px rgba(0, 0, 0, 0.75), inset 0 -4px 4px -5px rgba(0, 0, 0, 0.75);
}
/* equal for all main views */
#overview,
#details,
.empty-div {
  padding-left: var(--main-views-padding-left);
  padding-right: var(--main-views-padding-right);
  width: var(--main-views-width);
  display: -ms-grid;
  display: grid;
  -ms-grid-rows: max-content auto max-content;
      grid-template-rows: max-content auto max-content;
}
#overview .main-head,
#details .main-head,
.empty-div .main-head {
  -ms-flex-align: center;
      align-items: center;
  min-height: var(--main-head-min-height);
}
#overview .main-head h1,
#details .main-head h1,
.empty-div .main-head h1 {
  margin-top: var(--main-head-h1-margin-top);
  font-size: var(--main-head-font-size);
  padding-left: 2px;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
      align-items: center;
}
/* Table view */
#overview .main-content {
  -ms-flex-direction: column;
      flex-direction: column;
  overflow: hidden;
}
#overview .main-content .dev-table-hdr b {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
      align-items: center;
}
#overview .main-content .dev-table-hdr,
#overview .main-content #plugTable tr {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 88px (minmax(150px, 1fr))[auto-fit];
      grid-template-columns: 88px repeat(auto-fit, minmax(150px, 1fr));
  grid-gap: 16px;
  -ms-flex-align: center;
      align-items: center;
  border-top: 1px solid #dddddd;
}
#overview .main-content .dev-table-hdr td:first-child,
#overview .main-content #plugTable tr td:first-child {
  margin: auto;
}
#overview .main-content .dev-table-hdr.not-reachable td,
#overview .main-content #plugTable tr.not-reachable td {
  opacity: 0.5;
}
#overview .main-content .dev-table-hdr td,
#overview .main-content #plugTable tr td {
  padding: 8px 0;
  border: unset;
  overflow: hidden;
  text-overflow: ellipsis;
}
#overview .main-content .dev-table-hdr .item-icon,
#overview .main-content #plugTable tr .item-icon {
  margin: auto;
  display: -ms-flexbox;
  display: flex;
}
#overview .main-content .dev-table-hdr {
  padding-top: 4px;
  padding-bottom: 8px;
  border: none;
  border-bottom: 1px solid var(--border-alt);
}
/* Empty view */
.empty-div .main-content {
  -ms-flex-direction: column;
      flex-direction: column;
  -ms-flex-align: start;
      align-items: flex-start;
  padding-top: 20vh;
}
/* Details view */
#details .context-menu-box {
  position: relative;
}
#details .context-menu-box .context-menu {
  display: none;
  list-style: none;
  position: absolute;
  margin: 0;
  padding: 0;
  right: 12px;
  border: solid 0.5px #cccccc;
  border-radius: 5px;
  background-color: white;
  z-index: 10;
  top: 24px;
}
#details .context-menu-box .context-menu li {
  padding: 8px 12px;
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: min-content min-content;
      grid-template-columns: min-content min-content;
  grid-gap: 8px;
  -ms-flex-align: center;
      align-items: center;
}
#details .context-menu-box .context-menu li:not(:first-child) {
  border-top: solid 1px #cccccc;
}
#details .context-menu-box.show-context .context-menu {
  display: inline;
}
#details .context-menu-box.show-context .context-menu-outer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #ffffff01;
  z-index: 1;
}
#details .groups-added,
#details .no-groups-added {
  display: none;
}
#details.groups-added .groups-added {
  display: inline;
}
#details:not(.groups-added) .no-groups-added {
  display: inline;
}
#details #deletePlug_btn {
  padding-right: var(--main-head-del-btn-padding-right);
}
#details #deletePlug_btn svg {
  vertical-align: middle;
}
#details .main-content {
  padding-top: var(--main-content-padding-top);
}
#details .main-content #detailImg {
  width: 200px;
  height: auto;
  max-height: 200px;
  max-width: 200px;
  margin: var(--detail-img-margin);
}
#details .main-content #detailImg .li-state-line {
  stroke-width: 0.6px;
}
#details .svg-icon {
  height: 48px;
  -ms-transform: scale(0.7);
      transform: scale(0.7);
  width: auto;
  color: red;
}
#details #detailInfos {
  display: -ms-grid;
  display: grid;
  grid-auto-rows: min-content;
  grid-gap: 16px;
}
#details #detailInfos span[data-translateid] {
  opacity: 0.6;
}
#details #detailInfos > div {
  display: var(--attribute-display);
  -ms-grid-columns: 100px auto;
      grid-template-columns: 100px auto;
  grid-column-gap: 20px;
  grid-row-gap: 6px;
  -ms-flex-align: center;
      align-items: center;
}
#details #detailInfos > div .version-ok {
  -ms-grid-column-span: 2;
  -ms-grid-column: 1;
      grid-column: 1 / span 2;
}
#details #detailInfos #devUpdate a {
  -ms-grid-column-span: 2;
  -ms-grid-column: 1;
      grid-column: 1 / span 2;
}
#details #detailInfos #devUpdate button {
  -ms-grid-column-span: 2;
  -ms-grid-column: 1;
      grid-column: 1 / span 2;
  max-width: 192px;
}
#details #detailInfos #vsExtra {
  opacity: 0.5;
  font-size: 90%;
  margin-left: 5px;
}
#details #detailInfos #vsExtra:empty {
  display: none;
}
#details #detailInfos .groupMembership {
  -ms-grid-columns: auto;
      grid-template-columns: auto;
  margin-top: 15px;
}
#details #detailInfos .groupMembership #labelGroupListSelect {
  margin: 0;
}
#details #detailInfos .groupMembership div #groupSelect {
  width: 250px;
  padding: 8px 16px;
  height: 37px;
  margin: 10px 0px;
}
#details.swversion .swversion,
#details.battery .battery,
#details.state .state,
#details.bri .bri,
#details .generals {
  --attribute-display: grid;
}
.measuring {
  display: none;
  -ms-grid-columns: auto !important;
      grid-template-columns: auto !important;
}
.measuring div {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 110px auto !important;
      grid-template-columns: 110px auto !important;
  grid-column-gap: 10px;
}
#listGroupsFromLight {
  opacity: 0;
}
#progress {
  position: relative;
  -ms-flex: 1;
      flex: 1;
  background-color: rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  height: 16px;
  overflow: hidden;
}
#progressBar,
#progressBarEmpty {
  position: absolute;
  top: 0px;
  bottom: 0px;
  width: 0%;
  background-color: #55626b;
  box-sizing: border-box;
}
#time,
#timeEmpty {
  margin-left: auto;
  padding-right: 41px;
  transition: opacity 500ms ease-out;
}
.bottom-bar {
  position: relative;
  margin: 32px 0;
  z-index: 1;
  transition: transform 140ms ease-out 100ms, opacity 120ms ease-out;
}
body.empty .bottom-bar,
body.details .bottom-bar,
.search-active .bottom-bar {
  opacity: 0;
  -ms-transform: translateY(200px);
      transform: translateY(200px);
}
#lights-cont {
  transition: transform 100ms ease-out 300ms;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
      flex-direction: column;
  -ms-flex-pack: justify;
      justify-content: space-between;
  -ms-flex: 1;
      flex: 1;
  background-color: #fafafa;
  padding: 24px 32px;
  position: absolute;
  bottom: 0;
  left: 280px;
  right: 0;
}
.empty #lights-cont {
  margin-bottom: 40px;
}
.search-active #searchDiv,
.search-active #lights-cont {
  opacity: 1;
  transition: all 100ms ease-out 100ms;
}
.empty-div.search {
  transition: opacity 100ms ease-out 100ms;
}
#searchDiv {
  width: 100%;
  height: 60px;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: distribute;
      justify-content: space-around;
  -ms-flex-direction: column;
      flex-direction: column;
  opacity: 0;
  transition: opacity 100ms ease-out;
}
@media (max-width: 1199px) {
  :root {
    --main-content-padding-top: 64px;
  }
  .dev-table-hdr b:nth-child(5),
  #plugTable tr b:nth-child(5),
  .dev-table-hdr td:nth-child(5),
  #plugTable tr td:nth-child(5) {
    display: none !important;
  }
}
@media (max-width: 899px) {
  :root {
    --main-views-padding-left: 32px;
    --main-head-del-btn-padding-right: 12px;
    --main-content-padding-top: 54px;
    --detail-img-margin: 0 4vw 0 9vw;
  }
  .dev-table-hdr b:nth-child(3),
  #plugTable tr b:nth-child(3),
  .dev-table-hdr td:nth-child(3),
  #plugTable tr td:nth-child(3) {
    display: none !important;
  }
  #details .main-head {
    -ms-flex-direction: column-reverse;
        flex-direction: column-reverse;
  }
  #details .main-head h1 {
    -ms-flex-item-align: start;
        align-self: flex-start;
  }
  #details .main-head #deletePlug_btn {
    -ms-flex-item-align: end;
        align-self: flex-end;
    margin-top: 28px;
  }
  #details .main-content {
    -ms-flex-direction: column;
        flex-direction: column;
  }
  #details .main-content #detailInfos {
    margin-left: 9vw;
    padding-top: var(--main-content-padding-top);
  }
}
@media (max-height: 420px) and (min-width: 416px) {
  html {
    -ms-transform: rotate(-90deg);
        transform: rotate(-90deg);
    -ms-transform-origin: left top;
        transform-origin: left top;
    width: 100vh;
    height: 100vw;
    overflow-x: hidden;
    position: absolute;
    top: 100%;
    left: 0;
  }
  html .sidenav {
    -ms-transform: translate(-100%) !important;
        transform: translate(-100%) !important;
  }
  html .body-content {
    padding-left: unset !important;
  }
}
@media (max-width: 599px) and (orientation: portrait) {
  :root {
    --main-views-padding-left: 24px;
    --display-mq-desktop: none;
    --display-mq-phone: inline;
    --main-head-font-size: 110%;
    --main-head-min-height: unset;
    --main-head-h1-margin-top: 25px;
    --main-content-padding-top: 0px;
    --modal-title-font-size: 20px;
    --modal-btn-font-size: 16px;
    --detail-img-margin: 0 auto;
  }
  .body-content {
    background-color: var(--bg-alt);
  }
  .body-content .dev-table-hdr b:nth-child(4),
  .body-content #plugTable tr b:nth-child(4),
  .body-content .dev-table-hdr td:nth-child(4),
  .body-content #plugTable tr td:nth-child(4) {
    display: none !important;
  }
  .body-content #overview .main-head,
  .body-content #details .main-head,
  .body-content .empty-div .main-head {
    -ms-flex-align: unset;
        align-items: unset;
  }
  .body-content #overview .main-head div[data-btn-ev="SCAN"],
  .body-content #details .main-head div[data-btn-ev="SCAN"],
  .body-content .empty-div .main-head div[data-btn-ev="SCAN"] {
    padding-right: 20px;
    height: 18px;
  }
  .body-content #overview .main-head div[data-btn-ev="SCAN"] svg,
  .body-content #details .main-head div[data-btn-ev="SCAN"] svg,
  .body-content .empty-div .main-head div[data-btn-ev="SCAN"] svg {
    z-index: 1;
  }
  .body-content #overview .main-head h1,
  .body-content .empty-div .main-head h1 {
    padding: unset;
    margin: unset;
    padding-left: 20px;
    -ms-flex-pack: start;
        justify-content: flex-start;
  }
  .body-content #overview .main-head h1 span,
  .body-content .empty-div .main-head h1 span {
    -ms-flex: 1;
        flex: 1;
  }
  .body-content #overview #empty-info,
  .body-content .empty-div #empty-info {
    padding-left: 20px;
  }
  .body-content #details {
    grid-gap: 20px;
  }
  .body-content #details .main-head {
    -ms-flex-direction: row;
        flex-direction: row;
    -ms-flex-align: center;
        align-items: center;
  }
  .body-content #details .main-head h1 {
    margin-left: unset;
  }
  .body-content #details .main-head h1 span {
    -ms-flex: 1;
        flex: 1;
  }
  .body-content #details .main-content {
    padding-bottom: 20px;
  }
  .body-content #details .main-content #detailImg {
    -ms-flex: 1 1 0px;
        flex: 1 1 0;
    width: 120px;
    height: 120px;
    max-height: 120px;
    margin: 20px auto;
  }
  .body-content #details .main-content #detailInfos {
    margin-top: 24.5px;
    overflow-y: auto;
    position: relative;
    height: 50vh;
  }
  .body-content #details .main-content #detailInfos #groupSelect,
  .body-content #details .main-content #detailInfos .groups-added-list {
    z-index: 100;
    position: relative;
  }
  #lights-cont {
    left: 0;
  }
}
