/* Copyright (C) Bull SAS - 2019 */
/***** Inputs *****/
input {
	display: inline-block;
	margin: 10px 0;
	padding: 5px;
	background-color: #fff;
	border: solid #cbcbcb 1px;
	border-radius: 4px;
	box-shadow: 0 1px 0 0 #bcbcbc;
	font-family: 'Open Sans', sans-serif;
	font-size: 14px;
	font-weight: 300;
}

label, .label {
	font-weight: 400;
	user-select: none;
	white-space: nowrap;
}

/****** Buttons ****/

.button, a.button, a:visited.button {
	display: inline-block;
	padding: 6px 10px 5px 10px;
	justify-content: flex-start;
	text-align: left;
	background-color: #04659E;
	border: solid #005181 1px;
	border-radius: 4px;
	box-shadow: 0 1px 0 0 #003D61;
	font-size: 16px;
	color: #fff;
	cursor: pointer;
	font-weight: 300;
}

.button i {
	text-align: center;
	margin: 0 10px 0 0;
}

button i {
	display: flex;
	align-self: center;
	text-align: center;
	margin: 0;
}

.button:hover, a.button:hover {
	background-color: #005181;
}

/***** Date ******/

.date{
	display: flex;
	align-items: center;
	margin: 5px 0;
}

.date .label {
	margin: 0 10px 0 0;
}

input[type=date]  {
	display: flex;
	padding: 4px 0 4px 10px;
	background-color: #fff;
	border-top: solid #cbcbcb 1px;
	border-bottom: solid #cbcbcb 1px;
	border-left: solid #cbcbcb 1px;
	border-right: none;
	border-radius: 4px 0 0 4px;
	box-shadow: 0 1px 0 0 #bcbcbc;
	font-family: 'Open Sans', sans-serif;
	font-size: 14px;
	height: 30px;
}

input[type=date]+span {
	display: flex;
	flex: 1;
	padding: 5px 10px;
	justify-content: center;
	background-color: #04659E;
	border: solid #005181 1px;
	border-radius: 0 4px 4px 0;
	box-shadow: 0 1px 0 0 #003D61;
	font-size: 16px;
	color: #fff;
	cursor: default;
	height: 30px;
	max-width: 40px;
	width: 40px;
}

/**** Select ****/

select{
	display: inline-block;
	padding: 4px 5px;
	margin: 10px 0;
	background-color: #fff;
	border: solid #cbcbcb 1px;
	border-radius: 4px;
	box-shadow: 0 1px 0 0 #bcbcbc;
	font-family: 'Open Sans', sans-serif;
	font-size: 14px;
	cursor: pointer;
	font-weight: 300;
}

select:hover{
	background-color: #f5f5f5;
}

/**** Radio *****/

.radio {
	display: flex;
	align-items: center;
}

.radio input[type=radio] {
	display: none;
}

.radio span {
	font-weight: 400;
	margin: 0 10px;
	user-select: none;
}

.radio label {
	display: flex;
	flex: 1;
	list-style-type: none;
	background-color: #fff;
	border: 1px solid #cbcbcb;
	border-right: none;
	box-shadow: 0 1px 0 0 #bcbcbc;
	cursor: pointer;
	justify-content: center;
	align-items: center;
	height: 30px;
	width: 32px;
}

.radio label i {
	display: flex;
}

.radio label:nth-child(2) {
	border-radius: 4px 0 0 4px;
}

.radio label:last-child {
	border-radius: 0 4px 4px 0;
	border-right: 1px solid #cbcbcb;
}

.radio input:checked + label{
	background-color: #04659E;
	border: solid #005181 1px;
	box-shadow: 0 1px 0 0 #003D61;
	color: #fff;
}

.radio input:checked + label + input + label {
	border-left: none;
}

.radio input:checked:last-child + label{
	border: solid #005181 1px;
}

/*** Checkbox ****/

.checkbox {
	margin: 10px 0;
}

.checkbox label {
	display: flex;
	align-items: center;
}

