/* GLOBAL */

:root {
	--fd-title-highlight-color: #764A98;
}

/* meta boxes titles */
.postbox[id^=fd_] .hndle.ui-sortable-handle {
	color: var(--fd-title-highlight-color);
}

/* EDITORIAL OVERVIEW + DISCUSSION OVERVIEW */

.fd-key-metrics {
	display: flex;
}

.fd-key-metrics__metric {
	flex: 1;
	padding: 5px;
	text-align: center;
}

.fd-key-metrics__metric:not(:last-of-type) {
	border-right: 1px solid #ddd;
}

.fd-key-metrics__icon {
	vertical-align: initial;
}

/* CONTENT BREAKDOWN */

.fd-content-breakdown-col-icon {
	display: none;
}

@media
only screen and (max-width: 520px),
only screen and (min-width: 783px) and (max-width: 1220px),
only screen and (min-width: 1500px) and (max-width: 1740px),
only screen and (min-width: 1801px) and (max-width: 2120px) {
	.fd-content-breakdown-col-label {
		display: none;
	}

	.fd-content-breakdown-col-icon {
		display: inline-block;
	}
}

/* MEDIA BREAKDOWN */

.fd-media-breakdown-col-icon {
	display: none;
}

@media
only screen and (min-width: 800px) and (max-width: 880px),
only screen and (min-width: 961px) and (max-width: 1140px),
only screen and (min-width: 1500px) and (max-width: 1590px),
only screen and (min-width: 1801px) and (max-width: 2040px) {
	.fd-media-breakdown-col-label {
		display: none;
	}

	.fd-media-breakdown-col-icon {
		display: inline-block;
	}
}

/* CONTENT ACTIVITY */

.fd-content-activity-form {
	text-align: right;
}

.fd-content-activity-form__label {
	display: inline-block;
	width: 11%;
}

.fd-content-activity-form__select {
	width: 43%;
	margin-bottom: 2px;
}

/* COMMENTS ACTIVITY */

.fd-comments-activity-table {
	table-layout: fixed;
}

.fd-comments-activity-status-header {
	width: 9px;
}

.fd-comments-activity-comment-header {
	width: 70%;
}

.fd-comments-activity-user-header {
	width: 30%;
}

.fd-comments-activity-when-header {
	width: 38px;
}

