/*
==================================================
SIDEBAR
==================================================
*/
#sidebar {
	--sidebar-width: min(500px, 40vw);
	--sidebar-bg: #f5f5f5;
	--sidebar-border: #333;
	--sidebar-text: #333;
	--sidebar-text-hover: #fff;
	--sidebar-accent: #337ab7;
	--sidebar-border: #ddd;
	--sidebar-hover-bg: #e7e7e7;
	--sidebar-active-bg: #337ab7;
	--sidebar-active-text: #fff;
	
	position: fixed;
	inset: 0 auto 0 0;
	width: var(--sidebar-width);
	height: 100vh;
	padding-top: 52px;
	box-sizing: border-box;
	background: var(--sidebar-bg);
	color: #fff;
	transform: translateX(-100%);
	transition: transform 0.3s ease;
	overflow-x: hidden;
	overflow-y: auto;
	z-index: 1000;
}

#sidebar.open {
	transform: translateX(0);
}

/*
==================================================
HEADER
==================================================
*/
#sidebar .sidebar-header {
	position: relative;
	padding: 20px;
	background: var(--sidebar-header-bg);
}

#sidebar .sidebar-header h4 {
	margin: 0;
	padding-right: 30px;
}

/*
==================================================
MENU
==================================================
*/
#sidebar ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

#sidebar li {
	margin: 0;
	padding: 0;
}

#sidebar .menu-link {
	display: flex;
	align-items: flex-start;
	box-sizing: border-box;
	width: 100%;
	padding: 13px 18px;
	color: var(--sidebar-text);
	text-decoration: none;
	border-bottom: 1px solid var(--sidebar-border);
}

#sidebar .menu-link:hover, #sidebar .menu-link:focus {
	color: var(--sidebar-text-hover);
	background: var(--sidebar-accent);
	text-decoration: none;
}

#sidebar .menu-link:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: -2px;
}

/*
==================================================
MENU TEXT
==================================================
*/
#sidebar .menu-text {
	flex: 1 1 auto;
	min-width: 0;
	line-height: 1.45;
	overflow-wrap: anywhere;
}

/*
==================================================
ACCORDION ICON
==================================================
*/
#sidebar .menu-icon {
	flex: 0 0 18px;
	width: 18px;
	margin-left: 15px;
	padding-top: 3px;
	text-align: center;
	font-size: 11px;
	transition: transform 0.2s ease;
}

#sidebar .menu-link[aria-expanded="true"] .menu-icon {
	transform: rotate(180deg);
}

/*
==================================================
SUBMENU
==================================================
*/
#sidebar .menu-link {
	padding-left: 18px;
}

#sidebar .submenu .menu-link {
	padding-left: 35px;
}

#sidebar .submenu .submenu .menu-link {
	padding-left: 55px;
}

#sidebar .submenu .submenu .submenu .menu-link {
	padding-left: 75px;
}

#sidebar .submenu .submenu .submenu .submenu .menu-link {
	padding-left: 95px;
}

/*
==================================================
MAIN CONTENT
==================================================
*/
#content {
	box-sizing: border-box;
	padding: 20px;
	transition: margin-left 0.3s ease;
}

#content.sidebar-open {
	margin-left: var(--sidebar-width);
}

/*
==================================================
OVERLAY
==================================================
*/
#sidebar-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.3s ease, visibility 0.3s ease;
	z-index: 999;
}

#sidebar-overlay.visible {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

/*
==================================================
MOBILE
==================================================
*/
@media ( max-width : 767px) {
	#sidebar {
		--sidebar-width: 90vw;
	}
	#content.sidebar-open {
		margin-left: 0;
	}
}

/*
==================================================
REDUCED MOTION
==================================================
*/
@media ( prefers-reduced-motion : reduce) {
	#sidebar, #content, #sidebar-overlay, #sidebar .menu-icon {
		transition: none;
	}
}

/* =========================================================
   SIDEBAR SEARCH
   ========================================================= */
#sidebar .sidebar-search {
	padding: 12px 15px;
	border-bottom: 1px solid var(--sidebar-border);
}

#sidebar .sidebar-search-wrapper {
	position: relative;
}

#sidebar .sidebar-search input {
	width: 100%;
	height: 38px;
	margin: 0;
	padding: 8px 38px 8px 34px;
	box-sizing: border-box;
	color: #333;
	background: #fff;
	border: 1px solid #ccc;
	border-radius: 4px;
	outline: none;
}

#sidebar .sidebar-search input:focus {
	border-color: #66afe9;
	box-shadow: 0 0 5px rgba(102, 175, 233, 0.5);
}

#sidebar .sidebar-search-icon {
	position: absolute;
	top: 11px;
	left: 11px;
	color: #777;
	pointer-events: none;
}

#sidebar .sidebar-search-clear {
	position: absolute;
	top: 0;
	right: 0;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #777;
	cursor: pointer;
	display: none;
}

#sidebar .sidebar-search-clear:hover, #sidebar .sidebar-search-clear:focus
	{
	color: #333;
	outline: none;
}

#sidebar .sidebar-search-clear.visible {
	display: block;
}

/* ---------------------------------------------------------
   Search filtering
   --------------------------------------------------------- */
#sidebar #sidebar-accordion li.sidebar-search-hidden {
	display: none;
}

/*
 * Optional indication when there are no matches.
 */
#sidebar .sidebar-search-empty {
	display: none;
	padding: 15px 18px;
	color: #aaa;
	font-size: 13px;
	text-align: center;
}

#sidebar .sidebar-search-empty.visible {
	display: block;
}

/* =========================================================
   SIDEBAR MENU CONTROLS
   ========================================================= */
#sidebar .sidebar-menu-controls {
	display: flex;
	gap: 6px;
	margin-top: 8px;
}

#sidebar .sidebar-control-btn {
	flex: 1 1 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 32px;
	padding: 6px 8px;
	border: 1px solid #444;
	border-radius: 3px;
	color: #ccc;
	background: #2b2b2b;
	font-size: 12px;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color
		0.2s ease;
}

#sidebar .sidebar-control-btn:hover {
	color: #fff;
	background: #383838;
	border-color: #555;
}

#sidebar .sidebar-control-btn:focus {
	color: #fff;
	outline: none;
	border-color: #66afe9;
}

#sidebar .sidebar-control-btn:active {
	background: #444;
}

/* Slightly smaller controls on narrow screens */
@media ( max-width : 767px) {
	#sidebar .sidebar-control-btn {
		font-size: 11px;
	}
}

#boxNew {
	z-index: 10000;
}