* {
  box-sizing: border-box;
}

html, body {
	margin: 0;
	padding: 0;
	font-family: Helvetica, Arial, Tahoma, sans-serif;
	font-size: 16px;
	background-color: #f2f2f2;	
}

header {
	width: 100%;
	height: 64px;
	line-height: 32px;
}
header a {
	color: #cf2121;
	text-decoration: none;
}
.logo {
	font-size: 20px;
}
.logo::before {
	content: '';
	display: inline-block;
	width: 32px;
	height: 32px;
	margin: 10px 8px 0 20px;
	background-image: url('../img/ico-adz22.svg');
	background-size: contain;
	background-position: center center;
	background-repeat: no-repeat;
	position: relative;
    top: 8px;
}
.titolosezione {
	display: block;
    margin-left: 60px;
    width: 200px;
    height: 18px;
    font-size: 12px;
    line-height: 18px;
    margin-top: -8px;
    color: #7c7c7c;
}

.opzioni {
	display: block;
	position: relative;
	width: 100%;
	height: 32px;
	line-height: 32px;
	margin-bottom: 8px;
}
.areasx {
	display: inline-block;
	position: relative;
	width: auto;
	float: left;
}	
.cerca {
	display: inline-block;
	position: relative;
	width: auto;
	float: right;
}	
#filtro {
	width: auto;
	max-width: 300px;
	padding: 4px 8px;
}

a.nuovo {
	background-color: #cf2121;
	color: #ffffff;
	padding: 6px 10px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	text-decoration: none;
}	

a.pscarica {
	display: inline-block;
	background-color: #c7e6db;
	color: #000000;
	padding: 4px 4px;
	border: none;
	border-radius: 2px;
	cursor: pointer;
	text-decoration: none;
	width: 100px;
	text-align: center;
}
a.pqrcode {
	display: inline-block;
	background-color: #f8d774;
	color: #000000;
	padding: 4px 4px;
	border: none;
	border-radius: 2px;
	cursor: pointer;
	text-decoration: none;
	width: 100px;
	text-align: center;
}
a.piduser {
	width: 36px;
    background: #cf21212e;
    position: relative;
    margin: 0 auto;
    color: #000000;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    border-radius: 2px;
    display: inline-block;
    padding: 4px;
}

a.ordine {
	color: #ffffff;
}

a.elimina {
	background-color: #ff0000;
    color: #ffffff;
    padding: 6px 8px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    float: right;
    font-size: 10px;
    letter-spacing: 0.5px;
	text-decoration: none;
}
/*
Max width before this PARTICULAR table gets nasty. This query will take effect for any screen smaller than 760px and also iPads specifically.
*/
table {
	border-collapse: collapse;
	width: 100%;
	font-size: 12px;
}

table {
	border: 1px solid #9e9e9e;
}
th, td {
	border: 1px solid #9e9e9e;
	padding: 4px;
}


tr.intestazione {
	background: #5c5c5c;
	color: #ffffff;
}

td.centrata {
	text-align: center;
}
td.completato {
	font-weight: bold;
	color: #cf2121;
}

input[type=text], input[type=email], input[type=tel], input[type=password], select, textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  resize: vertical;
  font-size: 16px;
}
input[type=text].opzione {
	background-color: #fff490;
}
input[type=text].opzione.nascosto {
	display: none;
}
label {
  padding: 8px 8px 8px 0;
  display: inline-block;
  color: #2e2e2e;
  font-size: 14px;
}
input[type=submit], button.submit {
  background-color: #cf2121;
  color: #ffffff;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  float: right;
}
input[type=submit]:hover, button.submit:hover {
  background-color: #45a049;
}
input[type=submit].disabilitato, button.submit.disabilitato {
  background-color: #dddddd;
  color: #9c9c9c;
}
.field-icon {
    float: right;
    margin-right: 4px;
    margin-top: -36px;
    position: relative;
    z-index: 2;
    background-image: url('../img/occhio32.svg');
	background-size: 32px 64px;
	background-position: 0 0;
	background-repeat: no-repeat;
    width: 32px;
    height: 32px;
    cursor: pointer;
}
.field-icon.fa-eye-slash {
	background-position: 0 -32px;
}
.container {
  border-radius: 5px;
  background-color: #f2f2f2;
  padding: 20px;
}
.col-25 {
  float: left;
  width: 25%;
  margin-top: 6px;
}
.col-75 {
  float: left;
  width: 75%;
  margin-top: 6px;
}
.row.colorata {
	background-color: #dddddd;
}
.row.colorata.classeatb1 {
	background-color: #c3ffae;
}
.row.colorata.classeatb1.opzione.nascosta {
	display: none;
}
.row.colorata.classeatb2 {
	background-color: #ffc4ff;
}
.row.colorata.classeatb2.opzione.nascosta {
	display: none;
}
.row.colorata.classecrs1 {
	background-color: #b3f6fb;
}
.row.colorata.classecrs1.opzione.nascosta {
	display: none;
}
.row.colorata.classemrsa {
	background-color: #ffad90;
}
.row.colorata.classemrsa.opzione.nascosta {
	display: none;
}
.row.colorata.classecompletato {
	background-color: #cf2121;
	color: #ffffff;
}
.row.colorata.classecompletato label {
	color: #ffffff;
}
.row.colorata .col-25, .row.colorata .col-75 {
	margin-top: 0;
}
.row.colorata label {
	padding: 0;
    font-size: 12px;
    margin: 6px 0 0 8px;
}
.row.centrata {
	text-align: center;
}
/* Clear floats after the columns */
.row:after {
  content: "";
  display: table;
  clear: both;
  margin-bottom: 12px;
}
footer {
	width: 100%;
	height: 40px;
	line-height: 32px;
	position: absolute;
	bottom: 0;
	font-size: 12px;
}
footer a {
	color: #cf2121;
	text-decoration: none;
}
.copyright {
	position: relative;
	margin: 0 auto;
	padding: 4px 20px;
	color: #7c7c7c;
}

