BODY {
	background: url('img/logo_bg.png') #29314E fixed no-repeat bottom right;
	color: silver;
	font-family: arial;
	text-align: center;
	margin: 8px;
}

:root {
	--form-label-width: 195px;
	--form-label-gap: 10px;
}

VAR {
    display: none;
}

H2,
DIV.title {
  min-width: 300px;
  margin-bottom: 10px;
  font-weight: bold;
  color: #000;
  margin: 0 0 10px 0;
  font-size: 20px;
  /*! text-shadow: 1px 1px 1px #202020; */
  text-align: center;
}

H2 SMALL,
DIV.title SMALL {
	font-size: .75em;
	font-weight: normal;
}

TR.gray {
	color: gray;
}

H1 {
  color: #FFF;
  margin: -5px 0 10px 0;
  font-size: 20px;
  text-shadow: 1px 1px 1px #202020;
  text-align: center;
}

A {
	color: white;
	text-decoration: none;
}
A:hover {
	text-decoration: underline;
}

.red {
	color: red;
}

.del_button {
	color: red !important;
	font-weight: bold;
	text-decoration: none;
}

.green_button {
	background: rgba(0, 128, 0, 0.5);
	display: inline-block;
	position: absolute;
	top: 6px;
	right: 6px;
	font-size: 24px;
	text-align: center;
	padding: 0px 8px;
	border-radius: 5px;
}
.green_button:hover {
	background: lime;
	text-decoration: none;
	cursor: pointer;
}

IMG.loading {
	vertical-align: -3px;
}

SMALL {
	font-size: 10px;	
}

DIV.toggle .change {
	cursor: pointer;
}
DIV.toggle DIV.content {
	display: none;
}
DIV.toggle.on DIV.content {
	display: block;
}

#login {
	position: absolute;
	right: 8px;
	top: 12px;
	font-size: 26px;
	text-decoration: none;
}
#login.forbidden {
	color: gray;
	cursor: not-allowed;
}

#popup {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0,0,0,.8);
	z-index: 5;
	display: none;
	padding-top: 5%;
	overflow: visible;
}
#content {
	position: absolute;
	z-index: 6;
	top: 50%;
	left: 50%;
	transform: translate(-50%,-50%);
}

.bold {
	font-weight: bold;
}


.hover {
  position: absolute;
  color: #000;
  background-color: #fff;
  padding: 4px 10px;
  text-align: left;
  top: 10px;
  right: 10px;
  width: 300px;
  display: none;
  border: solid 1px #B4B4B4;
  border-radius: 3px;
  box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.22);
}

FORM {
	/* text-align: right; */
	margin: 0 0 .5em 0;
}

FORM DIV {
	clear: both;
}
INPUT[type=number] {
	width: 100px;
}

FORM.standard DIV.field {
	margin-bottom: 5px;
}
FORM.standard:not(.inline),
FORM.ajax_form_legacy:not(.inline) {
	text-align: left;
}
FORM.standard:not(.inline) DIV.field,
FORM.ajax_form_legacy:not(.inline) DIV.field {
	margin-bottom: 5px;
}
FORM.standard:not(.inline) DIV.field > LABEL,
FORM.ajax_form_legacy:not(.inline) DIV.field > LABEL {
	display: inline-block;
	width: var(--form-label-width);
	padding-right: var(--form-label-gap);
	text-align: right;
	box-sizing: border-box;
	vertical-align: -5px;
}
FORM.standard:not(.inline) DIV.field.checkbox {
	text-align: left;
	padding-left: calc(var(--form-label-width) + var(--form-label-gap));
}
FORM.standard:not(.inline) DIV.field.checkbox > LABEL {
	width: auto;
	padding-right: 0;
	text-align: left;
}
FORM.ajax_form_legacy:not(.inline) DIV.field.checkbox {
	padding-left: 0;
	text-align: right;
}
FORM.standard:not(.inline) DIV.field.checkbox INPUT[type=checkbox],
FORM.ajax_form_legacy:not(.inline) DIV.field.checkbox INPUT[type=checkbox] {
	scale: 1.25;
	vertical-align: middle;
	margin-right: .5em;
}
FORM.standard DIV.form_rc {
	min-height: 20px;
	font-weight: bold;
	color: red;
	margin-top: .5em;
}
FORM.standard DIV.form_rc SPAN.ok {
	color: green;
}

