/*------------------------------------------------------------------------------

This stylesheet is always loaded in wp-admin.

@since 1.6.0
@since 2.5.0

--------------------------------------------------------------------------------
TABLE OF CONTENTS:
--------------------------------------------------------------------------------
1.0 Welcome Screen
	1.1 Version Badge
	1.2 ---
	1.3 Credits Panel
2.0 Dashicons
	2.1 Top level menus
	2.2 Settings - Components
	2.3 Settings - URls
	2.4 Tools
3.0 Users
	3.1 Users List
	3.2 Site Notices
4.0 Emails - Edit page
5.0 Block Editor
6.0 Plugins page
------------------------------------------------------------------------------*/

/*------------------------------------------------------------------------------
 * 1.0 Welcome Screen
 *----------------------------------------------------------------------------*/

/*
 * 1.1 Version Badge
 */
.bp-badge {
	color: #d84800;
	display: inline-block;
	font: 400 150px/1 dashicons;
}

.bp-badge:before {
	content: "\f448";
}

.bp-version {
	color: #fff;
	background: #d84800;
	padding: 2px 5px;
}

.settings_page_bp-credits code,
.index_page_bp-about code {
	background-color: #e0e0e0;
	color: #636363;
	font-size: 1em;
}

/*
 * 1.3 Credits Panel
 *
 * Taken from WP 4.9.5.
 */
.bp-about-wrap {
	position: relative;
	max-width: 1050px;
	font-size: 15px;
}

.bp-about-wrap img {
	margin: 0;
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

.bp-about-wrap p {
	line-height: 1.5;
	font-size: 14px;
}

.bp-about-wrap h2 {
	margin: 40px 0 0.6em;
	font-size: 2.7em;
	line-height: 1.3;
	font-weight: 300;
	text-align: center;
}

.bp-about-wrap h3 {
	margin: 1.25em 0 0.6em;
	font-size: 1.4em;
	line-height: 1.5;
}

.bp-about-wrap code {
	font-size: 14px;
	font-weight: 400;
}

.bp-about-wrap .about-description {
	margin-top: 1.4em;
	font-weight: 400;
	line-height: 1.6;
	font-size: 19px;
}

.bp-about-wrap h3.wp-people-group {
	margin: 2.6em 0 1.33em;
	padding: 0;
	font-size: 16px;
	line-height: inherit;
}

.bp-about-wrap .wp-people-group {
	padding: 0 5px;
	margin: 0 -5px 0 -15px;
}

.bp-about-wrap .compact {
	margin-bottom: 0;
}

.bp-about-wrap .wp-person {
	display: inline-block;
	vertical-align: top;
	margin-left: 10px;
	padding-bottom: 15px;
	height: 70px;
	width: 250px;
}

.bp-about-wrap .compact .wp-person {
	height: auto;
	width: 150px;
	padding-bottom: 0;
	margin-bottom: 0;
}

.bp-about-wrap .wp-person .gravatar {
	float: right;
	margin: 0 0 10px 10px;
	padding: 1px;
	width: 60px;
	height: 60px;
}

.bp-about-wrap .compact .wp-person .gravatar {
	width: 30px;
	height: 30px;
}

.bp-about-wrap .wp-person .web {
	margin: 6px 0 2px;
	font-size: 16px;
	font-weight: 400;
	line-height: 2;
	text-decoration: none;
}

.bp-about-wrap .wp-person .title {
	display: block;
}

.bp-about-wrap p.wp-credits-list a {
	white-space: nowrap;
}

@media only screen and (max-width: 500px) {

	.bp-about-wrap {
		margin-left: 20px;
		margin-right: 10px;
	}

	.bp-about-wrap .bp-about-wrap h1 {
		margin-left: 0;
	}
}

/*------------------------------------------------------------------------------
 * 2.0 Dashicons
 *----------------------------------------------------------------------------*/

/*
 * 2.1 Top level menus
 */
#adminmenu #toplevel_page_bp-activity .wp-menu-image:before,
#adminmenu #toplevel_page_bp-activity_user .wp-menu-image:before,
#adminmenu #toplevel_page_bp-activity_network .wp-menu-image:before {
	content: "\f452";
}

