flex-row:has(> label-field),
flex-row:has(> input-field) {
    padding: 0;
    border-bottom: 1px solid var(--border-color) !important;
    height: 100% !important;
    transition: border-color 0.3s ease;
}

label-field {
    display: grid;
    place-content: center;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    align-self: stretch;
    width: 20%;
    background: var(--bg-tertiary);
    border-right: 1px solid var(--border-color) !important;
    padding: 0.875rem 1rem;
    font-weight: 500;
    color: var(--text-primary);
    font-size: .92rem;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

    label-field label {
        font-weight: 500;
        color: var(--text-primary);
        margin: 0;
    }

input-field {
    display: flex;
    flex-direction: column;
    gap: .6em;
    padding: 0.875rem 1rem;
    height: 100% !important;
    width: 80%;
    background-color: var(--bg-secondary);
    transition: background-color 0.3s ease;
}

input-field.schema-table-field {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

input-field.schema-table-field .k-input,
input-field.schema-table-field .k-textbox {
    flex: 1;
    min-width: 0;
}

input-field.schema-table-field .schema-table-sep {
    flex-shrink: 0;
    color: var(--text-secondary, #6c757d);
    font-weight: 600;
    font-size: 1rem;
}

/* High Contrast mode for form fields */
[data-theme="high-contrast"] flex-row:has(> label-field),
[data-theme="high-contrast"] flex-row:has(> input-field) {
    border: 3px solid #ffffff !important;
    background-color: #000000 !important;
}

[data-theme="high-contrast"] label-field {
    background: #000000 !important;
    border-right: 3px solid #ffffff !important;
    color: #ffffff !important;
}

[data-theme="high-contrast"] label-field label {
    color: #ffffff !important;
}

[data-theme="high-contrast"] input-field {
    background-color: #000000 !important;
    color: #ffffff !important;
}

[data-theme="high-contrast"] input-field p,
[data-theme="high-contrast"] input-field span,
[data-theme="high-contrast"] input-field div {
    color: #ffffff !important;
}