.checkbox .label {
	margin: 0 10px 0 0;
}

.checkbox input {
	display: none;
}

.checkbox .checkboxInput {
	display: flex;
	height: 20px;
	width: 36px;
	border-radius: 100px;
	cursor: pointer;
	-webkit-transition: .4s;
	transition: .4s;
	background-color: #fff;
	border: solid #cbcbcb 1px;
	box-shadow: 0 1px 0 0 #cbcbcb;
}

.checkbox input:checked ~ .checkboxInput {
	background-color: #04659E;
	border: solid #005181 1px;
	box-shadow: 0 1px 0 0 #003D61;
}

.checkbox .checkboxInput:before {
	content: "";
	margin: 2px;
	height: 14px;
	width: 14px;
	background-color: #bcbcbc;
	border-radius: 20px;
	-webkit-transition: .2s;
	transition: .2s;
}

.checkbox input:checked ~ .checkboxInput:before {
	-webkit-transform: translateX(16px);
	-ms-transform: translateX(16px);
	transform: translateX(16px);
	background-color: #fff;
}


/**** Slider *******/

input[type=range] {
	border-radius: 100px;
	padding: 3px;
}

.slider {
	display: flex;
	flex: 1;
	align-items: flex-start;
	margin: 15px 0;
}

.slider .label {
	margin: 2px 10px 0 0;
	display: flex;
}

.slider .sliderBar {
	flex: 1;
}

.slider #version {
	-webkit-appearance: none;
	margin: 0;
	width: 100%;
}

/* Cursor */
.slider #version::-webkit-slider-thumb {
	-webkit-appearance: none;
	height: 10px;
	width: 10px;
	border-radius: 30px;
	background: #fff;
	margin: 4px 0 0 0;
	box-shadow: 0 0 0 4px #04659E, -1005px 0 0 1000px #04659E;
}

.slider #version.exactVersion::-webkit-slider-thumb {
	box-shadow: 0 0 0 4px #04659E;
}

.slider #version::-moz-range-thumb {
	height: 10px;
	width: 10px;
	border-radius: 30px;
	background: #fff;
	box-shadow: 0 0 0 4px #04659E;
	border: 0;
}

.slider #version::-ms-thumb {
	height: 10px;
	width: 10px;
	border-radius: 30px;
	background: #fff;
	box-shadow: 0 0 0 4px #04659E;
}


/* Track */
.slider #version::-webkit-slider-runnable-track {
	width: 100%;
	height: 18px;
	border-radius: 100px;
	cursor: ew-resize;
	background-color: #ffffff;
	overflow: hidden;
	padding: 0 3px;
}

.slider #version::-moz-range-track {
	width: 100%;
	height: 18px;
	border-radius: 100px;
	cursor: ew-resize;
	background-color: #fff;
	margin: 0 5px;
	padding: 3px 8px;
	border: solid #cbcbcb 1px;
	box-shadow: 0 1px 0 0 #bcbcbc;
}

.slider #version::-moz-range-progress {
	height: 100%;
	cursor: ew-resize;
	border-radius: 50px 0 0 50px;
	background-color: #04659E;
}

.slider #version.exactVersion::-moz-range-progress {
	background-color: #fff;
}

.slider #version::-ms-track {
	width: 100%;
	height: 18px;
	cursor: ew-resize;
	background: transparent;
	border-color: transparent;
	color: transparent;
}

.slider #version::-ms-fill-lower {
	border-radius: 50px 0 0 50px;
	background-color: #04659E;
}

.slider #version.exactVersion::-ms-fill-lower {
	background-color: #fff;
}

.slider #version::-ms-fill-upper {
	background: #fff;
	border-radius: 0 50px 50px 0;
}

/* Labels */
.slider .versions {
	display: flex;
	width: 100%;
	justify-content: space-between;
	padding: 0 1px;
}

.slider .versions .version {
	display: flex;
	margin: 7px 0 0 0;
	justify-content: center;
	flex-shrink: 1;
	position: relative;
}