#adminmenu #toplevel_page_bp-groups .wp-menu-image:before,
#adminmenu #toplevel_page_bp-groups_user .wp-menu-image:before,
#adminmenu #toplevel_page_bp-groups_network .wp-menu-image:before {
	content: "\f456";
}

#adminmenu #toplevel_page_bp-notifications .wp-menu-image:before,
#adminmenu #toplevel_page_bp-notifications_user .wp-menu-image:before,
#adminmenu #toplevel_page_bp-notifications_network .wp-menu-image:before {
	content: "\f439";
}

#adminmenu #toplevel_page_bp-messages .wp-menu-image:before,
#adminmenu #toplevel_page_bp-messages_user .wp-menu-image:before,
#adminmenu #toplevel_page_bp-messages_network .wp-menu-image:before {
	content: "\f457";
}

#adminmenu #toplevel_page_bp-friends .wp-menu-image:before,
#adminmenu #toplevel_page_bp-friends_user .wp-menu-image:before,
#adminmenu #toplevel_page_bp-friends_network .wp-menu-image:before {
	content: "\f454";
}

#adminmenu #toplevel_page_bp-settings .wp-menu-image:before,
#adminmenu #toplevel_page_bp-settings_user .wp-menu-image:before,
#adminmenu #toplevel_page_bp-settings_network .wp-menu-image:before {
	content: "\f108";
}

#adminmenu li.toplevel_page_bp-components .wp-menu-image,
#adminmenu li.toplevel_page_bp-general-settings .wp-menu-image {
	content: "\f448";
}

/*
 * 2.2 Settings - Components
 */
.settings_page_bp-components td.plugin-title span {
	float: right;
	width: 18px;
	height: 18px;
	margin-left: 5px;
}

.settings_page_bp-components td.plugin-title span:before {
	font-family: dashicons;
	font-size: 18px;
}

.settings_page_bp-components tr.activity td.plugin-title span:before {
	content: "\f452";
}

.settings_page_bp-components tr.notifications td.plugin-title span:before {
	content: "\f339";
}

.settings_page_bp-components tr.xprofile td.plugin-title span:before {
	content: "\f336";
}

.settings_page_bp-components tr.settings td.plugin-title span:before {
	content: "\f108";
}

.settings_page_bp-components tr.groups td.plugin-title span:before {
	content: "\f456";
}

.settings_page_bp-components tr.messages td.plugin-title span:before {
	content: "\f457";
}

.settings_page_bp-components tr.blogs td.plugin-title span:before {
	content: "\f120";
}

.settings_page_bp-components tr.friends td.plugin-title span:before {
	content: "\f454";
}

.settings_page_bp-components tr.core td.plugin-title span:before {
	content: "\f448";
}

.settings_page_bp-components tr.members td.plugin-title span:before {
	content: "\f307";
}

.settings_page_bp-page-settings .button-secondary .dashicons {
	position: relative;
	top: 3px;
}

#bp-admin-component-form .wp-list-table.plugins .plugin-title {
	width: 25%;
}

@media screen and ( max-width: 782px ) {

	.settings_page_bp-components td.plugin-title span {
		margin-top: 5px;
	}

	#bp-admin-component-form .wp-list-table.plugins .plugin-title {
		display: block;
		width: auto;
	}

	#bp-admin-component-form .subsubsub {
		margin-bottom: 0;
		padding-bottom: 35px;
	}
}

/*
 * 2.3 Settings - URLs
 */
.settings_page_bp-rewrites .bp-directory-url {
	width: 80%;
	box-shadow: 0 0 0 transparent;
	border: 1px solid #8c8f94;
	background-color: #fff;
	color: #2c3338;
}

.settings_page_bp-rewrites .bp-open-permalink .dashicons {
	vertical-align: sub;
}

/*
 * 2.4 Tools
 */
