* {
	box-sizing: border-box;
}

body, table {
	margin: 0px;
	font-family: Verdana;
	background-color: white;
}

body, table, select, button, input[type=search] {
    font-size: 14px;
}

table {
	border-collapse: collapse;
}

form {display: inline}

a {
	text-decoration: none;
	color: inherit;
	outline: 0px solid black;
}

.none {
	display: none;
}

dialog {
	padding: 0px;
	border: 2px solid var(--bg);
/*	overflow: hidden;*/
	box-shadow: 6px 6px 10px #444;
}

dialog::backdrop {
	background-color: rgba(0,0,0,0.5);
}

body:has(dialog[open]) { overflow: hidden;}
body.hasDialogOpened { overflow: hidden;}

#toast {
	position: fixed;
	bottom: 20px;
	background-color: rgba(0, 0, 0, .50);
	color: white;
	width: 500px;
	padding: 0.5em;
	min-height: 2em;
	margin-left: auto;
	margin-right: auto;
	bottom: 20px;
	left: 0px;
	right: 0px;
	z-index: 100;
}

sepa {
	display: inline;
	margin-left: 0.5em;
	margin-right: 0.5em;
}

.inline {
	margin-left: 0.5em;
	margin-right: 0.5em;
	color: var(--bg);
}
.comando { cursor: pointer;}

.pezza {
	position: absolute;
	top: 0px;
	height: 100%;
	width: 100%;
	background-color: rgba( 255,255,255,0.7);
	background-color: rgba( 0,0,0,0.6);
	z-index: 400;
}

table.login {
	border: 1px solid var(--bg);
}

table.login td { padding: 3px;}
table.login th { padding: 3px;color:var(--bg)}
td.label {text-align:right;white-space: nowrap;}
td.label:after {content: ":"}
td.label.morerows{ vertical-align: baseline;}

div.content {
	position: absolute;
	left: 0px;
	top: 80px;
	right: 0px;
	bottom: 0px;
	background-color: #FFF;
	overflow: auto;
	padding: 5px;
}

div.left {
	position: absolute;
	left: 0px;
	top: 80px;
	bottom: 0px;
	width: 300px;
	background-color: var(--bg-lite);
	overflow: auto;
	padding: 5px;
}

div.content.short {
	left: 300px;

}

table.prefe.lista td  {
	border: 1px solid var(--bg-lite);
	padding: 3px;	
	vertical-align: baseline;
}

table.prefe th {
	border: 1px solid var(--fg);
	color: var(--fg);
	background-color: var(--bg);
	text-align: left;
	padding: 3px;	
	vertical-align: baseline;
}

table.prefe th.c { text-align: center;}
table.prefe th.r { text-align: right;}

table.prefe.lista.compatta td, table.prefe.lista.compatta th  {
	padding: 1px;	
}

table.prefe.xDialog {
}

table.prefe.xDialog td {
	padding: 5px;
}

table.prefe.xDialog .footer td {
	border-top: 1px solid var(--bg);
	padding-top: 4px;
	background-color: var(--bg-lite);
	
}

table.prefe input, table.prefe select, table.prefe textarea {
	font-family: Verdana;
	font-size: 14px;
	background-color: var(--bg-lite);
}

table.edit textarea.code {
	font-family: Monospace;
}

td.icon {
  background-color: white;
  border-width: 0px !important;
  padding: 0px !important;
  white-space: nowrap;
}

td.icon.r {text-align: right;}

dialog div.header {
	background-color: var(--bg);
	color: white;
	font-weight: bold;
	padding: 3px;
}

dialog div.header.flex {
	display: flex;
	justify-content: space-between;
}

dialog div.header .inline {
	background-color: var(--bg);
	color: white;
	font-size: 150%;
}

table.elenco td  {
	border: 1px solid var(--bg-lite);
	padding: 1px !important;	
}

div.print {
	display:inline-block;
	min-width:60vw;
	max-width:80vw; 
	max-height:80vh; 
	overflow: auto; 
	margin-top: 0px;
}

iframe { 
	border:0px solid black;
	width: 100%;	
	height: 100%;	
}

.pallino {
	border: 1px solid black;
	display: inline-block;
	width: 1em;
	height: 1em;
	border-radius: 50%;
	vertical-align: baseline;
}


.pezza dialog {
	background-color: white;
	padding: 0px;
	border: 1px solid black;
	margin-left: auto;
	margin-right: auto;
	margin-top: 50px;
	padding: 0px;
	display: inline-block;
	box-shadow: 0px 0px 100px #fff;
	
}


@media print {
	div.print {
		min-width:100vw; 
		max-width:100vw;  
		width:100vw; 
		overflow: visible; 
		margin: 0px;
	}
	
	.pezza {
		display: block;
		background-color: white;
		color: black;
		text-align: left;
	}
	
	.noprint, dialog, .menucontainer, .content {
		display: none;	
	}
}

