/* ------ <amx:panelPage> ------ */
.amx-panelPage{
   position: absolute;
   top: 0; right: 0; bottom: 0; left: 0;	
	display: -webkit-box;
	-webkit-box-orient: vertical;
}

.amx-panelPage-header,.amx-panelPage-footer{
	position: relative;
	overflow: hidden;
	width: 100%;
	height: 44px;
	display: block;
	color: #fff;
	font-weight: bold;
	text-shadow: 0 -1px 1px #254F7A;	
	background-image: -webkit-gradient( 
		    linear, 
		    left bottom, 
		    left top, 
		    color-stop(0, rgba(45,58,73,1)), 
		    color-stop(0.49, rgba(23,31,40,1)), 
		    color-stop(0.5, rgba(39,45,55,1)), 
		    color-stop(1.0, rgba(95,100,107,1)));
}

.amx-panelPage-facet-footer,.amx-panelPage-facet-header{
	position: absolute;
	top: 0; right: 0; bottom: 0; left: 0;
	z-index: 2;
}


.amx-panelPage-facet-primary{
	position: absolute;
	top: 0; right: 50%; bottom: 0; left: 0;
	z-index: 3;
}

.amx-panelPage-facet-secondary{
	position: absolute;
	top: 0; right: 0; bottom: 0; left: 50%;
	z-index: 3;
}

.amx-panelPage-content{
	position: relative;
	overflow: auto;
	-webkit-box-flex: 1;
}

.amx-panelPage-facet-header > .amx-outputText,.amx-panelPage-facet-footer > .amx-outputText{
	display: block;
	font-size: 20px;
	text-align: center;
	margin: 10px auto 0 auto;
	padding: 0;
	text-overflow: ellipsis;
	overflow: hidden;
	white-space: nowrap;
	outline: 0 !important;	
}

/* TODO: need to get rid of JQueryMobile for buttons */

.amx-panelPage-header > .ui-btn > .ui-btn-inner{
	padding: .4em 8px .5em;	
}

/* ------ </amx:panelPage> ------ */

/* ------ <amx:panelLabelAndMessage> ------ */
.amx-panelLabelAndMessage .field-value{
	margin:1px 0 0 0;
}
/* ------ </amx:panelLabelAndMessage> ------ */

/* --------- <amx:panelGroupLayout> --------- */
.amx-panelGroupLayout.amx-style-groupbox {
  margin: 12px 9px 12px 9px;
  border: solid 1px #EAF0F9;
  -webkit-border-radius: 8px;
  background: #fff;
  -webkit-box-shadow:  1px 1px 3px rgba(0,0,0,1);
  padding: 10px;
  overflow: auto;
}
.amx-panelGroupLayout.amx-style-groupbox.amx-wrap {
  display: block;
}
.amx-panelGroupLayout.amx-style-groupbox .amx-outputText {
  font-weight: bold;
  font-size: 18px;
  color: black;
}
.amx-panelGroupLayout.amx-style-groupbox .field-label {
  color: #2f6bac;
  padding-left: 0;
  padding-top: 0;
  padding-bottom: 0;
}
.amx-panelGroupLayout.amx-style-groupbox .field-value {
  padding-top: 0;
  padding-bottom: 0;
}
.amx-panelGroupLayout.amx-style-groupbox .amx-inputText .field-value .wrap {
  padding: 0;
}
.amx-panelGroupLayout > table {
  border-spacing: 0;
}
.amx-panelGroupLayout td {
  padding: 0;
}
/* --------- </amx:panelGroupLayout> --------- */

/* --------- <amx:panelFormLayout> --------- */

