.divider {
	border-bottom: solid 1px @border-color;
	height: 0;
	padding: 0;
	margin: 0.2rem 0;
}

.heading {
	margin-bottom: 20px;
	padding: 1em 0;
	h1,
	h2,
	h3,
	h4,
	h5,
	h6 {
		position: relative;
		margin: 0;
		padding: 0;
		vertical-align: middle;
	}
	&.heading-bullet {
		h1,
		h2,
		h3,
		h4,
		h5,
		h6 {
			&:before {
				content: "";
				background: @border-color;
				display: inline-block;
				width: 5px;
				height: 1em;
				margin-right: 0.5em;
				margin-top: -0.15em;
				vertical-align: middle;
			}
		}
	}
	&.heading-line {
		position: relative;
		h1,
		h2,
		h3,
		h4,
		h5,
		h6 {
			background: #fff;
			z-index: 1;
			display: inline-block;
			padding: 0 1em 0 0;
		}
		&:before {
			content: "";
			position: absolute;
			top: 50%;
			left: 0;
			right: 0;
			margin-top: -1px;
			border-bottom: solid 1px @border-color;
			z-index: 0;
		}
		&.text-left {
			h1,
			h2,
			h3,
			h4,
			h5,
			h6 {
				padding: 0 1em 0 0;
			}
		}
		&.text-right {
			h1,
			h2,
			h3,
			h4,
			h5,
			h6 {
				padding: 0 0 0 1em;
			}
		}
		&.text-center {
			h1,
			h2,
			h3,
			h4,
			h5,
			h6 {
				padding: 0 1em;
			}
		}
	}
	&.heading-divider {
		border-bottom: solid 1px @border-color;
	}
}

.blockquote {
	margin: 0 0 1rem 0;
	padding: 0;
	font-size: 1.2rem;
	border: none;
	footer {
		margin-top: 0.2rem;
		font-size: 0.8em;
		color: fade(@font-color, 60%);
		&:before {
			content: "\2014 \00A0";
		}
	}
}

.card {
	border: solid 1px @border-color;
	padding: 1rem 1.5rem;
}

.cover {
	padding-bottom: 100%;
	overflow: hidden;
	img {
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		transition: all 0.3s ease-in-out;
		max-width: 100%;
		max-height: none;
	}
	&.p60 {
		padding-bottom: 60%;
	}
}

.modal-backdrop {
	z-index: 999998;
}
.modal {
	z-index: 999999;
}

.row {
	&.row-divider {
		> [class^="col-"] {
			border-left: solid 1px #ddd;
			&:first-child {
				border-left: none;
			}
		}
	}
}

.form {
	&.form-horizontal {
		.form-group {
			position: relative;
			padding: 0 12em;
			.control-label {
				position: absolute;
				left: 0;
				padding: 0.4em 1em;
				width: 12em;
			}
		}
	}
}

.form-control {
	&:focus,
	&:active {
		border-color: @vi-color;
		box-shadow: 0 0 0 0.15rem fade(@vi-color, 25%);
	}
	&.input-xs {
		padding: 1px 5px;
		font-size: 12px;
		line-height: 1.5;
		border-radius: 2px;
		height: auto;
	}

	.form-control-item {
		display: flex;
		align-items: center;
		margin: 4px 0;
		white-space: nowrap;
	}
}

.form-control-select {
	height: auto;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='28' viewBox='0 0 16 28' fill='%23777'%3E%3Cpath d='M16 17q0 .406-.297.703l-7 7Q8.406 25 8 25t-.703-.297l-7-7Q0 17.406 0 17t.297-.703T1 16h14q.406 0 .703.297T16 17zm0-6q0 .406-.297.703T15 12H1q-.406 0-.703-.297T0 11t.297-.703l7-7Q7.594 3 8 3t.703.297l7 7Q16 10.594 16 11z'/%3E%3C/svg%3E");
	background-position: right 8px center;
	background-repeat: no-repeat;
	-webkit-background-size: 8px 16px;
	-moz-background-size: 8px 16px;
	background-size: 8px 16px;
	padding-right: 2em;
}

