BODY, HTML {
	margin: 0;
	min-height: 100%;
}
BODY {
	background-color: white;
	color: gray;
	font: normal 16px verdana;
}
A IMG {
	border: none;
}
P {
	text-align: justify;
}
H2 {
	color: black;
	font-size: 1.4em;
}
H4 {
	text-align: center;
	font-size: 21px;
}
H4 > SMALL {
	font-size: 14px;
}
H5 {
	font-size: 14px;
	margin-bottom: 10px;
    text-align: center;
}
HR {
	border: none;
	border-top: solid 1px #e0e0e0;
}
SELECT {
	min-height: 21.5px;
}
VAR {
	display: none;
}

.small {
	font-size: 12px;
}

.nowrap {
    white-space: nowrap;
}

.msg {
	text-align: center;
	color: silver;
	font-size: 20px;
}

.hidden {
	display: none;	
}
.silver {
	color: silver;
}
.center {
	text-align: center;
}
.big {
	font-size: 20px;
}
.right {
    text-align: right;	
}

.red {
	color: red;
}

.mt10 {
	margin-top: 10px !important;
}
.mb10 {
	margin-bottom: 10px !important;
}

.pad_r {
	padding-right: 20px;
}

*:disabled {
	opacity: .5;
}

.button {
	display: inline-block;
	position: relative;
	padding: 4px 10px;
	color: black;
	background-color: #efefef;
    border: solid 1px #bababa;
	box-sizing: border-box;
	text-align: center;
	text-decoration: none;
	font-size: 15px;
}
.button:hover {
	background-color: #eee;
}
.button.selected {
	background-color: #8cf;
}

INPUT[type=button].selected {	
	background-color: #ff0;
}
INPUT.red {
	color: white;
	background: red;
}

SPAN.checkbox {	
    padding: 2px 10px 2px 26px;
    display: inline-block;
}
SPAN.checkbox:before {
	content: '';
	position: absolute;
	border: solid 1px gray;
	width: 16px;
	height: 16px;
	margin-left: -22px;	
}
SPAN.checkbox.checked:before {
	content: '\2713';
	color: green;
	font-size: 20px;
	line-height: 15px;
	background-color: #b6fdb6;
}

/* HTML: <div class="loader"></div> */
.loader {
	margin: auto;
	width: 50px;
	aspect-ratio: 1;
	border-radius: 50%;
	background: 
	radial-gradient(farthest-side,#ffa516 94%,#0000) top/8px 8px no-repeat,
	conic-gradient(#0000 30%,#ffa516);
	-webkit-mask: radial-gradient(farthest-side,#0000 calc(100% - 8px),#000 0);
	animation: l13 1s infinite linear;
}
@keyframes l13{ 
  100%{transform: rotate(1turn)}
}

#logo {
	margin: 1em 1em 1em 0;
	max-width: 250px;
}

#top_panel {
	height: 80px;
    color: #0691b2;
	background: white;
	box-sizing: border-box;
	padding: 10px 10px 10px 22px;
    position: relative;
}

#user_name {
    color: #0691b2;
    font-size: 12px;
    position: absolute;
    right: 10px;
    bottom: 10px;
}

#page {
	padding: 0 2%;
}

#compiti_counters {
	position: absolute;
	font-weight: bold;
	top: 10px;
	right: 15px;
	font-size: 16px;		
}
#compiti_counters SPAN {
	border-radius: 3px;
	box-sizing: border-box;
	display: inline-block;
	color: #000a;
	background: #3ace3a94;
	text-align: center;
	margin-left: 5px;
	padding: 5px 10px;
	cursor: pointer;
}
#compiti_counters SPAN.c5 {
	background: #ffa5008a;
}
#compiti_counters SPAN.c10 {
	background: #ff7575;
}
#compiti_counters SPAN.creq {
	background: #85fcfc;
}

DIV.form_box {
	border-top: solid 1px silver;
	border-bottom: solid 1px silver;
	padding: 30px 0 10px;
	position: relative;
	margin-top: 30px;
}
#popup DIV.form_box {
	border-bottom: none;
}

