/* Styles for Group Light Item View */
/* Styles for Group Light Item View */
/* Container for group items */
.groups-and-devices-container::-webkit-scrollbar {
  display: none;
}
.groups-and-devices-container {
  margin-top: 20px;
  position: fixed;
  top: 90px;
  bottom: 0px;
  overflow: auto;
  width: 100%;
  scrollbar-width: none;
}
.groups-and-devices-container .section {
  color: var(--color-text);
  margin-top: 15px;
  font-size: 1em;
  display: -ms-flexbox;
  display: flex;
  opacity: 0.8;
  -ms-flex-pack: start;
      justify-content: flex-start;
  -ms-flex-align: start;
      align-items: flex-start;
  border-bottom: solid 1px var(--color-element);
}
@media (max-width: 768px) {
  .groups-and-devices-container .section {
    -ms-flex-pack: justify;
        justify-content: space-between;
  }
}
.groups-and-devices-container .section a {
  --ic-line: var(--color-text);
  height: 35px;
  margin-left: 10px;
  border-radius: 5px;
  border-color: rgba(var(--color-text), 0.9);
  text-align: center;
  cursor: pointer;
  width: 40px;
  -ms-flex-item-align: start;
      align-self: flex-start;
}
.groups-and-devices-container .section a:hover {
  background-color: var(--color-element);
}
@media (max-width: 768px) {
  .groups-and-devices-container .section a {
    margin-right: 33px;
  }
}
.groups-and-devices-container .section a:hover {
  background-color: var(--color-element);
}
.groups-and-devices-container .section .labelCount {
  margin-left: 10px;
}
.groups-and-devices-container .section .expand-btn {
  background-color: var(--color-bg);
  color: var(--color-text);
  --ic-line: var(--color-text);
  margin-right: 10px;
  margin-left: 10px;
  margin-bottom: 10px;
  height: 35px;
  border-radius: 5px;
  border-color: rgba(var(--color-text), 0.9);
  text-align: center;
  cursor: pointer;
  border: transparent;
  -ms-flex-item-align: start;
      align-self: flex-start;
}
.groups-and-devices-container .section .expand-btn:hover {
  background-color: var(--color-element);
}
.groups-and-devices-container #groupsSection #removeDeviceArea {
  z-index: 9999;
}
.groups-and-devices-container #deviceListView,
.groups-and-devices-container #sceneListView,
.groups-and-devices-container #scheduleListView,
.groups-and-devices-container #automationListView,
.groups-and-devices-container #sensorControlListView,
.groups-and-devices-container #switchControlListView {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  padding: 11px;
}
.groups-and-devices-container #deviceListView .show,
.groups-and-devices-container #sceneListView .show,
.groups-and-devices-container #scheduleListView .show,
.groups-and-devices-container #automationListView .show,
.groups-and-devices-container #sensorControlListView .show,
.groups-and-devices-container #switchControlListView .show {
  display: none;
}
.groups-and-devices-container .lightsfilter-checkbox {
  display: -ms-flexbox;
  display: flex;
  margin-left: 10px;
}
.groups-and-devices-container #filterLights {
  pointer-events: all;
  margin-top: 6px;
  margin-right: 5px;
  height: 15px;
  width: 15px;
}
@media (max-width: 768px) and (orientation: portrait) {
  .groups-and-devices-container #sensorControlListView,
  .groups-and-devices-container #sensorControlSection {
    display: none;
  }
}
@media (max-width: 932px) and (orientation: landscape) {
  .groups-and-devices-container #sensorControlListView,
  .groups-and-devices-container #sensorControlSection {
    display: none;
  }
}
#group-settings-menu {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
      flex-direction: column;
  -ms-flex-align: end;
      align-items: flex-end;
  position: fixed;
  right: 10px;
  top: 120px;
}
#roomOnOffIcon {
  --ic-line: var(--color-text) !important;
  --ic-fill: var(--color-text) !important;
}
#group-wrapper {
  height: 100%;
}
#group-wrapper > .dropdown-content {
  position: absolute;
  right: 25px;
  border-radius: 5%;
  color: var(--color-text);
  padding: 0;
  display: none;
  z-index: 1057;
  border-radius: 3px;
  min-width: 200px;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s 0.3s;
}
#group-wrapper > .dropdown-content ul {
  margin: 0;
  padding: 0;
  list-style-type: none;
}
#group-wrapper > .dropdown-content li {
  z-index: 9999;
  font-size: 18px;
  padding: 10px 12px;
  display: -ms-grid;
  display: grid;
  z-index: 100;
  background-color: var(--color-element);
  border: solid 0.5px #cccccc;
  -ms-grid-columns: min-content min-content;
  grid-template-columns: min-content auto;
  grid-gap: 8px;
  -ms-flex-align: center;
  align-items: center;
  cursor: pointer;
}
#group-wrapper > .dropdown-content li #roomRenameIcon {
  --ic-line: var(--color-text);
}
#group-wrapper > .dropdown-content li #roomFavouriteIcon {
  --ic-line: #c1c10b;
}
#group-wrapper > .dropdown-content li #roomSettingsIcon {
  --ic-line: var(--color-text);
}
#group-wrapper > .dropdown-content li #roomRemoveDeviceIcon {
  --lg-line: #ae1414;
}
#group-wrapper > .dropdown-content li #roomDeleteIcon {
  --ic-line: #ae1414;
}
#group-wrapper > .dropdown-content li svg {
  margin-right: 10px;
  --ic-line: var(--color-text);
  --ic-frame: var(--color-text);
}
#group-wrapper > .dropdown-content li:first-child {
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}
#group-wrapper > .dropdown-content li:last-child {
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
}
#group-wrapper > .dropdown-content li:hover {
  background-color: var(--color-element-highlight);
}
#groupListView {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  margin-left: 5px;
  margin-right: 5px;
}
@media (max-width: 768px) {
  #groupListView {
    -ms-flex-align: center;
        align-items: center;
  }
}
#groupListView .hide {
  display: none;
}
#groupListView .roomItemView {
  background-color: var(--color-element);
  cursor: pointer;
  margin-left: 5px;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-top: 5px;
  text-align: center;
  font-size: 16px;
  line-height: 1.5;
  overflow: hidden;
  min-width: 350px;
  max-height: 50px;
  max-width: 547px;
}
#groupListView .roomItemView.expanded {
  max-height: none;
}
#groupListView .roomItemView #headerButtons {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: end;
      justify-content: flex-end;
  -ms-flex-align: center;
      align-items: center;
}
#groupListView .roomItemView #groupHeader {
  margin-top: 10px !important;
  margin-bottom: 50px !important;
}
#groupListView .roomItemView #groupHeader #groupName {
  margin-top: 3px;
  float: left;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  transition: color 0.2s ease, text-decoration 0.2s ease, transform 0.2s ease;
}
#groupListView .roomItemView #groupHeader #groupName:hover {
  color: var(--color-text-alt);
}
#groupListView .roomItemView #groupHeader #groupName:focus {
  color: var(--color-text-alt);
}
#groupListView .roomItemView #groupHeader #btn-group-control {
  float: left;
  height: 44px;
  width: 55px;
  margin-top: -8px;
  border: none;
  background-color: var(--color-element);
}
#groupListView .roomItemView #groupHeader #btn-group-control.li-off svg {
  margin-right: 0px;
  --ic-fill: var(--color-text);
  --ic-line: var(--color-text);
}
#groupListView .roomItemView #groupHeader #btn-group-control svg {
  margin-right: 0px;
  --ic-fill: var(--color-light-on);
}
#groupListView .roomItemView #groupHeader svg {
  float: left;
  margin-left: 10px;
  margin-right: 10px;
  --ic-fill: var(--color-text);
  --ic-line: var(--color-text);
}
#groupListView .roomItemView #groupHeader::after {
  content: none;
}
#groupListView .roomItemView #groupHeader::before {
  content: none;
}
#groupListView .roomItemView .dropdown-content {
  position: absolute;
  border-radius: 5%;
  color: var(--color-text);
  padding: 0;
  display: none;
  z-index: 1057;
  border-radius: 3px;
  margin-left: 175px;
  margin-top: 40px;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s 0.3s;
}
@media (max-width: 768px) {
  #groupListView .roomItemView .dropdown-content {
    right: 10px;
    margin-left: 0px;
  }
}
#groupListView .roomItemView .dropdown-content li svg {
  margin-right: 10px;
}
#groupListView .roomItemView .dropdown-content ul {
  margin: 0;
  padding: 0;
  list-style-type: none;
}
#groupListView .roomItemView .dropdown-content li {
  z-index: 9999;
  font-size: 18px;
  padding: 10px 12px;
  display: -ms-grid;
  display: grid;
  background-color: var(--color-element);
  border: solid 0.5px #cccccc;
  -ms-grid-columns: min-content min-content;
  grid-template-columns: min-content min-content;
  grid-gap: 8px;
  -ms-flex-align: center;
  align-items: center;
}
#groupListView .roomItemView .dropdown-content li span {
  width: 150px;
}
#groupListView .roomItemView .dropdown-content li #groupRenameIcon {
  --ic-line: var(--color-text);
}
#groupListView .roomItemView .dropdown-content li #groupSettingsIcon {
  --ic-line: var(--color-text);
}
#groupListView .roomItemView .dropdown-content li #groupRemoveDeviceIcon {
  --lg-line: #ae1414;
}
#groupListView .roomItemView .dropdown-content li #groupDeleteIcon {
  --ic-line: #ae1414;
}
#groupListView .roomItemView .dropdown-content li:first-child {
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}
#groupListView .roomItemView .dropdown-content li:last-child {
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
}
#groupListView .roomItemView .dropdown-content li:hover {
  background-color: var(--color-element-highlight);
}
#groupListView .roomItemView .expand-btn {
  float: right;
  height: 40px;
  margin-top: -5px;
  position: relative;
  background-color: var(--color-element);
  color: var(--color-text);
  border: none;
  border-radius: 10%;
  cursor: pointer;
  transition: background-color 100ms ease;
}
#groupListView .roomItemView .expand-btn svg {
  --ic-line: var(--color-text);
  --ic-fill: var(--color-text);
}
#groupListView .roomItemView .expand-btn:hover {
  background-color: var(--color-button-highlight);
}
#groupListView .roomItemView #groupDeviceItemList {
  position: relative;
  left: 0;
  list-style-type: none;
  padding: 5px;
  width: 100%;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 5px;
  overflow: hidden;
  height: auto;
}
@media (max-width: 768px) {
  #groupListView .roomItemView #groupDeviceItemList {
    gap: 0px;
  }
}
#groupListView .roomItemView #noDevices {
  display: -ms-grid;
  display: grid;
  place-items: center;
  width: 100%;
  margin-top: 10px;
}
#groupListView .roomItemView #noDevices svg {
  opacity: 0.25;
  margin-bottom: 15px;
  --lg-line: var(--color-text-alt);
}
@media (max-width: 768px) {
  #groupListView .roomItemView #groupDeviceItemList {
    gap: 0px;
    width: 500px;
  }
}
.groupsPlus {
  scale: 0.8;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -ms-flex-align: center;
      align-items: center;
  -ms-flex-pack: center;
      justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--color-element);
  border: none;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: var(--color-element);
}
@media (max-width: 768px) {
  .groupsPlus {
    margin: 0px;
  }
}
.groupsPlus svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  display: block;
}
.groupsPlus:hover,
.groupsPlus:focus {
  background: var(--color-element);
  color: var(--color-element);
  outline: none;
  box-shadow: var(--color-element);
}
