/******************/
/* 	ROOT
/******************/
/*@import url(http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,300,400,600,700);*/
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;0,800;1,300;1,400;1,600;1,700;1,800&display=swap');
:root {
	--blu-scuro: 	#003b77;
	--blu-mid:		#115092;
	--blu: 			#1c5fa4;
	--blu-chiaro: 	#83a7c9;
	--azzurro:		#b4d8e8;
	/*
	--azzurro-scuro: #0b94d9;  quello nei titoli
	--azzurro-chiaro: #1ec4ff; quello nei pallini
	*/
	--viola:		#ff004e;
	--viola-scuro: 	#800027;
	--grigio: 		#c7c8f9; /*Riquadro dell'immagine*/
	--selected: 	#ff0; /*Il giallo in alto nel tab selezionato*/
	
	--sfondo: 		white;
	--grigino:		#F7F7F7;
}

body{
	background: var(--blu);
	background-image: url(/media/common/sfondo.png); 
	font-size: 16px;	
	text-align: center;
	font-family: "Open Sans", sans-serif;
	margin: 0px;
	position: absolute;
    min-width: 100%;
    min-height: 100%;
}    
canvas{
	text-align: initial;
}
a{ /*Link */
	text-decoration:none;
	color:white;
	outline: 0;
}			            
img{ /*Leva il bordo alle immagini (con link), per il mangiacolla Explorer */
	border: 0px;
}
input, textarea, select{
	outline: 0 !important; /* Colpa di chrome */
}

.hidden{
	display: none;
}

input::-webkit-inner-spin-button,
input::-webkit-clear-button,
input::-webkit-calendar-picker-indicator{ /* Leva le porcate di chrome */
  display: none !important;
}



/*******************/
/* Custom checkbox */
/*  <label class='checkboxwrap'>
		<input type="checkbox">
		<span class="checkmark"></span>
		Testo (se necessario)
	</label>
/*******************/

.checkboxwrap {
	position: relative;
	cursor: pointer;
	margin: 0px 5px;
}

/* Checkbox base */
.checkmark {
	position: absolute;
	top: 0;
	left: 0;
	height: 25px;
	width: 25px;
	background-color: var(--blu);
	transition: 0.5s;
}

/* On mouse-over
.checkboxwrap:hover input ~ .checkmark {
	background-color: var(--blu);
	transition: 0.5s;
}
*/

/* Quando è checkata */
.checkboxwrap input:checked ~ .checkmark {
	background-color: var(--blu);
}

/* La spunta, di base nascosta */
.checkmark:after {
	content: "";
	position: absolute;
	display: none;
	left: 9px;
	top: 5px;
	width: 5px;
	height: 10px;
	border: solid white;
	border-width: 0 3px 3px 0;
	-webkit-transform: rotate(45deg);
	-ms-transform: rotate(45deg);
	transform: rotate(45deg);
} 

/* Mostra la spunta */
.checkboxwrap input:checked ~ .checkmark:after {
	display: block;
}


/******************
 * 	Message boxes *
 ******************/
 
.alert_overlay, .load_overlay{
	background: black;
	z-index: 1000;
	position: fixed;
	opacity: 0.5;
	height: 100%;
	width: 100%;
	top: 0;
	left: 0;
}
.alert_box{
	position: fixed;
	background: white;
	z-index: 1100;
	padding: 10px;
	border-top: 4px solid var(--blu-chiaro);
	border-radius: 7px;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}
.alert_box > span {
	display: block;
	padding: 20px;
	color: var(--blu-scuro);
	font-size: 18px;
}
.alert_box > div > span {
	display: inline-flex;
	padding: 17px 24px;
	background: var(--blu);
	margin: 10px 10px;
	font-size: 20px;
	font-weight: bolder;
	color: white;
	cursor: pointer;
	transition: 0.5s;
}
.alert_box > div > span:hover{
	background: var(--blu-chiaro);
	transition: 0.5s;
}

.alert_warning{
	border-color: red;
}
.alert_warning > span{
	padding: 10px 10px 10px 10px;
	color: red;
}
.alert_warning > div > span{
	background: red;
}
.alert_warning > div > span:hover{
	background: #a50000;
}
.alert_warning:before{
	content: '\0026A0';
	color: red;
	font-size: 60px;
}

/*******************
 ***** Spinner *****
 *******************/

 .block_wait_loading{
	position: fixed;
	height: 100%;
	width: 100%;
	left: 0;
	top: 0;
	z-index: 1000;
}

.block_wait_svg:after, .block_wait_svg:before{
	content: '';
	position: absolute;
	left: 50%;
	top: 50%;
	z-index: 2000;
	border-width: 10px;
	border-style: solid;
	border-radius: 50%;
	background: rgba(20, 21, 62, 0.32);
}