DIV.form_box A.close {
	color: silver;
	text-decoration: none;
	position: absolute;
	top: 5px;
	right: 0px;
	font-size: 30px;
	line-height: 12px;
	border: solid 1px silver;
	height: 16px;
	width: 16px;
	text-align: center;
}
DIV.form_box A.close:hover {
	color: blue;
	border-color: blue;
}

FORM {
	padding: 15px 20px 5px;
}
FORM.box {
	border: solid 1px silver;
	margin-bottom: 10px;
}
FORM.nopad {
	padding: 15px 0 0;
}

.toggle {
	cursor: pointer;
}
.toggle:before {
    content: '+';
    font-size: 12px;
    color: gray;
    border: solid 1px gray;
    width: 16px;
    height: 16px;
    display: inline-block;
    text-align: center;
    margin-right: 8px;	
    vertical-align: 2px;
}
.open .toggle:before {
    content: '-';	
}
.toggle_container:not(.open) >*:not(.toggle) {
	display: none;
}

IMG.file_icon {
	width: 24px;
	vertical-align: top;
}
IMG.file_icon_large {
	width: 32px;
	vertical-align: middle;
	margin-top: -4px;
}
DIV.filelist DIV.file {
    display: inline-block;
    width: 500px;
    padding: 4px;
    padding-left: 40px;
    margin: 10px;
}
DIV.filelist DIV.file IMG {
    margin-left: -40px;
}
DIV.filelist DIV.file:hover {
    background: yellow;

}
DIV.filelist DIV.file A {
    text-decoration: none;
    color: black;
}


SPAN.toggle_button {
	display: inline-block;
	height: 17px;
	width: 16px;
	border: solid 1px silver;
	position: absolute;
	margin-left: 10px;
	margin-top: 6px;
	padding-left: 1px;
}
SPAN.toggle_button:after {
	display: block;
	cursor: pointer;
	position: absolute;
	content: '-';
	line-height: 15px;	
	width: 16px;
	height: 16px;
	font-size: 16px;
}
SPAN.toggle_button.closed:after {
   content: '+';
}
SPAN.toggle_button:hover {
	color: blue;
	border-color: blue;
}

DIV.box {
	box-sizing: border-box;
	border: solid 1px silver;
	margin: 10px auto;
	max-width: 725px;
	padding: 10px;
}

SPAN.icons {	
	position: absolute;
	right: -20px;
	width: 100px;
}

A.a_close,
A.confirm_button,
A.delete_button,
A.remove_button,
A.doc_delete,
A.doc_edit,
A.preview,
A.download {
	display: inline-block;
	line-height: 20px;
	width: 20px;
	height: 20px;
	box-sizing: border-box;
	border: solid 1px silver;
	background: transparent no-repeat center center;
	background-size: 16px;
	vertical-align: middle;
	opacity: .33;
	margin: 2px;
}
A.a_close:hover,
A.doc_edit:hover,
A.download:hover {
	opacity: 1;
	background-color: yellow;
}
A.close {
	text-decoration: none;
}

A.remove_button:hover,
A.delete_button:hover,
A.doc_delete:hover {
	opacity: 1;
	background-color: orange;	
}
A.remove_button.pending,
A.delete_button.pending,
A.doc_delete.pending {
	opacity: 1;
	background-color: red;
}
A.confirm_button:hover {
	opacity: 1;
	background-color: green;	
}
A.a_close {
	background-image: url('../img/close.png');
	text-decoration: none;	
}
A.remove_button {
	background-image: url('../img/close.png');
}
A.delete_button,
A.doc_delete {
	background-image: url('../img/delete.png');
}
A.preview {
	background-image: url('../img/preview.png');
}
A.download {
	background-image: url('../img/download.png');
}
A.doc_edit {
	background-image: url('../img/edit.png');
}
A.confirm_button {
	background-image: url('../img/confirm.png');
}
 
.pending {
	background-color: #ff00009c;
	opacity: 1;
}
A.confirm_button.pending {
	background-color: #02ff009c;
	opacity: 1;	
}


