@import '../../assets/sass/config';
@import '../assets/sass/mixins/direction';

$dark-grey-color-1: #565F68 !default;

.alpha-admin-notices + .wrap h1,
.templates-builder h1 {
    display: none !important;
}

div.template-builder {
    padding: 32px 40px 32px 40px;
}
#alpha-template-nav {
    padding-top: 0;
    margin-bottom: 1.65em;

    + #alpha_new_template {
        display: none;
    }

    .nav-tab-active {
        pointer-events: none;
    }
}
table.posts {
    #template_type {
        width: 212px;
    }
    #date {
        width: 21.9%;  
    }
} 
.alpha-wrap #posts-filter {
    .search-box,
    .tablenav {
        select,
        input {
            height: 40px;
        }
    }
    .tablenav-pages input {
        height: auto;
    }
    input[type="search"] {
        margin-#{$right}: 10px;
    }
}
.templates-builder {
    padding: 40px 40px 32px;
    text-align: center;

    select:hover {
        color: var(--alpha-dark-color);
    }
    .wrap {
        margin: 0;
        text-align: #{$left};
    }
    .wrap input[type=checkbox] {
        top: -1px;
        margin-#{$left}: 10px;
        width: 18px;
        height: 18px;
    }

    form a {
        color: var(--alpha-body-color);

        &.current {
            color: var(--alpha-primary-color);
        }

        &:hover {
            color: var(--alpha-primary-color);
        }
    }

    .row-title {
        font-weight :400;
    }

    .nav-tab {
        padding: 9px 0 11px;
        margin: side-values(0 37px 0 0);
        background: none;
        border: none;
        border-bottom: 3px solid transparent;
        color: var(--alpha-body-color);
        font-size: 13px;
        font-weight: 500;
        &:last-child {
            margin-#{$right}: 0;
        }
    }

    @media (max-width: 1199px) {
        p.search-box {
            margin-bottom: 10px;
        }
    }
    
    @media (max-width: 767px) {
        .subsubsub {
            float: none;
            text-align: left;
        }
        p.search-box {
            display: flex;
            position: relative;
            height: auto;
        }
    }
    @media (max-width: 479px) {
        p.search-box {
            display: flex;
        }
    }

    .nav-tab-active, .nav-tab:hover {
        // color: #000;
        border-bottom-color: var(--alpha-primary-color);
    }

    h1.wp-heading-inline, h1+a {
        display: none !important;
    }

    .subsubsub {
        margin: 0 -1em 10px;
        text-transform: uppercase;
        a {
            padding: 0.2em 1em;
            font-size: 12px;
            &.current {
                font-weight: 400;
            }
        }
    }

    #posts-filter .button {
        background-color: var(--alpha-admin-dark-grey-color-1);
        border-color: var(--alpha-admin-dark-grey-color-1);
        color: var(--alpha-white-color);

        &:hover, &:focus, &.active {
            background-color: lighten( $dark-grey-color-1, 10% );
            border-color: lighten( $dark-grey-color-1, 10% );
        }
    }

    .tablenav {
        padding: 0;
        margin: 0;

        .actions {
            margin-bottom: 20px;
        }

        select {
            margin-#{$right}: 10px;
            text-transform: capitalize;
        }
    }
    .tablenav-pages {
        margin-top: 10px;
    }

    .page-title-action {
        margin-bottom: 1rem;
        color: var(--alpha-white-color);
    }

    .wp-list-table {
        margin-bottom: 20px;
    }

    .template_type.column-template_type a {
        display: inline-block;
        margin-top: 2px;
        padding: 2px 12px;
        color: var(--alpha-admin-text-color);
        border-radius: 2px;
        text-transform: uppercase;
        text-decoration: none;
        border: 1px solid var(--alpha-light-color);
        font-size: 10px;
        transition: background .3s, border-color .3s, color .3s;

        &:hover {
            background: var(--alpha-body-color);
            border-color: var(--alpha-body-color);
            color: var(--alpha-white-color);
        }
    }

    .column-date {
        font-size: 12px;
    }

    .column-title strong {
        position: relative;
        top: 5px;
        font-size: 13px;
    }
}

/* Sidebars Builder */
.sidebars-builder #sidebar_table {
    border: 0;
}
#add_widget_area {
    margin: side-values(40px 0 0 40px);
}
@media (min-width: 768px) {
    .sidebars-builder .column-title {
        padding-#{$left}: 40px;
    }
}


// Alpha Template Library
.alpha-new-template-modal {
    .alpha-modal-body {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        overflow: auto;
    }
    select, input {
        min-width: 100%;
        padding: .3em 1em;
        color: #666;
        font-size: 14px;
        border-color: var(--alpha-admin-border-color-1);

        &:focus {
            border-color: var(--alpha-light-color);
            box-shadow: none;
        }
    }

    select:hover,
    select:focus {
        color: #666;
    }
}
.alpha-template-actions {
    order: -1;
    text-align: left;
}
.alpha-new-template-description {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 3vw;
    p {
        color: #666;
        max-width: 350px;
    }
}
.alpha-new-template-form {
    flex: 0 0 50%;
    max-width: 50%;
    background: var(--alpha-white-color);
    box-shadow: 0 0 20px rgba(0,0,0,.1);
    padding: 3.5rem;
    border-radius: 3px;
    
    .option {
        margin-bottom: 20px;
    }
}
#alpha-new-studio-trigger {
    position: absolute;
    top: 0;
    #{$right}: -1px;
    bottom: 0;
    width: 50px;
    cursor: pointer;
}
#alpha-create-template-type {
    margin-top: 2rem;
    width: 100%;
    padding: 10px;
    border: 0;
    background: var(--alpha-primary-color);
    color: var(--alpha-white-color);
    font-size: 1rem;
    font-weight: 600;
    padding: 15px 7px;
    text-transform: uppercase;

    &:hover, &:focus {
        background: var(--alpha-primary-color-hover);
    }
}

@media (max-width: 767px) {
    .alpha-new-template-description {
        h4, p {
            display: none;
        }
    }
    .alpha-new-template-description {
        padding: 0;
    }
    .alpha-new-template-description,
    .alpha-new-template-form {
        max-width: none;
    }
}