/* The help link for field types closes the label's line on the right. */
.field-type-label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .5rem;
}
.field-options-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .75rem;
    margin-bottom: 1rem;
    align-items: start;
}
.field-options-grid > .form-group {
    display: grid;
    grid-template-rows: 3em 2.5rem;
    justify-items: center;
    align-items: center;
    min-width: 0;
    margin: 0;
    text-align: center;
}
.field-options-grid > .form-group[hidden] { display: none; }
.field-options-grid:has(> .field-search-calculation-group[hidden]) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field-options-grid > .form-group > label { margin: 0; align-self: end; padding-bottom: .35rem; max-width: 100%; overflow-wrap: anywhere; }
.field-options-grid .field-required-group { grid-column: 1; }
.field-options-grid .field-expandable-group { grid-column: 2; }
.field-options-grid .field-calculation-group { grid-column: 3; }
.field-options-grid .field-search-calculation-group { grid-column: 4; }
.field-options-grid input[type="checkbox"] { margin: 0; justify-self: center; }
.field-options-grid textarea { width: 100%; min-width: 0; min-height: 2rem; }
.field-options-grid textarea[hidden] { display: none !important; }
.field-options-grid .tnx-executable-preview {
    width: 100%;
    height: 2.5rem;
    min-height: 2.5rem;
    max-height: 2.5rem;
    padding: 0;
    justify-content: center;
    overflow: hidden;
}
.field-options-grid .tnx-executable-preview .api-node {
    transform: scale(.45);
    transform-origin: left center;
    max-width: none;
    width: 222%;
    min-height: 4rem;
    max-height: 5rem;
    overflow: hidden;
    text-align: left;
}