/* PFL Generic Styles */
.amx-panelFormLayout {
  margin: 8px 9px 8px 9px;
  padding: 0px;
  border-radius: 8px;
  background: #fff;
  -webkit-box-shadow: 1px 1px 3px rgba(0,0,0,1); /* iOS 4 */
  box-shadow: 1px 1px 3px rgba(0,0,0,1);
}
.amx-panelFormLayout.amx-label-position-start .field-label,
.amx-panelFormLayout.amx-label-position-topStart .field-label {
  text-align: start;
}
.amx-panelFormLayout.amx-label-position-center .field-label,
.amx-panelFormLayout.amx-label-position-topCenter .field-label {
  text-align: center;
}
.amx-panelFormLayout.amx-label-position-end .field-label,
.amx-panelFormLayout.amx-label-position-topEnd .field-label {
  text-align: end;
}
.amx-panelFormLayout.amx-field-halign-start .field-value {
  text-align: start;
}
.amx-panelFormLayout.amx-field-halign-center .field-value {
  text-align: center;
}
.amx-panelFormLayout.amx-field-halign-end .field-value {
  text-align: end;
}
.amx-panelFormLayout.amx-layout-one-row .amx-panelFormLayout_sizing > .field-label,
.amx-panelFormLayout.amx-layout-one-row .amx-panelFormLayout_sizing > .field-value {
  padding: 0;
}
.amx-panelFormLayout_body > *:first-child {
  border-radius: 7.5px 7.5px 0 0;
}
.amx-panelFormLayout_body > *:last-child {
  border-radius: 0 0 7.5px 7.5px;
}
.amx-panelFormLayout.amx-layout-one-row > .amx-panelFormLayout_body > *:nth-child(2) > *:first-child {
  border-radius: 7.5px 0 0 0;
}
.amx-panelFormLayout.amx-layout-one-row > .amx-panelFormLayout_body > *:nth-child(2) > *:last-child {
  border-radius: 0 7.5px 0 0;
}
.amx-panelFormLayout.amx-layout-one-row > .amx-panelFormLayout_body > *:last-child > *:first-child {
  border-radius: 0 0 0 7.5px;
}
.amx-panelFormLayout.amx-layout-one-row > .amx-panelFormLayout_body > *:last-child > *:last-child {
  border-radius: 0 0 7.5px 0;
}
.amx-panelFormLayout .amx-outputText {
  color: black;
}
.amx-panelFormLayout .field-label {
  float: none;
  color: #2f6bac;
  white-space: normal;
}
.amx-panelFormLayout .field-value > .amx-commandLink {
  text-decoration: none;
  color: black;
}
.amx-panelFormLayout .field-value > .amx-commandLink:after {
  content: ' ';
  float: right;
  background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAaCAYAAAC6nQw6AAAAw0lEQVR42qXUMQoCMRCFYUFYWLASBGFB8BKCB1lvmEoQtrIVPICVYCUIHsAbxDfg+qYQZ4Yp/jQhHyQkmdRav+36fooKOqCGc3YaadAe1U9DBNPIQCSOCdKiowbiGKETqhlMhiRGSGPnOEYoiRFKYoTyGKE89hsiNvNiXJjDigeao8sf5IU2FrLwINZhL9HVg0gpxLqQHboZyNZ6IoLc/QjTyCqOsBFZo0ccYeN2nhlE4n9tIInPn4gb0piBmJDGChF/b1g2T6rFGc2MAAAAAElFTkSuQmCC');
  background-repeat: no-repeat;
  background-position: right center;
  width: 17px; /* 9 for the image width plus 8 padding */
  height: 13px;
  margin-top: 5px;
  -webkit-background-size: 9px 13px; /* actual size is 18x26 */
}

/* PFL One Row Layout Styles */
.amx-panelFormLayout.amx-layout-one-row > .amx-panelFormLayout_body {
  width: 100%;
  table-layout: fixed;
  display: table;
}
.amx-panelFormLayout.amx-layout-one-row > .amx-panelFormLayout_body > * {
  display: table-row;
}
.amx-panelFormLayout.amx-layout-one-row > .amx-panelFormLayout_body > * > * {
  display: table-cell;
}
.amx-panelFormLayout.amx-layout-one-row > .amx-panelFormLayout_body > *:first-child > *,
.amx-panelFormLayout.amx-layout-one-row > .amx-panelFormLayout_body > *:nth-child(2) > * {
  border-top: none;
}
.amx-panelFormLayout.amx-layout-one-row > .amx-panelFormLayout_body > * > * {
  border-top: solid 1px #BBBBBB;
}
.amx-panelFormLayout.amx-layout-one-row .field-label {
  margin: 0;
  padding: 12px 5px 12px 10px;
  width: 33%;
}
.amx-panelFormLayout.amx-layout-one-row .field-value {
  margin: 0;
  padding: 12px 10px 12px 5px;
}

/* PFL Separate Row Layout Styles */
.amx-panelFormLayout.amx-layout-separate-rows > .amx-panelFormLayout_body,
.amx-panelFormLayout.amx-layout-separate-rows > .amx-panelFormLayout_body > * ,
.amx-panelFormLayout.amx-layout-separate-rows > .amx-panelFormLayout_body > * > * {
  display: block;
}
.amx-panelFormLayout.amx-layout-separate-rows > .amx-panelFormLayout_body > *:first-child {
  border-top: none;
}
.amx-panelFormLayout.amx-layout-separate-rows > .amx-panelFormLayout_body > * {
  border-top: solid 1px #BBBBBB;
}
.amx-panelFormLayout.amx-layout-separate-rows .field-label {
  padding: 4px 10px 0 10px;
}
.amx-panelFormLayout.amx-layout-separate-rows .field-value {
  padding: 0 10px 4px 10px;
}
/* --------- </amx:panelFormLayout> --------- */