.avviso {
	color: #ff0000;
	font-size: 16px;
	font-weight: normal;
}
.max600 {
	max-width: 600px;
	margin: 0 auto;
}

a.modulo {
	color: #cf2121;
	text-decoration: none;
	font-size: 14px;
}



#menudx {
	position: absolute;
    right: 20px;
    top: 4px;
    font-size: 14px;
}

a.logout::before {
	content: '';
	display: inline-block;
	width: 14px;
	height: 14px;
	border-left: 1px solid #000000;
	margin-left: 14px;
}

.tabella {
	position: relative;
	display: table;         
	width: 100%;         
	background-color: #ffffff;
	border-spacing:0;
	border-right: 1px solid #8b8b8b;
	border-bottom: 1px solid #8b8b8b;
}
.riga {
	position: relative;
	display: table-row;
	width: 100%;
	clear: both;	
}
.riga::before {
	content: '';
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 0;
	border-top: 1px solid #8b8b8b;
}
.riga.intestazione {
	background-color: #cf2121;
	color: #ffffff;
}
.riga.dati:nth-child(odd) {
	background-color: #f0f0f0;
}
.cella {
	position: relative;
	float: left;
    display: table-column;
    width: 12.5%;
	height: 100%;
    border-left: 1px solid #8b8b8b;
    padding: 4px;
    font-size: 12px;
}

img.qrcode {
	width: 100%;
    max-width: 212px;
    text-align: center;
}
a.pulsante {
	background-color: #cf2121;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 4px;
    text-decoration: none;
    float: right;	
	text-align: center;
}

.container.fs14 {
	font-size: 14px;
}
span.linkatt {
	font-weight: normal;
	color: #0000ff;	
}
span.codice {
	display: block;
	width: 100%;
	font-size: 32px;
	font-weight: bold;
	color: #cf2121;
	text-align: center;	
}

img.ico-esame {
	width: 32px;
	height: 32px;
}

span.idnumero {
	background: #cf2121;
    color: #fff;
    padding: 4px;
	display: inline-block;
    float: left;
    margin-right: 8px;
}

span.nomerif {
	display: inline-block;
    width: auto;
	padding: 4px 0;
}

span.gruppo1 {
	display: inline-block;
    background-color: #ffcbc7;
    color: #000000;
    padding: 4px 4px;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    text-decoration: none;
    width: 80px;
    text-align: center;
	
}

span.gruppo2 {
	display: inline-block;
    background-color: #c7dbe6;
    color: #000000;
    padding: 4px 4px;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    text-decoration: none;
    width: 80px;
    text-align: center;
	
}

span.cambiagruppo {
	display: none;
	background: #f00;
    width: 80px;
    padding: 4px;
    border-radius: 2px;
    margin: 4px auto;
	text-align: center;
    color: #ffffff;
	cursor: pointer;
}
span.cambiagruppo.attivo {
	display: block;
}
/* PAGINA FIRMA */

p.regolamento {
	font-size: 14px;
    line-height: 20px;	
	margin-top: -0.6em;
    margin-bottom: 1em;
}

