#loading {
  display: flex;
  justify-content: center;
  align-items: center;
}

#loading:before {
  content: '';
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.3);
  z-index: 1;
}

#loading:not(:required) {
  font: 0/0 a;
  color: transparent;
  text-shadow: none;
  background-color: transparent;
  border: 0;
  z-index: 1000;
}

#loading:not(:required):after {
  content: '';
  position: fixed;
  font-size: 10px;
  width: 50px;
  height: 50px;
  top: 50%;
  margin-left: auto;
  border: 7px solid rgb(255,255,255);
  border-radius: 100%;
  border-bottom-color: transparent;
  z-index: 2;
  animation: rotation 1s linear 0s infinite;
}

.input_with_appended_unit input[type=number]::-webkit-inner-spin-button, .input_with_appended_unit input[type=number]::-webkit-outer-spin-button {
  margin-right: 10px;
  transition: 0.15s all ease;
  -webkit-appearance: none;
}

.input_with_appended_unit {
  display: flex;
}

.input_with_appended_unit input {
  padding-right: 7px;
  text-align: right;
  transition: 0.15s all ease;
}

.warn_flash {
  animation: glowing 1500ms infinite;
}

.input_with_appended_unit span {
  position: relative;
  left: -20px;
  font-family: sans-serif;
  font-size: 12px;
  top: 8px;
  left: -16px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

.ico {
  border-radius: 4px;
}

.ico:hover span {
  animation-name: signal-intro;
  animation-play-state: running;
}

.icon__signal-strength {
  display: inline-flex;
  align-items: flex-end;
  justify-content: flex-end;
  width: auto;
  height: 22px;
  padding: 4px;
}

.icon__signal-strength span {
  display: inline-block;
  width: 3px;
  margin-left: 2px;
  transform-origin: 100% 100%;
  background-color: #000000;
  border-radius: 2px;
  animation-iteration-count: 1;
  animation-timing-function: cubic-bezier(0.17, 0.67, 0.42, 1.3);
  animation-fill-mode: both;
  animation-play-state: paused;
}

.icon__signal-strength .bar-1 {
  height: 25%;
  animation-duration: 0.3s;
  animation-delay: 0.1s;
}

.icon__signal-strength .bar-2 {
  height: 50%;
  animation-duration: 0.25s;
  animation-delay: 0.2s;
}

.icon__signal-strength .bar-3 {
  height: 75%;
  animation-duration: 0.2s;
  animation-delay: 0.3s;
}

.icon__signal-strength .bar-4 {
  height: 100%;
  animation-duration: 0.15s;
  animation-delay: 0.4s;
}

.signal-0 .bar-1, .signal-0 .bar-2, .signal-0 .bar-3, .signal-0 .bar-4 {
  opacity: 0.2;
}

.signal-1 .bar-2, .signal-1 .bar-3, .signal-1 .bar-4 {
  opacity: 0.2;
}

.signal-2 .bar-3, .signal-2 .bar-4 {
  opacity: 0.2;
}

.signal-3 .bar-4 {
  opacity: 0.2;
}

.signal-disabled {
  display: none;
}

@keyframes signal-intro {
  from {
    opacity: 0.2;
    height: 2px;
  }
}

.battery {
  border: 2px solid #aaa;
  width: 11px;
  height: 18px;
  padding: 2px;
  border-radius: 4px;
  position: relative;
  margin: 15px 0;
}

.battery:before {
  content: "";
  height: 3px;
  width: 4px;
  background: #444;
  display: block;
  position: absolute;
  top: -3px;
  border-radius: 4px 4px 0 0;
  left: 1px;
}

.battery:after {
  content: "";
  display: block;
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border: 1px solid #fff;
  border-radius: 2px;
}

.battery-level {
  background: #13bb3f;
  position: absolute;
  bottom: 0px;
  left: 0;
  right: 0;
}

.battery-level.warn {
  background-color: #EFAF13;
}

.battery-level.alert {
  background-color: #e81309;
}

.battery-level.alert:before {
  background-image: url([svg]);
  background-repeat: no-repeat;
  background-size: 14px;
  height: 14px;
  width: 14px;
  margin: -17px 0 0 -1px;
  content: "";
  display: inline-block;
  position: absolute;
}

@keyframes glowing {
  0%, 100% {
    color: #a30606;
  }
  50% {
    color: #ff0000;
  }
}

#status_light.danger #status_light-primary {
  animation: blink-red-primary 2s infinite;
  fill: #444;
}

#status_light.success #status_light-primary {
  animation: blink-green-primary 2s infinite;
  fill: #444;
}

#status_light.warning #status_light-primary {
  fill: #F3BB16;
}

#status_light.info #status_light-primary {
  fill: #2A94DD;
}

