html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}
/* end Reset */
/************ Estructura principal ************/
body
{
	font-size: 12px;
	font-family: Verdana, Geneva, sans-serif;
	background-color: #ececec;
	color: #000;
}

header
{
	
}

#headerHome
{
	margin: 40px;
	text-align: center;
}

			.headerPrint
			{
				display: none;
			}

#logoHome
{
	width: 75%;
	max-width: 200px;
}

			#logo
			{
				margin: auto;
				max-width: 500px;
				padding: 5px;
				color: #e47202;
			}

			#logoSmall
			{
				width: 40px;
				height: auto;
				float: left;
				margin: 5px 0;
			}

			#logo div
			{
				display: table;
				float: right;
				font-size: 12px;
				
			}

			#logo div a
			{
				display: table-cell;
				vertical-align: middle;
			}

			.logoPrint
			{
				width: 75px;
				height: auto;
				text-align: center;
				margin: 20px 0 0;
			}

#menuTop 
{
	clear: both;
	background-color: #4a7aa7;
	overflow: auto;
}

#menuTop nav
{
	margin: auto;
	max-width: 500px;
}

#menuTop nav ul
{
	overflow:hidden;
	list-style:none;
}

#menuTop nav ul li {
	float:left;
	width: 20%;
	text-align: center;
	/*border: 1px solid #FFF;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;*/
}

#menuTop nav ul li a
{
	color: #FFF;
	padding: 14px 5px;
	display:block;
	text-decoration:none;
	background-color: #4a7aa7;
	font-size: 14px;
}

#menuTop nav ul li a:hover
{
	background-color:#f8c03e;
	text-decoration:none;
	color: #FFF	
}

#menuTop ul li:hover > ul {
 display:block;
}

#menuTop .subMenu
{
	position: absolute;
	z-index:1001;
	display: none;
	max-width: 166px;
	min-width: 100px;
}

#menuTop .subMenu li
{
	width: 100%;
}	

#menuTop nav ul li a.optionActive
{
	background-color: #f8c03e;
	color: #FFF;
	text-decoration:none;
}


#page-container {
    position: relative;
	min-height: 100vh;
	padding-bottom: 60px;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	
}

#content 
{
	margin: auto;
	max-width: 500px;
	padding: 5px;
	clear: both;
	/*overflow: auto;*/
/*border: 1px solid black;*/
}
		
#footer {
    width: 100%;
    padding: 15px;
    position: absolute;
    bottom: 0;
	text-align: center;
	background-color: #4a7aa7;
	color: #FFF;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}			


h1{
	font-size: 16px;
	font-weight: bold;
	text-align: left;
	margin: 20px 0;
	color: #000;
}

			h2{
				font-weight: bold;
				text-align: left;
				margin: 20px 0;
				color: #e47202;
				font-size: 14px;
			}

			h3
			{
				font-weight: bold;
				font-size: 12px;
			}

a
{
	color: #4a7aa7;
	text-decoration: none;
}

a:hover
{
	text-decoration: underline;
}

			hr
			{
				margin: 20px 0;
				clear: both;
			}

			p
			{
				margin: 10px;
			}

			/*.content
			{
				background-color: #E8E8E8;
				padding: 20px;
				border-radius: 10px;
				margin: auto;
			}*/

			/***************** Forms *****************/
input{
	padding: 2px;
}

input[type=number]
{
	text-align: right;
}


			.form
			{
				/*overflow: auto;*/
				display: inline-block;
				width: 100%;
			}

			.form input[type="text"],.form input[type="password"], .form select, .form input[type="date"],.form input[type="number"], .form textarea 
			{
				border: 1px solid black;
				height: 40px;
				padding-left: 5px;
				padding-right: 5px;
				-webkit-box-sizing: border-box;
				-moz-box-sizing: border-box;
				box-sizing: border-box;
				font-size: 12px;
			}
			


.large
{
	display: block;
	margin: 5px 0 10px;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	width: 100%;
	
}

.medium
{
	display: inline-block;
	margin: 5px 0 10px;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	width: 50%;
}

.small
{
	display: inline-block;
	margin: 5px 0 10px;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	
}

			.marcar
			{
				background-color: #fbfbfa;
			}

			.disabled
			{
				color: #7d7d7d;
			}

.button
{
	background-color: #4a7aa7;
	border: 1px solid #4a7aa7;
	color: #fff;
	padding: 10px;
	font-size: 12px;
	font-family: Verdana, Geneva, sans-serif;
	font-weight: bold;
}

.button:hover
{
	text-decoration: none !important;
	background-color: #f8c03e;
	border: 1px solid #f8c03e;
	color: #fff;
}

.buttonSmall
{
	background-color: #4a7aa7;
	border: 1px solid #4a7aa7;
	color: #fff;
	padding: 5px;
	font-size: 10px;
	font-family: Verdana, Geneva, sans-serif;
	font-weight: bold;
}

.buttonBig
{
	background-color: #4a7aa7;
	border: 1px solid #4a7aa7;
	color: #fff;
	padding: 15px;
	font-size: 12px;
	text-align: center;
	font-family: Verdana, Geneva, sans-serif;
	font-weight: bold;
	margin: 10px auto;
	width: 100%;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	
}

.buttonBig:hover
{
	background-color: #f8c03e;
	border: 1px solid #f8c03e;
	color: #fff;
}

a.buttonBig
{
	display: inline-block;
	text-decoration: none;
}

a.buttonBig:hover
{
	text-decoration: none;
}


.icon 
{
	background-color: #4a7aa7;
	border: 1px solid #4a7aa7;
	color: #fff;
}