#adminmenu .toplevel_page_network-tools div.wp-menu-image:before {
	content: "";
}

body.tools-php .bp-tools dt {
	font-size: 1.1em;
	color: #646970;
	font-weight: 600;
	margin: 1em 0 0.5em 0;
}

body.tools-php .bp-tools dd {
	margin: 0;
}

body.tools_page_bp-members-invitations .nav-tab-wrapper,
body.tools_page_bp-optouts .nav-tab-wrapper {
	margin-bottom: 1em;
}

/*------------------------------------------------------------------------------
 * 3.0 Users
 *----------------------------------------------------------------------------*/

/*
 * 3.1 Users List
 */
body.site-users-php th#role,
body.users-php th#role,
body.users_page_bp-signups th#count_sent {
	width: 10%;
}

body.site-users-php th#name,
body.site-users-php th#email,
body.users-php th#name,
body.users-php th#registered,
body.users-php th#email,
body.users_page_bp-signups th#name,
body.users_page_bp-signups th#registered,
body.users_page_bp-signups th#email,
body.users_page_bp-signups th#date_sent {
	width: 15%;
}

body.users-php th#blogs,
body.users_page_bp-signups th#blogs {
	width: 20%;
}

body.users_page_bp-signups th.column-count_sent,
body.users_page_bp-signups td.count_sent {
	text-align: center;
}

.bp-signups-list table {
	margin: 1em 0;
}

.bp-signups-list .column-fields {
	font-weight: 700;
}

/*
 * 3.2 Site Notices
 */
.bp-new-notice-panel {
	background: #fff;
	border: 1px solid #e5e5e5;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
	font-size: 13px;
	line-height: 2.1;
	margin: 1.5em 0 3em;
	overflow: auto;
	padding: 10px 25px 25px;
	position: relative;
}

.bp-new-notice-panel label {
	clear: both;
	float: right;
	margin-left: 3%;
	width: 20%;
}

.bp-new-notice-panel input,
.bp-new-notice-panel textarea {
	clear: none;
	margin-bottom: 1em;
	width: 75%;
}

.bp-new-notice-panel input[type="text"]:after,
.bp-new-notice-panel textarea:after {
	clear: both;
	content: " ";
	display: table;
}

.bp-new-notice-panel .button-primary {
	margin-right: 23%;
	width: auto;
}

.bp-notice-about {
	font-size: 1em;
	margin-bottom: 1em;
}

.bp-new-notice {
	margin-bottom: 1em;
	margin-top: 0;
}

.bp-notices-list {
	margin-bottom: 0;
}

@media screen and (max-width: 782px) {

	.bp-new-notice-panel {
		margin-bottom: 1.5em;
	}

	.bp-new-notice-panel input,
	.bp-new-notice-panel textarea {
		margin-right: 0;
		width: 100%;
	}

	.bp-new-notice-panel .button-primary {
		margin-right: 0;
		width: auto;
	}

	.bp-new-notice-panel .button {
		max-width: 45%;
		word-wrap: break-word;
	}

	.bp-notice-about {
		margin-top: 0;
		margin-bottom: 1em;
	}

	.bp-new-notice {
		margin-bottom: 0.5em;
	}
}

/*------------------------------------------------------------------------------
 * 4.0 Emails - Edit Page
 *----------------------------------------------------------------------------*/
body.post-type-bp-email #excerpt {
	height: auto;
}

body.post-type-bp-email th#situation {
	width: 20%;
}

body.post-type-bp-email td.column-situation ul {
	margin: 0;
}

body.post-type-bp-email .categorydiv label {
	display: block;
	float: right;
	padding-right: 25px;
	text-indent: -25px;
}

/*------------------------------------------------------------------------------
 * 5.0 Block Editor
 *----------------------------------------------------------------------------*/
.block-editor-inserter__panel-header span.dashicons-buddicons-buddypress-logo {
	color: #d84800;
}

/*------------------------------------------------------------------------------
 * 6.0 Plugins page
 *----------------------------------------------------------------------------*/
