/* X-Tabs
<div class="xtabs xtta xtl xtal xtac xchecked xt-blue">...</div>
------------------------*/

[class*="xtabs"] {
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
	margin-bottom: 0;
	width: 100%;
}

[class*="xtabs"] > label {
	order: 1;
	display: block;
	margin-right: 0.25rem;
	margin-top: 0;
	margin-bottom: 0;
	padding: 0.75rem 1rem;
    font-size: 1.25rem;
	cursor: pointer;
	text-align: center;
	font-weight: normal;
	transition: background ease 0.5s;
	border-top-left-radius: 0.25rem;
	border-top-right-radius: 0.25rem;
	-ms-flex: 1 1 auto;
	flex: 1 1 auto;
}

[class*="xtabs"] form > label:hover {
	background: none !important;
}

[class*="xtabs"] > label:last-of-type {
	margin-right: 0;
}

[class*="xtabs"].xalt > label {
	margin-right: 0;
}

[class*="xtabs"] .xtab {
	order: 99;
	-ms-flex-positive: 0;
	flex-grow: 1;
	width: 100%;
	display: none;
	background: none;
	position: relative;
	top: -1px;
	border: 1px solid #ddd;
	border-radius: 0.25rem;
	border-top-left-radius: 0;
	border-top-right-radius: 0;
	padding: 1rem;
}

[class*="xtabs"].xalt .xtab {
	top: 0;
	border-top: none !important;
}

[class*="xtabs"] > input[type="radio"] {
	display: none;
}

[class*="xtabs"] > label:hover,
[class*="xtabs"] > input[type="radio"]:checked + label {
	background: #007bff;
	border: 1px solid #007bff;
	color: #fff;
}

[class*="xtabs"] > input[type="radio"]:checked + label:hover {
	cursor: default;
}

[class*="xtabs"] > input[type="radio"]:checked + label + .xtab {
	display: block;
}

[class*="xtabs"].xicons > input[type="radio"] + label:after { float: right; font-family: Fontawesome; content: "\00a0\f105"; font-size: 1rem; padding-top: 0.2rem; }
[class*="xtabs"].xicons > input[type="radio"]:checked + label:after { float: right; font-family: Fontawesome; content: "\00a0\f107"; font-size: 1rem; padding-top: 0.2rem; }

/* Center Align Tabs
------------------------*/

[class*="xtabs"].xtac {
	justify-content: center;
}

[class*="xtabs"].xtac > label {
	-webkit-box-ordinal-group: 2;
	-webkit-order: 1;
	-ms-flex-order: 1;
	order: 1;
	flex-grow: 0;
}

/* Left Align Tabs
------------------------*/

[class*="xtabs"].xtal > label {
	-webkit-box-ordinal-group: 2;
	-webkit-order: 1;
	-ms-flex-order: 1;
	order: 1;
	flex-grow: 0;
}

/* Tabs to Accordion
------------------------*/

@media (max-width: 767px) {

	[class*="xtabs"].xtta .xtab, [class*="xtabs"].xtta > label {
		-ms-flex-order: 1;
		order: initial;
	}

	[class*="xtabs"].xtta > label {
		width: 100%;
		margin-right: 0;
		margin-top: 0.5rem;
		border-radius: 0.25rem;
		text-align: left;
	}

	[class*="xtabs"].xtta.xalt > label {
		border-bottom-left-radius: 0 !important;
		border-bottom-right-radius: 0 !important;
	}

	[class*="xtabs"].xtta > input[type="radio"]:checked + label {
		border-bottom-left-radius: 0;
		border-bottom-right-radius: 0;
	}

	[class*="xtabs"].xtta > label:first-of-type {
		margin-top: 0;
	}

}

/* Accordions
------------------------*/

[class*="xtabs"].xacc .xtab, [class*="xtabs"].xacc > label {
	-ms-flex-order: 1;
	order: initial;
}

[class*="xtabs"].xacc > label {
	width: 100%;
	margin-right: 0;
	margin-top: 0.5rem;
	border-radius: 0.25rem !important;
	text-align: left;
}

[class*="xtabs"].xacc > input[type="radio"]:checked + label {
	border-bottom-left-radius: 0.25rem !important;
	border-bottom-right-radius: 0.25rem !important;
}

[class*="xtabs"].xacc.xalt > label {
	border-radius: 0;
	border-bottom-left-radius: 0.25rem !important;
	border-bottom-right-radius: 0.25rem !important;
}

[class*="xtabs"].xacc > label:first-of-type {
	margin-top: 0;
}

/* Large number of tabs
------------------------*/

[class*="xtabs"].xtl > label {
	justify-content: flex-start; /* center or flex-start */
	margin-top: 0.25rem; !important;
	border-bottom-left-radius: 0.25rem !important;
	border-bottom-right-radius: 0.25rem !important;
}
[class*="xtabs"].xtl .xtab {
	margin-top: 0.35rem; !important;
	border-top-left-radius: 0.25rem !important;
	border-top-right-radius: 0.25rem !important;
}

/* Theme Default
------------------------*/