.block_wait_svg:after{
	width: 100px;
	height: 100px;
	border-color: var(--blu-chiaro) transparent var(--blu-chiaro) transparent;
	animation: spin 4000ms infinite linear;	
}
.block_wait_svg:before{
	width: 150px;
	height: 150px;
	border-color: var(--blu) transparent var(--blu) transparent;
	animation:  antispin 4000ms infinite linear;
}


@keyframes spin{ 
	0% {transform: translate(-50%, -50%) rotate(360deg)}
	100% {transform: translate(-50%, -50%) rotate(0deg);} 
}
@keyframes antispin{ 
	0% {transform: translate(-50%, -50%) rotate(0deg)}
	100% {transform: translate(-50%, -50%) rotate(360deg); } 
}

/*****************************************************
 ***** Scritta caricamento in fondo alle tabelle *****
 *****************************************************/

.loading_content_table{
	background: var(--blu-scuro);
	color: white;
	font-size: 16px;
	font-weight: bold;
	padding: 46px 0px;
}

/******************************
 ***** Scrollbar Generica *****
 ******************************/

*{
	scrollbar-color: var(--blu-scuro) transparent;
	scrollbar-width: thin;
}
*::-webkit-scrollbar{ /* Solo per chrome, la fa larga 10px */
	width: 8px !important;
}
*::-webkit-scrollbar-thumb{ /* Solo per chrome, colora la barra di scorrimento */
	background: var(--blu-scuro);
}

/*******************
 ***** Overlay *****
 *******************/

.overlay_sfondo{
	background: black;
	z-index: 100;
	left: 0px;
	top: 0px;
	position: fixed;
	cursor: pointer;
	height: 100%;
	width: 100%;
	opacity: 0.5;
}
.overlay_box{
	display: none;
	position:fixed; 
	/**Centra il box per qualsiasi risoluzione**/
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	-moz-transform: translate(-50%, -50%);
	-webkit-transform: translate(-50%, -50%);
	z-index: 105; /* era 150, così vedo le note */
	/*padding: 20px;*/
	background: var(--grigino);
	/*border-radius: 4px;*/
	color: var(--blu);
	max-height: 95%;
	max-height: 95vh;
	padding-left: 8px; /* Compensa la scrollbar anche se non c'è*/
	backface-visibility: hidden; /* Leva gli artefatti schifosi */
}
.overlay_box_prev{ /* Mette un bordino agli overlay sottostanti */
	border: 1px solid var(--blu-scuro);
}

.overlay_box_title_close{
	cursor: pointer;
	position: absolute;
	left: 5px;
	font-size: 50px;
	transform: rotate(45deg);
	user-select: none;
}
.overlay_box_title, .overlay_box_footer{
	display: block;
	text-align: center;
	line-height: 40px;
	font-size: 20px;
	font-weight: bold;
	text-transform: capitalize;
	background: var(--blu-chiaro);
	color: white;
	/*height: 40px;*/
	width: calc(100% + 8px); /* 8px compensano la scrollbar */
	margin-left: -8px;
	margin-right: 30px; /* Accrocchio per dare respiro al titolo ingrandendo tutto */
}
.overlay_box_content{
	overflow-y:scroll;
	overflow-x: hidden;
	padding: 10px;
	position: relative;	
	max-height: calc(90vh - 40px); /* 85% della vista */
}

/*Bottoni OK e C*/
.overlay_btn{
	text-align: center;
	font-weight: bolder;
	font-size: 16px;
	cursor: pointer; 
	color: black; 
	border: 0px;
	width: 40%;
	min-width: 40px;
	height: 40px;
	transition: 0.5s;
	outline: none; /*Chrome...*/
	background: var(--blu);
}
.overlay_btn:hover{transition: 0.5s;}
/* Aggiustamenti ai bottoni*/
#overlay_btn_c{margin-right: 10px;}
#overlay_btn_ok:hover{color: #3c3;}
#overlay_btn_c:hover{color: #f00;}

