.aphps * {
	 box-sizing: border-box;
}

.aphps .zferror {
	background-color: #FFDFDF !important;
	border-bottom: 1px solid #EACBCC;
	border-right: 1px solid #EACBCC;
	margin: 3px 0;
}

.aphps .zferror label {
	color: #DF0000 !important;
}

.aphps .zferror p {
	clear: both;
	color: red;
	font-size: small;
	font-weight: 700;
	margin: 0 0 5px !important;
}

/**** Guidelines and Error Highlight ****/
.aphps .zfaces-form form li.highlighted {
	background-color: #fff7c0;
}

.aphps .zfaces-form p.guidelines {
	padding: 0;
	margin: 0;
	font-size: small;
	display: none;
} 

.aphps .alt {
	background: #efefef;
}

/******************** Faces ******************/
.aphps .zfsub {
	float: left;
	/*border:1px solid blue;*/
}

.aphps .zfclear {
	clear: both;
	height: 0px;
	background-color:red;
}

.aphps .zfsub label.subname {
	clear: both;
	float: left;
	font-size: smaller !important;
	margin: 0;
	padding-top: 1px;
	padding-bottom: 1px;
	text-align: left;
	font-weight: normal;
}


.aphps .zfedit {
	border: 0px;
}

.aphps .zfli {
	background-image: none; /*FIXME: doesnt work*/
	padding-left:10px;
	padding-right:10px;
}

.aphps .zflist li {
	width: 50%;
}

.aphps .zflistshow {
	background: #DEDEDE;
}

.aphps .zflisthide {
	background: red;
}

.aphps .zfimg {
	vertical-align:middle;
	margin: 0px;
	padding: 0px;
}

.aphps .zfelement { 
	float: left;
	width: 100%;
}

.aphps .zfli input:focus {
	background-color: bisque;
}

.aphps .zfsubelements {
	float: left;
}

.aphps .zfelabel.left {
	text-align: right;
	float: left;
	margin-top: 0.3em;
	padding-right: 10px;
}
	
.aphps .zfelabel.top {
	width: 100%;
	text-align: left;
	clear: both;
	float: left;
}

.aphps .zfalert {
	text-align: center;
	color: red;
	border: 1px solid #ccc;
	width: 100%;
}

.aphps .zfrequired {
	color: red !important;
	float: none !important;
	font-weight: 700;
}

.aphps .faces {
	float: left;
}

.aphps .faces.fw100 {
	width: 100%;
}

.aphps .faces.lw66 {
	width: 66%;
	float: left
}

.aphps .faces.rw66 {
	width: 66%;
	float: right
}

.aphps .faces.lw33 {
	width: 33%;
	float: left
}

.aphps .faces.rw33 {
	width: 33%;
	float: right
}

.aphps .faces.lw50 {
	width: 50%;
	float: left
}

.aphps .faces.rw50 {
	width: 50%;
	float: right
}

.aphps .faces.lw25 {
	width: 25%;
	float: left
}

.aphps .faces.rw25 {
	width: 25%;
	float: right
}

.aphps .faces.lw75 {
	width: 75%;
	float: left
}

.aphps .faces.rw75 {
	width: 75%;
	float: right
}

.aphps div.faces ul,
.aphps div#zfaces ul,
.aphps ul#zfaces,
.aphps ul.zfaces {
	list-style-type: none;
	list-style-image: none;
	margin-left: 0px;
  	padding-left: 0px;
  	float: left;
  	margin-bottom: 1em;
  	width: 100%;
}

.aphps li.zfacestab {
	float:left;
	padding-left:5px;
	padding-right:5px;
	margin-left:10px;
	margin-right:0px;
	background: #F8F8F8;
	margin-bottom:0px;
}

.aphps .aphps_form_buttons {
	position:relative;
	clear:both;
	text-align:center;
	margin-top: 10px;
}

.aphps div.aphps-list-top-buttons {
	float: left; 
	position: relative; 
	margin-bottom: 10px;	
}

.aphps div.aphps-list-top-elements {
	float: right; 
	position: relative; 
	padding-bottom: 10px;
}

.aphps .aphps-list-links-wrapper {
	height: 1.5em;
}

.aphps .aphps-list-links-wrapper a.aphps-small-button span.ui-button-text,
.aphps .aphps-list-links-wrapper span.ui-button-text {
	padding: 0.1em 1em;
}

.aphps .aphps-list-links {
	filter:alpha(opacity=80);
	opacity:0.8;
	padding:2px;
	display:none;
	position:absolute;
}

.aphps .ui-aphps-table {
	border: 1px solid #DDDDDD;
	border-collapse: collapse;
	margin-left: auto;
	margin-right: auto;
	width: 100%;
}

.aphps .ui-aphps-table th {
	padding: 10px 4px;
	font-weight: bold;
	text-align: left;
}

.aphps .ui-aphps-table td {
	padding: 2px 4px;
	border-bottom: 1px solid #D6DDE6; /*darkgrey*/
	text-align: left;
	vertical-align: top;
}

.aphps .ui-aphps-table caption {
	font-size: medium;
	font-weight: bold;
	text-align: left;
	padding-top: 3px;
	padding-bottom: 8px;
	margin-left: auto;
	margin-right: auto;
}

.aphps .zfsub.textarea textarea.element {
	resize: none;
}

/* Form */
.aphps li.zfli {
	list-style-type: none !important;
}

/**** Multiple choice ****/
.aphps .zfsub.multiple_choice {
	clear: left;
	margin-top: 0.1em;
}
	
.aphps .zfsub.multiple_choice label {
	margin-left:10px;
}