TABLE#richieste SPAN.pri {
	display: inline-block;
	background: green;
	width: 10px;
	height: 10px;
	border-radius: 100%;
}
TABLE#richieste SPAN.p30 {
	background-color: red;
}
TABLE#richieste SPAN.p20 {
	background-color: orange;
}
TABLE#richieste SPAN.p5 {
	background-color: silver;
}
TABLE#richieste TR.silver SPAN.pri {
	display: none;
}
TABLE#richieste TR.next {
	background-color: #85fcfc;
}
TABLE#richieste TR.next TD.next SPAN {
	color: blue;
}
TABLE#richieste TR.expired {
	background-color: #fcc5c5;
}
TABLE#richieste TR.expired TD.next SPAN {
	color: red;
}

FORM#form_file_add {
	/*! width: 100%; */
	max-width: unset;
}
DIV#div_documenti_table {
    max-height: 500px;	
	overflow-y: auto;
    /*! padding-right: 25px; */
}
TABLE#documenti {
	/*! width: 95%; */
}
TABLE#documenti TD {
	vertical-align: middle;
	padding: 2px;
}
TABLE#documenti SPAN.descrizione {
	font-size: 14px;
	overflow: hidden;
	display: block;
	max-width: 400px;
}
TABLE#documenti SPAN.descrizione small {
	display: block;
	font: normal 12px arial;
}

TABLE#documenti TD:first-child {
	width: 26px;
	vertical-align: top;
	padding-top: 3px;
}
TABLE#documenti TD:nth-child(n+5) {
	width: 30px;
}

TABLE#documenti TR.in_scadenza TD.scadenza {
	color: orange;
}
TABLE#documenti TR.scaduto TD.scadenza {
	text-decoration: line-through;
}
TABLE#documenti TR.missing {
    background: #fee;
	color: red;
}
TABLE#documenti TR.missing.selected {
	background-color: #ffed00;
}
TABLE#documenti TR.missing A.download {
	display: none;
}

#documenti .del {
	width: 20px;
}
#documenti SMALL {
	font-size: 12px;
}
DIV.doc_list DIV.file {
	margin-bottom: 10px;
}
DIV.doc_list SPAN.doc_name {
	box-sizing: border-box;
	display: inline-block;
	white-space: nowrap;
	overflow: hidden;
	width: 285px;
	vertical-align: middle;
	font-size: 13px;
	line-height: 1.3;
}
DIV.doc_list SPAN.doc_name SMALL {
	display: block;
	font: normal 10px arial;
}


#filtri_documenti {
	text-align: center;
	font-size: 12px;
	margin-bottom: 20px;
}
#filtri_documenti INPUT[type=checkbox] {
	transform: scale(1);
}
#doc_tree DIV.path {
	text-align: center;
	margin-bottom: 20px;
}
#doc_tree DIV.dirs {
	columns: 3;
	margin-bottom: 20px;
}
#doc_tree DIV.dirs A {
	display: block;
	font: normal 12px arial;	
	position: relative;	
	padding-left: 30px;	
	text-decoration: none;		
	line-height: 3;
	white-space: nowrap;
	overflow: hidden;
}
#doc_tree DIV.dirs A:before {
	content: '';
	position: absolute;
	top: 5px;
	left: 0;
	width: 24px;
	height: 24px;
	background-image: url('../img/folder.png');
	background-size: contain;
}

DIV.field.checkbox A.delete_button {
	margin-left: 0px;
	/* vertical-align: -12px; */
	margin-top: -2px;
}

DIV.field.multi_checkbox DIV.options {
	max-height: 11em;
	overflow: auto;
	margin-bottom: 10px;
	width: 320px;
	box-sizing: border-box;
	white-space: nowrap;
	border: solid 1px silver;
	margin: 0 0 10px 2px;
}

DIV.field.inventario INPUT[type=button],
DIV.field.doc INPUT[type=button] {
	font-size: 10px;
}
DIV.field.inventario INPUT[type=button] {
	margin-left: 2px;
}

DIV.field.doc DIV.inside_field {
	display: inline-block;
	vertical-align: top;
	box-sizing: border-box;
	margin: 0 0 10px 2px;
	color: black;
	max-width: 402px;
}