@keyframes blink-red-secondary {
  0%, 100% {
    fill: #91190b;
  }
  50% {
    fill: #0f0f10;
  }
}

@keyframes blink-green-secondary {
  0%, 100% {
    fill: #237338;
  }
  50% {
    fill: #0f0f10;
  }
}

#status_light.danger #status_light-secondary {
  fill: #0f0f10;
  animation: blink-red-secondary 2s infinite;
}

#status_light.warning #status_light-secondary {
  fill: #92700d;
}

#status_light.info #status_light-secondary {
  fill: #195985;
}

#status_light.success #status_light-secondary {
  fill: #0f0f10;
  animation: blink-green-secondary 2s infinite;
}

@keyframes blink-red-primary {
  0%, 100% {
    fill: #F22912;
  }
  50% {
    fill: #444;
  }
}

@keyframes blink-green-primary {
  0%, 100% {
    fill: #3ABF5E;
  }
  50% {
    fill: #444;
  }
}

#loading:after {
  content: "Loading&#8230";
}

.fade {
  transition-duration: .5s!important;
}

#connection_lost:hover {
  background-color: rgb(181,13,3)!important;
}

#connection_lost:not(:active) .material-icons {
  animation: rotation 1s;
}

#connection_lost {
  transition: all .2s ease-in-out;
}

#connection_lost.showing {
  animation: grow .5s;
}

@keyframes grow {
  0% {
    height: 0px;
  }
  100% {
    height: auto;
  }
}

#connection_lost.hiding {
  animation: shrink .5s;
}

li > .btn-close {
  margin-top: 2px;
  margin-left: 1px;
}

.node_console {
  background: black;
  color: white;
  padding: 5px;
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
  position: relative;
}

.node_console #console_input {
  position: absolute;
  bottom: 5px;
  background: transparent;
  color: white;
  border: none;
  margin-top: 100px;
  width: calc(100% - 10px);
}

.node_console #console_output {
  overflow-y: scroll;
  overflow-x: hidden;
  height: 134px;
  padding-bottom: 27px;
}

#console_output::-webkit-scrollbar {
  display: none;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  width: 90%;
  margin-left: auto;
  margin-right: auto;
  max-width: 640px;
  padding-bottom: 30px;
  user-select: none;
  border-radius: 8px;
  border: 1px solid #e5e8f0;
}

.checkbox-group > * {
  margin: 0.5rem 0.5rem;
}

.checkbox-group-legend {
  font-size: 1.5rem;
  font-weight: 700;
  color: #9c9c9c;
  text-align: center;
  line-height: 1.125;
  margin-bottom: 1.25rem;
}

.checkbox-input {
  clip: rect(0 0 0 0);
  clip-path: inset(100%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.checkbox-input:checked + .checkbox-tile {
  border-color: #2260ff;
  /*box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);*/
  color: #2260ff;
}

.checkbox-input:checked + .checkbox-tile:before {
  transform: scale(1);
  opacity: 1;
  background-color: #2260ff;
  border-color: #2260ff;
}

.checkbox-input:checked + .checkbox-tile .checkbox-icon, .checkbox-input:checked + .checkbox-tile .checkbox-label {
  color: #2260ff;
}

.checkbox-input:focus + .checkbox-tile {
  border-color: #2260ff;
  /*box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1), 0 0 0 4px #b5c9fc;*/
}

.checkbox-input:focus + .checkbox-tile:before {
  transform: scale(1);
  opacity: 1;
}

.checkbox-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 7rem;
  min-height: 7rem;
  border-radius: 0.5rem;
  border: 2px solid #dde2f2;
  background-color: #fff;
  /*box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);*/
  transition: 0.15s ease;
  cursor: pointer;
  position: relative;
}

.checkbox-tile:before {
  content: "";
  position: absolute;
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid #b5bfd9;
  background-color: #fff;
  border-radius: 50%;
  top: 0.25rem;
  left: 0.25rem;
  opacity: 0;
  transform: scale(0);
  transition: 0.25s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='192' height='192' fill='%23FFFFFF' viewBox='0 0 256 256'%3E%3Crect width='256' height='256' fill='none'%3E%3C/rect%3E%3Cpolyline points='216 72.005 104 184 48 128.005' fill='none' stroke='%23FFFFFF' stroke-linecap='round' stroke-linejoin='round' stroke-width='32'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: 50% 50%;
}

.checkbox-tile:hover {
  border-color: #2260ff;
}

.checkbox-tile:hover:before {
  transform: scale(1);
  opacity: 1;
}

.checkbox-icon {
  transition: 0.375s ease;
  color: #494949;
}

.checkbox-icon svg {
  width: 3rem;
  height: 3rem;
}

.checkbox-label {
  color: #707070;
  transition: 0.375s ease;
  text-align: center;
}

.mdi-large {
  font-size: 2em;
}

