
/* GLOBAL
------------------------------------------------------- */
#kleo-popup {
	width: 560px;
	font: 12px/20px Arial, Helvetica, sans-serif;
	overflow: initial;
	max-height: calc(100vh - 50px);
}
#kleo-popup * {
	font: 12px/20px Arial, Helvetica, sans-serif;	
}

/* form side */
#kleo-sc-form-wrap {
	width: 550px;
	float: left;
}
#kleo-sc-form-wrap #kleo-sc-form-head {
	width: 520px;
	padding: 15px;
	color: #fff;
	font-weight: bold;
	line-height: 1;
	text-shadow: 0 -1px 0 #000;
	background-color: #404040;
	background-image: -webkit-gradient(linear, left top, left bottom, from(#404040), to(#393939)); 
	background-image: -webkit-linear-gradient(top, #404040, #393939); 
	background-image: -moz-linear-gradient(top, #404040, #393939); 
	background-image: -ms-linear-gradient(top, #404040, #393939); 
	background-image: -o-linear-gradient(top, #404040, #393939); 
	background-image: linear-gradient(top, #404040, #393939);
	filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#404040', EndColorStr='#393939');
}
#kleo-popup.no_preview #kleo-sc-form-wrap #kleo-sc-form-head {
	width: 530px;
}
#kleo-sc-form-wrap #kleo-sc-form {
	width: 490px;
	padding: 15px;
}



/* FORM
------------------------------------------------------- */

#kleo-sc-form-table {
	width: 530px;
}
#kleo-sc-form-table tbody tr.form-row {
	display: block;
	padding: 5px 0;
	border-bottom: solid 1px #eaeaea;
}
#kleo-sc-form-table tbody:last-child tr.form-row {
	border-bottom: none;
}
#kleo-sc-form-table tbody tr.form-row .label {
	width: 130px;
	text-align: left;
	vertical-align: top;
	line-height: 35px;
	padding-right: 20px;
}
#kleo-sc-form-table tbody tr.form-row .field {
	width: 370px;
}
#kleo-sc-form-table tbody tr.form-row .kleo-insert {
	color: #fff;
}

/* child rows, sortable */
#kleo-sc-form-table .has-child #form-child-add {
	display: inline-block;
	width: auto;
	-moz-border-radius: 5px;
	border-radius: 5px;
	height: 30px;
	margin-bottom: 20px;
	font-weight: bold;
	font-size: 14px;
	text-align: center;
        height: auto;
        padding: 3px 10px;
}
#kleo-sc-form-table .has-child .child-clone-rows {
	display: block;
}
#kleo-sc-form-table .has-child .child-clone-rows .child-clone-row {
	padding: 8px 15px;
	background: #f7f7f7;
	border: solid 1px #e0e0e0;
	margin-bottom: 10px;
	cursor: move;
	-moz-border-radius: 5px;
	border-radius: 5px;
}
#kleo-sc-form-table .has-child .sortable-placeholder {
	border: dashed 2px #e0e0e0;
	margin-bottom: 10px;
	-moz-border-radius: 5px;
	border-radius: 5px;
	background: #f7f7f7;
	height: 40px;
}
#kleo-sc-form-table .has-child .child-clone-rows .child-clone-row .child-clone-row-form {
	display: block;
}
#kleo-sc-form-table .has-child .child-clone-rows .child-clone-row .child-clone-row-form .child-clone-row-form-row {
	display: block;
	padding: 7px 0;
	border-bottom: solid 1px #ddd;
}
#kleo-sc-form-table .has-child .child-clone-rows .child-clone-row .child-clone-row-form .child-clone-row-form-row .child-clone-row-label label {
	display: block;
	font-weight: bold;
	font-style: italic;
	padding-bottom: 7px;
	line-height: 1;
}
#kleo-sc-form-table .has-child .child-clone-rows .child-clone-row .child-clone-row-remove {
	color: #FF0000;
	padding: 1px;
}
#kleo-sc-form-table .has-child .child-clone-rows .child-clone-row .child-clone-row-remove:hover {
	color: #fff;
	background: #FF0000;
}

/* form elements */

/* - all */
#kleo-sc-form-table tbody tr.form-row .kleo-form-text,
#kleo-sc-form-table tbody tr.form-row .kleo-form-textarea,
#kleo-sc-form-table tbody tr.form-row .kleo-form-select {
	width: 370px;
	padding: 5px 10px;
	background: #f7f7f7;
	border: none;
	border-left: solid 1px #ddd;
	border-top: solid 1px #ddd;
	-moz-border-radius: 5px;
	border-radius: 5px;
}
#kleo-sc-form-table tbody tr.form-row.has-child .kleo-form-text,
#kleo-sc-form-table tbody tr.form-row.has-child .kleo-form-textarea,
#kleo-sc-form-table tbody tr.form-row.has-child .kleo-form-select {
	background: #fff;
	width: 485px;
}

/* - textarea */
#kleo-sc-form-table tbody tr.form-row .kleo-form-textarea {
	height: 120px;
}
#kleo-sc-form-table tbody tr.form-row.has-child .kleo-form-textarea {
	height: 100px;
}

/* - select */
#kleo-sc-form-table tbody tr.form-row .kleo-form-select {
	display: block;
	height: 25px;
}
#kleo-sc-form-table tbody tr.form-row.has-child .kleo-form-select {
	width: auto;
	height: 25px;
}

/* - desc */
#kleo-sc-form-table tbody tr.form-row .field .kleo-form-desc,
#kleo-sc-form-table tbody tr.form-row .child-clone-row-desc {
	display: block;
	font-size:  12px;
	color: #aaa;
	font-style: italic;
	padding-top: 3px;
}

.mceAction.mce_kleo_button { padding: 2px;}

/* Hide outline on focus */
#content_kleo_button { outline: none; }
