
/*
label.checkbox input[type="checkbox"]{
	display: none;
}
[ ON]
   [OFF]
[     ]
*/

.checkbox-widget-switch {
	display: inline-block;
	background-color: white;
	color: #333;
	
	border: 1px solid #ccc;
	
	overflow: hidden;
	position: relative;
	vertical-align: middle;
	
	-webkit-border-radius: 0.65em;
	-moz-border-radius: 0.65em;
	-ms-border-radius: 0.65em;
	border-radius: 0.65em;
	
	line-height: 1em;
	padding: 0;
	cursor: default;
	
	width: 3.6em;
}


.checkbox-widget-switch > .checkbox-widget-inner {
	white-space: nowrap;
	position: relative;
	
	-webkit-transition: left 300ms ease 0;
	-moz-transition: left 300ms ease 0;
	-ms-transition: left 300ms ease 0;
	transition: left 300ms ease 0;
	
	line-height: 1em;
	left: -2.4em;
}

label.checked .checkbox-widget-switch > .checkbox-widget-inner {
	left: 0;
}

.checkbox-widget-switch > .checkbox-widget-inner > * {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	-ms-box-sizing: border-box;
	box-sizing: border-box;
	height: 1.2em;
	vertical-align: top;
}

.checkbox-widget-switch > .checkbox-widget-inner > .checkbox-on,
.checkbox-widget-switch > .checkbox-widget-inner > .checkbox-off {
	display: inline-block;
	text-align: center;
	position: relative;
	width: 3em;
}

.checkbox-widget-switch > .checkbox-widget-inner > .checkbox-on > span,
.checkbox-widget-switch > .checkbox-widget-inner > .checkbox-off > span {
	font-size: 80%;
	line-height: 0.9;
}

.checkbox-widget-switch > .checkbox-widget-inner > .checkbox-handle {
	display: inline-block;
	
	background-color: white;
	
	-webkit-border-radius: 0.6em;
	-moz-border-radius: 0.6em;
	-ms-border-radius: 0.6em;
	border-radius: 0.6em;
	border: 1px solid #ccc;
	
	position: relative;
	
	width: 1.2em;
	
	margin-left: -0.6em;
	margin-right: -0.6em;
	
}

.checkbox-widget-switch > .checkbox-widget-inner > .checkbox-on {
	padding-right: 0.5em;
	padding-left: 1px;
	
	color: white;
	
	-webkit-border-top-left-radius: 0.6em;
	-moz-border-top-left-radius: 0.6em;
	-ms-border-top-left-radius: 0.6em;
	border-top-left-radius: 0.6em;

	-webkit-border-bottom-left-radius: 0.6em;
	-moz-border-bottom-left-radius: 0.6em;
	-ms-border-bottom-left-radius: 0.6em;
	border-bottom-left-radius: 0.6em;
}
.checkbox-widget-switch > .checkbox-widget-inner > .checkbox-off {
	padding-left: 0.5em;
	padding-right: 1px;
}

label > .checkbox-widget-switch > .checkbox-widget-inner > .checkbox-on {
	-webkit-transition: background-color 300ms ease 0;
	-moz-transition: background-color 300ms ease 0;
	-ms-transition: background-color 300ms ease 0;
	transition: background-color 300ms ease 0;
}

label.checked > .checkbox-widget-switch > .checkbox-widget-inner > .checkbox-on {
	background: #2ecc71;
	color: white;
}

label.checkbox-switch input[type="checkbox"] {
	display: none;
}

/**********/

[data-toggle-editable][readonly] {
	border: none;
	background: transparent;
	cursor: default;
}

.toggle-editable {
	cursor: normal;
	display: inline-block;
	vertical-align: middle;
	white-space: nowrap;
	padding: 2px;
}
