.switch {
    position: relative;
    display: inline-block;
    width: 80px;
    height: 34px;
  }
  
  .switch input {display:none;}
  
  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #9b2247;
    -webkit-transition: .4s;
    transition: .4s;
  }
  
  .slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 6px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
  }
  
  input:checked + .slider {
    background-color: #1e5b4f;
  }
  
  input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
  }
  
  input:checked + .slider:before {
    -webkit-transform: translateX(50px);
    -ms-transform: translateX(50px);
    transform: translateX(50px);
  }
  
  /*------ ADDED CSS ---------*/
  .on
  {
    display: none;
  }
  
  .on, .off
  {
    color: white;
    position: absolute;
    transform: translate(-50%,-50%);
    top: 50%;
    left: 50%;
    font-size: 12px;
    font-family: Verdana, sans-serif;
  }
  
  input:checked+ .slider .on
  {display: block;}
  
  input:checked + .slider .off
  {display: none;}
  
  /*--------- END --------*/
  
  /* Rounded sliders */
  .slider.round {
    border-radius: 34px;
  }
  
  .slider.round:before {
    border-radius: 50%;}

/* ======================= inst-switch (tabs de edición) ======================= */
.inst-switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
  vertical-align: middle;
}

.inst-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.inst-switch .slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #9b2247 !important;
  -webkit-transition: 0.2s;
  transition: 0.2s;
  border-radius: 24px;
}

.inst-switch .slider:before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #fff !important;
  -webkit-transition: 0.2s;
  transition: 0.2s;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.inst-switch input:checked + .slider {
  background-color: #1e5b4f !important;
}

.inst-switch input:checked + .slider:before {
  -webkit-transform: translateX(22px);
  -ms-transform: translateX(22px);
  transform: translateX(22px);
}

/* Estilos para switches deshabilitados */
.inst-switch.disabled .slider,
.inst-switch input:disabled + .slider {
  background-color: #ccc !important;
  cursor: not-allowed;
  opacity: 0.6;
}

.inst-switch.disabled input,
.inst-switch input:disabled {
  cursor: not-allowed;
}

.inst-switch.disabled input:checked + .slider,
.inst-switch input:disabled:checked + .slider {
  background-color: #999 !important;
}

/* ======================= .switch deshabilitados (documentación) ======================= */
.switch input:disabled + .slider,
.switch.disabled .slider {
  background-color: #ccc !important;
  cursor: not-allowed;
  opacity: 0.6;
}

.switch input:disabled:checked + .slider,
.switch.disabled input:checked + .slider {
  background-color: #999 !important;
}