FORM.inline {
	text-align: center;
}
FORM.inline INPUT[type=submit] {
	vertical-align: bottom;
}
FORM.inline DIV.field {
	display: inline-block;
	position: relative;
	padding-top: 1em;
	margin: 0 .1em;
}
FORM.inline LABEL {
	position: absolute;
	font-size: .75em;
	text-align: left;
	top: 3px;
	left: .15em;
}
FORM.inline DIV.field:not(.large) INPUT {
	width: 8em;
}
FORM.inline DIV.field.large INPUT {
	width: calc(100% - 1em);
}

DIV.msg {
	font-size: 24px;
	color: gray;
	padding: 50px;
	text-align: center;
}

DIV.rc {
	text-align: center;
	margin-bottom: -10px;
	margin-top: 10px;
	color: #F00;
	font: bold 16px arial;
	background-color: rgba(255, 255, 255, 0.3);
	border-radius: 3px;
	padding: .25em .5em;
}
DIV.rc SPAN.done {
	color: #3a783a;
}

LABEL {
	padding-right: 10px;
	text-align: right;
}

TABLE {
	border-collapse: collapse;
}

TABLE.left TD:nth-child(-n+2) {
    text-align: left;
}

INPUT[type=month],
INPUT[type=text],
INPUT[type=date],
INPUT[type=number] {
	width: 200px;
	padding: 3px;
	vertical-align: -3px;
}
SELECT {
	width: 210px;
	height: 24px;
	/* margin-top: 0px; */
}
SELECT[multiple] {
	height: 150px;
	
}
TEXTAREA {
	vertical-align: top;
	width: 200px;
	height: 100px;
	padding: 4px;
}
INPUT[type=month] {
	text-transform: uppercase;
}

.right {
	text-align: right;
}
.center {
	text-align: center;
}
.red {
	color: red;
}
.green {
	color: green;
}
.small {
	font-size: 12px;	
}

P.label {
    background: #8851a7;
    color: white;
    margin: auto;
    width: 10em;
    padding: .25em .5em;
    border-radius: 5px;
}

DIV.data {
	background: #e0e0e0;
	border: solid 1px gray;
	font-size: 10px;
	width: 148px;
	float: right;
	padding: 3px 0;
	text-align: center;
}
DIV.radio_items {
	width: 150px;
}

#rc {
	position: absolute;
	width: 240px;
	background-image: url('img/black_50.png');
	margin: -22px 0 0 -10px;
	border-radius: 5px;
	box-shadow: 3px 3px 10px #202020;
	color: white;
	text-align: center;
	padding: 5px;
	display: none;
}

DIV.box {
	display: inline-block;
	vertical-align: top;
	color: #28314e;
	background: silver;
	padding: 15px;
	/* border-radius: 5px; */
	/* box-shadow: 5px 5px 5px #202020, inset 1px 1px 3px gray; */
	border: solid 2px #888888;
	margin: 5px;
	position: relative;
}
DIV.box.large {
	min-width: 800px;
}


#clock {
	position: fixed;
	font-size: 20px;
	opacity: .8;
	color: white;
	text-shadow: 3px 3px 5px black;
	top: 9px;
	right: 40px;
}
#current_ip {
	position: fixed;
	font-size: 10px;
	opacity: .5;
	color: white;
	top: 30px;
	right: 40px;
}


NAV#main_menu {
	margin-bottom: 2em;
	text-align: left;
	margin-right: 185px;
}

NAV#main_menu DIV.item {
	display: inline-block;
}
NAV#main_menu DIV.admin A {
	background-color: #FFA1A1;
}
NAV#main_menu DIV.selected A {
	background: gray;
	box-shadow: inset 3px 3px 5px rgba(0,0,0,.4);
	color: yellow;
	font-weight: bold;
}
NAV#main_menu DIV.admin.selected A {
	background-color: #7C4A4A;
}

NAV#main_menu A {
	color: black;
	padding: 4px 10px;
	background: #C0C0C0;
	border-radius: 2px;
	margin: 3px;
	box-shadow: inset 2px 2px 2px rgba(255,255,255,.5), inset -2px -2px 2px rgba(0,0,0,.5);
	display: inline-block;
	transition: .5s;
}
NAV#main_menu A:Hover {
	color: yellow;
	background-color: #999;
	text-decoration: none;
}
A.add_button {
	font-size: 32px;
	width: auto;
	color: black;
	padding: 5px;
	box-shadow: 5px 5px 5px #202020, inset 1px 1px 3px #FFF, inset -1px -1px 3px #808080;
	background: #C0C0C0;
	border-radius: 20px;
	margin: 5px;
	line-height: 18px;
	display: inline-block;
	transition: 1s;
}
A.add_button:hover {
	color: yellow;
	box-shadow: inset 3px 3px 5px #202020;
	text-decoration: none;
	background: #29314E;
}