.form-control-checkbox,
.form-control-radio {
	display: inline-block;
	position: relative;
	cursor: pointer;
	margin-right: 0.5em;
	[type="checkbox"],
	[type="radio"] {
		// visibility: hidden;
		cursor: pointer;
		position: relative;
		z-index: 1;
		vertical-align: middle;
		margin-right: 6px;
		margin-top: 4px;
		&:before {
			visibility: visible;
			content: "";
			position: absolute;
			z-index: 0;
			top: -1.5px;
			left: -1.5px;
			width: 15px;
			height: 15px;
			border-radius: 3px;
			background: #ddd;
		}
		&:checked {
			&:after {
				visibility: visible;
				position: absolute;
				top: -1.5px;
				left: -1.5px;
				z-index: 1;
				content: "";
				width: 15px;
				height: 15px;
				border-radius: 3px;
				background-color: @vi-color;
				background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1MTIgNTEyIj48cGF0aCBmaWxsPSIjZmZmIiBkPSJNMTczLjg5OCA0MzkuNDA0bC0xNjYuNC0xNjYuNGMtOS45OTctOS45OTctOS45OTctMjYuMjA2IDAtMzYuMjA0bDM2LjIwMy0zNi4yMDRjOS45OTctOS45OTggMjYuMjA3LTkuOTk4IDM2LjIwNCAwTDE5MiAzMTIuNjkgNDMyLjA5NSA3Mi41OTZjOS45OTctOS45OTcgMjYuMjA3LTkuOTk3IDM2LjIwNCAwbDM2LjIwMyAzNi4yMDRjOS45OTcgOS45OTcgOS45OTcgMjYuMjA2IDAgMzYuMjA0bC0yOTQuNCAyOTQuNDAxYy05Ljk5OCA5Ljk5Ny0yNi4yMDcgOS45OTctMzYuMjA0LS4wMDF6Ii8+PC9zdmc+);
				background-repeat: no-repeat;
				background-position: center center;
				background-size: 50% 50%;
			}
		}
	}
	[type="radio"] {
		&:before {
			border-radius: 100%;
		}
		&:checked {
			&:after {
				background: #fff;
				border: solid 5px @vi-color;
				border-radius: 100%;
			}
		}
	}
}

.form-control-table {
	margin: -3px 0;
	padding: 2px 0.5em;
	height: auto;
}

.navbar {
	.navbar-toggle {
		padding: 5px 10px;
		font-size: 16px;
	}
}

.nav-line {
	> li {
		float: left;
		> a {
			border-bottom: solid 2px #ddd;
		}
		&.active > a,
		&.active > a:focus,
		&.active > a:hover {
			border-color: @vi-color;
		}
	}
}

.dropdown-menu {
	border-color: rgba(0, 0, 0, 0);
	.row {
		margin: 0;
		[class^="col-"] {
			padding: 0;
		}
	}
	> li > a:hover {
		color: @vi-color;
	}
	dl {
		margin: 0;
		dt,
		dd {
			padding: 0.8rem 1.5rem;
		}
		dt {
			font-size: 1.05rem;
			font-weight: normal;
			color: fade(@font-color, 50%);
		}
		dd {
			&:hover {
				background: #f5f5f5;
				a {
					color: @vi-color;
					text-decoration: none;
				}
			}
			a {
				color: @font-color;
				small {
					display: block;
					color: fade(@font-color, 50%);
				}
			}
		}
	}
}

.required {
	color: #f30;
}

.notfound {
	padding: 30px;
	text-align: center;
	color: #999;
	font-size: 18px;
}

