/*
 * The schema form (0.102.0, roosterAdmin.schemaForm; CONTRACT §8.14): compiled on its own (assets/schema-form.css) and
 * loaded by rooster_admin_schema_form_assets(), so the common path pays nothing. Its rows are the field rows' recipe
 * (Ui::field_row()), its controls the kit's; this sheet adds the summary's place, a group of fields (a fieldset with
 * its legend), a read-only value and the JSON box's height.
 */

@reference "./chrome.css";

.rooster-admin-schema {
	@apply m-0 min-w-0;
}

.rooster-admin-schema__summary:empty {
	display: none;
}

.rooster-admin-schema__summary {
	@apply mb-4;
}

/* A group: an object's fields under its legend, one level deeper. */
.rooster-admin-schema__group {
	@apply m-0 min-w-0 rounded-md border border-border px-4 pt-1 pb-3;
}

.rooster-admin-schema__legend {
	@apply px-1 text-sm font-semibold text-foreground;
}

.rooster-admin-schema__desc {
	@apply m-0 mb-2 text-xs text-secondary-foreground;
}

/* A read-only value: text in the row, never a disabled control. */
.rooster-admin-schema__value {
	@apply m-0 py-1 text-sm wrap-anywhere text-foreground;
}

.rooster-admin-schema__value:empty::before {
	@apply text-muted-foreground;
	content: "—";
}

.rooster-admin-schema textarea.is-code {
	@apply min-h-32 w-full max-w-full text-xs;
}
