.editor-table input:not([type="number"]),
.batch-edit-row input:not([type="number"]):not([type="radio"]) {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
}

input[type="number"] {
    appearance: textfield;
    box-sizing: border-box;
    width: 5ch;
    min-width: 5ch;
    align-self: flex-start;
    text-align: right;
}

.panel input:invalid:not(.phase-add-form input),
.panel .phase-add-form[data-attempted] input:invalid,
.panel select:invalid,
.panel textarea:invalid {
    background-color: #fff4f4;
    border-color: #c78383;
}

.editor-table {
    width: auto;
    table-layout: auto;
    border-spacing: 0 8px;
}

.editor-table th,
.editor-table td {
    padding: 0;
    text-align: left;
    vertical-align: top;
}

.editor-table th {
    padding-right: 8px;
}

.attribute-input-scroll {
    max-width: 100%;
    overflow-x: auto;
}

.attribute-input-table {
    width: max-content;
    table-layout: auto;
    border-spacing: 4px;
}

.attribute-input-table th,
.attribute-input-table td {
    vertical-align: middle;
    text-align: center;
}

.attribute-input-table th[scope="row"] {
    text-align: left;
}

/* Approach names must not contribute to the table's preferred width. */
.attribute-input-group-label {
    display: block;
    width: 0;
    min-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.entity-editor-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
