/* mobile */
form .mobileText {
	width: 180px;
}

.mobileMenu {
	margin: 0 auto;
	border-radius:7px 7px 7px 7px;
	background-color: #f4f4f4;
	box-shadow: 1px 1px 7px #7c7c7c;
}

.mobileMenu div {
	border-bottom: 1px dotted #bcbcbc;
	color: black;
	font-size: 12pt;
	font-weight: bold;
	padding-left: 6px;
	padding-top: 7px;
	height: 27px;	
}

.mobileMenu div:last-child {
	border-bottom: 0px;
}

.mobileMenu div:hover {
	cursor: pointer;
	background-color: #dcdedd;
	color: black;
}

/* page title banner mobile*/
.mobileBanner {
	font-weight: bold;
	font-size: 14pt;
	padding: 5px;
	color: #ffffff;
	height: 25px; 
	margin-bottom: 0px;
	margin-top: 0px;
	text-shadow: 1px 1px 0px #1d1d1d;
	background: -webkit-linear-gradient(left, rgba(160,160,160,1) 0%,rgba(222,224,223,1) 100%); /* Safari 5.x */ 
	background: linear-gradient(to right, rgba(160,160,160,1) 0%,rgba(222,224,223,1) 100%);
	text-align:center;
}

.mobileBanner img {
	float:right; 
	margin-right:10px;
	cursor: pointer;
}

/* end mobile */


/* html, body with margin=0 and height=100% are important to support lightbox on IE8 */
html, body {
	height:100%; 
	margin: 0px;
	font-size: 11pt;
	font-family: 'Century Gothic', CenturyGothic, AppleGothic, sans-serif;
	background-image: url(img/fondo2.jpg);
	line-height: 1.5;

} 


body {
  position: relative;
  min-height: 100%;
}


/* popup html alert/confirm box */
.alertbox {
	border-radius: 7px;
	box-shadow: 0px 0px 15px 3px #61606c;
	background-color: #ebebeb;
	width: 250px;
	height: 150px;
	text-align: center;
	behavior: url(/smn_base/pie.htc); /* IE8 */
}

.alertbox div {
	height: 100px;
	width: 250px;
	background-color: #ffffff;
	border-radius: 7px 7px 0px 0px;
	display: table-cell;
	vertical-align: middle;
	padding-left: 5px;
	padding-right: 5px;
	behavior: url(/smn_base/pie.htc); /* IE8 */
}

.alertbox button {
	margin-top: 13px;
}

/* data entry forms */
form {
	text-align: center;
	/*padding-left: 0px;
	padding-bottom: 5px;
	margin: 0 auto;
	border-radius: 5px;
	box-shadow: 1px 1px 7px #7c7c7c;*/
	behavior: url(/smn_base/pie.htc); /* IE8 */
}

form h1 {
	padding-top:5px;
	padding-left: 5px;
	font-size: 12pt;
	font-weight: bold;
	text-align: left;
}

form table {
	width:100%;
	margin: 0px;
	border-collapse:collapse;
	text-align: left;
}

form table td {
	padding-left: 5px;
	padding-top: 5px;
	vertical-align: top;
	font-size: 10pt;
}

form table td:first-child {
	text-align:right;
}

label {
	display:block;
}

input, select, textarea {
 margin:0px;
 width: 95%;
} 

form input[type="submit"], input[type="button"] {
	width: 170px;
	margin: 0 auto;
	margin-top: 5px;
}

form .errormsg {
	color: #ff0000;
	font-size: 12px;
	font-weight: normal;
}

form .date {
	width: 90px;
}

form .numeric {
	width: 110px;
	text-align: right;
}

form img {
	cursor: pointer;
}

/** data grid **/
.datagrid {
	font-size: 10pt;
	background-color: #dadada;
	text-align: center;
	padding: 0px;
	margin: 0 auto;
	border-radius: 5px;
	box-shadow: 1px 1px 7px #7c7c7c;
	border-spacing: 1px;
	margin-top:10px; 
	layout: fixed;
	behavior: url(/smn_base/pie.htc); /* IE8 */		
}

.datagrid tr:first-child th:first-child {
	border-radius:5px 5px 0px 0px;
	font-weight: normal;
	font-size: 12px;
}

.datagrid tr:last-child td:last-child {
	border-radius:0px 0px 5px 0px;
}		

.datagrid tr:last-child td:first-child {
	border-radius:0px 0px 0px 5px;
}		

/* alternate row colors */
.datagrid tr:nth-child(even) td {
	background-color: #f3f2fd;
}

.datagrid th {
	background-color: #f4f4f4;
	padding: 3px;
}

.datagrid th.sortable:hover {
	background-color: #c7c7c7;
	color: #ffffff;
	cursor: pointer;
}
	
.datagrid td {
	background-color: #ffffff;
	padding: 3px;
}

