/* Switch pill: track gris, knob circular. ON = SI (#957AFB), OFF = NO. Solo en #container para evitar conflictos. */

#container .has-switch {
  display: inline-block !important;
  cursor: pointer !important;
  border: none !important;
  border-radius: 50px !important;
  background: #e0dce8 !important;
  min-width: 76px !important;
  height: 32px !important;
  line-height: 32px !important;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.08) !important;
  overflow: hidden !important;
  position: relative !important;
  text-align: left !important;
  vertical-align: middle !important;
  padding: 0 3px !important;
  box-sizing: border-box !important;
}

#container .has-switch > div {
  height: 32px !important;
  position: relative !important;
  top: 0 !important;
}

#container .has-switch > div.switch-animate {
  transition: left 0.28s ease !important;
}

/* Laterales del track: mismo gris, sin texto */
#container .has-switch span.switch-left,
#container .has-switch span.switch-right {
  background: #e0dce8 !important;
  color: transparent !important;
  border: none !important;
  border-radius: 50px !important;
  font-size: 0 !important;
  text-indent: -999px !important;
  overflow: hidden !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

/* Knob circular: centrado con flex para que SI/NO queden bien alineados */
#container .has-switch label {
  width: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  height: 28px !important;
  margin: 2px 0 !important;
  padding: 0 !important;
  border-radius: 50% !important;
  font-size: 0 !important;
  line-height: 1 !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2) !important;
  background: #957AFB !important;
  color: #fff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}

/* switch-on/switch-off están en el div hijo, no en .has-switch */
#container .has-switch > div.switch-off label {
  background: #fff !important;
  color: #888 !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15) !important;
}

#container .has-switch label i,
#container .has-switch label .switch-label-text,
#container .has-switch label span {
  display: none !important;
}

#container .has-switch > div.switch-on label::after {
  content: "SI" !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #fff !important;
  line-height: 1 !important;
}

#container .has-switch > div.switch-off label::after {
  content: "NO" !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #555 !important;
  line-height: 1 !important;
}

#container .has-switch.switch-mini {
  min-width: 72px !important;
  height: 30px !important;
  line-height: 30px !important;
}

#container .has-switch.switch-mini > div {
  height: 30px !important;
}

#container .has-switch.switch-mini label {
  width: 34px !important;
  min-width: 34px !important;
  max-width: 34px !important;
  height: 26px !important;
}

#container .has-switch.disabled {
  opacity: 0.6 !important;
}
