
/* Success, notice and error boxes
-------------------------------------------------------------- */

.error,
.notice,
.notification, 
.success    {
	border: 0 none;
	border-radius: 8px;
	-moz-border-radius: 8px;
	-webkit-border-radius: 8px;
	padding: 1em 5%;
}

.error      { background: #FBE3E4; color: #8a1f11; border-color: #FBC2C4; }
.notice,
 .notification { background: #FFF6BF; color: #514721; border-color: #FFD324; }
.success    { background: #E6EFC2; color: #264409; border-color: #C6D880; }
.error a    { color: #8a1f11; }
.notice a,
.notification a   { color: #514721; }
.success a  { color: #264409; }

.required {
}

/* = Loader
========================================= */

.loading {
	background: url("../img/loading.gif") no-repeat center center;
	display: block;
	min-height: 16px;
	min-width: 16px;
}

/* = Input States
========================================= */

input:focus,
textarea:focus {
	box-shadow: 0px 0px 3pt 2pt #f2b33d;
}
input:invalid,
input.invalid,
.editable .invalid,
.sbHolder.invalid,
select.invalid,
textarea.invalid {
	box-shadow: 0px 0px 3pt 2pt red;
}
input[type=checkbox].invalid,
input[type=radio].invalid {
	box-shadow: none;
	background: red;
}
label.invalid {
	color: red;
}
.invalid-error {
	padding: 0.5em;
}
.messages {
	margin: 1em 0;
}

input::-webkit-input-placeholder {
    color: #e12323;
}
input:-moz-placeholder {
    color: #e12323;
}
input:-ms-input-placeholder {
    color: #e12323;
}


/* = .form-paragraphs
====================================== */

.form-p {
	margin-bottom: 20px;
	position: relative;
}
.form-p .desc {
	display: block;
	font-size: 10px;
	font-weight: bold;
	margin: 0em 0 0.5em 35%;
}

.form-p.half {
	clear: none;
	float: left;
	margin-right: 2.5%;
	min-height: 3em;
	width: 47.5%;
}
.form-p.info {
}
.form-p.half .desc {
	float: right;
	width: 74%;
}
.form-p.third {
	float: left;
	margin-right: 3%;
	width: 30%;
}
.form-p.two-third {
	float: left;
	margin-right: 3%;
	width: 63%;
}

.tooltip-bd {
    background: black;
    font-size:12px;
    min-height:10px;
    max-width: 600px;
    padding:10px;
    color:#fff; 
    z-index: 99;
    bottom: 10px;
    border: 2px solid white;
/* for IE */
  filter:alpha(opacity=80);
  /* CSS3 standard */
  opacity:0.8;
}
.form-p a.tooltip {
	background: url( '../img/tooltip.png' ) no-repeat center center;
	display: inline-block;
	*display: inline;
	zoom: 1;
	width: 16px;
	height: 16px;
	
	position: absolute;
    right: 0;
    top: 5px;
}
/* Key Value Element */
fieldset.key-value {
	border: 0 none !important;
	display: inline-block !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* Other Input */
.other-input {
	position: relative;
}
.other-input a.cancel {
	position: absolute;
    right: 10px;
    top: 50%;
    height: 10px;
    margin-top: -10px;
    text-decoration: none;
}

/* Buttons */
fieldset a.button,
.form-p a.button {
	background: #337ab7;
	border-radius: 5px;
	color: #fff;
	line-height: 100%;
	padding: 8px;
	text-decoration: none;
}
.form-p a.button:hover {
	color: #fff;
	text-decoration: underline;
}

.form-header {
	clear: both;
	border-bottom: 2px solid #000;
	padding-bottom: 5px;
	margin-bottom: 10px;
}
.form-p.duplicating .item,
.form-p.key-value .item {
	position: relative;
}
.form-p .item .remove-duplicate {
	position: absolute;
    right: 2px;
    bottom: 2px;
    cursor: pointer;
}
fieldset .duplicate,
.form-p .duplicate {
	float: right;
	margin: 2px 2px 0 0;
	cursor: pointer;
}
.key-value.form-p .item {
	clear: both;
}
.key-value.form-p .item .fieldgroup {
	float: left;
	width: 92%;
}
.key-value .field {
	float: left;
	width: 50%;
}
a.button.duplicate,
a.button.remove-duplicate {
	display: block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    padding: 0;
}
a.button.remove-duplicate {
	background-color: #F72E2E;
	cursor: pointer;
}

/* TEMPORARY */
fieldset {
	//border: 1px solid #000 !important;
}

.contenteditable-holder {
	background-color: #fff;
}
code.contenteditable {
	background-color: #fff;
	border-radius: 5px;
	padding: 3px;
	height: 400px;
	width: 90%;
	height: 90%;
	overflow: auto;
}

.popup-form {
    position: absolute;
    left: 10px;
    top: 10px;
    background-color: #fff;
    border: 1px solid;
    padding: 5px;
    z-index: 10;
    border-radius: 5px;
}
.popup-form .form-p {
	float: none;
	width: 100%;
}
.popup-form .controls {
	clear: both;
	float: right;
}
.form-p .button:hover {
	background-color: #3E98E6;
}
.form-p .button.clicked {
	background-color: #389607;
}

.clear {
	clear: both;
	width: 100%;
}
.form-p .loading {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
}
*[data-value-type=nospaces] {
	position: relative;
}
*[data-value-type=nospaces] .notice.nospaces {
	position: absolute;
    z-index: 100;
    right: 0;
}
.popup-form .controls .loading {
	float: left;
    width: 32px;
    height: 32px;
    padding: 0;
    margin: 0;
    min-height: 0;
}
/* Clearfix */
.clearfix::after {
	content: " ";
	/* Older browser do not support empty content */
	visibility: hidden;
	display: block;
	height: 0;
	clear: both;
}
.field.left {
	width: 50%;
	float: left;
}
.field.right {
	width: 50%;
	float: right;
}
.hidden {
	display: none;
}



/* The switch - the box around the slider */
.form-p.toggle label {
	position: relative;
	display: inline-block;
	width: 60px;
	height: 34px;
}

/* Hide default HTML checkbox */
.form-p.toggle label input {display:none;}

/* The slider */
.form-p.toggle .slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #ccc;
	-webkit-transition: .4s;
	transition: .4s;
}

.form-p.toggle .slider:before {
	position: absolute;
	content: "";
	height: 26px;
	width: 26px;
	left: 4px;
	bottom: 4px;
	background-color: white;
	-webkit-transition: .4s;
	transition: .4s;
}

.form-p.toggle input:checked + .slider {
	background-color: #2196F3;
}

.form-p.toggle input:focus + .slider {
box-shadow: 0 0 1px #2196F3;
}

.form-p.toggle input:checked + .slider:before {
	-webkit-transform: translateX(26px);
	-ms-transform: translateX(26px);
	transform: translateX(26px);
}

/* Rounded sliders */
.form-p.toggle.round .slider {
	border-radius: 34px;
}

.form-p.toggle.round .slider:before {
	border-radius: 50%;
}
