$color_main: #369de7;
$color_hover: #1f83ca;
$color_white: #fff;
$color_black: #000;
$font_main: 'Lato', sans-serif;

#toplevel_page_hennessey-theme-settings{
    a{
        img{
            border-radius: 100px;
            width: 16px;
            height: 16px;
            filter: grayscale(100%) brightness(2);
            padding: 0 !important;
            margin-top: 9px;    
        }
        &:hover img{
            opacity: 1;
            filter: grayscale(0%) brightness(1.3);
        }
        span{
            display: block;
        }
    }
    &.current a img{
        opacity: 1;
        filter: grayscale(0%) brightness(1.3);
    }
}

.wrap.isetup-wrap{
    display: block;
    position: relative;
    font-family: $font_main;
    .isetup-title{
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        position: relative;
        font-weight: 600;
        width: 100%;
        img{
            width: auto;
            height: 60px;
            margin-right: 10px;
            filter: brightness(1.3);
            border-radius: 6px;
        }
        span{
            margin-left: 4px;
        }
    }
    .tabs-container{
        display: block;
        position: relative;
        margin-top: 40px;
        ul{
            display: block;
            border-bottom: 1px solid transparent;
            margin-bottom: 0;
            li{
                display: flex;
                flex-wrap: wrap;
                align-items: center;
                font-size: 14px;
                margin: 0;
                margin-top: 10px;
                strong.info-detail{
                    margin-right: 5px;
                }
                a{
                    margin-left: 10px;
                }
                // a{
                //     display: block;
                //     position: relative;
                //     font-size: 15px;
                //     text-decoration: none;
                //     padding: 10px 20px;
                //     background-color: $color_white;
                //     font-weight: 600;
                //     color: $color_black;
                //     outline: none;
                //     box-shadow: none;
                //     &:hover{
                //         color: $color_main;
                //     }
                // }
                &.is-active a{
                    background-color: $color_main;
                    color: $color_white;
                }
            }
        }
        .tabs-details{
            background-color: $color_white;
            padding: 20px;
            .tab-title{
                font-size: 24px;
                margin: 0;
            }
            .isetup-container{
                display: block;
                position: relative;
                margin-top: 20px;
            }
            .information-list{
                display: block;
                li{
                    display: block;
                    font-size: 14px;
                    margin: 5px 0;
                }
            }
        }
    }

    .content-wrapper{
        display: block;
        position: relative;
        width: 100%;
        .isetup-table-title{
            font-size: 20px;
            margin-bottom: 10px;
        }
        .isetup-note{
            margin-top: 0;
            margin-bottom: 10px;
            font-style: italic;
        }
        .count-of-pages{
            font-size: 15px;
            margin-bottom: 20px;
        }
        .add-isetup{
            display: inherit;
            position: inherit;
            width: inherit;
            .open-new-index-popup{
                display: inline-block;
            }
        }
        .isetup-pages-list{
            display: inherit;
            position: inherit;
            width: inherit;
            ul.indexes-list{
                display: inherit;
                position: inherit;
                width: 100%;
                border: 1px solid #ccc;
                background-color: $color_white;
                padding: 0;
                margin: 10px 0 0;
                li{
                    display: flex;
                    flex-wrap: wrap;
                    align-items: center;
                    font-size: 0;
                    margin: 0;
                    border-bottom: 1px solid #ccc;
                    border-left: 4px solid transparent;
                    .column{
                        display: flex;
                        flex-wrap: wrap;
                        font-size: 0px;
                        padding: 10px;
                        border-right: 1px solid #ccc;
                        height: 100%;
                        min-height: 24px;
                        align-items: center;
                        &.id{
                            width: 40px;
                            justify-content: center;
                            font-size: 14px;
                        }
                        &.title{
                            text-align-last: left;
                            width: calc(100% - 563px);
                            font-size: 14px;
                            .badge-tag{
                                display: inline-block;
                                font-size: 12px;
                                color: #fff;
                                background-color: #ccc;
                                padding: 1px 5px;
                                border-radius: 5px;
                                margin-left: 10px;
                                font-weight: 600;
                                &.deleted{
                                    background-color: #f00;
                                }
                                &.in-trash{
                                    background-color: #ffa600;
                                }
                                &.in-draft{
                                    background-color: #777777;
                                }
                            }
                            a{
                                text-decoration: none;
                            }
                        }
                        &.author{
                            width: 180px;
                            text-align: center;
                            font-size: 14px;
                        }
                        &.date{
                            width: 130px;
                            text-align: center;
                            font-size: 14px;
                        }
                        &.delete,
                        &.edit{
                            width: 44px;
                            justify-content: center;
                            a{
                                display: inline-block;
                                font-size: 0;
                                line-height: 0;
                                img{
                                    width: auto;
                                    height: 18px;
                                }
                                &:hover{
                                    opacity: .6;
                                }
                            }
                        }
                        &:last-child{
                            border-right: none;
                        }
                    }
                    &:last-child{
                        border-bottom: none;
                    }
                    &.page-not-found{
                        border-left-color: #f00;
                        background-color: #fff2f2;
                    }
                    &.tablehead{
                        background-color: #dcdcdc;
                        font-weight: 800;
                        .column{
                            display: inline-block;
                            font-size: 14px;
                            text-align: center;
                            &.author,
                            &.date{
                                text-align: left;
                            }
                        }
                    }
                }
            }
        }
    }
}

