@media only screen and (min-width: 768px) {
  .modal.active .modal-dialog {
    width: calc(100vw - 20px);
    max-width: 768px;
    margin: 10px auto 0;
  }
  .modal.active .modal-body {
    min-height: 500px;
  }
  #energySaveModal .modal-dialog {
    max-width: 857px;
  }
  #energySaveModal .modal-content {
    padding-top: 50px;
  }
  #energySaveModal .modal-content::before {
    height: 34px;
    width: 300px;
  }
  #energySaveModal .modal-body {
    padding: 25px 100px 50px;
  }
}
@media only screen and (max-width: 768px) {
  .modal.active .modal-dialog {
    width: calc(100vw - 30px);
    min-width: auto;
  }
  .modal.active .modal-body {
    min-height: 500px;
  }
  .modal.active .modal-body p.alert {
    margin-bottom: 10px;
  }
  #energySaveModal .modal-content {
    padding-top: 37px;
  }
  #energySaveModal .modal-content::before {
    height: 27px;
    width: 238px;
  }
  #energySaveModal .modal-body {
    padding: 25px 65px;
  }
}
@media only screen and (max-width: 500px) {
  .modal.active .modal-body .alert {
    width: 100%;
    margin-bottom: 10px;
  }
  .modal.active .modal-body .alert.fullWidth {
    margin-bottom: 20px;
  }
  .modal.active .modal-body button.statusToggle {
    min-height: 24px;
    margin-bottom: 20px;
  }
  .modal.active .modal-footer {
    padding-right: 35px;
  }
  #energySaveModal .modal-dialog {
    width: 100vw;
  }
  #energySaveModal .modal-content {
    padding-top: 25px;
  }
  #energySaveModal .modal-content::before {
    height: 20px;
    width: 175px;
  }
  #energySaveModal .modal-body {
    padding: 25px 45px;
  }
}
@media only screen and (min-width: 820px) {
  #energySaveModal .modal-footer {
    bottom: 50px;
    min-height: auto;
    padding: 0;
    position: absolute;
    right: 50px;
  }
}
@media only screen and (max-height: 800px) {
  #energySaveModal.show {
    align-items: normal;
    max-height: calc(100vh - 10px);
    overflow-y: auto;
  }
}
