// Core variables and mixins
@import "../../bootstrap/functions";
@import "../../bootstrap/mixins";

// Core variables and mixins overrides
@import "../../core/variables/variables";
@import "../../bootstrap/variables";

@import "../../core/variables/components-variables";

/* Toggle */
input[type="checkbox"].switch,
input[type="radio"].switch {
	opacity: 0;
}

/* Switchery */
.switchery{
	bottom: 4px;
	margin-top: 5px;
}
.float-right .switchery, .switchery-large.switchery{
	margin-bottom: 0.35rem;
}

.switchery-xsmall.switchery {
	height: 16px;
	width: 28px;
}
.switchery-xsmall.switchery > small {
	height: 16px;
	width: 16px;
}
.switch{
	~.btn-group {
		.btn{
			-moz-box-shadow: 0px 0px 2px 0px rgba(0, 0, 0, 0.5);
			-webkit-box-shadow: 0px 0px 2px 0px rgba(0, 0, 0, 0.5);
			box-shadow: 0px 0px 2px 0px rgba(0, 0, 0, 0.5);
			&.active{
				-moz-box-shadow: inset 0px 1px 5px -1px rgba(0,0,0,0.5);
				-webkit-box-shadow: inset 0px 1px 5px -1px rgba(0,0,0,0.5);
				box-shadow: inset 0px 1px 5px -1px rgba(0,0,0,0.5);
				color: $white;
				&:not(.dropdown-toggle){
					border-bottom-right-radius: 0.25rem;
					border-top-right-radius:  0.25rem;
					border-top-left-radius:  0.25rem;
					border-bottom-left-radius:  0.25rem;
				}
			}
			&:hover{
				z-index: 1;
			}
		}
		&:focus{
			outline: none;
		}
		&.btn-group-vertical{
			.btn:first-child:not(:last-child):not(.dropdown-toggle){
				border-top-right-radius: 0.25rem;
				border-top-left-radius: 0.25rem;
			}
			.btn:last-child:not(:first-child):not(.dropdown-toggle){
				border-bottom-right-radius: 0.25rem;
				border-bottom-left-radius: 0.25rem;
			}
		}
	}
}
.bootstrap-switch{
	&.bootstrap-switch-animate,
	&.bootstrap-switch-inverse{
		&.bootstrap-switch-on,
		&.bootstrap-switch-off{
			.bootstrap-switch-label,
			.bootstrap-switch-handle-off,
			.bootstrap-switch-handle-on{
				padding: 5px 10px;
			}
		}
	}
}
.checkbox-input-group{
	.input-group{
		.input-group-prepend{
			.custom-control-label{
				top: 0;
			}
		}
	}
}
