/* Applied admin menu customizations (separators, soft-hidden items, custom menu items). */

#adminmenu .wpps-soft-hidden {
	display: none !important;
}

#adminmenu.wpps-show-hidden .wpps-soft-hidden {
	display: block !important;
}

#adminmenu.wpps-show-hidden .wpps-soft-hidden:hover {
	opacity: 1;
}

#adminmenu .wpps-show-all-toggle > a {
	cursor: pointer;
}

/* Flattened former grandchildren (WP only supports 2 menu levels). */
#adminmenu .wp-submenu li.wpps-flattened-child > a {
	padding-left: 24px;
}

/* Keep notification/update bubbles styled in submenu flyouts (color schemes often
   override link color on hover and wash out nested badge markup). */
#adminmenu .wp-submenu .awaiting-mod,
#adminmenu .wp-submenu .update-plugins,
#adminmenu .wp-submenu .menu-counter,
#adminmenu .opensub .wp-submenu .awaiting-mod,
#adminmenu .opensub .wp-submenu .update-plugins,
#adminmenu .wp-submenu a:hover .awaiting-mod,
#adminmenu .wp-submenu a:focus .awaiting-mod,
#adminmenu .wp-submenu a:hover .update-plugins,
#adminmenu .wp-submenu a:focus .update-plugins {
	display: inline-block !important;
	background-color: #d63638 !important;
	color: #fff !important;
	vertical-align: top;
	box-sizing: border-box;
	margin: 1px 0 -1px 2px;
	padding: 0 5px;
	min-width: 18px;
	height: 18px;
	border-radius: 9px;
	font-size: 11px;
	line-height: 1.6;
	text-align: center;
}

#adminmenu .wp-submenu .awaiting-mod .pending-count,
#adminmenu .wp-submenu .update-plugins .plugin-count,
#adminmenu .wp-submenu .update-plugins .update-count {
	color: #fff !important;
	background: transparent !important;
}

/* User-added separators render as a visible line (native WP separators stay an invisible gap). */
#adminmenu li.wpps-user-separator {
	height: auto !important;
	margin: 6px 0 !important;
	padding: 0 !important;
}

#adminmenu li.wpps-user-separator .separator {
	height: 0 !important;
	padding: 0 !important;
	margin: 0 12px !important;
	border-top: 1px solid rgba(255, 255, 255, 0.25) !important;
}

/* Legacy class from older organizer builds; core separators use .wp-menu-separator. */
#adminmenu li.menu-icon-separator {
	height: 1px !important;
	margin: 8px 0 !important;
	background-color: #3c434a !important;
	border: none !important;
	border-top: 1px solid #3c434a !important;
	padding: 0 !important;
	overflow: visible !important;
	min-height: 1px !important;
	line-height: 1px !important;
}

#adminmenu li.menu-icon-separator .wp-menu-name,
#adminmenu li.menu-icon-separator .wp-menu-image,
#adminmenu li.menu-icon-separator .wp-menu-image::before,
#adminmenu li.menu-icon-separator a {
	display: none !important;
	height: 0 !important;
	width: 0 !important;
}

#adminmenu li[id^="menu-http"]::before,
#adminmenu li[id^="menu-http"]::after,
#adminmenu li[id^="menu-http"] > a::before,
#adminmenu li[id^="menu-http"] > a::after,
#adminmenu li[id^="menu-https"]::before,
#adminmenu li[id^="menu-https"]::after,
#adminmenu li[id^="menu-https"] > a::before,
#adminmenu li[id^="menu-https"] > a::after,
#adminmenu li[id^="menu-javascript"]::before,
#adminmenu li[id^="menu-javascript"]::after,
#adminmenu li[id^="menu-javascript"] > a::before,
#adminmenu li[id^="menu-javascript"] > a::after,
#adminmenu li[id^="menu-custom_"]::before,
#adminmenu li[id^="menu-custom_"]::after,
#adminmenu li[id^="menu-custom_"] > a::before,
#adminmenu li[id^="menu-custom_"] > a::after {
	content: none !important;
	display: none !important;
}
