/* Content of the "Link Stats" column displayed in the post listing. */

.wp-list-table th.column-daextam_link_stats {
	width: 190px;
}

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

	.wp-list-table th.column-daextam_link_stats {
		width: auto;
	}
}

.daextam-link-stats {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	line-height: 1.6;
}

.daextam-link-stats__label {
	font-weight: 600;
}

.daextam-link-stats__metrics {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
}

/* Every metric carries a tooltip that describes its meaning and the process that generates it. */
.daextam-link-stats__metric {
	display: inline-flex;
	align-items: center;
	padding: 0 8px;
	border-left: 1px solid #dcdcde;
	cursor: help;
}

.daextam-link-stats__metric:first-child {
	padding-left: 0;
	border-left: 0;
}

.daextam-link-stats__metric .dashicons {
	width: 16px;
	height: 16px;
	font-size: 16px;
	line-height: 16px;
	color: #787c82;
}

.daextam-link-stats__value {
	margin-left: 3px;
}

/**
 * Value that can be outdated, because the post has been modified after the last update of the data.
 *
 * The state is conveyed with the color and with the description available in the tooltip of the value.
 */
.daextam-link-stats__metric--stale .dashicons,
.daextam-link-stats__metric--stale .daextam-link-stats__value {
	color: #bd8600;
}

/* Metric that links to the tab of the Dashboard menu used to generate the missing value. */
a.daextam-link-stats__metric--action {
	text-decoration: none;
	cursor: pointer;
}

a.daextam-link-stats__metric--action:hover .dashicons,
a.daextam-link-stats__metric--action:focus .dashicons,
a.daextam-link-stats__metric--action:hover .daextam-link-stats__value,
a.daextam-link-stats__metric--action:focus .daextam-link-stats__value {
	color: #2271b1;
}

/* The status carries a tooltip that describes why the values are not available. */
.daextam-link-stats__status {
	color: #787c82;
	cursor: help;
}

.daextam-link-stats__action {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	white-space: nowrap;
}

.daextam-link-stats__action .dashicons {
	width: 14px;
	height: 14px;
	margin-left: 2px;
	font-size: 14px;
	line-height: 14px;
}

/* Display the column label on the small screens, where the list table columns are stacked. */
@media screen and (max-width: 782px) {

	.wp-list-table tr:not(.inline-edit-row):not(.no-items) td.column-daextam_link_stats.daextam_link_stats {
		display: block;
	}

	.daextam-link-stats {
		justify-content: flex-start;
	}
}
