@use '../../../mat-selectors.scss' as ms;

#{ms.$mdc-dialog} {
    #{ms.$mat-dialog-surface}:is(div) {
        padding-bottom: 0;
    }
}

.adf-add-permission-dialog {
    .adf-add-permission-dialog-title {
        margin-bottom: 28px;
        margin-left: 20px;
        margin-right: 20px;
        font-size: var(--theme-title-font-size);
        font-weight: 600;
        font-style: normal;
        font-stretch: normal;
        line-height: 1.6;
        letter-spacing: -0.5px;
        color: var(--adf-theme-foreground-text-color-087);
    }

    .adf-add-permission-dialog-content {
        margin: 0;
        overflow: hidden;
        flex-grow: 1;
        height: 80vh;

        .adf {
            &-search-user-button {
                width: 100%;
                justify-content: unset;

                #{ms.$mat-button-label} {
                    padding-right: 0;
                }

                #{ms.$mat-icon} {
                    font-size: 24px;
                    width: 24px;
                    height: 24px;
                    margin-left: 0;
                }
            }

            &-add-member-action {
                padding: 0 15px;
            }
        }

        .adf-new-permission-table {
            height: 90%;
        }

        .adf-search-container {
            height: 100%;
        }
    }

    .adf-add-permission-dialog-actions {
        padding: 0 24px;
        background-color: var(--theme-background-color);
        display: flex;
        justify-content: flex-end;
        color: var(--adf-theme-foreground-text-color);

        button {
            text-transform: uppercase;
            font-weight: normal;
        }

        .adf-choose-action {
            &[disabled] {
                color: var(--adf-theme-foreground-secondary-text-color);
            }

            &:enabled {
                color: var(--theme-primary-color);
            }
        }
    }

    .adf-datatable-cell .adf-cell-value adf-user-role-column {
        position: unset;
    }
}
