/****** Controls ******/
select {
	border-radius:	3px;
	font-size:	12px;
	border: 1px solid #AAA;
	background-color: white;
	padding: 3px 20px 3px 3px;

	-moz-appearance: none;
	-webkit-appearance: none;
	appearance: none;
	background-image: url('../graphics/select_arrow.svg');
	background-repeat: no-repeat, repeat;
	background-position: right .7em top 50%, 0 0;
	background-size: .65em auto, 100%;
}

select::-ms-expand {
	display: none;
}

.min {
    width: 1px;
}

select.mid {
	width:		200px;
}

.half {
	width:		100px;
}

select.normal {
	width:		160px;
}

select.wide {
	width:		260px;
}

select.short {
	width:		48px;
}

select.pfSmall {
	font-size:	95%;
}

input.mid {
	width:		200px;
	box-sizing:	border-box;
}

input {
	border-radius:	3px;
	box-sizing:	border-box;
	min-height: 21px;
	border: 1px solid #AAA;
	padding: 3px 4px;
}

input[type="button"], input[type="submit"] {
    background: #EEE;
    background: linear-gradient(180deg, rgb(255, 255, 255) 0%, rgb(236, 236, 236) 100%);
    cursor: pointer;
}

input[type="button"]:active:enabled, input[type="submit"]:active:enabled {
    color: #333;
}

input[type="file"] {
    border: none;
}

input[type="checkbox"],input[type="radio"] {
	min-height: 0;
	cursor: pointer;
}

input[type="time"] {
	max-width: 80px;
}

input[type="number"] {
  font-size: 13px;
}

select {
	min-height: 21px;
}

input.full, select.full {
	width:		100%;
}
input.normal {
	width:		160px;
}
input.wide {
	width:		260px;
}
input.superwide {
	width:		400px;
}
input.short_qos {
	width:		64px;
}
input.short {
	width:		64px;
}

input.pfShort {
	font-size:	95%;
	width: 		40px;
}

input.pfNormal, select.pfNormal {
	font-size:	95%;
	width:		90px;
}

input.pfWide, select.pfWide {
	font-size:	95%;
	width:		160px;
}

input.pfSmall {
	font-size:	95%;
}

input.small {
	width:		36px;
}

input.xsmall {
	width:		24px;
}

span.radio {
	width:		96px;
	display:	inline-block;
}

input[type="radio"] {
    appearance: none;
    outline: none;
    cursor: pointer;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
    position: relative;
    vertical-align: middle;
    margin-top: 1px;
    margin-bottom: 4px;
}

input[type="radio"]:focus {
    outline: 1px solid black;
    outline-width: 1px;
    outline-offset: 1px;
    outline-color: invert;
}


input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #007bff;
    border-color: #007bff;
}

.theme-dark input[type="radio"] {
    background-color: #333;
    border: 1px solid #5e686f;
    border-radius: 50%;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.theme-dark input[type="radio"]:focus {
    outline: 1px solid white;
}

.theme-dark input[type="radio"]:hover {
    border-color: #007bff;
}

input[type="checkbox"] {
    appearance: none;
    outline: none;
    cursor: pointer;
    width: 18px;
    height: 18px;
    border: 1px solid #8a98a1;
    background-color: white;
    border-radius: 4px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    vertical-align: middle;
    margin-top: 1px;
    margin-bottom: 4px;
}

.theme-dark input[type="checkbox"] {
    border: 1px solid #5e686f;
    background-color: #333;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

input[type="checkbox"]:checked::before {
    content: '\2714';
    color: #007bff;
    font-weight: 700;
    font-size: 15px;
    width: 17px;
    position: absolute;
    top: 0;
    left: 0;
    padding: 0;
    text-align: center;
    vertical-align: top;
    line-height: 16px;
}

.theme-dark input[type="checkbox"]:hover {
    border-color: #007bff;
}

input[type="checkbox"]:focus {
    outline: 1px solid #555;
    outline-width: 1px;
    outline-offset: 1px;
    outline-color: invert;
}

.theme-dark input[type="checkbox"]:focus {
    outline: 1px solid white;
}

input[type="checkbox"]:disabled:checked::before,
input[type="checkbox"]:disabled:checked::after {
    border-color: #7b7b7b;
    color: #7b7b7b;
}

input[type="checkbox"]:disabled,
input[type="radio"]:disabled {
    opacity: 0.5;
}

input[type="checkbox"].onoff:checked::before {
    left: 12px;
    content: attr(on-value);
    padding: 2px 2px 1px 3px;
}

input[type="checkbox"].onoff::before {
    content: attr(off-value);
    font-size: 11px;
    font-weight: bold;
    width: 20px;
    height: 15px;
    display: block;
    position: absolute;
    transition: all 0.2s;
    left: 1px;
    top: 1px;
    border-radius: 31px;
    background: radial-gradient(#00adff, #707070);
    border: 1px solid #454e54;
    text-align: center;
    padding: 2px 3px 1px 3px;
}

input[type="checkbox"].onoff {
    width: 42px;
    height: 24px;
    background: #3c434a;
    appearance: none;
    position: relative;
    border-radius: 12px;
    border: 1px solid #5e686f;
    /* overflow: hidden; */
	margin: 2px 0 0 0;
}

input[type="checkbox"].onoff:focus {
    outline: 1px solid white;
}

input[type="checkbox"].tri-state {
	display: block;
    min-width: 42px;
    height: 24px;
    background: #3c434a;
    appearance: none;
    position: relative;
    border-radius: 12px;
    border: 1px solid #5e686f;
	padding: 0;
	margin: 0;
	cursor: pointer;
}

input[type="checkbox"].tri-state:focus {
    outline: 1px solid white;
}

input[type="checkbox"].tri-state[value="0"]::before {
    content: attr(data-text0);
	left: 1px;
    transform: translateX(0);
}

input[type="checkbox"].tri-state[value="1"]::before {
    content: attr(data-text1);
    left: 50%;
    transform: translateX(-50%);
}

input[type="checkbox"].tri-state[value="2"]::before {
    content: attr(data-text2);
    left: 99%;
    left: calc(100% - 1px);
    transform: translateX(-100%);
}


input[type="checkbox"].tri-state::before {
	pointer-events: none;
    content: ' ';
    font-size: 11px;
    font-weight: bold;
    min-width: 20px;
    max-width: 100%;
    height: 15px;
    display: block;
    position: absolute;
    top: 1px;
    border-radius: 31px;
    background: radial-gradient(#00adff, #707070);
    border: 1px solid #454e54;
    text-align: center;
    padding: 2px 3px 1px 3px;
    color: white;
}

@media only screen and (max-width: 600px) {
}

@media only screen and (min-width: 768px) {
}

@media only screen and (min-width: 1440px) {
}

@media only screen and (min-width: 1680px) {
    input.normal, select.normal {
	width: 180px;
    }
    .half {
	width: 112px;
    }
    input.mid, select.mid {
	width: 224px;
    }
    input.wide, select.wide {
	width: 292px;
    }

    select.short {
	width: 54px;
    }

    input.short {
	width: 70px;
    }
}

@media only screen and (min-width: 1920px) {
}