.fd-comments-activity-comment {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* SETTINGS */

.fd-alert {
	display: flex;
	align-items: center;
	margin: 1rem 0;
	border: 1px solid #e5e5e5;
	box-shadow: 0 1px 1px rgba(0,0,0,.04);
	background: #fff;
}

.fd-alert__icon {
	width: 96px;
	margin: 2.5rem;
}

.fd-alert__content {
	flex-grow: 1;
	margin: 0 1rem;
}

.fd-alert__list {
	padding-inline-start: 1rem;
	list-style: disc;
}

.fd-alert__actions {
	display: flex;
	flex-direction: column;
	align-self: flex-end;
	align-items: center;
	margin: 2rem;
}

.fd-alert__actions > * {
	margin-top: 1rem;
}

/* TITLE */

.fd-title-info {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	white-space: nowrap;
	gap: .75rem;
	container: fd-title-info / inline-size;
	width: 100%;
}

.fd-title-info__title {
	color: var(--fd-title-highlight-color);
}

.fd-title-info__image {
	align-self: flex-start;
}

.fd-title-info__feedback {
	display: flex;
	align-items: center;
	gap: .75rem;
	white-space: wrap;
	font-size: 0.8125rem;
}

.fd-title-info__text {
	white-space: nowrap;
	font-size: .75rem;
	font-weight: bold;
}

.wp-core-ui .button.fd-title-info__button {
	display: flex;
	align-items: center;
	gap: .5ch;
	padding-left: .375rem;
	border-color: var(--fd-title-highlight-color);
}

.wp-core-ui .button.fd-title-info__button:not(.button-primary) {
	color: var(--fd-title-highlight-color);
}

.wp-core-ui .button.fd-title-info__button svg {
	fill: var(--fd-title-highlight-color);
}

.wp-core-ui .button.fd-title-info__button.button-primary {
	background: var(--fd-title-highlight-color);
}

.wp-core-ui .button.fd-title-info__button.button-primary:hover,
.wp-core-ui .button.fd-title-info__button.button-primary:visited {
	color: white;
}

.wp-core-ui .button.fd-title-info__button.button-primary svg {
	fill: white;
}

@media only screen and (width <= 782px) {
	.fd-title-info__image {
		width: 40px;
	}
}

@media only screen and (width > 782px) {
	.fd-title-info__image {
		width: 30px;
	}
}

@container fd-title-info (width <= 720px) {
	.fd-title-info__feedback {
		flex-wrap: wrap;
	}
}

@container fd-title-info (width > 1032px) {
	.fd-title-info__feedback {
		margin-left: auto;
	}
}

/* LAYOUT UTILITIES */

.fd-util-wait,
.fd-util-wait * {
	cursor: wait !important;
}

.fd-util-clearfix:after {
	visibility: hidden;
	display: block;
	font-size: 0;
	content: " ";
	clear: both;
	height: 0;
}

.fd-util-block {
	display: block;
}

.fd-util-inline {
	display: inline-block;
	vertical-align: middle;
}

.fd-util-margin-top {
	margin-top: 10px;
}

.fd-util-margin-bottom {
	margin-bottom: 10px;
}

.fd-util-border-right {
	border-right: 1px solid #e5e5e5;
}

.fd-util-float-right {
	float: right;
}

.fd-util-normal-table td {
	display: table-cell !important; /* WP has some aggressive rules we sometimes need to supersede */
}

.fd-util-medium {
	font-size: 14px;
}

.fd-util-large {
	font-size: 32px;
}

.fd-util-light {
	font-weight: 200;
}

.fd-util-grey {
	color: #999;
}

.fd-util-red {
	color: #ff0000;
}

.fd-util-center {
	text-align: center !important; /* WP's cascades override this in tables */
}

.fd-util-right {
	text-align: right !important; /* WP's cascades override this in tables */
}

/* GRAPHIC ELEMENTS */

.fd-trafficlight {
	display: inline-block;
	width: 10px;
	height: 10px;
	margin-top: 4px;
	margin-right: 4px;
	margin-left: 4px;
	border-radius: 5px;
	background-color: #666;
}

.fd-trafficlight--green {
	background-color: #006505;
}

.fd-trafficlight--orange {
	background-color: #d98500;
}

.fd-trafficlight--red {
	background-color: #a00;
}

.fd-icon {
	overflow: hidden;
	width: 48px;
	height: 48px;
	margin-right: 10px;
	border-radius: 4px;
}

.fd-homeicon:before {
	content: "\f102";
	display: block;
	font-family: 'dashicons';
	font-size: 48px;
	line-height: 48px;
}

.fd-usericon:before {
	content: "\f110";
	display: block;
	font-family: 'dashicons';
	font-size: 48px;
	line-height: 48px;
}

/* toggle switch - adapted from https://codepen.io/mallendeo/pen/eLIiG */

input.fd-toggle {
	display: none;
}

.fd-toggle,
.fd-toggle:after,
.fd-toggle:before,
.fd-toggle *,
.fd-toggle *:after,
.fd-toggle *:before,
.fd-toggle + .fd-toggleButton {
	box-sizing: border-box;
}

.fd-toggle::-moz-selection,
.fd-toggle:after::-moz-selection,
.fd-toggle:before::-moz-selection,
.fd-toggle *::-moz-selection,
.fd-toggle *:after::-moz-selection,
.fd-toggle *:before::-moz-selection,
.fd-toggle + .fd-toggleButton::-moz-selection {
	background: none;
}

.fd-toggle::selection,
.fd-toggle:after::selection,
.fd-toggle:before::selection,
.fd-toggle *::selection,
.fd-toggle *:after::selection,
.fd-toggle *:before::selection,
.fd-toggle + .fd-toggleButton::selection {
	background: none;
}

.fd-toggle + .fd-toggleButton {
	outline: 0;
	display: inline-block;
	width: 3.25em;
	height: 1.75em;
	position: relative;
	cursor: pointer;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	background: #0085ba;
	border-radius: 2em;
	padding: 2px;
	-webkit-transition: all .4s ease;
	transition: all .4s ease;
}

.fd-toggle + .fd-toggleButton:after,
.fd-toggle + .fd-toggleButton:before {
	position: relative;
	display: block;
	content: "";
	width: 50%;
	height: 100%;
}

.fd-toggle + .fd-toggleButton:after {
	left: 0;
	border-radius: 50%;
	background: #fff;
	-webkit-transition: all .2s ease;
	transition: all .2s ease;
}

.fd-toggle + .fd-toggleButton:before {
	display: none;
}

.fd-toggle:checked + .fd-toggleButton:after {
	left: 50%;
}
