// Settings Switch
.switch_settings {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;

  input {
    display: none
  }

  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s
  }

  .slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s
  }

  input:checked+.slider {
    background-color: #0085ba
  }

  input:focus+.slider {
    box-shadow: 0 0 1px #0085ba
  }

  input:checked+.slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px)
  }

  .slider.round {
    border-radius: 34px
  }

  .slider.round:before {
    border-radius: 50%
  }
}

// General module
#facerec_user_table,
#fr_results {
  .red {
    color: #ff0000;
  }

  .green {
    color: #117700;
  }
}

// Admin
#facerec_user_table {
  #facerec_admin_camera_div {
    display: none;
    clear: both;
    width: 100%;
    margin-top: 30px;
  }

  #facerec_take_image {
    clear: both;
    display: block;
  }

  #facerec_take_image:disabled {
    opacity: 0.5;
  }

  #facerec_canvas_wrapper {
    display: none;
  }

  #fr_picture_preview_wrapper {
    #fr_picture_preview {
      max-width: 300px;
      width: 100%;
    }
  }
}

#fr_picture_message_error {
  color: #ff0000;
}

#fr_picture_message_ok {
  color: #117700;
}

// Login form
#fr_no_image_model {}

#wrapper_input_recognition {
  position: relative;

  #inputRecognition {
    width: 100%;
    height: auto;
  }

  #overlayRecognition {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0px;
    left: 0px;
  }

  #stateRecognition {
    cursor: pointer;
    position: absolute;
    z-index: 1000;
    border-radius: 8px;
    padding: 5px 7px;
    background-color: #FFFFFF;
  }
}

#fr_results {
  font-size: 1em;
  height: 20px;
}

.facerec_back_link {
  margin: 0px auto;
  float: none;
  display: block;
  max-width: 210px;
  text-align: center;
}

#facerec_light_switch{
  &.turn_on{
    span{
      &:before{
        color: #007cba;
      }
    }
  }
  &.turn_off{
    span{
      &:before{
        color: #000000;
      }
    }
  }
}

.facerec_switch_on{
  background-color: #FFFFFF !important;
}
.facerec_switch_childs_on{
  color: #FFFFFF !important;
  background-color: #FFFFFF !important;

  *{
    color: #FFFFFF !important;
    background-color: #FFFFFF !important;
  }
}