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

.expense-type-select {
    width: 600px !important;

    .content {
        display: flex;
        flex-direction: row;
        justify-content: space-between;

        .left,
        .right {
            display: flex;
            flex-direction: column;
            flex: 0 0 auto;
            padding: 10px;
            height: 460px;
            border-radius: 6px;

            :global {
                .ant-list {
                    flex: 1 1 auto;
                    overflow: auto;
                    height: 100%;
                }
            }
        }

        .left {
            width: 49%;
            background-color: @page-background;

            .search-box {
                flex: 0 0 auto;
                position: relative;

                :global(.fm) {
                    border-radius: 3px;
                    cursor: pointer;
                    position: absolute;
                    background-color: #fff;
                    right: 4px;
                    top: 4px;
                    width: 22px;
                    height: 22px;
                    font-size: 14px;
                    line-height: 22px;
                    text-align: center;
                    color: @weak-text-color;
                    z-index: 3;

                    &:hover {
                        color: @reject-color;
                        background-color: @reject-bg-color;
                    }
                }

                :global(.ant-input) {
                    border-bottom: none;
                }
            }

            .search-list,
            .source-list {
                display: flex;
                flex-direction: column;
                flex: 1 1 auto;
                overflow: hidden;
            }
        }

        .right {
            width: 49%;
            background-color: @selected-background;

            .status-bar {
                flex: 0 0 auto;
                margin: 5px 0;
                font-size: 12px;
                display: flex;
                flex-direction: row;
                align-items: flex-start;
                color: @weak-text-color;

                .bar-label {
                    flex: 0 0 auto;
                }

                .dep-count {
                    flex: 0 1 auto;
                    margin-right: 2px;

                }

                .staff-count {
                    flex: 0 1 auto;
                    margin-right: 2px;
                }

                .clear-all {
                    flex: 1 0 auto;
                    text-align: right;

                    .btn {
                        display: inline-block;
                        padding: 3px 5px;
                        cursor: pointer;
                        margin-top: -4px;

                        &:hover {
                            color: @reject-color;
                            background-color: @reject-bg-color;
                        }
                    }
                }
            }

            :global(.ant-alert) {
                flex: 0 0 auto;
                padding: 6px 10px;
                border-radius: 0;
                line-height: 17px;
                font-size: 12px;
                border: none;
                margin: 0 -10px;
                color: @weak-text-color;

                + :global(.ant-list) {
                    border-top: none;
                }
            }

            :global(.ant-list) {
                border-top: 1px solid @border-color;
            }
        }

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

            >span {
                vertical-align: middle;
            }

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

        // :global(.ant-list-item.disabled) {
        //     .item-name {
        //         color: @gray-text-color;

        //         :global(.fm) {
        //             &:before {
        //                 color: @gray-text-color;
        //             }
        //         }
        //     }
        // }

        :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;

            &:global(.selected) {
                background-color: @maycur-color;
            }
        }

        :global {
            .strong {
                color: @maycur-color;
                margin: 0 3px;
            }

            .ant-input-search {
                .ant-input {
                    background-color: #fff;

                    &:hover,
                    &:focus {
                        background-color: #fff;
                    }
                }
            }

            .ant-breadcrumb {
                font-size: 14px;
                margin: 5px 0 5px 10px;

                >span:last-child {
                    color: @weak-text-color;
                }
            }

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

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

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

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

                .fm-trash {
                    width: 22px;
                    height: 22px;
                    line-height: 22px;
                    font-size: 14px;
                    text-align: center;
                    color: @weak-text-color;
                    border-radius: 3px;

                    &:hover {
                        background-color: @reject-bg-color;
                        color: @reject-color;
                    }
                }

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

    :global {
        .ant-modal-footer {
            border-top: none;
        }
    }
}