/*Caselle di scelta delle modifiche*/
.overlay_tool_input{
	background: transparent;
	resize: none;
	color: black;
	border: 0px;
	width: 250px;
	height: 100px;
}
.overlay_data_fix{ /* Per trucidare la X di firefox */
	width: 250px;
	overflow: hidden;
	height: 80px;
}
.overlay_tool_input[type="date"]{
	font-size: 38px;
	width: 300px;
	margin-left: 16px;
}
@-moz-document url-prefix(){ /* Correzione per firefox che si allinea diverso da chrome */
	.overlay_tool_input[type="date"]{
		margin-left: 0px;
	}
}
.overlay_cancella_riga_testo{
	color: red; 
	font-size:30px;
	font-weight: bold;
}
select.overlay_tool_input{ /* Le caselle select */
	font-size: 27px;
	font-weight: bold;
	text-align: center;
	text-align-last: center;
}
select.overlay_tool_input > option{
	color: black !important;
}
select option{
	color:black;
}
/* Label per caricare un report */
#modificareport_file{
	display: block;
	background: var(--blu);
	height: 50px;
	width: 95%;
	margin: auto;
	text-align:center;
	line-height: 50px;
	font-weight: bold;
	color: white;
	cursor: pointer; 
	transition: 0.5s;
}
#modificareport_file:hover {
	background-color: var(--blu-scuro);
	transition: 0.5s;
}
#modificareport_nome{
	display: block;
	height: 50px;
	width: 95%;
	margin: auto;
	text-align:center;
	line-height: 50px;
	font-style: italic;
	cursor: pointer;
}
/*
#modificacancella{
	display: block;
	text-align: left;
	padding-left: 40px;
	font-size: 25px;
	font-weight: bold;
}*/

/*************************************************************************************/
/******** NOTE STRUTTURATE, VALIDE ANCHE PER REPORT E QUALSIASI COSA SI MUOVA ********/
/*************************************************************************************/
/*

.report_note{
	max-width: 600px;
	min-width: 450px;
}

.add_note, .vedi_allegati{
	display:inline-block;
	text-align: center !important;
	border: 2px solid var(--blu-scuro);
	color: var(--blu-scuro);
	font-size: 25px;
	padding: 10px;
	cursor: pointer;
	transition: 0.5s;
	user-select: none;
	margin: 0 10px 20px 10px;
}
.add_note:hover, .vedi_allegati:hover{
	background: var(--blu-scuro);
	color: white;
	transition: 0.5s;
}
.nessuna_nota{
	font-size: 30px;
	font-weight: bold;
	margin-bottom: 20px;
}

.nota_wrap > span > span{ // Data e ora 
	position: absolute;
	right: 20px;
}
.nota_wrap > span > span > .hour_spacer{ // Spazio tra data e ora 
	display: inline-block;
	width:25px; 
}
.nota_wrap > span > span > svg{ // Orologino 
	height: 16px;
	width: 16px;
	position: absolute;
	margin-left: -22px;
	margin-top: 3px;
}
.nota_wrap > span{ // Intestazione di chi è 
	display: block;
	text-align:left;
	background: black; // Di default rosso 
	color: white;
	padding: 10px;
}
// Colori delle note, default BLACK 
.nota_wrap > span[data-ruolo="admin"]		{ background: rgb(224, 149, 8); }
.nota_wrap > span[data-ruolo="tecnico"]		{ background: var(--blu); }
.nota_wrap > span[data-ruolo="riparazioni"]	{ background: var(--blu); }
.nota_wrap > span[data-ruolo="tam"]			{ background: green; }
.nota_wrap > span[data-ruolo="vendite"]		{ background: #bfbf18; }

// Corpo della nota 
.nota_wrap > div{
	//background: #86b9e4;
	color: var(--blu-scuro);
	text-align:left;
	padding: 5px;
	margin-bottom: 10px;
	white-space: break-spaces;
}

.invia_note{
	border: 2px solid var(--blu-scuro);
	background: white;
	color: var(--blu-scuro);
	text-align: center;
	font-weight: bolder;
	font-size: 16px;
	text-transform: uppercase;
	cursor: pointer; 
	padding: 10px;
	transition: 0.5s;
	outline: none; 
	transition: 0.5s;
	user-select: none;
}
.invia_note:hover{
	background: var(--blu-scuro);
	color: white;
	transition: 0.5s;
}
.scrivi_note{
	background: transparent;
	margin: auto;
	color: var(--blu-scuro);	
	padding: 5px;
	font-family: Arial;
	font-size: 17px;
	outline: none;
	border: 0px solid var(--blu-scuro);
	resize: none;
	transition: 0.5s;	
	margin: 0;
	width: 400px;
	height: 250px;
}*/

/*************************************/
/******** RESPONSIVE GENERALI ********/
/*************************************/

.desktop_view{
	display: initial;
}
.smartphone_view, .laptop_view{
	display: none;
}

@media only screen and (max-width: 1600px) {
	.desktop_view, .smartphone_view{
		display: none;
	}
	.laptop_view{
		display: initial;
	}
}
@media only screen and (max-width: 700px) {
	.laptop_view, .desktop_view{
		display: none;
	}
	.smartphone_view{
		display: initial;
	}
}