app-sangh-search-member {
    background: var(--ion-background-content);

    ion-header {
        ion-toolbar {
            display: flex;
            justify-content: space-between;

            ion-icon {
                margin-right: var(--ion-margin-10);
                color: #fff;
                float: right;
            }

            ion-title {
                ion-icon {
                    font-size: var(--ion-font-size-24);
                }
            }
        }

        ion-item {
            &.search {
                margin: var(--ion-margin-0);
                padding: var(--ion-padding-10) var(--ion-padding-15);

                ion-input {
                    height: inherit;

                    input {
                        padding: var(--ion-padding-10) !important;
                    }
                }

                ion-icon {
                    position: absolute;
                    color: #ccc;
                    right: 2px;
                    font-size: 22px;
                    z-index: 99;
                }

                ion-button {
                    width: 48%;
                    margin: var(--ion-margin-0);

                    &:last-child {
                        margin-left: 4%;

                        &::part(native) {
                            --background: var(--ion-content-color);
                        }
                    }

                    &::part(native) {
                        min-height: 30px;
                        height: 30px;
                    }
                }
            }
        }
    }

    ion-content {
        ion-list {
            padding: var(--ion-padding-10) 0;
            border-bottom: 1px solid #efefef;

            ion-item {
                margin: var(--ion-margin-0);

                ion-avatar {
                    margin: var(--ion-margin-0) var(--ion-margin-15) var(--ion-margin-0) var(--ion-margin-0);

                    img {
                        background: #e2f0ff;
                    }
                }

                ion-label {
                    display: flex !important;
                    justify-content: space-between;
                    align-items: center;
                    margin: var(--ion-margin-0);

                    h3 {
                        margin: var(--ion-margin-0) !important;
                        font-weight: 600 !important;
                        white-space: normal;

                        p {
                            font-weight: 400;
                            color: #999;
                            font-size: var(--ion-font-size-12) !important;
                            line-height: 16px !important;
                        }
                    }

                    ion-button {
                        margin: var(--ion-margin-0);
                        min-height: 30px;
                        height: 30px;

                        &.following {
                            &::part(native) {
                                --background: var(--ion-background-content);
                                color: var(--ion-color);
                            }
                        }
                    }
                }
            }
        }

        &.sangh {
            ion-list {
                ion-item {
                    ion-label {
                        ion-button {
                            &::part(native) {
                                --background: var(--ion-background-content-sangh);
                                color: var(--ion-color-sangh);
                                border: 1px solid;
                            }
                        }
                    }
                }
            }
        }

        h3 {
            p {
                color: var(--ion-color-sangh);
            }
        }
    }
}

ion-modal {
    &.sangh-filter {
        --height: 350px;
        align-items: flex-end;
        --height: calc(350px + env(safe-area-inset-bottom));

        ion-content {
            ion-button {
                margin: var(--ion-margin-0);

                &::part(native) {
                    --background: var(--ion-color-sangh);
                }
            }

            ion-item {
                &:first-child {
                    margin-top: var(--ion-margin-10);
                }

                ion-select,
                ionic-selectable {
                    height: 2.813rem;
                    border: 1px solid var(--ion-background-content-sangh);
                }

                ionic-selectable {
                    border: 1px solid var(--ion-background-content-sangh);
                    padding: var(--ion-padding-10) !important;
                }
            }

            input {
                width: 100%;
                display: flex;
                align-items: center;
                padding-left: 5px;
                font-size: 12px;
                border: 1px solid var(--ion-background-content-sangh);
                border-radius: 0.25rem;
                height: 2.813rem;
                background: transparent;
            }

            h4 {
                font-size: var(--ion-font-size-18);
                color: var(--ion-color-sangh);
            }

            .filter-btn {
                padding: var(--ion-padding-0) var(--ion-padding-15);

                ion-button {
                    width: 48%;

                    &:last-child {
                        margin-left: 4%;

                        &::part(native) {
                            --background: var(--ion-content-color);
                        }
                    }
                }
            }

            .ionic-selectable-value {
                span {
                    display: flex;

                    .ionic-selectable-value-item {
                        position: relative;
                        overflow: visible;

                        &:before {
                            content: ",";
                        }

                        &:first-child {
                            &:before {
                                content: "";
                            }
                        }

                        &:last-child {
                            overflow: hidden;
                        }
                    }
                }
            }

            .ionic-selectable-icon {
                width: 12px;
            }
        }
    }
}

.sangh-selectable {
    ionic-selectable-modal {
        ion-button {
            &::part(native) {
                --background: var(--ion-color-sangh);
                --color: white;
            }
        }

        ion-content {
            ion-list {
                ion-item-group {
                    ion-item {
                        ion-icon {
                            &.ion-color-primary {
                                --ion-color-base: var(--ion-color-sangh) !important;
                            }
                        }

                        ion-label {
                            white-space: normal !important;
                        }
                    }
                }
            }
        }
    }
}