#adminmenu {
	margin: 0;
}

/**
 * Menu width
 */
#wpcontent,
#wpfooter {
	margin-left: 272px;
}

#adminmenuback,
#adminmenuwrap,
#adminmenu,
#adminmenu .wp-submenu {
	width: 272px;
}

#adminmenu .wp-submenu {
	left: 272px;
}

#adminmenu .wp-not-current-submenu .wp-submenu,
.folded #adminmenu .wp-has-current-submenu .wp-submenu {
	min-width: 272px;
}

/**
 * Fixes Gutenberg in not fullscreen mode.
 */
 @media (min-width: 783px) {
	.interface-interface-skeleton,
	.edit-post-layout .components-editor-notices__snackbar {
		left: 272px;
	}
}

@media (min-width: 961px) {
	.auto-fold .interface-interface-skeleton,
	.auto-fold .edit-post-layout .components-editor-notices__snackbar {
		left: 272px;
	}
}

/**
 * Jetpack logo
 */
#adminmenu [class*="activity-log"] .wp-menu-image img {
	padding-top: 7px;
}

/**
 * Site Card
 */
#adminmenu .toplevel_page_site-card .wp-menu-name {
	margin-left: 40px; /* icon width (32) + padding (8). */
	padding: 0;
}

#adminmenu li.toplevel_page_site-card a {
	padding: 10px 0 10px 8px;
}

#adminmenu .toplevel_page_site-card .wp-menu-image {
	background-image: none;
	background-position: center;
	background-repeat: no-repeat;
	background-size: 18px 18px;
	height: 32px;
	transform: translateZ(0);
	transition-property: background-image,background-color;
	transition-duration: .2s;
	width: 32px;

}

#adminmenu a.toplevel_page_site-card:hover,
#adminmenu li.toplevel_page_site-card:hover {
	background-color: inherit;
}

#adminmenu .toplevel_page_site-card img {
	opacity: initial;
}

#adminmenu .toplevel_page_site-card.has-site-icon img {
	padding: 0;
}

#adminmenu .toplevel_page_site-card:hover div.wp-menu-image,
#adminmenu .toplevel_page_site-card a:focus div.wp-menu-image {
	background-image: url("data:image/svg+xml,%3Csvg class='gridicon gridicons-house' height='24' width='24' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg%3E%3Cpath fill='%23fff' d='M22 9L12 1 2 9v2h2v10h5v-4c0-1.657 1.343-3 3-3s3 1.343 3 3v4h5V11h2V9z'/%3E%3C/g%3E%3C/svg%3E%0A");
}

#adminmenu .toplevel_page_site-card:not(.has-site-icon) .wp-menu-image {
	background-color: #c3c4c7;
}

#adminmenu .toplevel_page_site-card:not(.has-site-icon) .wp-menu-image img[src^="data:image/svg"] {
	height: auto;
	padding-top: 7px;
	width: 18px;
}

#adminmenu .toplevel_page_site-card:hover div.wp-menu-image img,
#adminmenu .toplevel_page_site-card a:focus div.wp-menu-image img {
	display: none;
}

.site__info .site__title {
	display: block;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.3;
}

.site__info .site__domain {
	display: block;
	max-width: 95%;
	font-size: 12px;
	line-height: 1.4;
	margin-top: 2px;
}

.site__info .site__title,
.site__info .site__domain {
	overflow: hidden;
	white-space: nowrap;
}
.site__info .site__title::after,
.site__info .site__domain::after {
	content: "";
	display: block;
	position: absolute;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	user-select: none;
	pointer-events: none;
	top: 0;
	bottom: 0;
	right: 0;
	left: auto;
	width: 20%;
	height: auto;
}

.site__info > .site__badge {
	font-size: 12px;
	border-radius: 12px;
	clear: both;
	display: inline-block;
	margin-top: 6px;
	margin-right: 3px;
	padding: 1px 10px;
}

/**
 * Stats
 */
[class*="toplevel_page_https://wordpress.com/stats/day"] .sidebar-unified__sparkline {
	float: right;
	margin-right: 8px;
}

/**
 * Folded State
 */
.folded #adminmenu a.menu-top {
	height: 31px;
}

