/**
 * jQuery switchbutton
 * 
 * Based on work by tdreyno on iphone-style-checkboxes for events management
 * (https://github.com/tdreyno/iphone-style-checkboxes)
 * 
 * Copyright 2011, L.STEVENIN
 * Released under the MIT license.
 */
/** "Portions copyright (c) 2016 Adobe Systems Incorporated." */

/** Needed for short desc alignment. */
.guideSwitch {
    max-width: 80px;
}

.ui-switchbutton {
    display: inline-block;
    padding: 0;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
    box-sizing: initial;
}

/** Overriding display property of input box hidden inputs can't be put to focus and hence setFocus will not work
* Setting a height of 1 px to make it work.
*/
.ui-switchbutton input {
    display: block;
    width: 0;
    height: 1px;
    opacity: 0;
}

.ui-switchbutton label {
    cursor: pointer;
    display: block;
    position: absolute;
    top: 0;
    width: auto;
    overflow: hidden;
    user-select: none;
    margin-top:0px;
    margin-left:0px;
    margin-right:0px;
    box-sizing: initial;
    /** Setting this so that whitespaces are not trimmed in the widget label. */
    white-space: pre;
}

.ui-switchbutton label.ui-switchbutton-disabled {
    right: 0;
    text-align: right;
    text-shadow: 0px 0px 2px rgba(255, 255, 255, 0.6);
}

.ui-switchbutton label.ui-switchbutton-disabled span {
    display: inline-block;
    text-align: center;
    padding-left: 2px;
    padding-right: 3px;
}

.ui-switchbutton.ui-switchbutton-no-labels label span {
    width: 1em;
}

.ui-switchbutton label.ui-switchbutton-enabled {
    left: 0;
    text-shadow: 0px 0px 2px rgba(0, 0, 0, 0.6);
}

.ui-switchbutton label.ui-switchbutton-enabled span {
    display: inline-block;
    text-align: center;
    padding-left: 3px;
    padding-right: 2px;
}

.ui-switchbutton .ui-switchbutton-handle {
    display: block;
    width: 0;
    position: absolute;
    top: 0;
    left: 0;
    cursor: pointer;
    box-sizing: initial;
}

.ui-switchbutton.ui-switchbutton-disabled {
    opacity: 0.4;
    -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=40);
    filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=40);
    filter: Alpha(Opacity=40);
    cursor: default;
}

.ui-switchbutton.ui-switchbutton-disabled label,
.ui-switchbutton.ui-switchbutton-disabled .ui-switchbutton-handle {
    cursor: default;
}

/* Styles*/

.ui-switchbutton-default {
    height: 24px;
    margin-top:5px;
}

.ui-switchbutton-default label {
    font-size: 14px;
    line-height: 18px;
    font-weight: bold;
    text-transform: uppercase;
    height: 20px;
    padding-top: 4px;
}

.ui-switchbutton-default label.ui-switchbutton-disabled {
    color: #7C7C7C;
    background: linear-gradient(180deg,rgb(185,185,185),rgb(248,248,248));
    box-shadow: inset 0px 0px 1px rgba(0, 0, 0, 0.5);
    padding-right: 0px;
    border-radius: 12px;
}

.ui-switchbutton-default label.ui-switchbutton-enabled {
    color: white;
    background: linear-gradient(180deg,rgb(125,147,86),rgb(193,218,147));
    box-shadow: inset 0px 0px 1px rgba(0, 0, 0, 0.7);
    padding-right: 0px;
    border-radius: 12px;
    border-top-right-radius: 0px;
    border-bottom-right-radius: 0px;
}

.ui-switchbutton-default .ui-switchbutton-handle {
    background: linear-gradient(180deg,rgb(215,215,215),rgb(252,252,252));
    box-shadow: inset 0px 0px 2px rgba(255, 255, 255, 1);
    border: 1px solid #a2a2a2;
    height: 22px;
    width: 22px !important;
    border-radius: 12px;
}

.ui-switchbutton-default.ui-state-active{
    border: 0px;
    font-weight: normal;
    color: #000000;
}
.ui-switchbutton-default.ui-state-active label.ui-switchbutton-enabled {
    padding-right: 10px;
}