﻿/*rgba(210, 10, 17,0.8);*/


.toggleswitches span {
  padding-right: 0.5em;
  display:block;
  padding:0.2em 0;
}

.toggleswitches input {
  position: absolute;
  margin-left: -9999px;
  visibility: hidden;
}

.toggleswitches i{
    line-height:1.8em;float:right;
}

.toggleswitches input + label {
  /*display: block;*/
  position: relative;
  cursor: pointer;
  outline: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
      margin-bottom:0;
      margin-right:0.25em;
      /*color:transparent;*/
      text-indent:3.5em;
      white-space:nowrap;
}

.toggleswitches input + label {
  width: auto;
  height: 1.5em;
  /*background-color: #dddddd;*/
  -webkit-border-radius: 1.5em;
  -moz-border-radius: 1.5em;
  -ms-border-radius: 1.5em;
  -o-border-radius: 1.5em;
  border-radius: 1.5em;
  /*overflow: hidden;*/
}

.toggleswitches input + label:before,
.toggleswitches input + label:after {
  display: block;
  position: absolute;
  width:4em;
  top: 1px;
  left: 1px;
  bottom: 1px;
  content: "";
}

.toggleswitches input + label:before {
  right: 1px;
  background-color: #dddddd;
  border-color:red;
  -webkit-border-radius: 1.5em;
  -moz-border-radius: 1.5em;
  -ms-border-radius: 1.5em;
  -o-border-radius: 1.5em;
  border-radius: 1.5em;
  -webkit-transition: background 0.3s;
  -moz-transition: background 0.3s;
  -o-transition: background 0.3s;
  transition: background 0.3s;
  font-size: 0.75em;
  /*content:"off";*/
  text-align: right;
  padding: 0.25em 0.35em;
}

.toggleswitches input + label:after {
  width: 1.5em;
  width: calc(1.5em - 2px);
  background-color: #fff;
  -webkit-border-radius: 100%;
  -moz-border-radius: 100%;
  -ms-border-radius: 100%;
  -o-border-radius: 100%;
  border-radius: 100%;
  -webkit-box-shadow: 0 0 3px  2px rgba(0, 0, 0, 0.2);
  -moz-box-shadow: 0 0 3px 2px  rgba(0, 0, 0, 0.2);
  box-shadow: 0 0 3px 2px  rgba(0, 0, 0, 0.2);
  -webkit-transition: margin 0.3s;
  -moz-transition: margin 0.3s;
  -o-transition: margin 0.3s;
  transition: margin 0.3s;
}

.toggleswitches input:checked + label:before {
  background-color: rgba(210, 10, 17,0.8);
  /*content: "on";*/
  /*text-align:left;*/
}

/*shift handle to right*/
.toggleswitches input:checked + label:after {
  margin-left: 1.5em;
    margin-left:  calc(1.5em + 2px);
}



@media print {
.toggleswitches input {
  position: static;
  margin-left: auto;
  visibility: visible;
}

.toggleswitches input + label:before,
.toggleswitches input + label:after{width:auto;}

    .toggleswitches input + label {
        text-indent: 3.5em;
    }

}