/************************************************************************************************************
 *
 * @ Version 1.0.5
 * @ Formula Generator
 * @ Date 03. 17. 2016
 * @ Author PIGNOSE
 * @ Licensed under MIT.
 *
 ***********************************************************************************************************/

.formula-wrapper {
	position: relative;
}

.formula-wrapper .formula-text {
	opacity: 0;
	-ms-filter: alpha(opacity=0);
	filter: alpha(opacity=0);
	color: transparent;
	position: absolute;
	font-size: 0;
	top: 0;
	right: 0;
	width: 100%;
	height: 100%;
	text-indent: -10000px;
	z-index: 20;
	-o-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.formula-container {
	padding: 2.8em;
	cursor: text;
	position: relative;
	line-height: 2.8;
}

.formula-container .formula-drag {
	display: inline;
	padding: 1em .2em;
	border-radius: 3px;
	vertical-align: middle;
	background-color: rgba(26, 94, 255, .15);
}

.formula-container .formula-cursor {
	display: inline-block;
	vertical-align: middle;
	height: 1.6em;
	width: 1px;
	background-color: #ababab;
	background-color: rgba(0, 0, 0, .6);
}

.formula-container .formula-unit,
.formula-container .formula-operator,
.formula-container .formula-item {
	display: inline;
	vertical-align: middle;
	color: #1280ff;
	padding: .35em .8em;
	word-break: break-all;
	margin: .4em;
	line-height: 1.4;
	border-radius: 1em;
	background-color: #ffffff;
	border: 1px solid #1280ff;
}

.formula-container .formula-operator {
	display: inline-block;
	margin-top: 0;
	margin-bottom: 0;
	width: 2em;
	height: 2em;
	line-height: 2em;
	padding: 0;
	text-align: center;
	font-weight: 600;
	color: #f6474e;
	border-color: #f6474e;
}

.formula-container .formula-bracket {
	background-color: transparent;
	border: 0;
	color: #12c2b7;
}

.formula-alert {
	position: absolute;
	width: 12em;
	height: 2.6em;
	line-height: 2.4em;
	color: #777777;
	box-sizing: border-box;
	-o-box-sizing: border-box;
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	border: 1px solid #d8d8d8;
	border-right: 0;
	border-top: 0;
	background-color: #fafafa;
	border-top: 3px solid #ababab;
	text-align: center;
	top: 0;
	right: 1px;
	z-index: 10;
}

.formula-alert.formula-alert-good {
	color: #88ccab;
	border-top-color: #88ccab;
}

.formula-alert.formula-alert-error {
	color: #ff9090;
	border-top-color: #ff9090;
}

.formula-prefix {
	color: #1280ff;
}

.formula-surfix {
	color: #ff7464;
}