﻿.switch {
  position: relative;
  display: inline-block;
  vertical-align: top;
  width: 65px;
  height: 20px;
  padding: 3px;
  border-radius: 18px;
  cursor: pointer; }
  .switch .switch-input {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0; }
  .switch .switch-label {
    position: relative;
    margin-top: -2px;
    display: block;
    height: inherit;
    font-size: 9px !important;
    font-weight: bold;
    text-transform: uppercase;
    background: #a7fa74;
    border-radius: inherit;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12), inset 0 0 2px rgba(0, 0, 0, 0.15);
    -webkit-transition: 0.15s ease-out;
    -moz-transition: 0.15s ease-out;
    -o-transition: 0.15s ease-out;
    transition: 0.15s ease-out;
    -webkit-transition-property: opacity background;
    -moz-transition-property: opacity background;
    -o-transition-property: opacity background;
    transition-property: opacity background; }
  .switch .switch-label:before, .switch .switch-label:after {
    position: absolute;
    top: 50%;
    margin-top: -0.45em;
    line-height: 1;
    -webkit-transition: inherit;
    -moz-transition: inherit;
    -o-transition: inherit;
    transition: inherit; }
  .switch .switch-label:before {
    content: attr(data-off);
    right: 11px;
    color: #555;
    text-shadow: 0 1px rgba(255, 255, 255, 0.5); }
  .switch .switch-label:after {
    content: attr(data-on);
    left: 11px;
    color: white;
    text-shadow: 0 1px rgba(0, 0, 0, 0.2);
    opacity: 0; }
  .switch .switch-input:checked ~ .switch-label {
    background: #47a8d8;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15), inset 0 0 3px rgba(0, 0, 0, 0.2); }
  .switch .switch-input:checked ~ .switch-label:before {
    opacity: 0; }
  .switch .switch-input:checked ~ .switch-label:after {
    opacity: 1; }
  .switch .switch-handle {
    position: absolute;
    top: 2px;
    left: 4px;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 10px;
    box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
    background-image: -webkit-linear-gradient(top, white 40%, #f0f0f0);
    background-image: -moz-linear-gradient(top, white 40%, #f0f0f0);
    background-image: -o-linear-gradient(top, white 40%, #f0f0f0);
    background-image: linear-gradient(to bottom, white 40%, #f0f0f0);
    -webkit-transition: left 0.15s ease-out;
    -moz-transition: left 0.15s ease-out;
    -o-transition: left 0.15s ease-out;
    transition: left 0.15s ease-out; }
  .switch .switch-handle:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -6px 0 0 -6px;
    width: 12px;
    height: 12px;
    background: #f9f9f9;
    border-radius: 6px;
    box-shadow: inset 0 1px rgba(0, 0, 0, 0.02);
    background-image: -webkit-linear-gradient(top, #eeeeee, white);
    background-image: -moz-linear-gradient(top, #eeeeee, white);
    background-image: -o-linear-gradient(top, #eeeeee, white);
    background-image: linear-gradient(to bottom, #eeeeee, white); }
  .switch .switch-input:checked ~ .switch-handle {
    left: auto;
    right: 4px;
    box-shadow: -1px 1px 5px rgba(0, 0, 0, 0.2); }
  .switch .switch-green > .switch-input:checked ~ .switch-label {
    background: #4fb845; }
  .switch .switch-orange > .switch-input:checked ~ .switch-label {
    background: #ff5100; }

.switchN {
  border-radius: 18px;
  cursor: pointer;
  display: inline-block;
  height: 14px;
  padding: 0px;
  position: relative;
  vertical-align: top;
  width: 28px;
  text-align: left;
  /*.switch-handle::before {
        background-color: #fff;
        border-radius: 6px;
        content: "";
        height: 12px;
        left: 50%;
        margin: -6px 0 0 -6px;
        position: absolute;
        top: 50%;
        width: 12px;
    }*/ }
  .switchN .switch-input {
    left: 0;
    opacity: 0;
    position: absolute;
    top: 0; }
  .switchN .switch-label {
    background: #eee none repeat scroll 0 0;
    border-radius: inherit;
    display: block;
    font-size: 10px;
    height: inherit;
    position: relative;
    text-transform: uppercase;
    transition: all 0.05s ease-in 0s;
    border: #ddd 1px solid; }
  .switchN .switch-label::before, .switchN .switch-label::after {
    line-height: 1;
    margin-top: -0.5em;
    position: absolute;
    top: 50%;
    transition: inherit; }
  .switchN .switch-input:checked ~ .switch-label {
    background: #ff6a00 none repeat scroll 0 0;
    border: #ff6a00 1px solid;
    /*background: #9ca2b0 none repeat scroll 0 0;
        border: #9ca2b0 1px solid;*/ }
  .switchN .switch-input.green:checked ~ .switch-label {
    background: #66c87a none repeat scroll 0 0;
    border: #66c87a 1px solid; }
  .switchN .switch-handle {
    background-color: #fff;
    border-radius: 10px;
    height: 12px;
    left: 1px;
    position: absolute;
    top: 1px;
    transition: left 0.05s ease-in 0s;
    width: 12px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.3); }
  .switchN .switch-input:checked ~ .switch-handle {
    left: calc(100% - 13px);
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.3); }
  .switchN .switch-green > .switch-input:checked ~ .switch-label {
    background-color: #4fb845; }
  .switchN .switch-text {
    position: absolute;
    left: calc(100% + 8px);
    width: 100px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    top: 1px;
    line-height: 12px; }
  .switchN .switch-input:checked ~ .switch-text {
    color: #333; }
  .switchN .switch-input:checked:disabled ~ .switch-label {
    background: #9b9fa6 none repeat scroll 0 0;
    border: #999da4 1px solid; }
  .switchN .switch-input:checked ~ .ack {
    display: block; }

.gray .switchN {
  min-width: 28px; }
  .gray .switchN .switch-label {
    background: #acacac none repeat scroll 0 0;
    border: none; }
