/*
 * Copyright (c) 2023, Mohamed eRrais
 * merrais@tech2us.ma
 * https://akademy.ma - https://digitalservices.ma - https://tech2us.ma
 * meTree.css
 */

/*
MeR 240611 2336 : Tree performing style 
MeR 230924 2041 : 2-level context-menu for a div 
MeR 231023 1504 : 3-level tree-menu : Used for the first time in math.akademy.ma
*/


#tree {
	position: relative;
	width: calc(100%);
    list-style-type: none;
}

#tree, #tree ul, #tree li {
	margin: 0;
    padding: 0;
}


#tree li {
    cursor: pointer;
	display: block;
	color: azure;
}

#tree li.selected {
    font-weight: bold;
	color: white;
}


#tree li.collapsed {
    display: none;
}

#tree .label {
	position: relative;
	width: auto;
	height: 2.2rem;
	opacity: 0.8;
	display: block;
	margin: 0;
	padding: 0.3rem 0.6rem;
	align-items: center;

	&:hover {
		border: 1px solid silver;
		opacity: 1;
		/*border: 1px solid silver;*/
	}
}

#SideTree {
	background-color: transparent;  /* rgb(32,18,77); */
}

/*
rgb(32,18,77)
rgb(53,28,117)
rgb(103,78,167)
rgb(142,124,195)
rgb(180,167,214)
*/

.Node1 {
	/*background-color:rgb(15, 3, 35);*/
	font-size: 1.1rem;
	color: rgb(22, 5, 72);
}

.Node2 {
	background-color:rgb(103,78,167);
	font-size: 1rem;

}

.Node3 {
	background-color:rgb(142,124,195);
	font-weight: normal;

}

.tree-context-menu {
	background-color:rgb(32,18,77, 0.7);
	color: rgb(228, 212, 237);
	display: none;
}