@keyframes trInteractive {
  10% {
    background-color: rgba(85, 98, 107, 0.6);
  }
  100% {
    background-color: none;
  }
}
@keyframes swInteractive {
  10% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@keyframes blinkStroke {
  50% {
    stroke-width: 7px;
    stroke: var(--sw-blink-color);
  }
}
@keyframes blinkFill {
  50% {
    stroke-width: 1px;
    stroke: var(--sw-blink-color);
    fill: var(--sw-blink-color);
  }
}
@keyframes fadeInPrev {
  0% {
    transform: translateX(-100vw);
  }
  100% {
    transform: translateX(0);
  }
}
@keyframes fadeInNext {
  0% {
    transform: translateX(100vw);
  }
  100% {
    transform: translateX(0);
  }
}
@keyframes fadeOutPrev {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(100vw);
  }
}
@keyframes fadeOutNext {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100vw);
  }
}
@keyframes runprogress {
  0% {
    transform: scaleX(1);
  }
  100% {
    transform: scaleX(0);
  }
}
@keyframes runopacity {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes clickEvTargetAnimation {
  0% {
    opacity: 0.3;
  }
  10% {
    opacity: 0.5;
  }
  20% {
    opacity: 0.7;
  }
  90% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
@keyframes clickEvHandAnimation {
  0% {
    opacity: 1;
  }
  10% {
    opacity: 1;
  }
  20% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
@keyframes clickEvTextAndButtonAnimation {
  0% {
    opacity: 0;
  }
  10% {
    opacity: 0;
  }
  20% {
    opacity: 0;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}
@keyframes blinkSlideBtn {
  50% {
    background-color: #cccccc;
  }
}
@keyframes fadeInPrev {
  0% {
    transform: translateX(-100vw);
  }
  100% {
    transform: translateX(0);
  }
}
@keyframes fadeInNext {
  0% {
    transform: translateX(100vw);
  }
  100% {
    transform: translateX(0);
  }
}
@keyframes fadeOutPrev {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(100vw);
  }
}
@keyframes fadeOutNext {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100vw);
  }
}
@keyframes runprogress {
  0% {
    transform: scaleX(1);
  }
  100% {
    transform: scaleX(0);
  }
}
@keyframes runopacity {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
: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;
  --modal-title-font-size: 24px;
  --modal-btn-font-size: 18px;
  --progress-time: 120s;
  --attribute-display: grid;
  --blind-height: 100%;
  --ikea-blind-length-reset: 100%;
}
#searchSensor {
  padding: 8px 16px;
  width: 200px;
  margin: 2px;
  margin-bottom: 20px;
  margin-left: auto;
}
.mq-phone {
  display: var(--display-mq-phone) !important;
}
.mq-desktop {
  display: var(--display-mq-desktop) !important;
}
img {
  visibility: hidden;
}
svg {
  position: relative;
}
svg.item-icon {
  -ms-transform: scale(0.7);
      transform: scale(0.7);
  margin: auto;
  --ic-fill: transparent;
}
.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 {
  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 {
  -ms-flex-align: center;
      align-items: center;
  min-height: var(--main-head-min-height);
}
#overview .main-head h1,
#details .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;
}
#overview .main-head h1 svg .ic-fill,
#details .main-head h1 svg .ic-fill {
  fill: none;
}
.context-menu-box {
  position: relative;
  z-index: 1;
}
.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;
}
.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;
}
.context-menu-box .context-menu li:not(:first-child) {
  border-top: solid 1px #cccccc;
}
.context-menu-box .context-menu li svg {
  width: 18px;
  height: 18px;
}
.context-menu-box .context-menu li svg #delete-icon-sm .ic-frame {
  stroke: var(--ic-line, #3e4e52);
}
.context-menu-box.show-context .context-menu {
  display: inline;
}
.context-menu-box.show-context .context-menu-outer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #ffffff01;
  z-index: 1;
}
/* 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 .item-icon {
  -ms-transform: scale(0.7);
      transform: scale(0.7);
  margin: auto;
}
#overview .main-content .svg-icon-detected {
  opacity: 0.7;
}
#overview .main-content .svg-icon-detected.detected {
  opacity: 1;
}
#overview .main-content .dev-table-hdr,
#overview .main-content #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;
  border-top: 1px solid #dddddd;
}
#overview .main-content .dev-table-hdr.not-reachable > *,
#overview .main-content #sensorTable tr.not-reachable > * {
  opacity: 0.5;
}
#overview .main-content .dev-table-hdr td,
#overview .main-content #sensorTable tr td {
  padding: 8px 0;
  border: unset;
  overflow: hidden;
  text-overflow: ellipsis;
}
#overview .main-content .dev-table-hdr {
  padding-top: 4px;
  padding-bottom: 8px;
  border: none;
  border-bottom: 1px solid var(--border-alt);
}
#overview .bottom-bar {
  margin: 32px 0;
}
/* Details view */
#details .main-content {
  padding-top: var(--main-content-padding-top);
}
#details h1 .svg-icon {
  -ms-transform: scale(0.7);
      transform: scale(0.7);
}
#details #deleteSensor_btn {
  padding-right: var(--main-head-del-btn-padding-right);
}
#details #detailImg {
  width: 200px;
  height: auto;
  max-height: 200px;
}
#details #detailInfos {
  grid-auto-rows: min-content;
  grid-gap: 12px;
}
#details #detailInfos span[data-translateid] {
  opacity: 0.6;
}
#details #detailInfos .data-val i {
  opacity: 0.5;
  font-size: 90%;
}
#details #detailInfos .data-val.alarm {
  display: -ms-grid;
  display: grid;
  -ms-flex-align: center;
      align-items: center;
  grid-gap: 5px;
  -ms-grid-columns: max-content max-content;
      grid-template-columns: max-content max-content;
}
#details #detailInfos > div {
  display: var(--attribute-display);
  -ms-grid-columns: 120px auto;
      grid-template-columns: 120px auto;
  grid-column-gap: 20px;
  margin-bottom: 15px;
  -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 > div.sensor-states,
