/**
 * Editor Remit — admin styles
 * Used on: user profile page, summary page (Users > Editor Remit)
 */

/* ── Profile: read-only pill tags ─────────────────────────────────────────── */

.trem-no-restriction {
	margin: 0;
}

.trem-pill-list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 6px;
}

.trem-pill {
	background: #f0f0f1;
	border: 1px solid #c3c4c7;
	border-radius: 3px;
	padding: 3px 10px;
	font-size: 13px;
	line-height: 1.5;
}

/* ── Profile: Select all / None links ─────────────────────────────────────── */

.trem-select-links {
	margin: 0 0 8px;
}

/* ── Profile: hierarchical checkboxes ─────────────────────────────────────── */

/*
 * Higher specificity needed — WordPress admin has .form-table td label styles
 * that would otherwise override display:block on these labels.
 */
#trem-profile-cats .trem-cat-label {
	display: block;
	margin-bottom: 6px;
	/* --trem-indent is set inline as a CSS custom property (dynamic depth value) */
	padding-left: calc(var(--trem-indent, 0) * 20px);
}

.trem-cat-description {
	color: #646970;
	font-size: 12px;
}

/* ── Summary table columns ────────────────────────────────────────────────── */

.trem-col-user {
	width: 20%;
}

.trem-col-role {
	width: 10%;
}

.trem-col-actions {
	width: 120px;
	vertical-align: middle;
}

/* ── Summary table: inline editor ─────────────────────────────────────────── */

/*
 * .trem-cat-editor, .trem-save-row, .trem-cancel-row initial hidden state is
 * handled via inline style="display:none" in PHP — inline styles have the
 * highest specificity and are toggled reliably by JS. Do not set display:none
 * here as it would lose the specificity battle against .button styles.
 */

.trem-cat-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	margin-bottom: 4px;
}

.trem-cat-grid label {
	white-space: nowrap;
}

/* ── Shared: muted text (e.g. Unrestricted) ───────────────────────────────── */

.trem-muted {
	color: #646970;
}
