/* Require EQCSS.js */

input[type="color"] {
  padding: 0;
}

.floating-label {
  position: relative;
  margin-top: 30px;
}

.floating-label label {
  pointer-events: none;
  display: block;
  margin: 0;
}

.floating-label label {
  display: block;
  position: absolute;
  top: 50%;
  left: 5px;
  -webkit-transform: translate(0%, -50%);
  transform: translate(0%, -50%);
  transition: all 0.3s ease-in-out;
  padding: 0 0.25rem;
  color: #6c757d;
}

.floating-label select+label,
.floating-label input:focus+label,
.floating-label input[type="date"]+label,
.floating-label input[type="time"]+label,
.floating-label input[type="datetime-local"]+label,
.floating-label input[type="month"]+label,
.floating-label input[type="week"]+label,
.floating-label input[type="color"]+label,
.floating-label input[type="file"]+label,
.floating-label input[type="range"]+label,
.floating-label textarea:focus+label {
  -webkit-transform: scale(0.9, 0.9);
  transform: scale(0.9, 0.9);
  top: -26px;
  left: 0px;
  color: #212529;
  font-weight: bold;
}

.floating-label textarea+label {
  top: 18px;
}

/* EQCSS */
@element .floating-label input and (min-characters: 1) {
  $this+label {
    -webkit-transform: scale(0.9, 0.9) !important;
    transform: scale(0.9, 0.9) !important;
    top: -26px !important;
    left: 0px !important;
    color: #212529 !important;
    font-weight: bold !important;
  }
}

@element .floating-label textarea and (min-characters: 1) {
  $this+label {
    -webkit-transform: scale(0.9, 0.9) !important;
    transform: scale(0.9, 0.9) !important;
    top: -26px !important;
    left: 0px !important;
    color: #212529 !important;
    font-weight: bold !important;
  }
}

.material-control {
  border: none;
  border-radius: 0;
  border-bottom: 1px solid #414b56;
}

.material-control:focus {
  box-shadow: none;
}

input[type="color"].material-control,
input[type="file"].material-control,
input[type="range"].material-control {
  border-bottom: none;
}

/* range input reset style */
input[type=range].material-control {
  -webkit-appearance: none;
  width: 100%;
  background: transparent;
}

input[type=range].material-control::-webkit-slider-thumb {
  -webkit-appearance: none;
}

input[type=range].material-control:focus {
  outline: none;
}

input[type=range].material-control::-ms-track {
  width: 100%;
  cursor: pointer;
  background: transparent;
  border-color: transparent;
  color: transparent;
}

/* Special styling for WebKit/Blink */
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  border: none;
  height: 20px;
  width: 20px;
  border-radius: 10px;
  background: #212529;
  cursor: pointer;
  margin-top: -8px;
}

/* All the same stuff for Firefox */
input[type=range]::-moz-range-thumb {
  border: none;
  height: 20px;
  width: 20px;
  border-radius: 10px;
  background: #212529;
  cursor: pointer;
}

/* All the same stuff for IE */
input[type=range]::-ms-thumb {
  border: none;
  height: 20px;
  width: 20px;
  border-radius: 10px;
  background: #212529;
  cursor: pointer;
  margin-top: -5px;
}

input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 5px;
  cursor: pointer;
  background: #cccccc;
}

input[type=range]:focus::-webkit-slider-runnable-track {
  background: #cccccc;
}

input[type=range]::-moz-range-track {
  width: 100%;
  height: 5px;
  cursor: pointer;
  background: #cccccc;
}

input[type=range]::-ms-track {
  width: 100%;
  height: 8.4px;
  cursor: pointer;
  background: transparent;
  border-color: transparent;
  border-width: 16px 0;
  color: transparent;
}

input[type=range]::-ms-fill-lower {
  background: #cccccc;
  border: 2.5px solid #cccccc;
}

input[type=range]:focus::-ms-fill-lower {
  background: #cccccc;
}

input[type=range]::-ms-fill-upper {
  background: #cccccc;
  border: 2.5px solid #cccccc;
}

input[type=range]:focus::-ms-fill-upper {
  background: #cccccc;
}