// Table Style Start //
.ai-table-responsive {
    border: solid $borderGrey 1px;
    border-radius: $borderRadius10;
    background: $bgWhite;
    padding: 0;
    box-shadow: $boxShadow;
    &.ai-table-br {
        border-radius: 5px;
        border-color: $bgLightBlue;
        box-shadow: none;
        .ai-table {
            .ai-table-head {
                background: $bgWhite;
                tr {
                    border-bottom-color: $bgLightBlue;
                    th {
                        color: $textBlue;
                        border-color: $bgLightBlue;
                        &.ai-large-th {
                            @media only screen and (min-width: $lg_1200) {
                                font-size: $font16;
                            }
                        }
                    }
                }
            }      
            .ai-table-body {
                tr {
                    border-color: $bgLightBlue;
                    td {
                        border-color: $bgLightBlue;
                    }
                }
            }  
        }
    }
    &.ai-table-list {
        border-width: 0 0 1px 0;
        border-radius: 0;
        background: transparent;
        border-color: $bgGrey;
        padding-bottom: 16px;
        margin-bottom: 20px;
        box-shadow: none;
        @media only screen and (max-width: $lg_1199) {
            padding-bottom: 12px;
            margin-bottom: 16px;
        }
        &.at-tb-bn {
            border-bottom-width: 0;
            padding-bottom: 0;
            margin-bottom: 0;
        }
        .ai-table {
            margin: 0;
            tbody {
                td {
                    border: 0;
                    padding: 4px;
                }
            }
        }
    }
    .ai-table {
        margin: 0;
        .ai-table-head {
            background: $bgLightBlueV7;
            tr {
                border-bottom: solid $borderGrey 1px;
                th {
                    font-size: $font14;
                    font-weight: $fontMedium;
                    padding: 15px 16px;
                    vertical-align: middle;
                    + {
                        th {
                            border-left: solid $borderGrey 1px;
                        }
                    }
                }
            }
        }
        .ai-table-body {
            tr {
                td {
                    .form-check-input {
                        &.ai-table-radio {
                            border: solid 2px $bgBlue;
                            font-size: $font18;
                            box-shadow: none;
                            &:checked {
                                background-color: $bgWhite;
                                background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3E%3Ccircle r='2.5' fill='%232855AA'/%3E%3C/svg%3E");
                            }
                        }
                    }
                    .ai-btn-group {
                        gap: 8px;
                        flex-wrap: nowrap;
                    }
                    .ai-table-sm-btn {
                        height: 30px;
                        width: 30px;
                        border: solid $bgGrey 1px;
                        border-radius: 5px;
                        @include aiDflexAlignItemsJustifyContentCenter;
                        background: $bgWhite;
                        &:hover {
                           background: $bgBlue;
                           border-color: $bgBlue; 
                           svg {
                                path {
                                    fill: $bgWhite;
                                }
                           }
                        }
                    }
                }
                + {
                    tr {
                        border-top: solid $borderGrey 1px;
                    }
                }
                td {
                    font-size: $font14;
                    padding: 12px 16px;
                    vertical-align: middle;
                    + {
                        td {
                            border-left: solid $borderGrey 1px;
                        }
                    }
                    .ai-table-pd {
                        @include aiDflexAlignItemsCenter;
                        gap: 8px;
                        justify-content: space-between;
                        .ai-table-pd-img {
                            height: 50px;
                        }
                    }
                    .ai-table-btn {
                        height: 30px;
                        min-height: 30px;
                        min-width: auto;
                        padding: 4px 12px;
                        font-size: $font12;
                        white-space: nowrap;
                    }
                }
            }
        }
        &.ai-table-sty2 {
            .ai-table-head {
                background: $bgBlueGradient;
                tr {
                    th {
                        color: $textBlue;
                        + {
                            th {
                                border-left: solid $borderGrey 0;
                            }
                        }
                        &.ai-large-th {
                            white-space: nowrap;
                            @media only screen and (min-width: $lg_1200) {
                                font-size: $font16;
                            }
                        }
                    }
                }
            }
            &.ai-hide-br {
                .ai-table-body {
                    tr {
                        td {
                            + {
                                td {
                                    border-left: none;
                                }
                            }
                        }
                    }
                }
            }
        }
        &.ai-table-hide-br {
            .ai-table-body {
                tr {
                    border-width: 0px;
                }
            }
        }
    }
}
// Table Style End //
