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;
}

header
{
	
}

.headerPrint
{
	display: none;
}

#headerHome
{
	text-align: center;
}

#logoHome
{
	width: 75%;
	max-width: 300px;
}

#logo
{
	margin: auto;
    max-width: 500px;
	padding: 5px;
	color: #000000;
}

.logoSmall
{
	width: 75px;
	height: auto;
	float: left;
	padding: 5px 10px;
}

#logo div
{
	display: table;
	float: right;
	font-size: 12px;
	
}

#logo div a
{
	display: table-cell;
	vertical-align: middle;
}

.logoMedium
{
	max-width: 100px;
	height: auto;
	margin: 5px 10px;
	vertical-align: middle;
}

.logoPrint
{
	width: 75px;
	height: auto;
	text-align: center;
	margin: 5px 0 0;
}

/* Menú superior */
#menuTop 
{
	clear: both;
	background-color: #000000;
	overflow: auto;
}

#menuTop nav
{
	margin: auto;
    max-width: 500px;
}

#menuTop nav ul
{
	overflow:hidden;
	list-style:none;
}

#menuTop nav > ul li {
	float:left;
	width: 33.33%;
	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: #000000;
	font-size: 14px;
}

#menuTop nav ul li a:hover
{
	background-color: #4E361E;
	text-decoration:none;
	
}

#menuTop ul li:hover > ul {
	display:block;
}

#menuTop .subMenu
{
	position: absolute;
	z-index:1001;
	display: none;
	max-width: 160px;
}

#menuTop .subMenu li
{
	width: 100%;
}	
/* END menú superior */

#content 
{
	margin: auto;
    max-width: 500px;
	padding: 5px;
	clear: both;
	/*overflow: auto;*/
/*border: 1px solid black;*/
}

#footer{
	clear: both;
	margin: 20px 0;
	text-align: center;
	font-size: 10px;
	border-top: 1px solid #000000;
	padding-top: 10px;
}

/************ Estils principals. Sobre tags ************/

h1{
	font-size: 16px;
	font-weight: bold;
    text-align: left;
	margin: 20px 0;
}

h2{
	font-weight: bold;
    text-align: left;
	margin: 20px 0;
	color: #4E361E;
	font-size: 14px;
}

h3
{
	font-weight: bold;
	font-size: 12px;
	margin: 10px 0;
}

a
{
	color: #4E361E;
	text-decoration: none;
}

a:hover
{
	text-decoration: underline;
}

hr
{
	margin: 20px 0;
	clear: both;
}

p
{
	margin: 10px;
}

input{
	padding: 2px;
}

/*.content
{
	background-color: #E8E8E8;
	padding: 20px;
	border-radius: 10px;
	margin: auto;
}*/

/***************** Forms *****************/
.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="checkbox"], .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;
}

.contForm
{
	border: 1px solid black;
	min-height: 40px;
	margin: 5px 0 10px;
	padding: 8px 0;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	font-size: 12px;
}

.marcar
{
	background-color: #fbfbfa;
}

.disabled
{
	color: #7d7d7d;
}

.button
{
	background-color: #000000;
	color: #fff;
	padding: 10px;
	font-size: 12px;
	font-family: Verdana, Geneva, sans-serif;
	font-weight: bold;
}

.buttonSmall
{
	background-color: #000000;
	color: #fff;
	padding: 5px;
	font-size: 10px;
	font-family: Verdana, Geneva, sans-serif;
	font-weight: bold;
}

/********************** 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:#FFFFFF;
    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;
}

/********************** 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;
}

.w25
{
	width: 25%;
}

.w50
{
	width: 50%;
}

.w75
{
	width: 75%;
}

.w100
{
	width: 100%;
}

.clear
{
	clear: both;
}

.textSmall
{
	font-size: 10px;
}

.textMarcat
{
	color: #FF0000;
}

.frame
{
	border: 1px solid black;
	padding: 20px;
	border-radius: 10px;
	margin: auto;
	max-width: 800px;
}



#options label
{
	margin-right: 20px;
}

/*#date
{
	border: 1px solid #9F9FA0;
	padding: 10px;
    margin: 20px auto;
    max-width: 250px;
	box-shadow: 2px 2px 5px #9f9fa0;
}*/



.icon
{
	background-color: #000000;
	padding: 5px;
}

.result
{
	padding: 20px;
	margin: 20px auto;
	max-width: 450px;
	line-height: 18px;
}

.error
{
	border: 2px solid #D10000;
}

.ok
{
	border: 2px solid #18C944;
}

.bold
{
	font-weight: bold;
}

.contTable
{
	display: inline-block;
	margin: 40px 0;
	width: 100%;
}

.tableList
{
	width: 100%;
	border: 1px solid #000;
}

.tableList th
{
	background-color: #000000;
	color: #FFF;
	vertical-align:bottom;
}

.tableList th, .tableList td
{
	border: 1px solid #000;
	padding: 5px;
	
}


.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 tr td
{
	vertical-align: middle;
}

.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: 150px 0 30px;
}	

.print
{
	display: none;
}

/******************************************************
 * Impressió
 ********************************************************/
@media print
{
	@page 
	{ 
		margin: 0;
		size: auto; 
	}
	
	.headerPrint
	{
		display: block;
	}

	#header
	{
		display: none;
	}

	.print
	{
		display: block;
	}

	.noPrint
	{
		display: none !important;
	}
	
	h1
	{
		display: none !important;
	}
	
	h2, a
	{
		color: #000;
	}
	
	.frame{
		border: none;
		padding: 0px;
	}
	
	.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;
	}
	
	.logoSmall {
		padding: 5px;
	}	
}

/* Mobil horitzontal, tablet vertical, table horitzontal */
@media only screen and (min-device-width : 481px) and (max-device-width : 768px)
{
	.frame{
		border: none;
		padding: 0px;
	}
	
	.logoMedium
	{
		max-width: 150px;
	}
}

/* Super mòbils   */
@media only screen and (min-width : 769px)
{
	.logoMedium
	{
		max-width: 200px;
	}	
}