
.ub-lister-bottom {
    overflow: hidden;
    text-align: left;

    .right {
        float: right;
    }
}

.ub-lister-batch {
    overflow: hidden;
    position: relative;

    .text {
        display: block;
        margin: 0 0.5rem 0.5rem 0;
        float: left;
        line-height: 28px;
    }
}

.ub-lister-search {
    // overflow: hidden;
    // position: relative;

    .field-more-expand {
        display: none;
        // overflow: hidden;
        // clear: both;
    }

    .field-more-expand__active {
        display: block;
    }

    .field {
        //float: left;
        display: inline-flex;
        margin: 0 0.5rem 0.5rem 0;
        // overflow: hidden;
        min-width: 9rem;

        &.auto {
            min-width: auto;
        }

        &.right {
            float: right;
            margin-right: 0;
        }

        &.full {
            width: 100%;
        }

        .btn + .btn {
            margin-left: 0.2rem;
        }

        .btn-group {
            .btn + .btn {
                margin: 0;
            }
        }

        .name {
            display: inline-block;
            vertical-align: top;
            line-height: 1.5rem;
            margin-right: 0.25rem;
            min-width: 1.4rem;
        }

        .input {
            display: inline-block;
            vertical-align: middle;
            flex-grow: 1;

            input[type="text"] {
                width: 100%;
            }
        }

        .connector, .unit {
            display: inline-block;
            color: #c4cfdb;
        }

        label {
            border: 0.05rem solid #EEE;
            border-radius: 0.15rem;
            padding: 0 0.5rem;
            line-height: 1.5rem;
            height: 1.6rem;
            vertical-align: middle;
            background: #FFF;
            margin-bottom: 0;

            input {
                vertical-align: middle;
            }
        }

        .el-checkbox {
            margin-right: 0.5rem;
            margin-bottom: 0;

            &:last-child {
                margin-right: 0;
            }
        }
    }

    .full {
        overflow: hidden;
    }

    .more {
        float: right;
    }

    .search {
        clear: both;
    }

    .batch {
        position: absolute;
        right: 0.5rem;
        bottom: 0.5rem;
    }

    .batch-tr {
        position: absolute;
        right: 0.5rem;
        top: 0.5rem;
    }
}

.ub-lister-table, .ub-table {
    --table-border-color: #EEE;

    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    text-align: left;
    font-size: var(--font-size, 0.65rem);
    border-radius: 0.25rem;

    &.mini {
        font-size: 12px;

        & > thead > tr > th, & > tbody > tr > td, & > tr > td {
            font-size: 12px;
            padding: 0.2rem;
        }

        //& > tbody {
        //    & > tr {
        //        &:last-child {
        //            & > td {
        //                border-bottom: none;
        //            }
        //        }
        //    }
        //}
    }

    &.list {
        & > tbody > tr > td, & > tr > td, & > thead > tr > th {
            padding: 5px;
            line-height: 1.2em;
        }
    }

    &.border {
        border: 1px solid var(--table-border-color);

        & > *:last-child > tr:last-child > td {
            border-bottom: none;
        }
    }

    &.border-all {
        border: 1px solid var(--table-border-color);

        & > thead > tr > th, & > tbody > tr > td {
            border-bottom: 1px solid var(--table-border-color);
            border-right: 1px solid var(--table-border-color);
        }

        & > *:last-child > tr:last-child > td {
            border-bottom: none;
        }
    }

    //&.record-border {
    //    tr {
    //        border-bottom: 1px solid #EEE;
    //    }
    //}

    &.head-dark {
        & > thead > tr > th {
            background: #F5F7FA;
        }
    }

    //&.foot-dark {
    //    tfoot {
    //        tr {
    //            th {
    //                background: #EEE;
    //            }
    //        }
    //    }
    //}

    &.hover {
        & > tbody {
            & > tr:hover {
                & > td:not(.no-hover) {
                    background: #F4F8FB;
                }
            }
        }
    }

    & > thead > tr > th, & > tbody > tr > td, & > tfoot > tr > td, & > tr > td {
        padding: 0.5rem;
        line-height: 20px;
    }

    & > thead {
        & > tr {
            display: table-row;

            & > th {
                border-bottom: 2px solid var(--table-border-color);
                color: var(--color-text);
            }
        }
    }

    & > tbody {

        & > tr {
            display: table-row;

            &.muted {
                .muted-content {
                    opacity: 0.5;
                }
            }

            &.checked {
                & > td {
                    background: #FED493;
                }
            }

            &.focus {
                & > td {
                    background: #F4F8FB;
                }
            }

            &.empty {
                & > td {
                    text-align: center;
                    color: #c4cfdb;
                    line-height: 100px;
                }
            }

            .pointer, &.pointer {
                cursor: pointer;
            }

            & > td {
                border-bottom: 1px solid var(--table-border-color);
                font-size: var(--font-size, 0.65rem);
            }
        }
    }

    .tag-group {
        padding: 0 0 0.5em 7em;
        overflow: hidden;
        font-size: 12px;

        .label {
            float: left;
            margin-left: -7em;
            display: block;
            width: 6em;
            text-align: center;
        }
    }

    .tag {
        border: 1px solid #EEE;
        display: inline-block;
        line-height: 20px;
        border-radius: 3px;
        padding: 0 3px;
        background: #EEE;
        color: #666;
        margin-right: 3px;
        font-size: 12px;
        white-space: nowrap;
    }

    .page {
        text-align: center;

        .el-pagination {
            margin-top: 0.5rem;
        }
    }

    .el-cell {
        padding: 0;

        .cell {
            padding: 5px 0.5rem;

            .el-checkbox {
                margin: 0;
            }
        }
    }

    .el-header-cell {
        padding: 0;
        background: #F8F8F8;

        .cell {
            padding: 5px 0.5rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
    }

    .el-checkbox {
        margin-bottom: 0;
    }
}

.ub-lister-action {
    display: inline-block;
    margin-right: 0.5rem;
    color: var(--color-link);
    line-height: 26px;
    cursor: pointer;

    &:last-child {
        margin-right: 0;
    }

    &.clicked {
        color: var(--color-link-light);
    }

    &:hover {
        color: var(--color-link-light);
    }

    &.danger {
        color: #f5222d;

        &.clicked {
            color: lighten(#f5222d, 30%);
        }

        &:hover {
            color: darken(#f5222d, 30%);
        }
    }

    &.disabled {
        color: #c4cfdb;
    }
}

.ub-lister-fix-foot-placeholder {
    height: 53px;
}

.ub-lister-fix-foot {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    border-top: 1px solid #EEE;
    background: #FFF;
    padding: 0.5rem;
    z-index: 1000;
    overflow: hidden;

    .right {
        float: right;
    }
}