/* opzioni radio button */
.opzioneradio {
	display: inline-block;
	position: relative;
	padding-left: 35px;
	margin-bottom: 12px;
	margin-right: 36px;
	cursor: pointer;
	font-size: 14px;
	font-weight: bold;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

/* Hide the browser's default checkbox */
.opzioneradio input {
	position: absolute;
	opacity: 0;
	cursor: pointer;
	height: 0;
	width: 0;
}

/* Create a custom checkbox */
.checkmark {
	position: absolute;
	top: 0;
	left: 0;
	height: 25px;
	width: 25px;
	border: 1px solid #777;
	border-radius: 4px;
}

/* On mouse-over, add a grey background color */
.opzioneradio:hover input ~ .checkmark {
	background-color: #ccc;
}

/* When the checkbox is checked, add a blue background */
.opzioneradio input:checked ~ .checkmark {
	background-color: #cf2121;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
	content: "";
	position: absolute;
	display: none;
}

/* Show the checkmark when checked */
.opzioneradio input:checked ~ .checkmark:after {
	display: block;
}

/* Style the checkmark/indicator */
.opzioneradio .checkmark:after {
	left: 8px;
	top: 4px;
	width: 5px;
	height: 10px;
	border: solid white;
	border-width: 0 3px 3px 0;
	-webkit-transform: rotate(45deg);
	-ms-transform: rotate(45deg);
	transform: rotate(45deg);
}



/* PAGINA FIRMA /FINE */

table.modelloL4731 td {
	text-align: center;
}
table.modelloL4731 td.selezionata {
	color: #ffffff;
	background: #ff0000;
}


@media screen and (max-width: 800px) {
	.riga.intestazione {
		display:none;
	}
	.riga {
		display: block;
		clear: unset;	
	}
	.cella {
		float: unset;
		display: block;
		width: 100%;
		padding-left: 100px;
	}
	.cella::before {
		content: '';
		display: block;
		position: absolute;
		top: 0;
		left: 0;
		width: 80px;
		height: 100%;
		padding: 4px;
		font-style: italic;
		color: #828282;
	}
	.cella.c-cognome::before {
		content: 'COGNOME';
	}
	.cella.c-nome::before {
		content: 'NOME';
	}
	.cella.c-animale::before {
		content: 'ANIMALE';
	}
	.cella.c-email::before {
		content: 'EMAIL';
	}	
	.cella.c-telefono::before {
		content: 'TELEFONO';
	}	
	.cella.c-qrcode::before {
		content: 'QR CODE';
	}
	.cella.c-contratto::before {
		content: 'CONTRATTO';
	}
	
	footer {
		position: relative;
	}
}

/* Responsive layout - when the screen is less than 600px wide, make the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 600px) {
	.col-25, .col-75, input[type=submit], button.submit, a.pulsante {
		width: 100%;
		margin-top: 0;
	}
  
	span.nomerif {
		display: inline-block;
		max-width: 540px;
		padding: 4px 0;
		margin-top: 8px;
	}
}

@media only screen 
and (max-width: 760px), (min-device-width: 768px) 
and (max-device-width: 1024px)  {

	
	.opzioni {
		/*height: 64px;*/
		min-height: 46px;
		text-align: center;
	}
	.areasx {
		display: inline-block;
		position: relative;
		width: auto;
		float: left;
	}	
	.cerca {
		display: inline-block;
		position: relative;
		width: 100%;
		float: right;
	}	
	#filtro {
		width: 100%;
		max-width: unset;
		padding: 4px 8px;
	}
	
	a.nuovo {	
		display: inline;
		margin: 0;		
		font-size: 10px;
	}
	
	a.piduser, span.gruppo1, span.gruppo2 {
		width: 100px;
	}
	span.cambiagruppo {
		margin: 4px 0;
		width: 100px;
	}
	/* Force table to not be like tables anymore */
	table {
		border: 0;
	}
	
	table, thead, tbody, th, td, tr {
		display: block;
	}

	/* Hide table headers (but not display: none;, for accessibility) */
	thead tr {
		position: absolute;
		top: -9999px;
		left: -9999px;
	}

	tr {
		margin: 0 0 1rem 0;
	}

	tr:nth-child(odd) {
		background: #ffffff;
		border: 1px solid #a5a5a5;
	}
	
	tr:nth-child(even) {
		background: #ffffff;
		border: 1px solid #a5a5a5;
	}

	td {
		/* Behave  like a "row" */
		border: none;
		border-bottom: 1px solid #eee;
		position: relative;
		padding-left: 50%;
	}

	td:before {
		/* Now like a table header */
		position: absolute;
		/* Top/left values mimic padding */
		top: 0;
		left: 6px;
		width: 45%;
		padding-right: 10px;
		white-space: nowrap;
		padding-top: 5px;
	}
	
	td.completato {
		font-weight: normal;
		color: #000000;
	}
	/*
	Label the data
	You could also use a data-* attribute and content for this. That way "bloats" the HTML, this way means you need to keep HTML and CSS in sync. Lea Verou has a clever way to handle with text-shadow.
	*/
	td:nth-of-type(1):before { content: "ID"; }
	td:nth-of-type(2):before { content: "COGNOME"; }
	td:nth-of-type(3):before { content: "NOME"; }
	td:nth-of-type(4):before { content: "SESSO"; }
	td:nth-of-type(5):before { content: "CF"; }
	td:nth-of-type(6):before { content: "COMUNE_NASCITA"; }
	td:nth-of-type(7):before { content: "DATA_NASCITA"; }
	td:nth-of-type(8):before { content: "RESIDENZA"; }
	td:nth-of-type(9):before { content: "INDIRIZZO"; }
	td:nth-of-type(10):before { content: "TELEFONO"; }
	td:nth-of-type(11):before { content: "EMAIL"; }	
	td:nth-of-type(12):before { content: "CANE"; }		
	td:nth-of-type(13):before { content: "CONSENSO"; }
	td:nth-of-type(14):before { content: "PAGAMENTO"; }
	td:nth-of-type(15):before { content: "NOTE"; }
	td:nth-of-type(16):before { content: "CSEN"; }
	td:nth-of-type(17):before { content: "STATO"; }
	
	td.centrata {
		text-align: left;
	}
}
