.leftMenuPanel {
	position: relative;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-top: 0;
	border-radius: 0 0 8px 8px;
}

.leftMenuScroll {
	position: relative;
	overflow-x: hidden;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: #b9c5d8 #f3f5f8;
}

.leftMenuScroll::-webkit-scrollbar {
	width: 8px;
}

.leftMenuScroll::-webkit-scrollbar-track {
	background: #f3f5f8;
	border-radius: 8px;
}

.leftMenuScroll::-webkit-scrollbar-thumb {
	background: #b9c5d8;
	border-radius: 8px;
}

.leftMenuScroll::before,
.leftMenuScroll::after {
	position: sticky;
	left: 0;
	z-index: 2;
	display: block;
	width: 100%;
	height: 14px;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.2s ease;
	content: "";
}

.leftMenuScroll::before {
	top: 0;
	margin-bottom: -14px;
	background: linear-gradient(to bottom, rgb(255 255 255 / 96%), rgb(255 255 255 / 0%));
}

.leftMenuScroll::after {
	bottom: 0;
	margin-top: -14px;
	background: linear-gradient(to top, rgb(255 255 255 / 96%), rgb(255 255 255 / 0%));
}

.leftMenuScroll.can-scroll-up::before,
.leftMenuScroll.can-scroll-down::after {
	opacity: 1;
}

[id="leftMenu"].treeMenu {
	position: relative;
	margin: 0;
	padding: 10px 8px 14px;
	list-style: none;
	height: auto;
	max-height: none;
	overflow: visible;
	background: transparent;
	border: 0;
	border-radius: 0;

	--icon-folder-closed: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%237BA3E8' d='M3 7.5A2.5 2.5 0 0 1 5.5 5H10l1.6 2H18.5A2.5 2.5 0 0 1 21 9.5V18a2.5 2.5 0 0 1-2.5 2.5h-13A2.5 2.5 0 0 1 3 18V7.5z'/><path fill='%239FBAED' d='M3 10a2 2 0 0 1 2-2h14a2 2 0 0 1 1.94 2.49l-1.4 5.6a2 2 0 0 1-1.94 1.51H4.4a2 2 0 0 1-1.94-2.49l.54-2.16L3 10z'/></svg>");
	--icon-folder-open: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%237BA3E8' d='M3 8a2.5 2.5 0 0 1 2.5-2.5H10l1.6 2H18a2.5 2.5 0 0 1 2.44 1.94L21 12H7a2 2 0 0 0-1.94 1.51L4.1 17.3A2.5 2.5 0 0 1 3 15.5V8z'/><path fill='%23B8CCF2' d='M2.4 13.4A2 2 0 0 1 4.34 12h16.2a1.2 1.2 0 0 1 1.16 1.5l-.95 3.8a2 2 0 0 1-1.94 1.5H3.46a1.2 1.2 0 0 1-1.16-1.5l.1-.4 1-3.5z'/></svg>");
	--icon-toggle-plus: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'><rect x='0.5' y='0.5' width='13' height='13' rx='2' fill='white' stroke='%23b9b9b9'/><path d='M3.5 7h7M7 3.5v7' stroke='%235a5a5a' stroke-width='1.2' stroke-linecap='round'/></svg>");
	--icon-toggle-minus: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'><rect x='0.5' y='0.5' width='13' height='13' rx='2' fill='white' stroke='%23b9b9b9'/><path d='M3.5 7h7' stroke='%235a5a5a' stroke-width='1.2' stroke-linecap='round'/></svg>");
}

[id="leftMenu"].treeMenu ul {
	margin: 0;
	padding-left: 20px;
	list-style: none;
	position: relative;
	height: auto;
	max-height: none;
	overflow: visible;
}

[id="leftMenu"].treeMenu > li {
	padding-left: 14px;
}

[id="leftMenu"].treeMenu li {
	position: relative;
	margin: 2px 0;
	min-height: 24px;
	line-height: 24px;
	height: auto;
	max-height: none;
	overflow: visible;
}

[id="leftMenu"].treeMenu li::before {
	content: "";
	position: absolute;
	left: -10px;
	top: -8px;
	bottom: -8px;
	width: 1px;
	background: #d9d9d9;
}