DIV.info_div {
	display: block;
	background: rgb(238, 238, 238);
	text-align: left;
	width: 210px;
	margin: 2px 0 0 90px;
	box-sizing: border-box;
	padding: 2px;
	overflow: hidden;
	font-size: 14px;
}
DIV.info_div A {
   color: #00f;
}

TH.left,
TD.left {
	text-align: left !important;
	padding-left: 5px !important;
}
TH.right,
TD.right {
	text-align: right !important;
	padding-right: 5px !important;
}

TABLE.lista {
	border-collapse: separate;
	font-size: 14px;
	color: black;
	min-width: 700px;
	border-spacing: 1px;
}
TABLE.lista.selectable TR:hover TD {
	background-color: #ff8;
	cursor: pointer;
}
TABLE.lista TH { 
	font-size: 12px;
	padding-left: 5px;
	font-variant: small-caps;
	font-weight: normal;
}
TABLE.lista CAPTION {
	font-size: 18px;
	color: #141414;
   /*! text-shadow: 1px 1px 3px #202020; */
	margin-bottom: 5px;
}
TABLE.lista TR.title TH {
	font-size: 20px;
	color: white;
   text-shadow: 1px 1px 3px #202020;
}
TABLE.lista TH {
	text-align: left;
}

TABLE.lista TR.headline TD {
	padding: 0 5px;
	font-size: 10px;
	text-align: left;
}
TABLE.lista TD {
	vertical-align: top;
	padding: 1px 4px;
	text-align: left;
}
TABLE.lista TD.clickable:hover {
	cursor: pointer;
	color: blue;
	background: azure;
}
TABLE.lista TBODY TR:nth-child(even) {
	background-color: #fffb;
}
TABLE.lista TBODY TR:nth-child(odd) {
	background: #fff8;
}
TABLE.lista TBODY, TR.th,
TABLE.lista TR.th {
	background: none !important;
}

TABLE.lista TFOOT,
TABLE.lista TR.last {
	font-weight: bold;
}
TABLE.lista A {
	color: blue;
}

#table_indirette,
#table_lavorazioni {
	font-size: 12px;
	min-width: 500px;
}
#table_indirette TH,
#table_lavorazioni TH {
	padding: 0 5px;
	font-size: 10px;
	text-align: left;
}
#table_indirette TD,
#table_lavorazioni TD {
	padding: 0 5px;
	text-align: left;
}
#table_indirette TD.r_al,
#table_lavorazioni TD.r_al {
	text-align: right;
}
#table_indirette TR.done,
#table_lavorazioni TR.done {
	color: gray;
}
#table_indirette TR:hover TD,
#table_lavorazioni TR:hover TD {
	background: #fff;
}
#table_indirette IMG,
#table_lavorazioni IMG {
	width: 11px;
	margin-left: 6px;
	opacity: .5;
}
#table_indirette A.note,
#table_lavorazioni A.note {
	position: relative;
}
#table_indirette A.note DIV,
#table_lavorazioni A.note DIV {
  position: absolute;
  color: #000;
  background-color: #fff;
  padding: 4px 10px;
  text-align: left;
  top: 10px;
  right: 10px;
  width: 300px;
  display: none;
  border: solid 1px #B4B4B4;
  border-radius: 3px;
  box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.22);
  font-size: 12px;
}

#table_indirette A.note:hover DIV,
#table_lavorazioni A.note:hover DIV {
	display: block;
}

LI.ui-menu-item {
	text-align: left;
}

#lista_risorse {
	margin-bottom: 5px;
}
#lista_macchine IMG,
#lista_risorse IMG {
	vertical-align: -2px;
	cursor: pointer;
}
#lista_lavorazioni {
	text-align: left;
}
#lista_lavorazioni DIV{
	display: inline-block;
	vertical-align: top;
}
#info_commessa {
	font-size: 12px;
	margin: 6px 1px;
	text-align: left;
}

#rc_quadratura {
	width: 160px;
}

UL.ui-autocomplete {
	z-index: 9000;
	box-shadow: 2px 2px 20px #202020;
}

IMG.info_profilo {
	vertical-align: -1px;
	width: 11px;
}