.folded #adminmenu li.toplevel_page_site-card a {
	padding-left: 0;
}

/* Auto-folding of the admin menu */
@media only screen and (max-width: 960px) {
	#adminmenu,
	#adminmenuwrap,
	#adminmenuback {
		width: 272px;
	}

	.auto-fold #adminmenu a[class*="toplevel_page_http"].wp-first-item {
		height: auto;
	}

	.wp-responsive-open #adminmenu a.menu-top {
		height: auto;
	}

	.auto-fold #adminmenu div.wp-menu-image {
		width: 36px;
	}
}

@media screen and (min-width: 782px) and (max-width: 960px) {
	.auto-fold #adminmenu a.menu-top {
		height: 34px;
	}

	.auto-fold #adminmenu li.toplevel_page_site-card a {
		height: 36px;
		padding-left: 1px;
	}
}

@media screen and (max-width: 782px) {
	#adminmenu li.menu-top .wp-submenu>li>a,
	.auto-fold #adminmenu li.menu-top .wp-submenu>li>a {
		padding-left: 42px;
	}

	.auto-fold #adminmenu, .auto-fold #adminmenuback, .auto-fold #adminmenuwrap {
		width: 272px;
	}

	.auto-fold #adminmenu a.site-switcher,
	#adminmenu a.site-switcher {
		font-size: 14px;
	}
}

@media only screen and (max-width: 660px) {
	#adminmenuback,
	#adminmenuwrap,
	#adminmenu,
	#adminmenu .wp-submenu,
	.auto-fold #adminmenu,
	.auto-fold #adminmenuback,
	.auto-fold #adminmenuwrap {
		width: 100%;
	}

	ul#adminmenu a.wp-has-current-submenu:after,
	ul#adminmenu>li.current>a.current:after,
	ul#adminmenu li:hover a.wp-has-current-submenu:after,
	.auto-fold ul#adminmenu li:hover a.wp-has-current-submenu:after {
		display: none;
	}

	.auto-fold #adminmenu li.toplevel_page_site-card a {
		padding: 18px 0 18px 12px;
	}
}

/*
 * Styles for the nav-unification prototype (see pbAPfg-O2)
 * TODO: depending on project outcome move or delete styles
 */
#wpadminbar #wp-admin-bar-notes #wpnt-notes-unread-count.wpn-unread {
	top: 50%;
	left: 50%;
	transform: translate( -10px, -13px );

}

#wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar {
	transform: translateX( 1px );
}

#wpadminbar #wp-admin-bar-notes.active .noticon-bell:before {
	background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ij48cmVjdCB4PSIwIiBmaWxsPSJub25lIiB3aWR0aD0iMjQiIGhlaWdodD0iMjQiLz48Zz48cGF0aCBmaWxsPSIjZmZmZmZmIiBkPSJNNi4xNCAxNC45N2wyLjgyOCAyLjgyN2MtLjM2Mi4zNjItLjg2Mi41ODYtMS40MTQuNTg2LTEuMTA1IDAtMi0uODk1LTItMiAwLS41NTIuMjI0LTEuMDUyLjU4Ni0xLjQxNHptOC44NjcgNS4zMjRMMTQuMyAyMSAzIDkuN2wuNzA2LS43MDcgMS4xMDIuMTU3Yy43NTQuMTA4IDEuNjktLjEyMiAyLjA3Ny0uNTFsMy44ODUtMy44ODRjMi4zNC0yLjM0IDYuMTM1LTIuMzQgOC40NzUgMHMyLjM0IDYuMTM1IDAgOC40NzVsLTMuODg1IDMuODg2Yy0uMzg4LjM4OC0uNjE4IDEuMzIzLS41MSAyLjA3N2wuMTU3IDEuMXoiLz48L2c+PC9zdmc+") !important;
}

#wpadminbar > #wp-toolbar .wpnt-show span.noticon,
#wpadminbar #wp-admin-bar-notes.wpnt-show .noticon {
	color: #ffffff;
}

#wpadminbar ul#wp-admin-bar-root-default {
	padding-left: 0 !important;
}

#wpadminbar #wp-admin-bar-menu-toggle {
	display: none;
}
