@import "theme.css";

.div-slider{
  margin: 0px;
  height: auto;
  justify-content: end;
  -moz-user-select: -moz-none;
  -khtml-user-select: none;
  -webkit-user-select: none;
  -o-user-select: none;
  User-select: none;
}

.div-slider .slider-track-no-active {
  background-color: var(--first-color-transparent);
  width: 100%;
  height: 4px;
  border-radius: 8px;
  margin-top: -8px;
}

.div-slider .travel-slider-track-no-active {
  background: linear-gradient(90deg, red 0 4px, red 0 calc(var(--warning-pos-short)),var(--first-color-transparent) 0 calc(var(--warning-pos-long)), red 20% 100%) no-repeat transparent;
  width: 100%;
  height: 4px;
  border-radius: 8px;
}

.slider-common-thumb, 
input.slider-common[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--first-color);
  border:solid 0.3em var(--slider-thumb-border-color);
}
  
.slider-common-thumb:active, input.slider-common[type=range] {
  outline: none;
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  margin-top: 5px;
  border-radius: 10px;
  background: -webkit-linear-gradient(var(--first-color), var(--first-color)) no-repeat transparent;
  background-size: 20% 100%;
}

.div-slider input.slider-common[type=range]:disabled ~ .slider-track-no-active{
  background-color: var(--disable-color);
  width: 100%;
  height: 6px;
  border-radius: 8px;
  margin-top: -10px;
}

.slider-common-thumb, input.slider-common[type=range]:disabled::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--disable-color);
  border:solid 0.3em var(--slider-thumb-border-color);
}

.slider-common-thumb:active, input.slider-common:disabled[type=range] {
  outline: none;
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  margin-top: 5px;
  border-radius: 10px;
  background: -webkit-linear-gradient(var(--disable-color), var(--disable-color)) no-repeat transparent;
  background-size: 20% 100%;
}

.slider-tooltip {
  width: 80px;
  height: 26px;
  color: var(--first-color);
  text-align: center;
}

.actuation-point-slider-container [type="range"] {
  -webkit-appearance: none;
  transform: rotate(90deg);
  appearance: none;
  margin: 0;
  outline: 0;
  background-color: transparent;
}

.actuation-point-slider-container [type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  background: linear-gradient(90deg, red 0 4px, red 0 calc(var(--warning-pos-short)),var(--first-color-transparent) 0 calc(var(--warning-pos-long)), red 20% 100%) no-repeat transparent;
  border-radius: 4px;
}

.actuation-point-slider-container [type="range" i]::-webkit-slider-container {
  height: 20px;
  overflow: hidden;
}

.actuation-point-slider-container [type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--first-color) 0 50%, var(--first-color-transparent) 50% 100%);
  border: 1px solid transparent;
  margin-top: -8px;
  
  border-image: linear-gradient(var(--first-color), var(--first-color)) 0 fill / 8 20 8 0 / 0px 0px 0 var(--value-offset);
}