/**********************************/
/******** NOTE STRUTTURATE ********/
/**********************************/

/* Wrapper inserimento nuove note */
.nuova_nota_background{
	position: sticky;
	/* top: 40px; */
	width: 100%;
	padding: 30px 0;
  	background: var(--grigino);
	z-index: 1;
}
.nuova_nota{
	position: relative;
	padding: 15px 10px;
	background: var(--blu-scuro);
	border-radius: 27px;
	cursor: text;
	margin: auto;
	width: 580px;
}
/* Wrapper textarea per renderla flessibile */
.nuova_nota .wrap_textarea{
	display: block;
	position: relative;
	margin: 0 60px;
}
/* Textarea di nuovo messaggio */
.nuova_nota textarea{
	width: 100%;
	height: 23px;
	border: 0px;
	background: inherit;
	color: white;
	font-size: 20px;
	resize: none;
	vertical-align: bottom;
	padding: 0px;
}
/* Nasconde l'input file */
.nuova_nota input{
	  display: none;
}
/* Icona graffetta */
.nuova_nota > label{
	position: absolute;
	left: 3px;
	bottom: 2px;
	font-size: 25px;
	color: white;
	cursor: pointer;
	height:50px;
	width: 50px;
	line-height: 50px;
	border-radius: 100%;
	transition: 0.5s;
}


/* Icona inserisci nota */
.nuova_nota .action_inserisci_nota{
	position: absolute;
	bottom: 2px;
	right: 3px;
	font-size: 25px;
	color: white;
	cursor: pointer;
	height:50px;
	width: 50px;
	line-height: 50px;
	border-radius: 100%;
	transition: 0.5s;
}
.nuova_nota .action_inserisci_nota:hover, .nuova_nota > label:hover{
	background: var(--blu);
}

/* Scritta nessuna nota */
.nessuna_nota{
	font-size: 30px;
	font-weight: bold;
	margin-bottom: 20px;
	user-select: none;
}

/*************************************************/

.nota_wrap{
	position: relative;
	margin: auto;
	width: 600px;
	text-align: left; /* Se no gli allegati stanno al centro */
}
/* Intestazione della nota */
.nota_wrap > span{ /* Intestazione di chi è */
	display: block;
	text-align:left;
	background: black; /* Di default rosso */
	color: white;
	padding: 10px;
}
.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; 
}

/* 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{
	color: var(--blu-scuro);
	text-align:left;
	padding: 5px;
	margin-bottom: 10px;
	white-space: break-spaces;
	max-width: 600px;
	min-width: 450px;
}

/* Tasto di modifica */
.action_modifica_nota{
	font-size: 20px;
	color: var(--blu-scuro);
	width: 20px;
	height: 20px;
	background: white;
	padding: 5px;
	border-radius: 100%;
	position: absolute;
	left: -40px;
	top: -4px;
	transition: 0.5s;
	cursor: pointer;
}
.action_modifica_nota:hover{
	background: var(--blu-scuro);
	color: white;
}

/***************************/
/******** Allegati  ********/
/***************************/

.allegato_row{
	display: inline-block;
	position: relative;
	margin: 5px 5px;
	padding: 10px;
	padding-left: 45px;
	font-size: 20px;
	background: var(--blu-scuro);
	color: white;
	transition: 0.5s;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	width: 135px;
}

.allegato_row:hover{
	background: var(--blu);
  	transition: 0.5s;
}
.allegato_row span{
	position: absolute;
	left: 10px;
	top: 3px;
	font-size: 30px;
}

@media only screen and (max-width: 1060px) {
	.nuova_nota{
		width: auto;
		max-width: 600px;
	}	
	.nota_wrap{
		width: auto;
		max-width: 600px;
	}
}