.datagrid img {
	cursor: pointer;
}

/* para aņadir barra seņalizadora al grid */
.rowhover tr:hover td {
	background-color: #c7c7c7;
	color: #ffffff;
	cursor: pointer;
}

/* caso especial grid de picklist con una sola celda por row */
.oneCellRow tr:last-child td:first-child {
	border-radius:0px 0px 5px 5px;
}

/** end data grid **/

/* lightbox */
.overlay {
	display: none;
	position: absolute;
	top: 0px;
	left: 0px;
	width: 100%;
	height: 100%;
	background-color: #b5b5b5;
	z-index: 1001;
	opacity: .50;
	filter: alpha(opacity = 50);
}

/* page title banner */
.banner {
	font-weight: bold;
	font-size: 14pt;
	padding: 5px;
	color: #ffffff;
	height: 22px; 
	margin-bottom: 0px;
	margin-top: 0px;
	text-shadow: 1px 1px 0px #1d1d1d;
	background: -webkit-linear-gradient(left, rgba(160,160,160,1) 0%,rgba(222,224,223,1) 100%); /* Safari 5.x */ 
	background: linear-gradient(to right, rgba(160,160,160,1) 0%,rgba(222,224,223,1) 100%);
	-pie-background: linear-gradient(left, rgba(160,160,160,1) 0%,rgba(222,224,223,1) 100%); /* IE8 */
	behavior: url(/smn_base/pie.htc); /* IE8 */	
	
	/* SIMONE */
	text-align: center;
	position: relative;
}

/* SIMONE */
.banner_div_left {
	position: absolute;
	float: left;
}

/* popup con iframe */
.dialogbox {
	box-shadow: 0px 0px 15px 3px #61606c;
	behavior: url(/smn_base/pie.htc); /* IE8 */
}

.info {
	width:100%; color:red; font-weight:bold; text-align:center;	
}

.bannerDialog {
	font-weight: bold;
	font-size: 11pt;
	padding: 5px;
	padding-top:0px;
	color: #ffffff;
	height: 18px; 
	margin-bottom: 0px;
	margin-top: 0px;
	text-shadow: 1px 1px 0px #1d1d1d;
	background: -webkit-linear-gradient(left, rgba(160,160,160,1) 0%,rgba(222,224,223,1) 100%); /* Safari 5.x */ 
	background: linear-gradient(to right, rgba(160,160,160,1) 0%,rgba(222,224,223,1) 100%);
	-pie-background: linear-gradient(left, rgba(160,160,160,1) 0%,rgba(222,224,223,1) 100%); /* IE8 */
	behavior: url(/smn_base/pie.htc); /* IE8 */	
}

.bannerDialog img {
	margin-top:3px;
}


/* menu */
.menuBody {
	margin-left: 0px;
	margin-right: 0px;
	border-right: dotted 1px silver;
}

.menuContainer {
	width: 100%;
	border-bottom: dotted 1px silver;
}

.menuTitle {
	background-color: white;
	color: black;
	font-size: 10pt;
	font-weight: bold;
	padding-left: 6px;
	padding-top: 7px;
	height: 24px;
}

.submenuTitle {
	background-color: white;
	color: black;
	font-size: 10pt;
	font-weight: bold;
	padding-left: 16px;
	padding-top: 0px;
	height: 24px;
}

.menuItems {
	text-align: left;
	background-color: white;
}

.menuItem {
	padding-left: 16px;
	color: black;
	font-size: 10pt;
	font-weight: normal;
}

div.menuTitle:hover,div.menuItem:hover,div.submenuTitle:hover {
	cursor: pointer;
	background-color: #e6e6ff;
	color: blue;
}

/* panel iconografico */
.panel {
	border-radius: 7px;
	font-size: 10pt;
	background-color: #dadada;
	padding: 0px;
	margin: 0 auto;
	box-shadow: 1px 1px 7px #7c7c7c;
	border-spacing: 1px;
	margin-top: 20px;
	margin-bottom: 20px;	
	width: 600px;
	behavior: url(/smn_base/pie.htc); /* IE8 */	
}

.panel tr:first-child td:last-child {
	border-radius:0px 7px 0px 0px;
}		

.panel tr:first-child td:first-child {
	border-radius:7px 0px 0px 0px;
}

.panel tr:last-child td:last-child {
	border-radius:0px 0px 7px 0px;
}		

.panel tr:last-child td:first-child {
	border-radius:0px 0px 0px 7px;
}

.panel td {
	background-color: #fcfcfc;
	padding: 3px;
	text-align: center;
	height: 90px;
	width: 25%;
}

.panel td:hover {
	background-color: #e6e6ff;
	cursor: pointer;
}

/* galeria de imagenes */

.hgrid td {
	padding: 5px; 
	vertical-align: top; 
	height: 140px; 
	width: 160px; 
	padding-top: 10px; 
	font-size: 8pt;
}

