
modelingsdk-value-type-input .mat-form-field-infix {
    border-top: 0;
}

modelingsdk-properties-viewer {
    padding: 10px;
    display: flex;
    flex-direction: row;
    height: 100%;
}

.ama-properties-viewer {
    min-height: 90px;
    width: 560px;
    display: flex;
    flex-flow: column;

    .mat-table {
        border: 1px solid var(--theme-border-color);
        height: 100%;
        overflow: scroll;
        box-sizing: border-box;
    }

    .mat-header-row {
        top: 0;
        position: sticky;
        background-color: var(--theme-card-background-color);
    }

    .mat-row {
        cursor: pointer;

        &.active {
            background-color: var(--theme-border-color);

            .mat-cell {
                color: var(--theme-text-fg-color);
            }
        }

        &:last-of-type {
            border-bottom: 0;
        }

        .ama-ellipsis-cell {
            display: block;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            line-height: 48px;
        }
    }

    .ama-add-btn {
        padding: 0 10px;
        min-width: 30px;
        margin-left: 32px;
    }

    .mat-column-delete {
        text-align: right;
    }
}

.ama-properties-form {
    text-align: left;
    width: 360px;
    margin-left: 20px;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-flow: column;

    &.ama-space-top {
        margin-top: 65px;
    }

    .mat-form-field {
        display: block;
        width: 100%;
    }

    .ama-display-name-tooltip {
        display: flex;
        column-gap: 5px;
        align-items: center;
        margin-bottom: 10px;
    }

    .ama-display-name-toggle {
        width: 99%;
        margin-bottom: 10px;

        mat-button-toggle {
            width: 100%;
        }
    }

    .ama-variable-name-info-icon {
        vertical-align: middle;
        font-size: medium;
    }

    .ama-variable-tab--auto-height {
        overflow-y: auto;
        flex-grow: 1;

        .mat-tab-body-wrapper {
            height: 100%;
        }
    }

    .mat-tab-body-content {
        overflow: auto;
        padding-top: 12px;
        box-sizing: border-box;

        modelingsdk-expression-code-editor {
            display: block;
            height: 100%;
            min-height: 120px;
        }
    }

    .ama-variable-analytics-row {
        margin-bottom: 10px;
        .ama-variable-analytics {
            margin-left: 5px;
        }
    }
}

.ama-no-properties {
    color: var(--theme-text-color);
    width: 360px;
    font-size: 16px;
    margin-left: 20px;
    text-align: center;
    margin-top: 65px;
}

.ama-variables-filter {
    width: 460px;
    margin-left: 10px;
}

.ama-variable-type-required-row {
    display: flex;
    width: 100%;

    modelingsdk-property-type-selector-smart {
        width: 100%;
    }

    .ama-variable-required {
        top: 20px;
        position: relative;
        margin-left: 6px;
    }
}

.ama-properties-viewer__flex-row {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
}

.ama-properties-viewer__text-ellipsis {
    text-overflow: ellipsis;
    overflow: hidden;
    margin: 0;
}

.ama-properties-viewer__table {
    .mat-column-delete {
        max-width: 40px;
        justify-content: flex-end;
    }

    .mat-column-value {
        padding-left: 28px;
    }

    .mat-column-displayName {
        flex: 0.7 0 8%;
    }
}

.ama-properties-viewer__table__icon {
    display: block;
}

.ama-properties-viewer__table__icon-wrapper {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    height: 24px;
    width: 24px;
    margin: auto;
}

.ama-properties-viewer-error {
    height: 28px;
}

.ama-properties-viewer-error__info {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    border-top: 1px solid var(--theme-warn-color);
    padding-top: 4px;
    box-sizing: border-box;
    height: 28px;
}

.ama-properties-viewer-error__text {
    color: var(--theme-warn-color);
    font-size: var(--theme-caption-font-size);
    margin: 0;
}

.ama-properties-viewer-error__icon {
    margin-right: 4px;
}
