/*------------ Raadix 2021 STYLESHEET ---------------*/
/*------------ Gewijzigd: 4 juli 2021 ---------------*/
/*===================== TOP MENU ====================*/

#topmenu {
	position: fixed;
	z-index: 1000;
	display: grid;
	grid-template-columns: 15mm repeat(12, 1fr) 15mm;
	grid-template-rows: 7mm 7mm;
	gap: 1mm;
	left: 0;
	right: 0;
	top: 0;
	height: 15mm;
	background-color: var(--theme-color);
	padding: 0 1mm;
	margin: 0;
}

.menu-text { display: inline-block; }

@media only screen and (max-width: 70cm) {
	#topmenu { grid-template-columns: 15mm repeat(10, 1fr) 15mm; }
	.menu-text { display: inline-block; }
}
@media only screen and (max-width: 60cm) {
	#topmenu { grid-template-columns: 15mm repeat(8, 1fr) 15mm; }
	.menu-text { display: inline-block; }
}
@media only screen and (max-width: 40cm) {
	#topmenu { grid-template-columns: 15mm repeat(7, 1fr) 15mm; }
	.menu-text { display: inline-block; }
}
@media only screen and (max-width: 15cm) {
	#topmenu { grid-template-columns: 15mm repeat(6, 1fr) 15mm; }
	.menu-text { display: none; }
}

#top-raadix-logo {
	grid-column: 1 / 2;
	grid-row: 1 / 3;
}

#top-user-icon {
	grid-column: -1 / -2;
	grid-row: 1 / 3;
}

/* remove later 16-3-2021 */
#top-install-tab {
	display: none;
}

.top-button {
	font-size: 8mm;
	line-height: 13mm;
	border-radius: 2mm;
	border: none;
	cursor: pointer;
	padding: 0;
	margin: 1mm 0;
	text-align: center;
	color: white;
}
.top-button:hover {
	color: var(--theme-color);
	background-color: white;
	outline: none;
}

#top-message {
	grid-column: 2 / -2;
	font-size: 4mm;
	line-height: 5mm;
	color: white;
	padding: 1mm 2mm;
	text-align: center;
	white-space: nowrap; 
	overflow: hidden;
	text-overflow: ellipsis;
	user-select: none;
}

.menu-tab {
	font-size: 4mm;
	line-height: 5mm;
	color: white;
	padding: 1mm 2mm;
	text-align: left;
	border-top-left-radius: 2mm;
	border-top-right-radius: 2mm;
	background-color: var(--grey-color);
	cursor: pointer;
	white-space: nowrap; 
	overflow: hidden;
	text-overflow: ellipsis;
	user-select: none;
}

.menu-tab:hover {
	color: var(--grey-text);
	background-color: white;
}

#topmenu > .tab-select {
	color: var(--grey-text);
	background-color: white;
}

/*=================== LOGIN DROPDOWN =====================*/

#logout-menuitem {
	display: block;
}

#settings-menuitem {
	display: none;
}

#install-menuitem {
	display: none;
}

.install-blink {
	animation-name: installblink;
	animation-duration: 1.0s;
	animation-iteration-count: 100;
}

@keyframes installblink {
  20% { background-color: var(--green-color); }
}

#topmenu #login-user:hover {
    cursor: pointer;
}

/* ===== dropdown menus ===== */

#topleft-dropdown:popover-open {
	left: 1mm;
	top: 14mm;
}

#topright-dropdown:popover-open {
	right: 1mm;
	top: 14mm;
}
.dropdown {
	max-width:  100%; 
	max-height: 100%; 
	padding: 0;
	margin: 0;
	border: none;
	border-radius: 2mm;
	cursor: pointer;
	&:popover-open {
		position: absolute;
		inset: unset;
		margin: 0;
	}
	& > li {
		display: flex;
		flex-flow: row nowrap;
		justify-content: flex-start;
		gap: 3mm;
		font-size: 4mm;
		text-decoration: none;
		padding: 3mm 4mm;
		margin: 0;
		color: white;
		background-color: var(--grey-color);
		&:hover {
			background-color: var(--light-blue-color);
		}
	}
}

.topdrop-icon {
	padding: 1mm 2mm;
	font-size: 4mm;
	line-height: 8mm;
	text-align: center;
	color: white;
}
.topdrop-item {
	padding: 1mm 2mm;
	font-size: 4mm;
	line-height: 8mm;
	text-align: left;
	cursor: pointer;
	white-space: nowrap; 
	overflow: hidden;
	text-overflow: ellipsis;
	background-color: var(--grey-color);
	color: white;
	border: none;
}
.topdrop-item > option {
	padding: 1mm 2mm;
}
.topdrop-item:hover, .topdrop-select {
	background-color: var(--theme-color);
	color: white;
}