.icon:hover 
{
	background-color: #f8c03e;
	border: 1px solid #f8c03e;
	color: #fff;
}

			/* Desplegable d'autocomplete */
			.ui-widget
			{
				font-size: 15px !important;
			}

/********************** Popup ************************/
.popup {
	/*left: 0;*/
	position: absolute;
	/*top: 0;*/
	width: 100%;
	z-index: 1001;
}
 
.content-popup {
	margin:0px auto;
	
	position:relative;
	padding:10px;
	max-width:350px;
	border-radius:4px;
	background-color: #d9d9d9;
	box-shadow: 0 2px 5px #666666;
}
 
.content-popup h2 {
	color:#000;
	border-bottom: 1px solid #000;
	margin-top: 0;
	padding-bottom: 4px;
	margin-right: 40px;
}
 
.popup-overlay {
	left: 0;
	position: absolute;
	top: 0;
	width: 100%;
	z-index: 999;
	display:none;
	background-color: #777777;
	cursor: pointer;
	opacity: 0.7;
}
 
.close {
	position: absolute;
	right: 10px;
	cursor: pointer;
}


			.ui-front
			{
				z-index: 1001 !important;
			}

/********************** Estils generals ************************/
.colLeft
{
	padding: 10px;
	float: left;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	/*border: 1px solid red;*/
}

.colRight
{
	padding: 10px;
	float: right;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	/*border: 1px solid blue;*/
}

.left
{
	padding-right: 5px;
	float: left;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

.right
{
	float: right;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

.center
{
	text-align: center;
}

.w25
{
	width: 25%;
}

.w50
{
	width: 50%;
}

.w75
{
	width: 75%;
}

.w100
{
	width: 100%;
}

.clear
{
	clear: both;
}

.textSmall
{
	font-size: 10px;
}

.textBig
{
	font-size: 16px;
}

.textMarcat
{
	color: #FF0000;
}

.eSeparat
{
	color: #FFA500;
}

.textCorporatiu
{
	color: #4a7aa7 !important;
}

			a.linkNoMarcat
			{
				color: #000;
				text-decoration: none;
			}

			a.linkNoMarcat:hover
			{
				text-decoration: underline;
			}

.frame
{
	background-color: #d9d9d9;
	padding: 20px;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	width: 100%;
}


			#options label
			{
				margin-right: 20px;
			}

			/*#date
			{
				border: 1px solid #9F9FA0;
				padding: 10px;
				margin: 20px auto;
				max-width: 250px;
				box-shadow: 2px 2px 5px #9f9fa0;
			}
			*/


.result
{
	padding: 20px;
	margin: 20px auto;
	max-width: 450px;
	line-height: 18px;
}

.error
{
	border: 2px solid #D10000;
}

.ok
{
	border: 2px solid #18C944;
}

.msg
{
	border: 2px solid #4a7aa7;
}


.bold
{
	font-weight: bold;
}


.contTable
{
	display: inline-block;
	width: 100%;
}

			.tableList
			{
				width: 100%;
				border: 1px solid #000;
			}

			.tableList th
			{
				background-color: #e47202;
				color: #FFF;
				
			}

			.tableList th, .tableList td
			{
				border: 1px solid #000;
				padding: 5px;
				vertical-align:top;
			}

			.tableList .border-left
			{
				border-left: 2px solid #000;
			}

.tableTiquet
{
	width: 100%;
}

.tableTiquet th
{
	border-bottom: 1px solid #000;
	font-weight: bold;
	text-align: left;
	vertical-align: bottom;
}

.tableTiquet th, .tableTiquet td
{
	padding: 5px;
}

				
			.tableTiquet .resum
			{
				margin-top: 10px;
				border-top: 2px solid #000;
				text-align: right;
			}
				
			.grid tr
			{
				border-bottom: 1px solid #5A5A5A;
			}	

			.miniTable 
			{
				display: inline-block;
				padding: 5px;
				-webkit-box-sizing: border-box;
				-moz-box-sizing: border-box;
				box-sizing: border-box;
				text-align: left;
			}

			.miniTable tr
			{
				border: none;
			}


			.sep
			{
				border-bottom: 1px dashed #000;
				margin: 100px 0 30px;
			}	

			.print
			{
				display: none;
			}

			/********************** Estils exclusius per elements concrets ************************/


/******************************************************
 * Impressió
 ********************************************************/
@media print
{
	body
	{
		min-height: 600px;
	}
	
	@page 
	{ 
		margin: 0;
		size: auto; 
	}
	
	.headerPrint
	{
		display: block;
	}

	#header
	{
		display: none;
	}

	#content
	{
		max-width: 90%;
	}
	
	.print
	{
		display: block;
	}

	.noPrint
	{
		display: none !important;
	}
	
	h1
	{
		display: none !important;
	}
	
	h2, a
	{
		color: #000;
	}
	
	.frame{
		border: none;
		padding: 0px;
		min-height: 800px;
		height: 100%;
	}
	
	.btnPrint{
		display: none !important;
	}
	
	.tableList th
	{
		background-color: #FFF;
		color: #000;
	}
}

/******************************************************************************************************
 * Definir els media querys
 ******************************************************************************************************/

/* Mobil vertical */
@media only screen and (max-device-width : 480px)
{
	#docVenda #doc
	{
		width: 40%;
	}
	
	.frame{
		border: none;
		padding: 0px;
	}


}

/* Mobil horitzontal, tablet vertical, table horitzontal */
@media only screen and (min-device-width : 481px) and (max-device-width : 768px)
{
	.frame{
		border: none;
		padding: 0px;
	}
}

/* Super mòbils   */
@media only screen and (min-width : 769px)
{

}