.add-new-page,
.delete-page{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(0,0,0,.7);
    transition: all .3s;
    opacity: 0;
    visibility: hidden;
    z-index: 99;
    .add-new-popup{
        display: block;
        position: relative;
        width: 500px;
        height: auto;
        max-width: 100%;
        margin: 20px;
        padding: 20px;
        background-color: $color_white;
        box-shadow: 0px 10px 40px rgba(0,0,0,.2);
        transition: all .3s;
        transition-delay: .3s;
        transform: scale(0);
        .close-popup{
            display: inline-block;
            position: absolute;
            padding: 0;
            border: none;
            background-color: transparent;
            font-size: 28px;
            top: 0px;
            right: 8px;
            cursor: pointer;
            z-index: 10;
            &:hover{
                opacity: .6;
            }
        }
        .popup-title{
            display: block;
            text-align: center;
            font-size: 22px;
            span{
                font-weight: 500;
                color: rgb(0, 140, 255);
            }
        }
        .choises{
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
            width: 100%;
            margin-top: 10px;
            a{
                width: 48%;
                padding: 0;
                text-align: center;
            }
        }
        .add-new-form{
            display: block;
            position: relative;
            .formcontrol{
                display: block;
                position: relative;
                input,
                button,
                select{
                    width: 100%;
                    max-width: 100%;
                }
            }
        }
    }
    &.show{
        opacity: 1;
        visibility: visible;
        .add-new-popup{
            transform: scale(1);
        }
    }
}

.button.button-delete{
    background-color: #d63638;
    border-color: #d63638;
    color: #fff;
    &:hover{
        background-color: #ee0d11;
        border-color: #d63638;
        color: #fff;
    }
}

.button.button-green{
    background-color: #1da762;
    border-color: #1da762;
    color: #fff;
    &:hover{
        background-color: #11c069;
        border-color: #11c069;
        color: #fff;
    }
}

.formrepeater{
    display: block;
    position: relative;
    width: 100%;
    .formcontrol.data-inputs{
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        position: relative;
        width: 100%;
        input[type="text"]{
            width: 400px;
            max-width: 100%;
            margin-right: 10px;
        }
        .counter{
            width: 28px;
            height: 28px;
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: center;
            border-radius: 100%;
            border: 1px solid #ccc;
            background-color: #fff;
            margin-right: 10px;
        }
        .remove-current-row{
            margin-left: 10px;
        }
        .totalrows{
            margin: 0;
            &.hidden{
                display: none;
            }
        }
        .selection-to-menu{
            margin-left: 10px;
        }
    }
    .formcontrol.clone{
        padding: 10px 0;
    }
}