.cutstr {
	display: block;
	height: 1.5em;
	line-height: 1.5em;
	width: 100%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.valign-top {
	vertical-align: top;
}

.valign-bottom {
	vertical-align: bottom;
}

.valign-middle {
	vertical-align: middle;
}

.row {
	margin-right: -10px;
	margin-left: -10px;
}

.col-xs-1,
.col-sm-1,
.col-md-1,
.col-lg-1,
.col-xs-2,
.col-sm-2,
.col-md-2,
.col-lg-2,
.col-xs-3,
.col-sm-3,
.col-md-3,
.col-lg-3,
.col-xs-4,
.col-sm-4,
.col-md-4,
.col-lg-4,
.col-xs-5,
.col-sm-5,
.col-md-5,
.col-lg-5,
.col-xs-6,
.col-sm-6,
.col-md-6,
.col-lg-6,
.col-xs-7,
.col-sm-7,
.col-md-7,
.col-lg-7,
.col-xs-8,
.col-sm-8,
.col-md-8,
.col-lg-8,
.col-xs-9,
.col-sm-9,
.col-md-9,
.col-lg-9,
.col-xs-10,
.col-sm-10,
.col-md-10,
.col-lg-10,
.col-xs-11,
.col-sm-11,
.col-md-11,
.col-lg-11,
.col-xs-12,
.col-sm-12,
.col-md-12,
.col-lg-12 {
	padding-right: 10px;
	padding-left: 10px;
}

.table {
	margin: 0;
	tr {
		td,
		th {
			padding: 8px 10px;

			.input-xs {
				height: 26px;
				padding: 2px 10px;
				margin: -4px 0;
				font-size: 12px;
				line-height: 1.2;
				border-radius: 3px;
				vertical-align: middle;
			}

			.btn-xs {
				margin: -4px 0;
			}

			label {
				margin: 0;
			}
		}

		th {
			label {
				font-weight: bold;
			}
		}
	}

	&.table-striped {
		td,
		th {
			//border-right: dotted 1px #ddd;
			&:first-child {
				//border-left: dotted 1px #ddd;
			}
		}
		thead {
			td,
			th {
				// background: #ddd;
			}
		}
	}

	&.table-datalist {
		border: dotted 1px #ddd;
		border-radius: 6px;
		thead {
			border-top: solid 1px #ddd;
			border-bottom: solid 2px #ddd;
			th,
			td {
				background: #f0f0f0;
				border-right: dotted 1px #ddd;
				border-bottom: none;
				padding: 8px;
				vertical-align: inherit;
				&:last-child {
					//border-right: none;
				}
			}
		}
		tbody {
			border-bottom: solid 1px #ddd;
			tr {
				&:nth-child(even) {
					background: #f9f9f9;
				}
				&:hover {
					background: rgba(100, 136, 255, 0.132);
				}
			}
			th,
			td {
				border-right: dotted 1px #ddd;
				border-top: dotted 1px #ddd;
				padding: 8px;
				&:last-child {
					//border-right: none;
				}
			}
		}
		tfoot {
			border-bottom: solid 1px #ddd;
			th,
			td {
				background: lighten(#f0f0f0, 2%);
				border-right: dotted 1px #ddd;
				border-top: dotted 1px #ddd;
				padding: 8px;
				&:last-child {
					//border-right: none;
				}
			}
		}
	}
}

.dropdown {
	.open {
		background: none;
	}
}
.dropdown-menu {
	//border-radius: 0;
	border-color: #ddd;
	box-shadow: 0 0 3px rgba(0, 0, 0, 0.1);
	min-width: 80px;
	padding: 6px 0;
	margin-top: 10px;
	li {
		a {
			font-size: 13px;
			&:hover {
				background: #f0f0f0;
				//color: @vi-primary-color;
			}
		}
	}
	&:after,
	&:before {
		border-color: transparent;
		border-style: solid;
		border-width: 8px;
		content: " ";
		height: 0;
		left: 15px;
		pointer-events: none;
		position: absolute;
		width: 0;
	}
	&:before {
		bottom: 100%;

		border: solid 8px transparent;
		border-bottom: 8px solid #ddd;
	}
	&:after {
		border-bottom-color: #fff;
		bottom: 100%;
		margin-bottom: -1px;
	}
	&.dropdown-menu-right {
		margin-right: -15px;
		&:after,
		&:before {
			left: auto;
			right: 15px;
		}
	}
	&.dropdown-menu-noarrow {
		&:after,
		&:before {
			display: none;
		}
	}
	.divider {
		margin: 2px 0;
	}
}

.dropdown-menu > li > a:focus,
.dropdown-menu > li > a:hover {
	background: @vi-primary-color;
	color: #fff;
}

.panel {
	border-style: solid;
	//border-width: 0px;
	border-radius: 3px;
	background: #fff;
	overflow: hidden;
	//box-shadow: 0 0 3px #ddd;
	.panel-heading {
		position: relative;
		border-bottom: solid 1px #ddd;
		padding: 8px 10px;
		.panel-title {
			//display: inline-block;
			font-size: 14px;
			font-weight: bold;
			//padding-right: 20px;
		}
		.panel-options {
			position: absolute;
			right: 10px;
			top: 10px;
			font-size: 12px;
			color: #333;
		}

		.nav-tabs,
		.nav-pills {
			vertical-align: middle;
			li {
				.active {
					a {
						color: #fff;
					}
				}
			}
			&.nav-tabs {
				margin: 0 -15px -8px -15px;
				border: none;
				li {
					a,
					a:hover {
						border-radius: 0;
						border: none;
						border-top: solid 2px transparent;
						background: none;
						// font-size: 14px;
						padding: 8px 20px;
					}
					&.active {
						a {
							background: #fff;
							border-top: solid 2px @vi-primary-color;
						}
					}
				}
			}
		}
	}

	.panel-body {
		background: #fff;
		padding: 10px;
	}

	&.panel-primary,
	&.panel-info,
	&.panel-success,
	&.panel-danger,
	&.panel-warning {
		.panel-heading {
			.panel-options {
				color: #fff;
				a {
					color: #fff;
				}
			}

			.nav-pills,
			.nav-pills.nav-justified {
				li {
					a {
						color: #fff;
						&:hover {
							background: rgba(0, 0, 0, 0.2);
							color: #fff;
						}
					}

					&.active {
						a,
						a:hover {
							background: #fff;
							color: #333;
						}
					}
				}
			}

			.nav-tabs {
				margin: -8px -15px;
				padding: 10px 10px 0 10px;
			}

			.nav-tabs.nav-justified {
				margin: -8px 0;
				padding: 10px 0 0 0;
			}

			.nav-tabs,
			.nav-tabs.nav-justified {
				border: none;
				li {
					a {
						border: none;
						border-top: solid 2px transparent;
						color: #fff;
						&:hover {
							background: rgba(0, 0, 0, 0.1);
						}
					}
					&.active {
						a {
							color: #333;
							&:hover {
								background: #fff;
							}
						}
					}
				}
			}
		}
	}

	&.panel-default {
		border-color: #ddd;
		.panel-heading {
			background: @vi-default-color;
			border: none;
			color: #333;
		}

		&.panel-full {
			.panel-body {
				background: @vi-default-color;
				color: #fff;
			}
		}
	}

	&.panel-primary {
		border-color: @vi-primary-color;
		.panel-heading {
			background: @vi-primary-color;
			color: #fff;
		}
		&.panel-full {
			.panel-body {
				background: @vi-primary-color;
				color: #fff;
			}
		}
	}

	&.panel-info {
		border-color: @vi-info-color;
		.panel-heading {
			background: @vi-info-color;
			color: #fff;
		}
		&.panel-full {
			.panel-body {
				background: @vi-info-color;
				color: #fff;
			}
		}
	}

	&.panel-success {
		border-color: @vi-success-color;
		.panel-heading {
			background: @vi-success-color;
			color: #fff;
		}
		&.panel-full {
			.panel-body {
				background: @vi-success-color;
				color: #fff;
			}
		}
	}

	&.panel-warning {
		border-color: @vi-warning-color;
		.panel-heading {
			background: @vi-warning-color;
			color: #fff;
		}
		&.panel-full {
			.panel-body {
				background: @vi-warning-color;
				color: #fff;
			}
		}
	}

	&.panel-danger {
		border-color: @vi-danger-color;
		.panel-heading {
			background: @vi-danger-color;
			color: #fff;
		}
		&.panel-full {
			.panel-body {
				background: @vi-danger-color;
				color: #fff;
			}
		}
	}

	&.panel-chart {
		position: relative;
		.panel-default;
		border-radius: 0;
		border: solid 1px #ddd;
		.panel-heading {
			background: none;
			font-weight: bold;
		}
	}

	&.panel-chart-card {
		.panel-default;
		.panel-chart;
		border-left: solid 8px;
		.panel-body {
			background: none;
			.fa {
				position: absolute;
				top: 10px;
				right: 10px;
				font-size: 48px;
				color: #888;
			}
			big {
				display: block;
				margin-top: -10px;
				font-size: 18px;
			}
		}
	}
}

.pagination {
	vertical-align: middle;
	li a {
		color: #333;
	}

	li.active a,
	li.active a:hover {
		background: #f0f0f0;
		border-color: #ddd;
		color: #333;
	}

	&.pagination-sm {
		margin: 0;
		li a {
			height: 28px;
			padding: 4px 10px;
			vertical-align: middle;
		}
	}
}

.navbar {
	border: none;
}

.nav-tabs {
	li {
		a {
			padding: 4px 15px;
			color: #333;
		}
	}
}

.nav-line,
.nav-line.nav-justified {
	border-radius: 3px 3px 0 0;
	border-bottom: solid 1px #ddd;

	li {
		margin-bottom: -1px;
		a {
			padding: 4px 20px;
			border: none;
			color: #333;

			&:hover {
				background: none;
				color: #000;
			}
		}

		&.active {
			a,
			a:hover {
				border: none;
				border-bottom: solid 2px #404650;
				background: none;
				color: #404650;
			}
		}
	}
}

.nav-pills {
	margin-bottom: 15px;
	li {
		a {
			padding: 4px 15px;
			color: #333;
			font-size: 13px;
		}

		&.active {
			a,
			a:hover {
				background: #404650;
			}
		}
	}
}

.nav-wizard {
	overflow: hidden;
	li {
		position: relative;
		a {
			display: block;
			padding: 10px;
			padding-left: 40px;
			text-align: left;
			font-weight: 800;
			color: #fff;
			background: #9fa8bc;
			font-size: 14px;
			i {
				display: block;
				float: left;
				background: #fff;
				border-radius: 36px;
				width: 36px;
				height: 36px;
				line-height: 36px;
				font-size: 18px;
				font-style: normal;
				font-weight: bold;
				text-align: center;
				margin-right: 10px;
				color: #666;
			}
			small {
				display: block;
				font-weight: normal;
			}
			&::after {
				border-left: 28px solid #9fa8bc;
				border-top: 28px solid transparent;
				border-bottom: 28px solid transparent;
				content: "";
				display: inline-block;
				position: absolute;
				right: -28px;
				top: 50%;
				margin-top: -28px;
				z-index: 50;
			}
			&:hover {
				background: rgb(70, 79, 99);
			}
			&:hover::after {
				border-left-color: rgb(70, 79, 99);
			}
		}

		&:first-child > a {
			padding-left: 10px;
		}

		&:last-child > a::after {
			display: none;
		}

		&.done > a {
			background: #505b72;
			color: #fff;
			&::after {
				border-left-color: #505b72;
			}
		}

		&.active > a {
			background: #fff;
			color: #404650;
			small {
				color: #666;
			}
			i {
				background: #404650;
				color: #fff;
			}
			&::after {
				border-left-color: #fff;
			}
			&:hover {
				background: #fff;
				color: #404650;
				small {
					color: #666;
				}
			}
			&:hover::after {
				border-left-color: #fff;
			}
		}
	}
}

.label,
.badge {
	padding: 3px 6px;
	font-size: 11px;
	line-height: 12px;
	vertical-align: middle;
}

.btn {
	padding: 5px 15px;
	// border-width: 0;
	height: 34px;
	vertical-align: middle;

	&.btn-lg {
		padding: 6px 20px;
		height: 40px;
	}

	&.btn-sm {
		padding: 3px 10px;
		height: 28px;
	}

	&.btn-xs {
		padding: 3px 6px;
		height: 24px;
		font-size: 11px;
	}

	&.btn-default {
		border-width: 1px;
	}

	&.btn-primary {
		background: @vi-primary-color;
		border-color: darken(@vi-primary-color, 5%);
		&:active {
			background: lighten(@vi-primary-color, 5%);
			border-color: lighten(@vi-primary-color, 5%);
		}
	}

	&.btn-success {
		background: @vi-success-color;
		border-color: darken(@vi-success-color, 5%);
	}

	&.btn-warning {
		background: @vi-warning-color;
		border-color: darken(@vi-warning-color, 5%);
	}

	&.btn-info {
		background: @vi-info-color;
		border-color: darken(@vi-info-color, 5%);
	}

	&.btn-danger {
		background: @vi-danger-color;
		border-color: darken(@vi-danger-color, 5%);
	}
}

.btn-group {
	vertical-align: middle;

	&.btn-group-lg > .btn {
		padding: 6px 20px;
		height: 40px;
	}

	&.btn-group-sm > .btn {
		padding: 3px 10px;
		height: 28px;
	}

	&.btn-group-xs > .btn {
		padding: 3px 6px;
		height: 24px;
		font-size: 11px;
	}
}

.control-label {
	font-weight: bold;
}

.form-group {
	position: relative;
	&.has-error {
		.form-control,
		.control-label,
		.help-block {
			border-color: #c00;
			color: #c00;
			&:focus {
				box-shadow: none;
			}
		}
	}
	&.has-success {
		.form-control,
		.control-label,
		.help-block {
			border-color: green;
			color: green;
			&:focus {
				box-shadow: none;
			}
		}
		&:after {
			content: "\f058";
			font-family: FontAwesome;
			position: absolute;
			right: 0px;
			bottom: 8px;
			height: 18px;
			line-height: 18px;
			margin-right: 5px;
			text-align: center;
			-webkit-transform: none;
			-ms-transform: none;
			-o-transform: none;
			transform: none;
			-webkit-transition: -webkit-transform 0.3s;
			transition: -webkit-transform 0.3s;
			-o-transition: -o-transform 0.3s;
			transition: transform 0.3s;
			transition: transform 0.3s, -webkit-transform 0.3s, -o-transform 0.3s;
			width: 18px;
			color: green;
		}
	}
	.cke_chrome {
		box-shadow: none;
		border-radius: 4px;
		overflow: hidden;
	}
	.regex-tip {
		position: absolute;
		right: 20px;
		top: 26px;
		&:before {
			content: "\f071";
			font-family: FontAwesome;
			height: 18px;
			line-height: 18px;
			margin-right: 5px;
			text-align: center;
			-webkit-transform: none;
			-ms-transform: none;
			-o-transform: none;
			transform: none;
			-webkit-transition: -webkit-transform 0.3s;
			transition: -webkit-transform 0.3s;
			-o-transition: -o-transform 0.3s;
			transition: transform 0.3s;
			transition: transform 0.3s, -webkit-transform 0.3s, -o-transform 0.3s;
			width: 18px;
		}
	}
}

.form-control {
	vertical-align: middle;
	padding: 6px 8px;
	height: 34px;
	font-size: 13px;
	font-weight: normal;
	border-radius: 3px;
	background: #fbfbfb;
	&.form-control-short {
		width: 300px;
	}
	&.form-control-long {
		width: 300px;
	}
	&:focus {
		//border-color: @vi-primary-color;
		//box-shadow: inset 0 1px 1px @vi-primary-color, 0 0 8px rgba(102, 175, 233, .6);
		box-shadow: none;
	}
	&.input-sm {
		padding: 3px 8px;
		height: 28px;
	}

	&.input-xs {
		padding: 1px 6px;
		height: 24px;
		font-size: 11px;
	}

	&.input-long {
		width: 400px;
	}

	&.input-short {
		width: 200px;
	}
	// &.has-success {
	// 	border-color: green;
	// 	color: green;
	// }

	// &.has-error {
	// 	border-color: red;
	// 	color: red;
	// }
}

.form-control-select {
	.form-control;
	-webkit-appearance: none;
	appearance: none;
	background-color: #f8f8f8;
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='28' viewBox='0 0 16 28' fill='%23777'%3E%3Cpath d='M16 17q0 .406-.297.703l-7 7Q8.406 25 8 25t-.703-.297l-7-7Q0 17.406 0 17t.297-.703T1 16h14q.406 0 .703.297T16 17zm0-6q0 .406-.297.703T15 12H1q-.406 0-.703-.297T0 11t.297-.703l7-7Q7.594 3 8 3t.703.297l7 7Q16 10.594 16 11z'/%3E%3C/svg%3E");
	background-position: right 8px center;
	background-repeat: no-repeat;
	-webkit-background-size: 8px 16px;
	background-size: 8px 16px;
	padding-right: 25px;
	&.input-sm,
	&.input-xs {
		line-height: 1em;
		padding-right: 2em;
	}
}

.form-control-tagsinput {
	.form-control;
	cursor: text;
	height: auto;
	min-height: 70px;
	padding: 2px 8px;
	.tag-input {
		position: relative;
		display: inline-block;
		.tag-hint {
			position: relative;
			z-index: 2;
			padding: 0;
			border: none;
			background: none;
			width: auto;
			vertical-align: middle;
			outline: 0 none !important;
			padding: 5px 0;
		}
		.tag-shadow {
			.tag-hint;
			position: absolute;
			left: 0;
			// top: -4px;
			// z-index: -1;
			color: #ccc;
		}
		.tag-typeahead {
			margin-top: 10px;
		}
	}
	.tag-item {
		.label;
		display: inline-block;
		margin: 4px 0;
		margin-right: 5px;
		vertical-align: middle;
		background: lighten(@vi-primary-color, 35%);
		color: darken(@vi-primary-color, 20%);
		// color: #fff;
		padding: 4px 8px;
		border-radius: 3px;
		.tag-remove {
			cursor: pointer;
			font-style: normal;
			font-size: 12px;
			font-weight: bold;
			margin-left: 6px;
		}
	}
}

.input-group {
	&.input-long {
		width: 400px;
	}
	&.input-short {
		width: 200px;
	}

	.input-group-btn .btn {
		padding: 6px 15px;
	}
	&.input-group-xs {
		.form-control,
		.input-group-addon,
		.input-group-btn .btn {
			height: 26px;
			padding: 2px 10px;
			font-size: 12px;
			line-height: 1;
		}
	}
}

.list-group-item {
	background: none;
	padding: 8px;
	color: #000;
	// text-align: right;
	border-radius: 0;
	font-size: 12px;
}

.list-group-item label {
	float: left;
	font-weight: bold;
	color: #666;
}

.tooltip {
	word-spacing: normal;
	white-space: nowrap;
	z-index: 9999999;
}

.alert {
	ul {
		margin: 0;
		padding-left: 20px;
	}
}

.uploadify {
	display: inline;
}

.uploadify-queue {
	margin-bottom: 1em;
	position: absolute;
	bottom: 10px;
	right: 10px;
	z-index: 9999999;
}

.uploadify-queue-item {
	background-color: #f5f5f5;
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	border-radius: 3px;
	font: 11px Verdana, Geneva, sans-serif;
	margin-top: 5px;
	max-width: 350px;
	padding: 10px;
	// border: solid 1px #ddd;
	box-shadow: 0 0 15px #ccc;
	.cancel a {
		background: url("../img/uploadify-cancel.png") 0 0 no-repeat;
		float: right;
		height: 16px;
		text-indent: -9999px;
		width: 16px;
	}
	.delfilebtn {
		margin-left: 40px;
	}
	&.completed {
		background-color: #e5e5e5;
	}
}

.uploadify-error {
	background-color: #fde5dd !important;
}

.uploadify-progress {
	background-color: #e5e5e5;
	margin: 10px 0;
	width: 100%;
}

.uploadify-progress-bar {
	background-color: #0099ff;
	height: 3px;
	width: 1px;
}

.upload-file-plugin {
	display: flex;
	.uploadify-button {
		white-space: nowrap;
		height: 100%;
		padding: 0 15px;
		background: #ddd;
		display: flex;
		align-items: center;
		justify-content: center;
		border-radius: 3px;
		border: solid 1px #ddd;
		margin-left: 8px;
	}
}

.upload-image-plugin {
	overflow: hidden;
	display: flex;
	flex-wrap: wrap;
	margin: -5px;
	.uploadify-image {
		position: relative;
		border: dashed 1px #ccc;
		background: #f6f6f6;
		height: 128px;
		width: 128px;
		display: flex;
		justify-content: center;
		align-items: center;
		margin: 5px;
		padding: 5px;
		img {
			width: 100%;
			height: 100%;
			object-fit: contain;
		}
		.uploadify-image-remove {
			position: absolute;
			right: 0;
			top: 0;
			background: rgba(201, 0, 0, 0.8);
			color: #fff;
			padding: 0px 2px;
			&:before {
				font-family: FontAwesome;
				content: "\f00d";
				margin-right: 2px;
			}
		}
	}
	.uploadify-button {
		border: dashed 1px #ccc;
		background: #f6f6f6;
		height: 128px;
		width: 128px;
		display: flex;
		justify-content: center;
		align-items: center;
		padding: 15px;
		margin: 5px;
		color: #333;
		white-space: nowrap;
		&.uploadify-image {
			padding: 0;
		}
	}
}

.autocomplete {
	position: relative;
	.fa {
		position: absolute;
		right: 10px;
		top: 50%;
		transform: translateY(-50%);
		color: #888;
		cursor: pointer;
		&:before {
			content: "\f078";
		}
	}
	.dropdown-menu {
		left: 0;
		right: 0;
	}
	&.opened {
		.dropdown-menu {
			display: block;
		}
		.fa:before {
			content: "\f002";
		}
	}
}

.message {
	position: fixed;
	top: 20px;
	left: 50%;
	z-index: 999;
	transform: translateX(-50%);
	section {
		background: #fff;
		box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
		padding: 12px 20px;
		margin-bottom: 20px;
		transition: 0.3s;
		opacity: 0;
		transform: translateY(-20px);
		border-left: solid 4px transparent;
		&.message-info {
			border-color: rgb(38, 100, 235);
		}
		&.message-warning {
			border-color: rgb(254, 198, 17);
		}
		&.message-error {
			border-color: rgb(196, 53, 17);
		}
		&.message-success {
			border-color: rgb(99, 237, 61);
		}
		&.move-enter {
			opacity: 1;
			transform: translateY(0);
		}
	}
}