[class*="xtabs"] .xtab { border: 1px solid rgba(0,0,0,0.125); background: #fff; }
[class*="xtabs"] > label { border: 1px solid rgba(0,0,0,0.125); background: #f8f9fa; color: #343a40; }
[class*="xtabs"] > label:hover { border: 1px solid rgba(0,0,0,0.125); background: #ddd; color: #343a40; }
[class*="xtabs"] > input[type="radio"]:checked + label { border: 1px solid rgba(0,0,0,0.125); background: #343a40; color: #fff; }

[class*="xtabs"].xalt .xtab { border: 1px solid rgba(0,0,0,0.125); }
[class*="xtabs"].xalt > label { border: none; border-bottom: 3px solid rgba(0,0,0,0.125); background: none; color: #343a40; }
[class*="xtabs"].xalt > label:hover { border: none; border-bottom: 3px solid rgba(0,0,0,0.25); background: #eee; color: #343a40; }
[class*="xtabs"].xalt > input[type="radio"]:checked + label { border: none; border-bottom: 3px solid rgba(0,0,0,0.25); background: #ddd; color: #343a40; }

/* Themes
blue | indigo | purple | pink | red | orange | yellow | green | teal | cyan | gray | gray-dark
------------------------*/

[class*="xtabs"].xt-blue > label:hover { border: 1px solid rgba(0,0,0,0.125); background: #BFDEFF; color: #343a40; }
[class*="xtabs"].xt-blue > input[type="radio"]:checked + label { border: 1px solid rgba(0,0,0,0.125); background: #007bff; color: #fff; }

[class*="xtabs"].xt-indigo > label:hover { border: 1px solid rgba(0,0,0,0.125); background: #D9C3FC; color: #343a40; }
[class*="xtabs"].xt-indigo > input[type="radio"]:checked + label { border: 1px solid rgba(0,0,0,0.125); background: #6610f2; color: #fff; }

[class*="xtabs"].xt-purple > label:hover { border: 1px solid rgba(0,0,0,0.125); background: #DBD0EF; color: #343a40; }
[class*="xtabs"].xt-purple > input[type="radio"]:checked + label { border: 1px solid rgba(0,0,0,0.125); background: #6f42c1; color: #fff; }

[class*="xtabs"].xt-pink > label:hover { border: 1px solid rgba(0,0,0,0.125); background: #F9CFE2; color: #343a40; }
[class*="xtabs"].xt-pink > input[type="radio"]:checked + label { border: 1px solid rgba(0,0,0,0.125); background: #e83e8c; color: #fff; }

[class*="xtabs"].xt-red > label:hover { border: 1px solid rgba(0,0,0,0.125); background: #F6CCD0; color: #343a40; }
[class*="xtabs"].xt-red > input[type="radio"]:checked + label { border: 1px solid rgba(0,0,0,0.125); background: #dc3545; color: #fff; }

[class*="xtabs"].xt-orange > label:hover { border: 1px solid rgba(0,0,0,0.125); background: #FEDFC4; color: #343a40; }
[class*="xtabs"].xt-orange > input[type="radio"]:checked + label { border: 1px solid rgba(0,0,0,0.125); background: #fd7e14; color: #000; }

[class*="xtabs"].xt-yellow > label:hover { border: 1px solid rgba(0,0,0,0.125); background: #FFEFC1; color: #343a40; }
[class*="xtabs"].xt-yellow > input[type="radio"]:checked + label { border: 1px solid rgba(0,0,0,0.125); background: #ffc107; color: #000; }

[class*="xtabs"].xt-green > label:hover { border: 1px solid rgba(0,0,0,0.125); background: #C9E9D0; color: #343a40; }
[class*="xtabs"].xt-green > input[type="radio"]:checked + label { border: 1px solid rgba(0,0,0,0.125); background: #28a745; color: #fff; }

[class*="xtabs"].xt-teal > label:hover { border: 1px solid rgba(0,0,0,0.125); background: #C7F1E5; color: #343a40; }
[class*="xtabs"].xt-teal > input[type="radio"]:checked + label { border: 1px solid rgba(0,0,0,0.125); background: #20c997; color: #fff; }

[class*="xtabs"].xt-cyan > label:hover { border: 1px solid rgba(0,0,0,0.125); background: #C5E8ED; color: #343a40; }
[class*="xtabs"].xt-cyan > input[type="radio"]:checked + label { border: 1px solid rgba(0,0,0,0.125); background: #17a2b8; color: #fff; }

[class*="xtabs"].xt-gray > label:hover { border: 1px solid rgba(0,0,0,0.125); background: #EEEBEA; color: #343a40; }
[class*="xtabs"].xt-gray > input[type="radio"]:checked + label { border: 1px solid rgba(0,0,0,0.125); background: #8C8582; color: #fff; }

[class*="xtabs"].xt-gray-dark > label:hover { border: 1px solid rgba(0,0,0,0.125); background: #E2E0E0; color: #343a40; }
[class*="xtabs"].xt-gray-dark > input[type="radio"]:checked + label { border: 1px solid rgba(0,0,0,0.125); background: #403734; color: #fff; }