.onoffswitch {
    position: relative;
    width: 64px;
    height: 31px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.onoffswitch-checkbox {
    display: block;
    position: absolute;
    z-index: -20;
}

.onoffswitch-label {
    display: block;
    overflow: hidden;
    cursor: pointer;
}

.onoffswitch-inner {
    display: block;
    width: 200%;
    margin-left: -100%;
    -moz-transition: margin 0.2s ease-in 0s;
    -webkit-transition: margin 0.2s ease-in 0s;
    -o-transition: margin 0.2s ease-in 0s;
    transition: margin 0.2s ease-in 0s;
}


.onoffswitch-inner:before,
.onoffswitch-inner:after {
    display: block;
    float: left;
    width: 50%;
    height: 31px;
    padding: 0;
    line-height: 31px;
    font-size: 12px;
    color: white;
    font-weight: bold;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.onoffswitch-inner:before {
    content: "YES";
    padding-right: 21px;
    padding-left: 7px;
    background-color: #004A80;
    color: #FFFFFF;
}

.onoffswitch-inner:after {
    content: "NO";
    padding-right: 7px;
    background-color: #9A9FAC;
    color: #FFFFFF;
    text-align: right;
    border: 1px solid #CCCCCC;
}

.onoffswitch-switch {
    display: block;
    width: 20px;
    height: 23px;
    margin: 4px 10px;
    background: #FFFFFF;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 29px;
    -moz-transition: all 0.3s ease-in 0s;
    -webkit-transition: all 0.3s ease-in 0s;
    -o-transition: all 0.3s ease-in 0s;
    transition: all 0.3s ease-in 0s;
}

.onoffswitch-checkbox:checked+.onoffswitch-label .onoffswitch-inner {
    margin-left: 0;
}

.onoffswitch-checkbox:checked+.onoffswitch-label .onoffswitch-switch {
    right: 0px;
    background-color: #FFFFFF;
    margin: 4px 4px;
}

.onoffswitch-checkbox:disabled+.onoffswitch-label {
    cursor: not-allowed;
}
.onoffswitch-checkbox:disabled+.onoffswitch-label .onoffswitch-inner:before {
    background-color: #D7DCE1;
}