#buddypress-update.not-shiny .update-message {
	border-right: 0;
	padding-right: 36px;
}

#buddypress-update.not-shiny .update-message:before {
	content: "\f534";
}

.buddypress .bp-welcome-panel {
	position: relative;
	overflow: auto;
	margin: 16px 0;
	padding: 23px 10px 0;
	border: 1px solid #c3c4c7;
	box-shadow: 0 1px 1px rgb(0 0 0 / 4%);
	background: #fff;
	background-image: none;
	font-size: 13px;
	line-height: 1.7;
}

.buddypress .bp-welcome-panel-close {
	position: absolute;
	top: 10px;
	left: 10px;
	padding: 10px 21px 10px 15px;
	font-size: 13px;
	line-height: 1.23076923;
	text-decoration: none;
}

.buddypress .bp-welcome-panel-close:before {
	position: absolute;
	top: 8px;
	right: 0;
	transition: all 0.1s ease-in-out;
	margin: 0;
	background: 100% 0;
	color: #787c82;
	content: "\f153";
	display: block;
	font: 600 16px/20px dashicons;
	height: 20px;
	text-align: center;
	width: 20px;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.buddypress .bp-welcome-panel-close:hover:before {
	color: #d63638;
}

.buddypress .bp-welcome-panel-content {
	margin-right: 13px;
	max-width: 1500px;
}

.buddypress .bp-welcome-panel-content h2 {
	line-height: 32px;
	margin-bottom: 1em;
}

.buddypress .bp-welcome-panel-content p {
	font-size: 14px;
}

.buddypress .bp-welcome-panel-content .bp-admin-notification-action {
	margin: 23px 0;
}

/*------------------------------------------------------------------------------
 * 7.0 Admins page with tabbed nav.
 *----------------------------------------------------------------------------*/
body.bp-is-tabbed-screen #wpcontent {
	padding-right: 0;
}

.bp-is-tabbed-screen .notice {
	margin: 25px 22px 15px 20px;
}

.buddypress-header {
	text-align: center;
	margin: 0 0 1rem;
	background: #fff;
	border-bottom: 1px solid #dcdcde;
}

.buddypress-title-section {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	clear: both;
	padding: 1rem 0;
}

.buddypress-title-section h1 {
	display: inline-block;
	font-weight: 600;
	margin: 0 0.8rem;
	font-size: 23px;
	padding: 9px 0 4px;
	line-height: 1.3;
}

.buddypress-title-section h1 .bp-badge,
.buddypress .bp-welcome-panel-content h2 .bp-badge {
	font-size: 32px;
	vertical-align: top;
}

.buddypress-tabs-wrapper {

	/* IE 11 */
	display: -ms-inline-grid;
	-ms-grid-columns: 1fr 1fr;
	vertical-align: top;

	/* modern browsers */
	display: inline-grid; /* stylelint-disable-line declaration-block-no-duplicate-properties */
	grid-template-columns: 1fr 1fr;
}

.buddypress-tabs-wrapper .buddypress-nav-tab {
	display: block;
	text-decoration: none;
	color: inherit;
	padding: 0.5rem 1rem 1rem;
	margin: 0 1rem;
	transition: box-shadow 0.5s ease-in-out;
}

.buddypress-tabs-wrapper .buddypress-nav-tab.active {
	box-shadow: inset 0 -3px #3582c4;
	font-weight: 600;
}

.buddypress-body {
	max-width: 800px;
	margin: 0 auto;
}

.buddypress-body .form-table {
	border: 1px solid #dcdcde;
	background-color: #fff;
	padding: 0.5rem 1rem;
	border-collapse: inherit;
}

.buddypress-body .form-table.hide {
	display: none;
}

/* Media queries */
@media screen and (max-width: 782px) {

	.buddypress-body {
		margin: 0 12px;
		width: auto;
	}
}

@media only screen and (max-width: 1004px) {

	.buddypress-body {
		margin: 0 22px;
		width: auto;
	}
}