.aphps div.zfsub .element {
	float: left;
	margin-bottom: 3px;
	margin-top: 0px;
	clear: left;
}

.aphps input.formpricingfieldoption {
	text-align: right;
}

.aphps .zfrepeatable .element, 
.aphps .zfrepeatable_add, 
.aphps .zfrepeatable_del {
	height: 2em;
	margin-bottom: 3px;
}

.aphps .zfrepeatable .element, 
.aphps .zfrepeatable_add, 
.aphps .zfrepeatable_del {
	display: block;
}

.aphps button.aphps-small-button,
.aphps button.aphps-small-button.ui-widget,
.aphps input.aphps-small-button,
.aphps li.aphps-small-button,
.aphps a.aphps-small-button,
.aphps a.aphps-small-button.ui-button {
	font-size: small;
}

.aphps .aphps-split-button-wrapper {
	display: inline-block;
}

.aphps .aphps-split-button-wrapper ul.ui-menu { 
	position: absolute; 
	width: 100px;
}

.aphps .aphps-split-button-wrapper ul.ui-menu li {
	background-image: none;
	overflow: hidden;
}

.aphps .ui-menu .ui-menu-item a:link {
	text-decoration:none;
}

.aphps .ui-icon.ui-icon-info,.ui-icon.ui-icon-alert {
	float: left; 
	margin-right: .3em;
}

.aphps .ui-widget.zfaces {
	border: 1px solid #DDDDDD;
	border-radius: 2px;
	width: 100%;
	padding: 0.5em;
}

/* tablesorter */
.aphps table.tablesorter thead tr .header {
	padding-right: 21px;
	background-image: url('../images/bg.gif');
	background-repeat: no-repeat;
	background-position: center right;
	cursor: pointer;
}
.aphps table.tablesorter thead tr .headerSortUp {
	background-image: url('../images/asc.gif');
}
.aphps table.tablesorter thead tr .headerSortDown {
	background-image: url('../images/desc.gif');
}

.aphps input.ui-element-view, 
.aphps input.ui-element-delete {
	border: none;
	margin: 2px;
	color: #666
}

.aphps .aphps-formname-system {
	color: #1C94C4;
	font-style: normal;
}

/* List view pager */
.aphps .aphps-list-pager {
	margin-top: 5px;
	background-color: #eee;
	float: left;
	width: calc(100% - 10px);
	padding: 5px;
	font-size: small;
}

.aphps .aphps-list-pager-buttons {
	border: 1px solid #ddd;
	border-radius: 2px;
	float:left;
}
.aphps .aphps-list-pager-buttons a {
	margin: 0;
	padding: 2px 4px;
	border-left: 1px solid #ddd;
	min-width: 2em;
	display: block;
	float: left;
	text-align: center;
	text-decoration: none;
	color: #000;
	background-color: #fff;
}

.aphps .aphps-list-pager-buttons a:hover {
	background-color: #eee;
}

.aphps .aphps-list-pager-counter {
	padding: 3px 0;
	float: right;
}

.aphps .aphps-list-pager-rows-per-page {
	float: right;
	padding-right: 50px;
}

.aphps .aphps-list-pager-rows-per-page div {
	display: inline;
	margin-left: 0.5em;
}

.aphps #zfcontrolfieldadd {
	font-size: small;
}

.aphps .aphps-help-icon {
	display:inline;
	margin: 0 0 0 14px;
	background-color: #1c94c4;
	color: white;
	border-radius: 8px;
	padding: 2px 4px;
	cursor: default;
}

.aphps .aphps-help-icon:after {
	content: "?";
}

.aphps .aphps-notification {
	padding: 5px 0;
}

.aphps .aphps-notification p {
	padding: 10px 5px;
}

.aphps .aphps-list-pager-buttons .aphps-list-pager-selected {
	font-weight: bold;
	color: #1c94c4;
}

.aphps .aphps-button-active span {
	background-color: #1C94C4;
	color: #fff;
}

.aphps td.aphps-text-align-amount,
.aphps th.aphps-text-align-amount {
	text-align: right;
	padding-right: 2em;
}

.aphps #aphps-list-back-button {
	margin-top: 1em;
}

/* Render form */
.aphps .gridster-float .zfli[data-sizex="3"] {
	width:50%;
}
.aphps .gridster-float .zfli[data-sizex="3"] .zfelabel.left {
	min-width: 30%;
}
.aphps .gridster-float .zfli[data-sizex="3"] .zfsubelements {
	width: 68%;
}

.aphps .gridster-float .zfli {
	width:100%;
}
.aphps .zfelabel.left {
	width: 15%;
}
.aphps .gridster-float  .zfli .zfsubelements {
	width: 85%;
}

.aphps .gridster-float li.zfli {
	float: left;
	min-height: 3em;
}

.aphps .gridster-float div.zfsub .element {
	/* clear: inherit; */
}

.aphps .gridster-float div.zfsub.zfrepeatable .element {
	clear: both;
}

.aphps .gridster-float .ui-widget.zfaces {
	float: left;
}

.aphps .gridster-float li.zfli[data-sizey="4"] {
	height: 12em;
	overflow: scroll;
}

.aphps .gridster-float li.zfli[data-sizey="8"] {
	height: 24em;
	overflow: scroll;
}
.aphps .gridster-float li.zfli[data-sizey="10"] {
	height: 30em;
	overflow: scroll;
}

.aphps .aphpsSpinner {
	position: absolute;
	top: 50%;
	left: 50%;
	margin-left: -24px; /* half width of the spinner gif */
	margin-top: -24px; /* half height of the spinner gif */
	z-index:1234;
}
