@import url('https://use.fontawesome.com/releases/v5.15.4/css/all.css');
@import url('https://fonts.googleapis.com/css?family=Lato');
@import url('https://fonts.googleapis.com/css?family=Raleway');

html, body {
	font-size: 14px;
	height: 100%;
	margin: 0;
}

html {
	--menu-width: 220px;
}

body {
	color: #333;
	font-family: 'Lato', sans-serif;
	overflow: hidden;
}

img {
	border: 0;
	vertical-align: middle;
}

a:link, a:visited {
	color: #1C8BB7;
	text-decoration: none;
}

#main-container {
	width: 100%;
	height: 100%;
	display: grid;
	grid-template-columns: var(--menu-width) auto;
	grid-template-rows: 45px auto;
	grid-template-areas:
	    "header header"
	    "menu main";

	transition: all 0.4s;
}

#main-container.no-menu {
	grid-template-areas: "header header" "main main";
}

@media print {
	#main-container {
		grid-template-areas: "header header" "main main" !important;
	}

	#main-container > aside {
		display: none !important;
	}
}

/***********************************************************************/
/***************************** HEADER **********************************/
/***********************************************************************/

#main-container > header {
	grid-area: header;
	background: #000 url('../img/bg-header.png') center repeat-x;
	box-sizing: border-box;
	padding: 3px 0;
	line-height: 39px;
	white-space: nowrap;
	position: relative;
}

#main-container > header a:link, #main-container > header a:visited {
	color: #FFF;
}

#main-container > header > div > div {
	display: inline-block;
	color: #FFF;
	padding: 0 10px;
	font-family: 'Raleway', sans-serif;
}

#header-left > div:first-child {
	width: var(--menu-width);
}

#header-right {
	float: right;
}

#header-right > div {
	border-right: solid #666 1px;
}

#header-right > div:last-of-type {
	border-right: none;
}

.tasto-header:link, .tasto-header:visited {
	color: #FFF;
	display: inline-block;
}

#main-container > header a.tasto-header:hover, #main-container > header a.tasto-header.active {
	color: #cdcc08;
}

#header-notifications-container {
	position: absolute;
	top: 40px;
	right: 76px;
	width: 400px;
	height: calc(100vh - 50px);
	max-width: 90%;
	background: #f2f2f2;
	border: solid #e9e9e9 1px;
	box-shadow: 5px 5px 10px #888;
	padding: 12px;
	z-index: 100;
	overflow-y: auto;
}

#main-container > header > div > #notifications-container {
	padding: 0;
	display: block;
}

#notifications-bell {
	position: relative;
}

#notifications-counter {
	font-size: 10px;
	line-height: 16px;
	position: absolute;
	bottom: 5px;
	left: -11px;
	text-align: center;
	width: 16px;
	height: 16px;
	border-radius: 8px;
	background: #F00;
	color: #FFF;
}

#notifications-container a.notification:link, #notifications-container a.notification:visited {
	display: block;
	background: #FFF;
	color: #333;
	padding: 8px;
	white-space: normal;
	text-align: justify;
	box-shadow: 3px 3px 10px #999;
	margin-bottom: 10px;
}

#notifications-container a.notification:last-of-type {
	margin-bottom: 0;
}

#notifications-container a.notification:active {
	background: #F9F9F9;
}

.notifications-mid-title {
	line-height: 16px;
	padding-bottom: 5px;
	font-size: 13px;
	color: #333;
	font-weight: bold;
}

.notification-title {
	font-size: 12px;
	font-weight: bold;
	line-height: 18px;
}

.notification-text {
	font-size: 11px;
	line-height: 15px;
}

.notification-date {
	font-size: 9px;
	text-align: right;
	margin-top: 4px;
	color: #999;
	line-height: 10px;
}

/***********************************************************************/
/****************************** GRID  **********************************/
/***********************************************************************/

#main-container > aside {
	grid-area: menu;
	background-color: #f2f2f2;
	position: relative;
	overflow-x: hidden;
	overflow-y: auto;
	-ms-overflow-style: none; /* IE and Edge */
	scrollbar-width: none; /* Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
#main-container > aside::-webkit-scrollbar {
	display: none;
}

#main-container.no-menu > aside {
	display: none;
}

#main-container > main {
	grid-area: main;
	background-color: #fff;
	position: relative;
}

/***********************************************************************/
/****************************** MENU ***********************************/
/***********************************************************************/

#main-menu-resize {
	position: absolute;
	top: 0;
	right: 0;
	width: 3px;
	height: 100%;
	cursor: ew-resize;
	-webkit-transition: background-color 0.2s;
	-moz-transition: background-color 0.2s;
	-ms-transition: background-color 0.2s;
	-o-transition: background-color 0.2s;
	transition: background-color 0.2s;
	background: transparent;
}

#main-menu-resize:hover {
	background: rgba(113, 175, 113, 0.5);
}

#img-open-menu {
	-webkit-transition: opacity 0.3s ease-out;
	-moz-transition: opacity 0.3s ease-out;
	-o-transition: opacity 0.3s ease-out;
	-ms-transition: opacity 0.3s ease-out;
	transition: opacity 0.3s ease-out;
	position: fixed;
	z-index: 100;
	top: 5px;
	left: 5px;
}

a.main-menu-tasto:link, a.main-menu-tasto:visited {
	box-sizing: border-box;
	display: block;
	padding: 5px;
	line-height: 21px;
	cursor: pointer;
	font-size: 1.1rem;
	border-top: solid #EAEAEA 1px;
	border-bottom: solid #CDCDCD 1px;
	overflow: hidden;
	text-decoration: none;
	background-color: #FFF;
	color: #000;
}

a.main-menu-tasto.selected:link, a.main-menu-tasto.selected:visited {
	background-color: #71af71;
	color: #FFF;
}

.main-menu-cont > div {
	padding: 5px 0;
}

.cont-testo-menu {
	overflow: hidden;
	white-space: nowrap;
	vertical-align: middle;
}

a.main-menu-sub:link, a.main-menu-sub:visited {
	padding: 5px 0 5px 10px;
	white-space: nowrap;
	color: #000;
	display: block;
	cursor: pointer;
	text-decoration: none;
}

a.main-menu-sub:hover, .main-menu-sub.selected {
	background-color: rgba(113, 175, 113, 0.1);
	text-decoration: none;
}

.main-menu-sub img {
	vertical-align: middle;
}

@media screen and (max-width: 800px) {
	#main-menu {
		position: fixed;
		z-index: 1000;
		max-width: none;
	}

	#results-table-count, #results-table-pages {
		float: none;
		text-align: center;
	}

	#results-table-count > div:first-of-type {
		display: block;
	}

	#toolbar {
		overflow-x: auto;
	}
}

@media screen and (min-width: 800px) {
	a.main-menu-tasto:link, a.main-menu-tasto:visited {
		background-image: url('../img/menu-icon.png');
		background-repeat: no-repeat;
		background-position: 10px center;
		padding: 10px;
		padding-left: 35px;
	}

	a.main-menu-tasto.selected:link, a.main-menu-tasto.selected:visited {
		background-image: url('../img/menu-icon.png');
	}
}
