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

.@{prefix}-download-menus {

    width: 50px;
    height: 50px;

    .fm {
        color: #fff;
    }
}

.@{prefix}-download-list {
    padding: 0 8px;
    max-height: 660px;
    overflow: auto;

    .download-header {
        width: 332px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 14px;

        .download-header-text {
            font-size: 16px;
            font-weight: 600;
            color: #333333;
            line-height: 20px;
        }

        .more-list {
            display: flex;
            align-items: center;
            font-size: 12px;
            font-weight: 400;
            color: @maycur-color;
            line-height: 20px;
            cursor: pointer;
        }
    }

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

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

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

        .ant-input {
            background-color: #f7f7f7;
            padding-left: 10px;
        }

        .ant-input-group-addon {
            width: 90px;
            padding: 0;

            &:first-child {
                border: none;
            }

            .ant-select {
                width: 100%;
                padding: 0 10px;
            }
        }

        .ant-select-selection {
            font-size: 12px;

            .ant-select-selection__rendered {
                margin: 0;
            }

            .ant-select-arrow {
                right: 0;
            }
        }
    }

    .download-list-empty {
        width: 100%;
        height: 200px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;

        .mkbs-empty-circle {
            display: flex;
            justify-content: center;
        }

        .fm {
            font-size: 48px;
            color: #c0c3cc;
        }
    }

    .download-list-item {
        width: 332px;
        padding: 10px 0;
        display: flex;
        align-items: center;
        border-bottom: 1px solid #bcbcbc;

        .list-item-introduce {
            display: flex;
            flex-direction: column;
            flex: 1;

            .list-item-name {
                font-size: 14px;
                font-weight: 400;
                color: #333333;
                line-height: 20px;
                display: flex;

                .list-item-max-name {
                    max-width: 222px;
                    white-space: nowrap;
                    cursor: pointer;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    display: block;
                }
            }

            .list-item-time {
                font-size: 12px;
                font-weight: 400;
                color: #999999;
                line-height: 16px;
            }
        }

        .list-item-status {
            width: 46px;
            display: flex;
            justify-content: space-between;

            .fm {
                color: #bcbcbc;
                cursor: pointer;
            }
        }
    }
}