@import '../../../style/variables.less';

.region-list-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;

    .opt-bar {
        margin: 0 0 5px 10px;

        .select-all-btn {
            display: inline-flex;
            flex-direction: row;
            align-items: center;
            color: @maycur-color;
            cursor: pointer;
        }
    }

    :global {
        .fm-check {
            width: 18px;
            height: 18px;
            line-height: 18px;
            text-align: center;
            background-color: #fff;
            color: #fff;
            border-radius: 100%;
            margin-right: 5px;
            font-size: 12px;
            display: inline-block;

            &.selected {
                background-color: @maycur-color;
            }
        }
        .ant-list {
            border-top: 1px solid @border-color;
            height: 300px;

            .ant-list-item {
                padding: 5px 0 5px 10px;
                cursor: pointer;

                &.selected {
                    .fm-check {
                        background-color: @maycur-color;
                    }
                }

                &.notick {
                    .fm-check {
                        visibility: hidden;
                    }
                }

                .fm-check {
                    flex: 0 0 auto;
                    margin-top: 2px;
                }

                .fm-organization {
                    flex: 0 0 auto;
                    width: 82px;
                    height: 22px;
                    line-height: 22px;
                    font-size: 12px;
                    text-align: center;
                    color: @maycur-color;
                    border-radius: 3px;

                    &:before {
                        font-size: 14px;
                    }

                    &:hover {
                        color: @maycur-color;
                        background-color: #fff;
                    }
                }
            }
        }
    }

    .item-name {
        flex: 1 1 auto;
        color: @primary-font-color;
        margin-right: 5px;

        :global(.fm) {
            color: @maycur-color;
            margin-right: 5px;
        }
    }
}
