.body-content {
  position: relative;
  -ms-flex-direction: column;
      flex-direction: column;
}
.main-content {
  overflow-x: hidden;
  overflow-y: auto;
}
.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.5);
}
.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.5);
}
@media (max-width: 599px) and (orientation: portrait) {
  #main-table-sensor .dev-table-hdr > b:nth-child(5) {
    opacity: 0;
  }
  #main-table-sensor #sensorTable tr td:nth-child(2) div + div {
    opacity: 0.72;
    font-size: 85%;
  }
}
#sensorTable td:nth-child(5) > svg {
  margin-right: 8px;
}
#main-table-sensor,
#main-table-switch,
#main-table-light {
  position: absolute;
  top: 0;
  bottom: 64px;
  height: unset;
  padding-bottom: unset;
}
@media (min-width: 600px) {
  #main-table-sensor,
  #main-table-switch,
  #main-table-light {
    bottom: 104px;
  }
}
#devicesSwitchContainer,
#devicesLightsContainer,
#devicesSensorsContainer {
  -ms-flex: 1 1 auto;
      flex: 1 1 auto;
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
}
#mainDetailsSwitch .group-selectors {
  margin-top: 2em;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
      flex-direction: column;
}
#mainDetailsSwitch .group-selectors li {
  display: list-item;
}
#mainDetailsSwitch .group-selectors div {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
      flex-direction: column;
  margin: 18px 0px;
}
#mainDetailsSwitch .group-selectors select {
  background: transparent;
  /*
			-webkit-appearance: none;
			*/
  min-width: 14em;
  max-width: 20em;
  padding: 5px;
  line-height: 1.3;
  border-radius: 2px;
  height: 2.2em;
  margin-left: 1em;
}
#mainDetailsSwitch .swedit-mode {
  display: none;
  -ms-grid-columns: 60px 220px;
      grid-template-columns: 60px 220px;
  grid-column-gap: 16px;
  grid-row-gap: 8px;
  margin-top: 5rem;
  grid-template-areas: "icon description" "button button" "info info";
  --ic-fill: var(--bg-alt);
  --li-state: none;
}
#mainDetailsSwitch .swedit-mode svg {
  grid-area: icon;
  min-width: 48px;
  max-width: 100%;
}
#mainDetailsSwitch .swedit-mode .description {
  grid-area: description;
  margin: 17px 0;
  justify-self: start;
}
#mainDetailsSwitch .swedit-mode .description a {
  min-width: unset;
  color: #1097e6;
  text-decoration: underline;
}
#mainDetailsSwitch .swedit-mode button {
  display: none;
  grid-area: button;
  margin-top: 40px;
  margin-bottom: 8px;
  justify-self: start;
}
#mainDetailsSwitch .swedit-mode .info {
  display: none;
  grid-area: info;
  font-size: 0.9em;
  opacity: 0.7;
}
#mainDetailsSwitch .swedit-mode .info * {
  min-width: unset;
}
#mainDetailsSwitch.base-functions .swedit-mode button,
#mainDetailsSwitch.base-functions .swedit-mode .info {
  display: unset;
}
#mainDetailsSwitch.swedit .swedit-mode {
  display: -ms-grid;
  display: grid;
}
#mainDetailsSwitch #phModuleMode {
  display: none;
}
#mainDetailsSwitch.phmodule #phModuleMode {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
      flex-direction: column;
  grid-gap: 4px;
}
#mainDetailsSwitch.phmodule #phModuleMode h4 {
  font-size: 19px;
}
#mainDetailsSwitch.phmodule #phModuleMode h4.number-buttons {
  margin-top: 32px;
}
#mainDetailsSwitch.phmodule #phModuleMode .ph-svg-box {
  -ms-flex-direction: column;
      flex-direction: column;
  -ms-flex-align: start;
      align-items: flex-start;
  grid-gap: 12px;
}
#mainDetailsSwitch.phmodule #phModuleMode .ph-svg-box > span {
  margin: 0 16px 0 8px;
}
#mainDetailsSwitch.phmodule #phModuleMode .ph-svg-box svg {
  min-width: unset;
  margin: unset;
  width: 38px;
  height: 38px;
}
#mainDetailsSwitch.phmodule #phModuleMode .ph-svg-box svg [data-btn] {
  display: none;
}
#mainDetailsSwitch.phmodule #phModuleMode .ph-svg-box div {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
      align-items: center;
  grid-gap: 4px;
}
#mainDetailsSwitch.phmodule #phModuleMode .ph-svg-box div > span {
  min-width: unset;
}
#mainDetailsSwitch.phmodule #phModuleMode .ph-svg-box div > span:nth-child(2) {
  margin-left: 8px;
}
#mainDetailsSwitch.phmodule #phModuleMode .ph-svg-box div .ph-text {
  margin-left: 12px;
}
#mainDetailsSwitch.phmodule #phModuleMode small {
  padding-left: 26px;
  font-size: 80%;
  color: #8a8787;
  margin: 0px;
  padding-bottom: 0px;
}
#mainDetailsSwitch.phmodule #phModuleMode small#rockerInfo {
  margin-top: 38px;
  padding-left: unset;
}
#mainDetailsSwitch.phmodule #phModuleMode span {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
      align-items: center;
  position: relative;
}
#mainDetailsSwitch.phmodule #phModuleMode span label {
  font-weight: unset;
  margin-left: 4px;
  margin-bottom: unset;
  cursor: pointer;
}
#mainDetailsSwitch.phmodule #phModuleMode span input {
  margin: 0;
  opacity: 0;
  cursor: pointer;
  min-width: unset !important;
  margin-right: 8px;
}
#mainDetailsSwitch.phmodule #phModuleMode span input:checked ~ .checkmark {
  box-shadow: inset 0 0 0 2px #f5f5f5;
  background-color: #78787b;
}
#mainDetailsSwitch.phmodule #phModuleMode span .checkmark {
  position: absolute;
  height: 13px;
  width: 13px;
  background-color: #f5f5f5;
  border: 0.5px solid #78787b;
  border-radius: 50px;
  z-index: -1;
}
.dev-table-hdr {
  display: -ms-flexbox;
  display: flex;
  max-width: 846px;
  padding-top: 4px;
  padding-bottom: 8px;
}
@media (max-width: 1199px) {
  .dev-table-hdr {
    border-bottom: 1px solid var(--border-alt);
  }
}
.dev-table-hdr b:nth-child(3) {
  min-width: 11em;
  max-width: 13em;
}
.dev-table-hdr b:nth-child(1) {
  padding: 0px 16px;
  min-width: 65px;
  max-width: 65px;
}
@media (orientation: portrait) {
  .dev-table-hdr b:nth-child(2) {
    min-width: 11em;
    max-width: 11em;
  }
}
body.empty .dev-table-hdr {
  visibility: hidden;
}
.dev-table thead {
  background-color: var(--bg-alt, red);
  border-bottom: 1px solid var(--border-alt, blue);
  z-index: 2;
}
.dev-table tbody {
  position: absolute;
  margin-top: 4px;
}
.dev-table .sw-led {
  fill: rgba(0, 0, 0, 0.9);
  stroke: rgba(0, 0, 0, 0.9);
}
.dev-table img {
  max-height: 48px;
}
.dev-table th {
  text-align: left;
  border: none;
}
.dev-table tr th:not(:first-child),
.dev-table tr td:not(:first-child) {
  text-align: left;
  vertical-align: middle;
  padding: 4px 24px;
  min-width: 14em;
  max-width: 14em;
}
.dev-table tr th:nth-child(3),
.dev-table tr td:nth-child(3) {
  min-width: 11em;
  max-width: 13em;
}
.dev-table td {
  text-overflow: ellipsis;
  overflow: hidden;
}
@media (orientation: portrait) {
  .dev-table td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .dev-table tr th:nth-child(2),
  .dev-table tr td:nth-child(2) {
    min-width: 11em;
    max-width: 11em;
  }
}
.dev-table th:nth-child(1),
.dev-table td:nth-child(1) {
  padding: 0px;
  min-width: 65px;
  max-width: 65px;
}
.dev-table th:nth-child(1) svg,
.dev-table td:nth-child(1) svg {
  -ms-transform: scale(0.9);
      transform: scale(0.9);
}
.dev-table tr:first-child td {
  border: unset;
}
.dev-table tr td:last-child {
  max-width: unset;
}
#detail-img svg {
  max-width: 200px;
  max-height: 200px;
}
/*muss noch in less-datei*/
#detail-img + div {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
      flex-direction: column;
  padding-top: 1em;
}
h1 {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
      align-items: center;
}
.item-icon {
  margin-top: 8px;
  margin-left: 12px;
}
.page-details {
  /*muss noch in less-datei*/
  /*muss noch in less-datei*/
}
.page-details .main-head {
  position: relative;
}
.page-details h1 .generated-sw-svg {
  margin-top: unset;
}
@media (max-width: 599px) and (orientation: portrait) {
  .page-details h1 {
    margin-top: 72px;
  }
}
.page-details .main-content {
  -ms-flex-direction: column;
      flex-direction: column;
}
.page-details .main-content .version-ok {
  font-size: 15px;
  font-style: italic;
  margin: 8px 0;
}
.page-details .main-content .version {
  margin-top: 0.5em;
}
.page-details .main-content > div > div :first-child {
  display: inline-block;
  min-width: 37vw;
}
@media (min-width: 417px) {
  .page-details .main-content > div > div :first-child {
    min-width: 140px;
  }
}
.page-details .main-content > div > div {
  padding-bottom: 6px;
}
.page-details #sensorValues > div {
  padding-bottom: 6px;
}
.page-details #sensorValues > div .updated {
  font-size: 0.9em;
  opacity: 0.7;
  font-style: italic;
}
.page-details h1 > svg:first-child {
  min-width: 48px;
  -ms-transform: scale(0.7);
      transform: scale(0.7);
  margin-left: -8px;
  margin-right: 4px;
}
.page-details h1 svg + span {
  margin-left: 0px;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-top: 4px;
  white-space: nowrap;
}
.page-details .item-edit {
  opacity: 0.8;
}
@media (max-width: 416px) and (orientation: landscape) {
  .main.page {
    -ms-transform: translateY(-150%);
        transform: translateY(-150%);
  }
}
@media (max-width: 599px) and (orientation: portrait) {
  .btn-add-device {
    display: none;
  }
  #main-table-sensor,
  #main-table-switch {
    bottom: 32px;
  }
  .hdr-delete-btn {
    top: 8px;
  }
  .main.page {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
  }
  .main-head {
    margin: 0 16px 0 24px;
    min-height: unset;
  }
  .main-head h1 {
    font-size: 110%;
    width: 88vw;
    max-width: 88vw;
  }
  .main-content {
    margin: 0 16px 0 24px;
    padding: 0;
  }
  .bottom-bar {
    left: 0;
    padding: 8px 0px;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-pack: center;
        justify-content: center;
  }
  #lights-cont {
    left: 0;
    padding: 8px 32px;
  }
  #searchDiv {
    font-size: 82%;
  }
}
@media (max-width: 899px) {
  .body-content {
    padding-left: 0;
    background-color: #fafafa;
    background-color: var(--bg-alt);
  }
  .main-head {
    -ms-flex: 0 1 auto;
        flex: 0 1 auto;
  }
  #devicesLightsContainer .dev-table th {
    padding-left: 1.5em;
  }
  .main-head {
    -ms-flex-direction: column;
        flex-direction: column;
  }
  .main-head #resetGateway_btn {
    margin-right: 0;
  }
  .hdr-delete-btn {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-pack: end;
        justify-content: flex-end;
    position: absolute;
    right: 0;
    top: 16px;
  }
  #groupSelect {
    position: relative;
  }
}
@media (min-width: 600px) {
  .main-head h1 {
    margin-top: 32px;
  }
  #detail-img {
    display: unset;
  }
  #detail-img + div {
    margin-left: 8vw;
  }
  .main-head {
    margin: 0 0;
    margin-right: 16px;
    padding-left: 56px;
  }
  .main.page {
    height: 100%;
    position: absolute;
    left: var(--nav-width);
    right: 0;
  }
  .main-content {
    margin-right: 16px;
  }
  #searchDiv {
    font-size: 110%;
  }
}
@media (max-width: 899px) {
  #detail-img {
    margin-bottom: 64px;
    margin-top: 32px;
    margin-left: 12vw;
    margin-right: auto;
    height: 140px;
  }
  #detail-img + div {
    padding-top: 32px;
  }
}
@media (max-width: 599px) and (orientation: portrait) {
  #bodySwitches .bottom-bar,
  #bodySensors .bottom-bar {
    display: none;
  }
  #mainDetailsLight .main-head h1 {
    padding: unset;
  }
  #mainDetailsLight .main-head h1 span {
    -ms-flex: 1;
        flex: 1;
    padding-top: unset;
    font-size: 110%;
  }
  #mainDetailsLight .main-content > div:nth-child(2) {
    margin-left: 9vw;
  }
  #detail-img {
    margin: 20px auto;
    height: unset;
  }
  #detail-img svg {
    -ms-transform: unset;
        transform: unset;
    margin-top: unset !important;
    display: block;
    width: 120px;
    height: auto;
    min-height: 120px;
  }
}
@media (min-width: 900px) {
  .main-head h1 {
    padding-left: unset;
    margin-top: 32px;
  }
  .page-details .main-content {
    margin-left: 0px;
    -ms-flex-direction: row;
        flex-direction: row;
  }
  .page-details #detail-img {
    margin: 64px 2vw;
    height: 140px;
  }
  .page-details #detail-img + div {
    padding-top: 72px;
    margin-left: 32px;
  }
}
.dev-table-hdr {
  border-bottom: 1px solid var(--border-alt);
  max-width: unset;
}
.dev-table-hdr,
#lightTable tr,
#sensorTable 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;
}
.dev-table-hdr:not(:first-child),
#lightTable tr:not(:first-child),
#sensorTable tr:not(:first-child) {
  border-top: 1px solid #dddddd;
}
.dev-table-hdr.not-reachable > *,
#lightTable tr.not-reachable > *,
#sensorTable tr.not-reachable > * {
  opacity: 0.5;
}
.dev-table-hdr td,
#lightTable tr td,
#sensorTable tr td {
  padding: 8px 0;
  border: unset;
  overflow: hidden;
  text-overflow: ellipsis;
}
#lightTable,
#sensorTable {
  width: 100%;
}
#lightTable .item-icon:not(.daylight-icon),
#sensorTable .item-icon:not(.daylight-icon) {
  margin: auto;
  display: -ms-flexbox;
  display: flex;
}
