.technician-active {
  --technician-switch-green: #1c6247;
  position: relative;
  margin-bottom: 1rem;
  font-family: "Gothic A1", sans-serif;
}

.technician-active__input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.technician-active__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  min-height: 4.25rem;
  margin: 0;
  padding: .65rem .85rem;
  border: 1px solid #dce6e0;
  border-radius: .65rem;
  background: #f6f8f7;
  color: #18302a;
  cursor: pointer;
}

.technician-active__label:hover {
  border-color: #68867a;
}

.technician-active__input:checked + .technician-active__label {
  border-color: #a3c9b6;
  background: #eff7f2;
}

.technician-active__input:focus-visible + .technician-active__label {
  outline: 2px solid var(--technician-switch-green);
  outline-offset: 3px;
}

.technician-active__title,
.technician-active__state {
  display: block;
  font-weight: 700;
  line-height: 1.35;
}

.technician-active__title {
  font-size: .875rem;
}

.technician-active__state {
  margin-top: .15rem;
  font-size: .8125rem;
}

.technician-active__state--off {
  color: #763e31;
}

.technician-active__state--on {
  display: none;
  color: var(--technician-switch-green);
}

.technician-active__input:checked + .technician-active__label .technician-active__state--off {
  display: none;
}

.technician-active__input:checked + .technician-active__label .technician-active__state--on {
  display: block;
}

.technician-active__track {
  position: relative;
  flex: 0 0 3rem;
  height: 1.625rem;
  border: 1px solid #667c72;
  border-radius: 1rem;
  background: #667c72;
}

.technician-active__track::before {
  position: absolute;
  top: .1875rem;
  left: .1875rem;
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 50%;
  background: #fff;
  content: "";
}

.technician-active__input:checked + .technician-active__label .technician-active__track {
  border-color: var(--technician-switch-green);
  background: var(--technician-switch-green);
}

.technician-active__input:checked + .technician-active__label .technician-active__track::before {
  transform: translateX(1.375rem);
}

@media (prefers-reduced-motion: no-preference) {
  .technician-active__track::before {
    transition: transform 150ms ease;
  }
}
