.switch4{
  position: relative;
  display: inline-block;
  width: 100px;
  height: 37px;
  border-radius: 37px;
/*  background-color: #f3f4f4;*/
  cursor: pointer;
  transition: all .3s;
  overflow: hidden;
  box-shadow: 0px 0px 2px rgba(0,0,0, .3);
}
.switch4 input{
  display: none;
}
.switch4 input:checked + div{
  left: calc(100px - 32px);
  box-shadow: 0px 0px 0px white;
}
.switch4 div{
  position: absolute;
  width: 27px;
  height: 27px;
  border-radius: 27px;
  background-color: white;
  top: 5px;
  left: 5px;
  box-shadow: 0px 0px 1px rgb(150,150,150);
  transition: all .3s;
}
.switch4 div:before, .switch4 div:after{
  position: absolute;
  content: 'ON';
  width: calc(100px - 40px);
  height: 37px;
  line-height: 37px;
  font-size: 14px;
  font-weight: bold;
  top: -5px;
}
.switch4 div:before{
  content: 'Pending';
  color: rgb(120,120,120);
  left: 114%;
  font-size: 15px;
}
.switch4 div:after{
  content: 'Resolved';
  right: 100%;
  color: white;
}

.switch4-checked{
  background-color: #4ea93e;
  box-shadow: none;
}