/**********SCROLLING TABLE*/
.cust-table-cont {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    height: 100%;

    .table-responsive {
        width: 1317px;
    }
}

.cust-table {
    table-layout: fixed;
    margin-bottom: 20px;
    border: 1px solid #DDD;
    height: 100%;

    thead {
        display: block;
        color: #000;
        background-color: #FDFDFD;

        tr {
            th {
                min-width: 120px;
                max-width: 120px;
                width: 120px;
                height: 40px;
                border-right: 1px solid #DDD;
                border-bottom: 1px solid #DDD;

                &:first-child {
                    width: 30px;
                    min-width: 30px;
                    text-align: center;
                }
            }

            &:last-child {
                th {
                    background-color: #FDFDFD;
                    font-weight: normal;
                    text-align: center;

                    .select-button {
                        background-color: #FDFDFD !important;
                    }
                }
            }
        }
    }

    tbody {
        display: block;
        overflow-y: auto;
        overflow-x: hidden;
        height: calc(~"100% - 80px");

        tr {
            td {
                width: 120px;
                min-width: 120px;
                max-width: 120px;
                overflow-x: hidden;
                height: 40px;
                border-right: 1px solid #DDD;
                border-bottom: 1px solid #DDD;

                &:first-child {
                    width: 30px;
                    min-width: 30px;
                    text-align: center;
                }
            }
        }
    }

    .row-odd {
        background-color: #F9F9F8;
    }

    .row-even {
        background-color: #FFFFFF;
    }
}
/**********SCROLLING TABLE*/

.dropdown-table() {
    display: inline-block;
    width: 100%;

    .select-button {
        background-color: #FDFDFD;
        padding: 6px 0;
        width: 99%;
    }

    .caret {
        margin-top: 8px;
    }

    .dropdown-menu {
        min-width: 99%;

        li {
            padding: 5px;
            text-align: center;
            min-height: 0px;

            &:hover {
                background-color: #F91000;
                color: #FFF;
            }
        }
    }

    i {
        float: right;
        margin-right: 10px;
        color: #F85550;
    }
}


.import-table-cont {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    padding-top: 80px;
    overflow-y: hidden;
    overflow-x: auto;

    .table-responsive {
        width: 1317px;
    }


    .import-table {
        table-layout: fixed;
        display: inline-block;
        min-width: 100%;
        height: 100%;
        overflow-y: scroll;
        overflow-x: hidden;
        table-layout: fixed;
        border: 1px solid #DDD;
        /*border-top: 1px solid #DDD;
        border-bottom: 1px solid #DDD;
        border-left: 1px solid #DDD;
        border-collapse: collapse;*/
        thead {
            position: absolute;
            min-width: 100%;
            top: 0;
            left: 0;
            color: #000;
            background-color: #FDFDFD;
            table-layout: fixed;
            border-top: 1px solid #DDD;
            border-right: 1px solid #DDD;

            tr {
                display: table;
                max-height: 40px;
                min-width: calc(~"100% - 17px");
                border-left: 1px solid #DDD;

                th {
                    display: table-cell;
                    width: 120px;
                    min-width: 120px;
                    max-width: 120px;
                    height: 40px;
                    padding: 0 3px;
                    /*border-right: 1px solid #DDD;*/
                    border-bottom: 1px solid #DDD;

                    &:first-child {
                        width: 30px;
                        min-width: 30px;
                        text-align: center;
                    }

                    .dropdown {
                        .dropdown-table();
                    }
                }

                &:first-child {
                    border-top: 1px solid #DDD;

                    th {
                        font-weight: bold !important;
                    }
                }

                &:last-child {
                    th {
                        font-weight: normal;

                        .select-button {
                            background-color: #FDFDFD !important;
                        }
                    }
                }
            }
        }

        tbody {
            display: inline-block;
            min-width: 100%;
            table-layout: fixed;

            tr {
                display: table;
                max-height: 40px;
                min-width: 100%;

                td {
                    display: table-cell;
                    min-width: 120px;
                    max-width: 120px;
                    width: 120px;
                    height: 40px;
                    padding: 0 3px;
                    /*border-right: 1px solid #DDD;*/
                    border-bottom: 1px solid #DDD;
                    word-break: break-all;

                    &:first-child {
                        width: 30px;
                        min-width: 30px;
                        text-align: center;
                    }
                }
            }
        }

        .row-odd {
            background-color: #F9F9F8;
        }

        .row-even {
            background-color: #FFFFFF;
        }
    }
}