#details #detailInfos > div.sensor-generals {
  -ms-grid-columns: 120px auto;
      grid-template-columns: 120px auto;
}
#details #detailInfos .lastupdated .data-val i {
  padding-left: 1.5rem;
  opacity: 0.5;
  font-size: 90%;
}
#details #detailInfos .svg-icon {
  height: 24px;
  width: 24px;
}
#details #detailInfos .svg-icon-detected {
  opacity: 0.6;
}
#details #detailInfos .svg-icon-detected.detected {
  opacity: 1;
}
#details #detailInfos .version-ok {
  -ms-grid-column-span: 2;
  -ms-grid-column: 1;
      grid-column: 1 / span 2;
}
#details #detailInfos.sensor-states,
#details #detailInfos.sensor-generals {
  -ms-grid-columns: 120px auto;
      grid-template-columns: 120px auto;
}
#details #detailImg {
  margin: 0 4vw 0 2vw;
}
#details #detailImg.is-open .sn-magnet {
  -ms-transform: translateX(22.75em) translateY(-3em);
      transform: translateX(22.75em) translateY(-3em);
  transition: all;
}
#details #detailImg.is-open #sensor-door-ic-open {
  display: block;
}
#details #detailImg.is-open #sensor-door-ic-close {
  display: none;
}
#details #detailImg .sn-magnet {
  transition: all;
}
#details #detailImg #sensor-door-ic-open {
  display: none;
}
#details #detailImg #sensor-door-ic-close {
  display: block;
}
/* Sensor wizard view */
#sensorWizardModal .modal-title {
  font-size: var(--modal-title-font-size) !important;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
      flex-direction: column;
}
#sensorWizardModal .modal-title .mq-phone[data-btn-ev="BTN_PREV_PRESSED"] {
  padding-right: 40px;
  -ms-flex-align: center;
      align-items: center;
}
#sensorWizardModal .modal-title .mq-phone[data-btn-ev="BTN_PREV_PRESSED"] svg {
  vertical-align: middle;
}
#sensorWizardModal .modal-content {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  min-height: 580px;
}
#sensorWizardModal .modal-content.fade-out {
  z-index: -1;
  box-shadow: none;
}
#sensorWizardModal .modal-header {
  position: relative;
}
#sensorWizardModal .modal-body .div-svg {
  overflow: hidden;
  -ms-flex: 1;
      flex: 1;
  width: 100%;
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: (minmax(100px, 1fr))[auto-fit];
      grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
}
#sensorWizardModal .modal-body .div-svg svg {
  max-height: 100%;
  margin: 0 auto;
}
#sensorWizardModal .modal-body .description.bottom {
  bottom: 0;
  padding-bottom: 8px;
}
#sensorWizardModal .modal-footer {
  position: relative;
  -ms-flex-pack: end;
      justify-content: flex-end;
}
#sensorWizardModal .error-body-content {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
      flex-direction: column;
  -ms-flex-align: center;
      align-items: center;
}
.fade-in {
  right: unset;
  left: unset;
}
.fade-in.animate-prev {
  animation: fadeInPrev 0.15s infinite 0s linear forwards;
  animation-iteration-count: 1;
}
.fade-in.animate-next {
  animation: fadeInNext 0.15s infinite 0s linear forwards;
  animation-iteration-count: 1;
}
.fade-out {
  right: unset;
  left: unset;
}
.fade-out.animate-prev {
  animation: fadeOutPrev 0.15s infinite 0s linear forwards;
  animation-iteration-count: 1;
}
.fade-out.animate-next {
  animation: fadeOutNext 0.15s infinite 0s linear forwards;
  animation-iteration-count: 1;
}
.progress-bar-wizard {
  width: 100%;
  height: 3px;
  background-color: #e5e5e5;
  position: absolute;
  right: 0;
  top: 0;
}
.progress-bar-wizard.running {
  -ms-transform-origin: right;
      transform-origin: right;
  animation: runprogress var(--progress-time), runopacity 20s;
  animation-timing-function: linear;
}
.battery,
.bri {
  display: var(--attribute-display);
}
#details.swversion .swversion,
#details.battery .battery,
#details.state .state,
#details.bri .bri,
#details.select-control-sensor .select-control-sensor,
#details.ikea-change-max-length .ikea-change-max-length,
#details .generals {
  --attribute-display: grid;
}
.swversion,
.battery,
.state,
.select-control-sensor,
.ikea-change-max-length,
.bri {
  --attribute-display: none;
}
.error-smile {
  font-size: 60px;
}
.btn-android {
  display: none;
}
body.android-webview .btn-android {
  display: inline-block;
}
@media (max-width: 1199px) {
  :root {
    --main-content-padding-top: 64px;
  }
  .dev-table-hdr b:nth-child(5),
  #sensorTable tr b:nth-child(5),
  .dev-table-hdr td:nth-child(5),
  #sensorTable 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;
  }
  .dev-table-hdr b:nth-child(3),
  #sensorTable tr b:nth-child(3),
  .dev-table-hdr td:nth-child(3),
  #sensorTable 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 #deleteSensor_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 #detailImg {
    margin: 0 4vw 0 9vw;
  }
  #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;
  }
  html #sensorWizardModal .modal-body .div-svg svg {
    height: 27vw;
  }
  html #sensorWizardModal .modal-body .product-list svg,
  html #sensorWizardModal .modal-body .product-list img {
    width: auto;
    height: 24vw;
  }
}
@media (max-width: 416px), (max-height: 420px) {
  :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;
  }
  .body-content {
    background-color: var(--bg-alt);
  }
  .body-content .dev-table-hdr b:nth-child(4),
  .body-content #sensorTable tr b:nth-child(4),
  .body-content .dev-table-hdr td:nth-child(4),
  .body-content #sensorTable 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="BTN_ADD_SENSOR_PRESSED"],
  .body-content #details .main-head div[data-btn-ev="BTN_ADD_SENSOR_PRESSED"],
  .body-content .empty-div .main-head div[data-btn-ev="BTN_ADD_SENSOR_PRESSED"] {
    padding-right: 20px;
    height: 18px;
  }
  .body-content #overview .main-head div[data-btn-ev="BTN_ADD_SENSOR_PRESSED"] svg,
  .body-content #details .main-head div[data-btn-ev="BTN_ADD_SENSOR_PRESSED"] svg,
  .body-content .empty-div .main-head div[data-btn-ev="BTN_ADD_SENSOR_PRESSED"] svg {
    z-index: 1;
  }
  .body-content #overview .main-head h1,
  .body-content #details .main-head h1,
  .body-content .empty-div .main-head h1 {
    padding-left: 20px;
    -ms-flex-pack: start;
        justify-content: flex-start;
  }
  .body-content #overview .main-head h1 span,
  .body-content #details .main-head h1 span,
  .body-content .empty-div .main-head h1 span {
    -ms-flex: 1;
        flex: 1;
  }
  .body-content .main-content {
    padding-bottom: 20px;
  }
  .body-content .main-content #detailImg {
    width: 120px !important;
    height: 120px !important;
    min-height: 120px;
    margin: 4vh auto !important;
  }
  .body-content .main-content #detailInfos {
    margin-top: 24.5px;
    height: 45vh;
    position: relative;
    overflow-y: auto;
  }
  .body-content .main-content #detailInfos .lastupdated .data-val i {
    padding-left: 0px !important;
    display: block;
    opacity: 0.5;
    font-size: 90%;
  }
  .main-head {
    -ms-flex-align: center !important;
        align-items: center !important;
    -ms-flex-direction: row !important;
        flex-direction: row !important;
  }
  #sensorWizardModal .modal-dialog,
  #sensorWizardModal .modal-content,
  #sensorWizardModal .vendor-body-content,
  #sensorWizardModal .error-body-content {
    border: unset;
    border-radius: unset;
    box-shadow: unset;
    height: 100%;
    width: 100%;
    margin: unset;
    min-height: unset;
    max-height: unset;
  }
  #sensorWizardModal .modal-title {
    -ms-flex-direction: row;
        flex-direction: row;
  }
  #sensorWizardModal .modal-title .mq-phone[data-btn-ev="BTN_PREV_PRESSED"],
  #sensorWizardModal .modal-title .mq-phone[data-btn-ev="BTN_NEXT_PRESSED"] {
    --display-mq-phone: flex;
  }
  #sensorWizardModal .modal-body {
    padding: 0;
  }
  #sensorWizardModal .modal-body svg {
    width: 64vw;
    height: auto;
  }
  #sensorWizardModal .modal-body .body-phone-head {
    -ms-flex-item-align: end;
        align-self: flex-end;
    font-size: var(--modal-btn-font-size);
    padding: 8px 24px;
    opacity: 0.6;
  }
  #sensorWizardModal .modal-body .error-body-content .mq-phone {
    --display-mq-phone: flex;
    -ms-flex-direction: column;
        flex-direction: column;
  }
  #sensorWizardModal .modal-body .error-body-content div:not(.mq-phone) {
    font-size: var(--modal-btn-font-size);
  }
  #sensorWizardModal .modal-body .error-body-content svg {
    -ms-flex: 0.7;
        flex: 0.7;
    max-width: 80vw;
  }
  #sensorWizardModal .modal-body .error-body-content button {
    margin-top: 20px;
  }
  #sensorWizardModal .modal-body .description.bottom {
    -ms-flex-direction: column;
        flex-direction: column;
  }
  #sensorWizardModal .modal-body .description.bottom p,
  #sensorWizardModal .modal-body .description.bottom p + p {
    max-width: unset;
    min-width: unset;
    padding: unset;
  }
  #sensorWizardModal .modal-body .description.bottom {
    bottom: 18vh;
  }
  #sensorWizardModal .modal-body .bottom:not(.description) {
    width: 100%;
    -ms-flex: 1;
        flex: 1;
    position: relative;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
        flex-direction: column;
    -ms-flex-align: center;
        align-items: center;
    font-size: var(--modal-btn-font-size);
  }
  #sensorWizardModal .modal-body .bottom:not(.description) .mq-phone {
    --display-mq-phone: flex;
    position: absolute;
    top: 0;
    opacity: 0;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
        flex-direction: column;
  }
  #sensorWizardModal .modal-body .bottom:not(.description) .mq-phone.mq-phone-success-page {
    opacity: 1;
  }
  #sensorWizardModal .modal-body .bottom:not(.description) .mq-phone .info {
    margin-bottom: 20px;
  }
  #sensorWizardModal .modal-body .div-svg {
    -ms-grid-columns: unset;
        grid-template-columns: unset;
  }
  #sensorWizardModal .modal-body .animate-ready-svg {
    width: 250px;
    height: 250px;
  }
  #sensorWizardModal .modal-body .mq-phone-success-page {
    --display-mq-phone: flex;
    -ms-flex-direction: column;
        flex-direction: column;
    -ms-flex-align: center;
        align-items: center;
  }
  #sensorWizardModal .modal-footer {
    display: none;
  }
}