DIV#credits {
	font-size: 8px;
	position: fixed;
	bottom: 3px;
	right: 3px;
	z-index: -1;
}

.print_only {
	display: none;
}

DIV.buttons {
	margin-top: 20px;
	text-align: right;
}
DIV.buttons.center {
	text-align: center;
}
DIV.buttons INPUT {
	margin: 0 5px;
}
DIV.lista_buttons {
	margin-top: 10px;
	text-align: center;
}
DIV.lista_buttons INPUT {
	margin: 2px 10px;
}
INPUT[type=submit],
INPUT[type=button],
A.button {
    padding: 5px 10px;
    border-radius: 5px;
    border: solid 1px #888;
    background: #eee;
    cursor: pointer;
    font-size: 14px;
    line-height: 14px;
    margin: 0 5px;
    transition: background 0.3s;
	color: black;
	display: inline-block;
	text-align: center;
	vertical-align: top;
}
INPUT[type=submit]:hover,
INPUT[type=button]:hover,
A.button:hover {
    background: #ddd;
    text-decoration: none;
}


A.cp_print::after {
	content: 'CP';
	position: absolute;
	color: white;
	font: bold 8px arial;
	margin: 7px 0 0 -14px;
	text-shadow: 1px 1px 1px black;
}

A.ss_print::after {
	content: 'SS';
	position: absolute;
	color: white;
	font: bold 8px arial;
	margin: 7px 0 0 -14px;
   text-shadow: 1px 1px 1px black;
}

TABLE#misurazioni TD {
	text-align: right;
}

DIV.xdsoft_datetimepicker {
	/*display: none;*/
}

DIV.admin_menu {
	display: none;
	border-radius: 5px;
	box-shadow: 5px 5px 5px #2228;
	border: solid 2px rgb(255, 255, 255);
	background: #ffd5d5;
	width: 200px;
	padding: 10px 0;
	position: absolute;
	z-index: 10;
	left: 50%;
	margin-top: 5px;
	margin-left: 0px;
}
NAV#main_menu DIV.admin_menu DIV.item.admin_item {
	display: block;
}
NAV#main_menu DIV.admin_menu DIV.item.admin_item A {
	display: block;
	border: none;
	border-radius: 0;
	box-shadow: none;
	background: none;
}

*:disabled {
	opacity: .33;
	filter: grayscale(100%);
	cursor: default !important;
}
SELECT:disabled {	
	background-color: #e8e8e8;	
	border: solid 1px #e8e8e8
	width: 208px;
}

DIV.xdsoft_datepicker,
DIV.xdsoft_timepicker {
	display: none;
}

.pages {
	text-align: right;
	margin: 20px 5px;
}
.pages A {
	text-decoration: none;
	display: inline-block;
	white-space: nowrap;
	margin: 2px 5px;
	font-size: 30px;
	vertical-align: middle;
}
.pages A.selected {
	text-decoration: underline;
}
.pages SPAN {
	display: inline-block;
	vertical-align: middle;
	padding-top: 6px;
}
.pages A.grayed {
	opacity: .2;
	cursor: default;
}

DIV#status {
	position: absolute;
	right: 10px;
	top: 48px;
	font: bold 12px arial;
	color: white;
	z-index: 5;
}
DIV#status SPAN {
	display: inline-block;
	padding: 1px 5px;
	border-radius: 1px;
}
.blink {
	animation: blink 2s infinite;
}
SPAN.fault {
	background: red;	
	animation: blink 2s infinite;
}
@keyframes blink {
	0 { opacity: 1 }
	50% { opacity: 1 }
	51% { opacity: 0 }
	100% { opacity: 0 }
}



@media screen and (max-width: 800px) {
	NAV#main_menu {
		margin-top: 70px;
		margin-right: 0;
	}
}

@media print {
	BODY {
		color: black;
		background: transparent;
	}
	A {
		color: black;
	}
	A.button,
	A.green_button,
	NAV,
	#clock,
	#status,
	#credits,
	#current_ip,
	#to_top,
	.noprint {
		display: none !important;
	}
	.print_only {
		display: block;
		color: black;
	}
	.box {
		border: none !important;
		background: white !important;
		box-shadow: none !important;
		color: black;
	}
	H2,
	DIV.title,
	#table_lavorazioni	TD,
	#table_indirette TD,
	TABLE TD,
	TABLE TD A,
	TABLE TH {
		background: transparent;
		color: black;		
      text-shadow: none;
	}
	TABLE TD {
		border-top: dotted 1px silver;		
	}
}
