@import '../../../../assets/scss/abstracts/variables';
@import '../../../../assets/scss/abstracts/mixins';

.rdg-blocks .rdg-leader-board {
    width: calc(var(--vw, 1vw) * 100);
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    max-width: 99.55vw;

    .container.content {
        width: 100%;
        display: flex;
        flex-direction: column;
        padding-left: 20px;
        padding-right: 20px;

        @include title;

        .table {
            border-radius: 1rem;
            background-color: var(--color-white);

            .table-menu {
                display: flex;

                .menu {
                    padding: 1rem;
                    width: 100%;
                    margin: 0;
                    display: flex;
                    justify-content: space-between;

                    li {
                        text-align: center;
                        width: 100%;
                        list-style: none;
                        font-weight: 600;

                        i {
                            font-size: .8rem;
                            font-weight: 600;
                            color: var(--color-primary-dark-light);
                        }

                        .unactive {
                            color: var(--color-black);
                        }
                    }
                }
            }

            .table-filter {
                padding: .8rem;
                background-color: var(--color-primary-dark-light);
                min-height: 3.5rem;

                .filter {
                    width: 100%;
                    margin: 0;
                    display: flex;
                    justify-content: space-between;
                    color: var(--color-white);

                    li {
                        width: 100%;
                        display: flex;
                        align-items: center;
                        list-style: none;
                        font-weight: 600;

                        span {
                            width: 45%;
                            text-align: right;
                            padding-right: .5rem;
                        }

                        span.init {
                            text-align: left;
                        }

                        select {
                            width: 55%;
                            margin-right: .5rem;
                        }
                    }
                }
            }

            .list {
                .list-header {
                    width: 100%;
                    display: flex;
                    padding: .7rem;
                    background-color: rgb(248, 248, 248);

                    span {
                        width: 10%;
                        text-align: center;

                        i {
                            color: var(--color-primary-dark-light);
                        }
                    }
                }

                .list-items {
                    .item {
                        width: 100%;
                        display: flex;
                        padding: .7rem;
                        border-bottom: 1px solid var(--color-gray-line);

                        &:last-of-type {
                            border-bottom: none;
                        }
    
                        span {
                            width: 10%;
                            text-align: center;
                        }

                        .name {
                            color: var(--color-primary-dark-light);
                        }
                    }
                }
            }
        }
    }
}

.acf-block-preview {
    .rdg-leader-board {
        width: 100%;
        left: 0;
        right: 0;
        margin-left: 0;
        margin-right: 0;

        .table {
            .table-menu {
                a {
                    text-decoration: none;
                }
            }
        }
    }
}
