.topic-row {
  background-color: var(--color-device-box-header) !important;
}
#navigation {
  background-color: var(--color-navbar-bg) !important;
}
#btnDeleteSensorControl {
  color: var(--color-danger) !important;
}
.btn {
  background-color: var(--color-button) !important;
  color: var(--color-text);
  border: none;
  border-radius: 4px !important;
}
.btn:focus {
  color: var(--color-text);
}
.btn:hover {
  background-color: var(--color-button-highlight) !important;
  color: var(--color-text);
}
.btn-danger {
  background-color: #b71f0e !important;
  color: var(--color-text-danger);
}
.modal-content {
  background-color: var(--color-bg);
  color: var(--color-text);
}
.modal-content .close {
  color: var(--color-text);
}
.modal-content .modal-header {
  color: var(--color-text-alt);
  border-bottom: 1px solid var(--color-element) !important;
}
.modal-content .modal-body input {
  color: var(--color-text);
  background-color: var(--color-element);
}
.modal-content .modal-footer {
  border-top: 1px solid var(--color-element);
  background-color: var(--color-bg);
}
body {
  background-color: var(--color-bg);
  color: var(--color-text);
}
.main-head h1 {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
      align-items: center;
  color: var(--color-text) !important;
}
.main-head h1 svg {
  --ic-line: var(--color-text);
  --sw-line: var(--color-text);
  --li-state-line: var(--color-text);
  --sw-state-line: var(--color-text);
}
.main-head h1 > svg:first-child {
  -ms-transform: scale(0.7);
      transform: scale(0.7);
}
.main-head h1 .item-name {
  margin-left: 8px;
}
.main {
  display: -ms-flexbox;
  display: flex;
  -ms-flex: auto;
  flex: auto;
  -ms-flex-direction: column;
  flex-direction: column;
  padding-bottom: 16px;
  transition: opacity 100ms ease-out;
}
#group-scene-lamp .topic-row .item-icon:first-child {
  margin-left: 40px;
  margin-right: 0px;
}
/* empty state */
.empty .list-group-main .list-group-item {
  display: none;
}
.symbol-nav {
  position: absolute;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: distribute;
      justify-content: space-around;
  left: 64px;
  bottom: 16px;
  width: 230px;
  transition: opacity 500ms ease-in-out;
}
.symbol-nav svg {
  --ic-line: var(--color-text);
  --ic-fill: var(--color-text);
  --sw-line: var(--color-text);
  --li-state-line: var(--color-text);
  --sw-state-line: var(--color-text);
}
.symbol-nav .active {
  --ic-line: var(--color-settings-selected-menu);
  --ic-fill: var(--color-settings-selected-menu);
  --sw-line: var(--color-settings-selected-menu);
  --li-state-line: var(--color-settings-selected-menu);
  --sw-state-line: var(--color-settings-selected-menu);
}
.empty .symbol-nav {
  opacity: 0;
}
.empty .slider-main {
  opacity: 0;
}
.empty .main-head {
  visibility: hidden;
}
.empty .list-group {
  opacity: 0;
}
.empty .main .topic-row > * {
  opacity: 0;
}
.main .pir-states,
.main .pir-settings {
  z-index: 0;
  opacity: 0;
}
.main.pir-states .pir-states {
  opacity: 1;
  z-index: 2;
}
.main.pir-settings .pir-settings {
  opacity: 1;
  z-index: 2;
}
.pir-settings .item-check {
  opacity: 0.2;
}
.pir-settings .activated .item-check {
  opacity: 1;
}
.sw-fill {
  opacity: 0.001;
}
#pirStateList li .item-action {
  -ms-flex: unset;
      flex: unset;
  margin-right: 1rem;
}
#pirStateList li .item-extra {
  -ms-flex: 1;
      flex: 1;
}
#pirStateList li .item-time {
  opacity: 0.6;
  font-size: 88%;
}
#pirStateList li.current .item-icon {
  --ic-line: #2196f3;
}
.empty #pirDiagram {
  opacity: 0;
}
.empty #pirStateConfig {
  opacity: 0;
}
#pirDiagram {
  position: absolute;
  left: 50%;
  right: 1vw;
  height: 240px;
}
#pirDiagram svg {
  fill: var(--color-text) !important;
}
#pirDiagram svg line,
#pirDiagram svg path {
  stroke: var(--color-text) !important;
}
#pirDiagram svg tspan {
  fill: var(--color-text) !important;
}
@media (min-width: 1200px) {
  #pirDiagram {
    left: calc(54px + 366px + 32px);
    max-width: 460px;
  }
}
#pirSettings .action-form div.radio {
  margin-bottom: 0.4em;
}
#pirSettings .action-form label {
  display: -ms-flexbox;
  display: flex;
}
#pirSettings .action-form label svg {
  position: relative;
  bottom: 9px;
  margin: 0 4px;
  width: 36px;
  height: 30px;
}
#pirTimeRange {
  position: absolute;
  top: 300px;
  left: 50%;
  right: 1vw;
  height: 240px;
  background-color: #f4f5f4;
}
@media (min-width: 1200px) {
  #pirTimeRange {
    left: calc(54px + 366px + 32px);
    max-width: 460px;
  }
}
#pirTimeRange .tr-slider {
  width: 80%;
  height: 28px;
  left: 10%;
  top: 100px;
  position: absolute;
  background-color: #797776;
}
#pirStateConfig,
#pirSettings {
  background-color: transparent !important;
  position: absolute;
  left: 52%;
  top: 50%;
  min-width: 360px;
}
#pirStateConfig > div {
  /*display: flex;
            align-items: baseline;*/
  padding-bottom: 1.25em;
}
#pirStateConfig > div > * {
  min-width: 100px;
}
#pirStateConfig.pir-states[data-state="none"] {
  display: none;
}
.dimm-input {
  visibility: hidden;
}
.start-label {
  display: none;
}
.pir-states[data-state="0"] #pirTimeDropdown {
  display: none;
}
.pir-states[data-state="0"] .start-label {
  display: inherit;
}
.pir-states[data-action="dimm"] .dimm-input,
.pir-states[data-action="on-dimm"] .dimm-input {
  visibility: visible;
}
.dropdown-toggle span:first-child {
  padding: 4px;
}
#pirTimeDropdown ul {
  max-height: 20em;
  overflow-y: auto;
}
.dimm-input .input-group {
  max-width: 200px;
  width: 130px;
}
.dimm-input .input-group .form-control {
  background-color: var(--color-button);
  color: var(--color-text);
  border: none;
}
.dimm-input .input-group .input-group-addon {
  background-color: var(--color-button);
  color: var(--color-text);
  border: none;
}
.dimm-input input {
  padding: 4px 8px;
}
/* sensor view */
.item-motion {
  width: 50px;
  opacity: 0.2;
}
.presence .item-motion {
  opacity: 1;
  -webkit-filter: hue-rotate(90deg);
          filter: hue-rotate(90deg);
}
.topic-col {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
      flex-direction: column;
  -ms-flex-pack: justify;
      justify-content: space-between;
  -ms-flex-align: center;
      align-items: center;
  margin-top: 10px;
  margin-bottom: 10px;
  min-height: 134px;
}
.nav-head {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: row;
      flex-direction: row;
  -ms-flex-pack: start;
      justify-content: flex-start;
  width: 100%;
  -ms-flex-align: center;
      align-items: center;
  cursor: pointer;
}
.main-list,
.main-list .list-group {
  background-color: var(--color-device-box-body);
}
.main-list .list-group .list-group-item.active-item div:last-child:empty,
.main-list .list-group .list-group .list-group-item.active-item div:last-child:empty {
  background-color: var(--color-text-alt) !important;
}
.nav-head-svg svg {
  --ic-line: #efefee;
  --sw-line: #efefee;
  --li-state-line: #efefee;
  --sw-state-line: #efefee;
  --li-fill: none;
  --li-state: none;
  --li-body: none;
}
#newSensor-btn {
  z-index: 1;
  width: 75%;
  background-color: var(--color-button-top) !important;
  color: white;
  margin-bottom: 10px;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
      align-items: center;
  -ms-flex-pack: center;
      justify-content: center;
  border-radius: 4px;
}
#newSensor-btn:hover {
  background-color: var(--color-button-top-highlight) !important;
}
#newSensor-btn svg {
  --ic-line: white;
}
#newSensor-btn span {
  margin-left: 10px;
}
#newSensor-btn svg {
  --ic-line: #efefee;
}
#btnDeleteSensorControl {
  color: var(--color-danger) !important;
}
#btnDeleteSensorControl svg {
  --ic-line: var(--color-danger);
}
#pirSensorList .list-group-item .item-icon {
  min-width: 48px;
  margin-right: 8px;
}
#pirSensorList .list-group-item span {
  -ms-flex: 1;
      flex: 1;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
      flex-direction: column;
  margin-left: unset;
  padding: unset;
  white-space: nowrap;
  overflow: hidden;
}
#pirSensorList .list-group-item span .item-name {
  margin-left: unset;
  -ms-flex: unset;
      flex: unset;
  text-overflow: ellipsis;
  overflow: hidden;
}
#pirSensorList .list-group-item span .item-extra {
  opacity: 0.5;
  font-size: 90%;
  font-style: italic;
  margin-left: unset;
  padding: unset;
}
#sensorControlList .item-icon {
  --ic-line: white;
  --ic-frame: white;
}
#sensorControlList .item-name {
  color: white;
}
#sensorControlList .list-group-item.active-item {
  background-color: var(--color-navbar-button) !important;
}
.main.pir-states .pir-states,
.main.pir-settings .pir-settings {
  background-color: var(--color-device-box-body) !important;
}
.motion {
  background-color: var(--color-device-box-body) !important;
}
.no-motion {
  background-color: var(--color-device-box-body) !important;
}
#pirStateList .list-group-item,
#pirSensorList .list-group-item {
  background-color: var(--color-element);
  border-top: 1px solid white;
}
#pirStateList .list-group-item svg,
#pirSensorList .list-group-item svg {
  --ic-line: var(--color-text);
  --ic-frame: var(--color-text);
}
#pirStateConfig {
  padding: 20px;
  border-radius: 5px;
  background-color: transparent !important;
}
.dropdown-menu {
  background-color: var(--color-element);
  color: var(--color-text);
}
.dropdown-menu li a {
  color: var(--color-text) !important;
}
.dropdown-menu li a:hover {
  background-color: var(--color-element-highlight);
}
.dropdown-toggle,
.dropdown-toggle:hover,
.dropdown-toggle:focus {
  color: var(--color-text) !important;
}
.form-control-static {
  --ic-line: var(--color-text);
  --ic-frame: var(--color-text);
  --ic-fill: var(--color-text);
}