#lista_note DIV.note_head {
	text-align: right;
	font-size: 12px;
	border-bottom: dashed 1px silver;
	margin-bottom: 10px;
	padding-bottom: 3px;
	padding-right: 16px;
}
#lista_note DIV.nota {
	background: #f8f8f8;
	border-radius: 5px;
	padding: 5px 10px 10px 10px;
	margin: 8px auto;
	max-width: 700px;
	position: relative;
	box-sizing: border-box;
	/* border: solid 1px silver; */
}
#lista_note IMG.note_edit,
#lista_note IMG.edit_note {
	cursor: pointer;
	position: absolute;
	top: 4px;
	right: 5px;
	width: 16px;
}
#note_txt {
	font-size: 14px;
}
#div_note_del {
	text-align: right;
	padding-top: 3px;
	margin-bottom: 10px;
}
#div_note_del LABEL {
	margin-right: 0;
	padding-right: 0;
	min-width: unset !important;
}
DIV.condivisione_edit_only DIV.checkbox {
	text-align: right;	
}
DIV.condivisione_edit_only DIV.checkbox LABEL {
	min-width: unset !important;
	margin-right: 0;
	padding-right: 0;
}
#lista_condivisioni {
	line-height: 2;	
}

#lista_condivisioni TABLE TD:last-child {
	line-height: 1;
	font-size: 12px;
	padding: 8px 5px;
}

.form_right_button,
.commessa_edit_button,
.contatto_edit_button,
#compito_show_button,
#contatto_edit_button,
#contratto_edit_button,
#commessa_edit_button, 
#add_risorsa_button
{
	position: absolute;
	z-index: 5;
	margin: 4px 0 0 0;
}

.form_right_button IMG,
.commessa_edit_button IMG,
.contatto_edit_button IMG,
#compito_show_button IMG,
#contatto_edit_button IMG,
#contratto_edit_button IMG,
#commessa_edit_button IMG,
#add_risorsa_button IMG
{
	width: 24px;
	margin-left: -27px;
}

#documenti_list {
    margin-bottom: 30px;
	width: 100%;
}
#documenti_list A.folder_link {
	display: block;
	text-align: center;
	font-size: 10px;
	color: gray;
	text-decoration: none;
	padding-top: 2px;
}


#commessa_edit {
	max-width: 850px;
}

#c_title {
	font-size: 12px;
}
#c_title SPAN {
	font-size: 18px;
	color: black;
}

#rc_commessa_edit {
	margin-left: 50%;
	transform: translateX(-50%);
}

#checklist {
	/* border-top: solid 1px silver; */
	/* border-bottom: solid 1px silver; */
	margin: 20px auto;
	padding: 20px 0;
}
#checklist H5 {
	text-align: center;
	margin: 20px auto;
	padding-top: 10px;
	border-top: dashed 1px silver;
}

FORM.standard A.upload_button {
	margin: 2px;
	min-height: 29px;
	font-size: 12px;
	vertical-align: top;
	color: black;
	text-decoration: none;
	border: solid 1px gray;
	padding: 6px 5px 0 5px;
	display: inline-block;
	box-sizing: border-box;
}

@media screen and (max-width: 750px) {
	#compito_show_button,
	#contatto_edit_button {
		position: absolute;
		top: 25px;
		z-index: 5;
		right: -3px;
		margin: 0;
	}
	DIV.field.doc DIV.inside_field {
		padding-left: 20px;
	}

	DIV.field.multi_checkbox DIV.options {
		width: 100%;
	}
}

@media screen and (max-width: 600px) {
    #top_panel {
	   text-align: center;
	   height: 100px
    }
	#logo {
		margin-top: 2.5em;
		margin-bottom: .5em;
	}
    #user_name {
        position: static;
        margin-top: 0;
    }
    NAV.menu {
    	margin: 10px 0;
		text-align: center;
    }
	#doc_tree DIV.dirs {
	   columns: 2;
	}
	#page {
		padding: 0;
	}
}

@media screen and (max-width: 400px) {
	SPAN.icons {	
		margin-top: -24px;
	}
}

@media print {
	FORM.standard TEXTAREA, 
	FORM.standard SELECT, 
	FORM.standard INPUT[type=password], 
	FORM.standard INPUT[type=text], 
	FORM.standard INPUT[type=number], 
	FORM.standard INPUT[type=time], 
	FORM.standard INPUT.filename {	
		max-width: 400px;	
	}
	
	#menu_main,
	#top_panel,
	.noprint {
		display: none !important;
	}
}