/* AOZ UI-v2 CSS Styles */

.aoz-ui-hidden {
	display: none ! important;
}

button.aoz-ui-undress { /* reset button to something more neutral */
	text-align: left;
	background: none; 
	border: none; 
	cursor: pointer;
	color: inherit;
}

.aoz-ui-no-select {
	user-select: none;
	-webkit-user-drag: none;  /* not official */
}

.aoz-ui-vsplitter {
	--width: 4px;
	position: relative;
    left: calc(100% - var(--width) / 2 + var(--col-gap) / 2);
    width: var(--width);
    background-color: transparent; /* #ffffff80;*/
    display: flex;
    justify-content: center;
    align-items: center;
	align-self: stretch;		/* override grid defaults */
	cursor: ew-resize;
	pointer-events: all;
	z-index: 1; /* was 9 */
}

.aoz-ui-vsplitter > .aoz-ui-gutter {
	--width: var(--col-gap);
	width: var(--width);
	height: 100%;
	background: transparent; /*blueviolet;*/
	pointer-events: none;
}

.aoz-ui-vsplitter > .aoz-ui-grip {
	position: absolute;
	/*width: 20px;*/
	width: 10px;
	height: min(100%, 50px);
	/*background: linear-gradient(magenta, purple);*/
	background: linear-gradient(cornflowerblue, steelblue);
	border-radius: 5px;
	/*pointer-events: none;*/
}

.aoz-ui-hsplitter {
	--height: 20px;
	position: relative;
	top: calc(100% - var(--height)/2 + var(--row-gap)/2);
	height: var(--height);  
	background-color: transparent; /* #ffffff80;*/
	display: flex;
	justify-content: center;
	align-items: center;
	align-self: stretch;		/* override grid defaults */
	width: 100%;
	cursor: ns-resize;
	pointer-events: all;
	z-index: 1;   /* was 9 */
}

.aoz-ui-hsplitter > .aoz-ui-gutter {
	--height: var(--row-gap);
	height: var(--height);
	width: 100%;
	background: transparent; /*blueviolet;*/
	pointer-events: none;
}

.aoz-ui-hsplitter > .aoz-ui-grip {
	position: absolute;
	/*height: 20px;*/
	height: 10px;
	width: min(100%, 50px);
	/*background: linear-gradient(magenta, purple);*/
	background: linear-gradient(cornflowerblue, steelblue);
	border-radius: 5px;
	pointer-events: none;
}

.aoz-ui-popupmenu {
	z-index: 999;
}

/* SIDEBAR MENU */
.aoz-ui-sm {
	--base-clr: transparent; /*#11121a;*/
	--line-clr: transparent; /*#42434a*/
	--hover-clr: #22253380;
	--hover-text-clr: black;
	--text-clr: #e6e6ef;
	--accent-clr: #5e97ff; /*#5e63ff;*/
	--accent-text-clr: black;
	--hover-accent-text-clr: black;
	--secondary-text-clr: #b0b3c1;
	--width: unset;
	--height: 100vh;
	--spacing: .4rem;		/* 0.85em */
	
	box-sizing: border-box;
    height: var(--height);
    width: var(--width);
    padding: 5px 1em;
    background-color: var(--base-clr);
    border-right: 1px solid var(--line-clr);
    position: sticky;
    top: 0;
    align-self: start;
    /*transition: 300ms ease-in-out;*/
    overflow: hidden;
    text-wrap: nowrap;
	
	.aoz-ui-sm-leaf, .aoz-ui-sm-dropdown {
		border-radius: .25em;
		padding: var(--spacing);
		text-decoration: none;
		color: var(--text-clr);
		display: flex;
		align-items: center;
		gap: 1em;
		width: 100%;
		text-align: left;
        border: none;
        background: var(--base-clr);
	}
	
	/*.aoz-ui-sm-dropdown {
		width: 100%; 
		text-align: left; 
		background: none; 
		border: none; 
		cursor: pointer;
		font: inherit; 
	}*/
	
	.aoz-ui-sm-leaf.selected, .aoz-ui-sm-dropdown.selected {
		background-color: var(--accent-clr);
		color: var(--accent-text-clr);
	}
	
	.aoz-ui-sm-leaf:not(.selected):hover, .aoz-ui-sm-dropdown:not(.selected):hover {
		background-color: var(--hover-clr);
		color: var(--hover-text-clr);
	}
	
	.aoz-ui-sm-leaf.selected:hover, .aoz-ui-sm-dropdown.selected:hover {
		background-color: color-mix(in srgb, var(--accent-clr), var(--hover-clr));
		color: --hover-accent-text-clr;
	}

	.aoz-ui-sm-leaf span, .aoz-ui-sm-dropdown span {
		flex-grow: 1;
		text-overflow: ellipsis;
		overflow: hidden;
	}
	
	.aoz-ui-sm-leaf span[contenteditable] {
		text-overflow: clip;
		/*background-color: #00000069;*/
        border-radius: 6px;
        padding-left: 2px;
        outline: none;
	}
	
	.aoz-ui-sm-leaf span[contenteditable]::selection {
		background-color: #303d55;
	}
	
	.rotate [data-chevron] {
		rotate: 180deg;
	}

	[data-chevron] {
		transition: 200ms ease;
	}

	ul ul.aoz-ui-sm-submenu li {
		margin-left: 1em;
	}

	.aoz-ui-sm-submenu{
		display: grid;
		grid-template-rows: 0fr;
		transition: 300ms ease-in-out;

		> div {
			overflow: hidden;
		}
	}

	.aoz-ui-sm-submenu.show{
		grid-template-rows: 1fr;
	}
}