.hgrid td img {
	box-shadow: 0px 0px 15px 1px #61606c;
	border-radius: 5px;
	margin-top: 10px;
	margin-bottom: 10px;
	width: 100px;
	height: 80px;
	padding: 5px;
}


.record {
	background-color: #f4f4f4;
	padding: 0px;
	margin: 0 auto;
	margin-top: 10px;
	box-shadow: 1px 1px 7px #7c7c7c;
}

.record tr td:first-child {
	text-align:right;
	font-weight: bold;
	padding-right: 5px;
}

.record tr td:last-child  {
	background-color: #ffffff;
	padding-left: 5px;
}

.exportPDF {
		padding-left:5px; 
		background-origin:content-box; 
		display:block; 
		margin:0 auto; 
		height: 25px; 
		width:150px; 
		background-image:url('/smn_base/images/pdf.png'); 
		background-repeat:no-repeat; 
		background-position:left center;
}

/* SIMONE */
.image_left {
	padding-left:3%; 
	float: left;
}

.image_right {
	padding-right:3%; 
	float: right;
}

.alert {
	text-align: center;
	color: blue;
	border-style: solid;
	border-width: 1px;
	border-color: #CCCCCC;
	width: 600px;
	background-color: #F7F7F7;
	padding: 5px;
	font-family: "Trebuchet MS", Verdana, Arial;
	font-size: 10pt;
	margin-left: 230px;
}
img {
  vertical-align: middle;
  max-width: 100%;
}
button {
  cursor: pointer;
  border: 0;
  padding: 0px;
  background-color: transparent;
}

/* Container */
.container {
  position: absolute;
  width: 500px;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  animation: intro .7s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Profile Card */
.profile {
  position: relative;
}
.profile--open {
}
.profile--open  {
  visibility: visible;
  height: auto;
  opacity: 1;
  transform: translateY(-6em);
  padding-top: 12em;
}
.profile--open .profile__fields {
  opacity: 1;
  visibility: visible;
}
.profile--open .profile__avatar {
  transform: translate(-50%, -1.5em);
  /*border-radius: 50%;*/
}
.profile__form {
  visibility: visible;
  height: auto;
  opacity: 1;	
  position: relative;
  height: 500px;
  background: #EBEAEF;
  padding: 20px; 0px; 0px; 0px;
  border-radius: 15px;
  -webkit-filter: drop-shadow(0 0 2em rgba(0,0,0,0.2));
  transition: 
    opacity .4s ease-in-out,
    height .4s ease-in-out,
    transform .4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    padding .4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.profile__fields {
  opacity: 0;
  padding-top: 20px;
  visibility: hidden;
  transition: opacity .2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  margin-top: 170px;
}
.profile__avatar {
  position: absolute;
  z-index: 1;
  left: 50%;
  transform: translateX(-50%);
  /*border-radius: 1.25em;*/
  overflow: hidden;
  width: 400px;
  height: 156px;
  display: block;
  padding-top:0px;
  transition: transform .3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  will-change: transform;
  margin-top:50px;
  
}
.profile__avatar:focus {
  outline: 0;
}
.profile__footer {
  padding-top: 1em;
  text-align: center;

}


/* Form */
.field {
  position: relative;
  margin-bottom: 1em;
  text-align: center;
}
.label {
  position: absolute;
  height: 2rem;
  line-height: 2rem;
  bottom: 0;
  color: #999;
  transition: all .3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.input {
  width: 50%;
  font-size: 100%;
  border: 0;
  border-radius: 15px;
  padding: 0px 0px 0px 50px;
  background-color: #CFD0D5;
  height: 2rem;
  line-height: 2rem;
  border-bottom: 1px solid #eee;
  color: #000;
  transition: all .2s ease-in;
}
.input:focus {
  outline: 0;
  border-color: #ccc;
}

/* Using required and a faux pattern to see if input has text from http://stackoverflow.com/questions/16952526/detect-if-an-input-has-text-in-it-using-css */
.input:focus + .label,
input:valid + .label {
  transform: translateY(-100%);
  font-size: 0.75rem;
  color: #ccc;
}

/* Button */
.btn {
  border: 0;
  font-size: 0.75rem;
  height: 2.5rem;
  line-height: 2.5rem;
  padding: 0 1.5rem;
  color: white;
  background: #EC6A00;
  text-transform: uppercase;
  border-radius: .25rem;
  letter-spacing: .2em;
  transition: background .2s;
  margin-left: auto;
  margin-right: auto;


}
.btn:focus {
  outline: 0;
}
.btn:hover,
.btn:focus {
  background: #A678E2;
}

/* Intro animation */
@keyframes intro {
  from {
    opacity: 0;
    top: 0;
  }
  to {
    opacity: 1;
    top: 50%;
  }
}