[id="leftMenu"].treeMenu li::after {
	content: "";
	position: absolute;
	left: -10px;
	top: 12px;
	width: 10px;
	height: 1px;
	background: #d9d9d9;
}

[id="leftMenu"].treeMenu > li::before,
[id="leftMenu"].treeMenu > li::after {
	display: none;
}

[id="leftMenu"].treeMenu .menuLink {
	position: relative;
	display: inline-block;
	padding: 0 6px 0 0;
	color: #2b2b2b;
	font-size: 14px;
	line-height: 24px;
	text-decoration: none;
	border-radius: 4px;
	vertical-align: middle;
}

[id="leftMenu"].treeMenu .menuLink:hover {
	background: #f5f9ff;
}

[id="leftMenu"].treeMenu .menuLink.selected {
	font-weight: 600;
	color: #0b5ed7;
}

[id="leftMenu"].treeMenu .tree-toggle {
	position: absolute;
	left: 10px;
	top: 4px;
	width: 14px;
	height: 14px;
	background: var(--icon-toggle-plus) center / 14px 14px no-repeat;
	cursor: pointer;
	box-sizing: border-box;
	z-index: 1;
	transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

[id="leftMenu"].treeMenu .tree-item.open > .tree-toggle {
	background-image: var(--icon-toggle-minus);
	transform: rotate(90deg);
}

[id="leftMenu"].treeMenu .tree-item.has-children > .menuLink {
	padding-left: 60px;
}

[id="leftMenu"].treeMenu .tree-item.has-children > .menuLink::before {
	content: "";
	position: absolute;
	left: 32px;
	top: -2px;
	width: 28px;
	height: 28px;
	background: var(--icon-folder-closed) center / contain no-repeat;
	opacity: 1;
	transition: opacity 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

[id="leftMenu"].treeMenu .tree-item.has-children > .menuLink::after {
	content: "";
	position: absolute;
	left: 32px;
	top: -2px;
	width: 28px;
	height: 28px;
	background: var(--icon-folder-open) center / contain no-repeat;
	opacity: 0;
	transition: opacity 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

[id="leftMenu"].treeMenu .tree-item.open > .menuLink::before {
	opacity: 0;
}

[id="leftMenu"].treeMenu .tree-item.open > .menuLink::after {
	opacity: 1;
}

[id="leftMenu"].treeMenu .tree-item:not(.has-children) > .menuLink::before {
	content: "• ";
	position: static;
	width: auto;
	height: auto;
	margin-right: 4px;
	background: none;
	color: #9da3af;
}

[id="leftMenu"].treeMenu .tree-submenu {
	display: block;
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	transition: max-height 0.48s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	will-change: max-height, opacity;
}

[id="leftMenu"].treeMenu.is-animated .tree-submenu {
	transition: max-height 0.48s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

[id="leftMenu"].treeMenu:not(.is-animated) .tree-submenu {
	transition: none;
}

[id="leftMenu"].treeMenu .tree-item.open > .tree-submenu {
	max-height: 999999px;
	opacity: 1;
}

[id="leftMenu"].treeMenu small {
	margin-left: 6px;
	color: #8a8a8a;
	font-size: 12px;
}

@media screen and (width <= 1024px) {
	.leftMenuPanel {
		border: 0;
		border-radius: 0;
	}

	[id="leftMenu"].treeMenu {
		padding: 8px 0 10px;
	}

	[id="leftMenu"].treeMenu > li {
		padding-left: 14px;
	}
}

/* Сброс стилей dresscode для древовидного меню */
#leftMenu.treeMenu,
#leftMenu.treeMenu > li,
#main.color_white #leftMenu.treeMenu,
#main.color_white #leftMenu.treeMenu > li {
	background: #fff !important;
}

#leftMenu.treeMenu > li:hover,
#leftMenu.treeMenu .activeDrop,
#main.color_white #leftMenu.treeMenu > li:hover {
	color: inherit !important;
	background: #fff !important;
}

#leftMenu.treeMenu li .menuLink,
#main.color_white #leftMenu.treeMenu li .menuLink {
	color: #2b2b2b !important;
}
