@import '_reset';
@import '_config';

header {
    height: 65px;
    background: #FFF;
    padding: 0 25px;
    box-sizing: border-box;
    width: 100%;
    line-height: 65px;
    border-bottom: 1px solid #ebebeb;
    color: $grey;
    font-family: "Roboto";
    font-size: 12px;

    img {
        vertical-align: middle;
        width: 160px;
    }

    .links {
        float: right;
    }

    .user-pic {
        display: inline-block;
        margin-left: 35px;
        img {
            margin-left: 10px;
            width: 32px;
        }

        a {
            text-decoration: none;
            color: #515050;
        }

        &:hover .dropdown-menu {
            display: block;
        }

        .dropdown-menu {
            background: #fff;
            position: absolute;
            display: none;
            z-index: 999;
            border-radius: 0 0 6px 6px;
            text-align: right;
            width: 140px;
            line-height: 30px;
            padding: 20px;
            box-sizing: border-box;
            box-shadow: 0px 3px 3px rgba(0,0,0,.3);
            right: 25px;
            margin-top: -1px;

            a {
                font-family: "Roboto";
                font-size: 12px;
                color: #333;

                &:hover {
                    color: $orange;
                }
            }
        }
    }
}

nav {
    background: $offwhite;
    position: relative;
    grid-column: 1/3;

    &.nav-toggled {
        grid-column: 1/2;
        span {
            display: none;
        }

        ul.bottom .arrow {
            img:nth-child(1) {
                display: none;
            }

            img:nth-child(2) {
                display: inline-block;
            }
        }

        ul li.active .inners {
            display: none;
        }

    }

    &:not(.nav-toggled) {
        ul ul.active {
            display: block;
        }
    }

    ul {
        padding: 20px 0;
        
        ul {
            padding-left: 27px;
            padding-bottom: 7px;
            display: none;


            li:hover,
            li.active {
                &:not(.disabled):after {
                    display: none;
                }
            }
        }

        &.bottom {
            position: absolute;
            bottom: 0;
            padding: 0;
            width: 100%;

            .arrow {
                background: #eaeaea;
                padding: 0 30px;
                box-sizing: border-box;
                height: 50px;
                line-height: 50px;
                width: 100%;
                margin-bottom: 0;
                text-align: right;

                img:nth-child(2) {
                    display: none;
                }
            }
        }

        li {
            margin-bottom: 15px;
            padding: 0 25px;
            position: relative;

            &:hover,
            &.active {
                > a {
                    &:not(.disabled) {
                        color: $orange;

                        &:after {
                            position: absolute;
                            content: '';
                            display: block;
                            top: 0;
                            right: 0;
                            width: 2px;
                            background: $orange;
                            height: 100%;
                        }

                        .orange {
                            display: inline-block;
                        }

                        .not-orange {
                            display: none;
                        }
                    }
                }

            }

            &.active {
                .inners {
                    display: block;
                }
            }

            a {
                width: 100%;
                display: block;
                color: $grey;
                font-family: "Roboto";
                font-size: 13px;
                text-decoration: none;

                &.disabled {
                    opacity: .3;
                    cursor: default;
                }

                &[data-toggle-nav] img {
                    width: auto;
                }
                
                img {
                    vertical-align: middle;
                    margin-right: 15px;
                    width: 32px;

                    &.orange {
                        display: none;
                    }
                }
            }

            .inners {
                display: none;
                .inner {
                    height: 40px;
                    opacity: .6;
                    line-height: 40px;
                    padding-left: 51px;
                    box-sizing: border-boxl
                }
            }
        }
    }
}

.calendar .calendar-header button:hover {
    background: transparent;
    cursor: pointer;
}

.content {
    position: relative;
    grid-column: 3/8;

    &.nav-toggled {
        grid-column: 2/7;

        &.has-sidebar {
            grid-column: 2/7;
        }

        &.sidebar-open {
            grid-column: 2/6;
        }
    }
    
    &.has-sidebar {
        grid-column: 3/7;
    }

    &.sidebar-open {
        grid-column: 3/6;
    }

    &.jobs-open {
        grid-column: 5/7;

        &.has-sidebar {
            grid-column: 5/7;
        }
        
        &.sidebar-open {
            grid-column: 5/6;
        }
        
        &.nav-toggled {
            grid-column: 4/7;

            &.sidebar-open {
                grid-column: 4/6;
            }
        }
    }
}

.main-container {
    display: grid;
    height: calc(100vh - 65px);
    grid-template-columns: 90px 140px 150px 150px 12fr 300px 20px;
}

.fullscreen-map {
    height: 100%;
}

.pac-container {
    top: 146px !important;
    box-shadow: none;
    width: 100%;
    width: 290px !important;
    border-top: 0;
    margin-left: -15px;

    .pac-item {
        font-family: "Roboto";
        padding: 11px 15px;
    }

    &.pac-logo:after {
        display: none;
    }
}

.gm-style > div:nth-child(1) > div:nth-child(3) > div:nth-child(1) > div:nth-child(4) > div:nth-child(1) > div:nth-child(1) > div:nth-child(4) { 
    background-color: rgba(167, 166, 166, 0.9) !important;
}

.gm-style > div:nth-child(1) > div:nth-child(3) > div:nth-child(1) > div:nth-child(4) > div:nth-child(1) > div:nth-child(1) > div:nth-child(3) > div,
.gm-style > div:nth-child(1) > div:nth-child(3) > div:nth-child(1) > div:nth-child(4) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) {
    // display: none !important;
}

.gm-style-iw h2 {
    background: #EEE;
    border-radius: 3px;
    text-align: center;
    padding: 5px 0;
    text-transform: uppercase;
    width: 200px;
    font-weight: bold;
    font-size: 11px;
    margin-bottom: 10px;
    margin-top: 10px;
}

.map-tooltip {
    padding-left: 7px;
}

.gm-style-iw p {
    color: #333;
    font-size: 12px;
    line-height: 16px;
    width: 200px;
}

.gm-style button {
    display: none !important;
}

.gm-style .gmnoprint button {
    display: block !important;
}

.gm-style .gm-style-iw {
    // font-weight: 300;
    // font-size: 13px;
    // overflow: hidden;
    // width: 200px !important;
    // left: 50% !important;
    // transform: translate(-50%, 0);
}

.map-search {
    position: absolute;
    width: 290px;
    z-index: 3;
    top: 25px;
    right: 25px;

    .map-search-box {
        .search-input {
            background: #FFF;
            border: 1px solid #ebebeb;
            border-bottom: 0;
            padding: 0 15px;
            border-radius: 7px 7px 0 0;
            position: relative;

            input[type=text] {
                border: 0;
                width: 100%;
                font-family: "Roboto";
                font-size: 12px;
                padding: 20px 0;
                color: #a0a0a0;
                outline: 0;
                box-sizing: border-box;
                padding-right: 60px;
            }
            
            &:after {
                content: '';
                height: 60%;
                background: #ebebeb;
                top: 20%;
                right: 55px;
                width: 1px;
                display: block;
                position: absolute;
            }
            
            img {
                position: absolute;
                right: 15px;
                height: 20px;
                top: 50%;
                display: block;
                transform: translate(0, -50%);

            }
        }

        .reset-filters-btn {
            background: $orange;
            border-radius: 4px;
            width: 100%;
            text-align: center;
            padding: 10px;
            box-sizing: border-box;
            font-family: "Roboto";
            font-size: 13px;
            text-transform: uppercase;
            color: #FFF;
            display: none;
            text-decoration: none;     
            margin-top: 10px;
            opacity: .8;

            &:hover {
                opacity: 1;
            }

            &.active {
                display: block;
            }
        }

        .search-filters {
            border-radius: 0 0 7px 7px;
            cursor: pointer;
            background: #ebebeb;
            position: relative;
            padding: 20px 15px;
            font-family: "Roboto";
            font-size: 12px;
            color: #505050;

            &:hover {
                .orange {
                    display: block;
                }

                .not-orange {
                    display: none;
                }
            }
            &:after {
                content: '';
                height: 60%;
                background: #FFF;
                top: 20%;
                right: 55px;
                width: 1px;
                display: block;
                position: absolute;
            }
            
            img {
                position: absolute;
                right: 15px;
                height: 30px;
                top: 50%;
                display: block;
                transform: translate(0, -50%);

                &.orange {
                    display: none;
                }

            }
        }

        .search-results {
            background: #FFF;

            li {
                display: block;
                border-top: 1px solid #ebebeb;
                padding: 13px 15px;
                font-family: "Roboto";
                font-size: 12px;
                color: #a0a0a0;

                &:hover {
                    background: #dfdfdf;
                    cursor: pointer;
                }

                span {
                    color: #505050;
                }

                img {
                    vertical-align: middle;
                    margin-right: 10px;
                }
            }
        }
    }
}

.sidebar {
    background: #FFF;
    z-index: 2;
    grid-column: 7/8;
    position: relative;

    &.grey {
        background: #f5f5f5;

        .toggle {
            background-color: #f5f5f5;
        }
    }

    &.open {
        display: block;
        grid-column: 6/8;

        .toggle {
            background-image: url('../../imgs/arrow-right.png');
        }

        .sidebar-content {
            display: block;
        }
    }

    &.open.jobs-open {
        grid-column: 6/8;
    }

    .sidebar-content {
        display: none;
        padding: 0 20px;
        height: calc(100vh - 190px);
        margin-top: 25px;
        overflow-y: scroll;
    }

    .sidebar-title {
        color: $orange;
        font-size: 16px;
        font-family: "Roboto";
        border-bottom: 1px solid #ebebeb;
        padding-bottom: 20px;
        margin-bottom: 20px;

        a {
            float: right;
        }
    }


    .measurement-ctas {
        display: grid;
        grid-template-columns: 1fr 1fr;
        text-align: center;
        margin-top: 30px;
        grid-column-gap: 20px;

        a {
            color: $orange;
            background: #FFF;
            border-radius: 3px;
            padding: 8px 0;
            font-family: "Roboto";
            text-transform: uppercase;
            text-decoration: none;
            font-size: 11px;
            font-weight: bold;

            &:hover {
                background: $orange;
                color: #FFF;
            }
        }
    }

    .accordion.measurement-accordion .accordion-level .accordion-toggle .search-results {
        max-height: 9999px;
        padding-bottom: 20px;
        overflow: hidden;

        li {
            border-bottom: 1px solid #ebebeb;
            padding-bottom: 20px;
        }

        input[type=checkbox] {
            vertical-align: middle;
        }
    }
    .bottom-add-jobs {
        position: absolute;
        bottom: 25px;
        left: 0;
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        padding: 0;
        grid-row-gap: 20px;
        box-sizing: border-box;
        height: 50px;
        bottom: 0;
        background: #eaeaea;
        line-height: 50px;

        img {
            width: 30px;
            float: left;
            margin-top: 10px;
        }

        p {
            float: left;
            text-transform: uppercase;
            line-height: 16px;
            margin-top: 10px;
            margin-left: 15px;
        }

        a {
            color: #505050;
            font-family: "Roboto";
            font-weight: bold;
            font-size: 11px;
            text-decoration: none;
            padding-left: 20px;
            box-sizing: border-box;

            &.disabled {
                opacity: .2;
            }

            &:nth-child(1) {
                border-right: 1px solid #FFF;
            }
        }
    }

    .sidebar-list {
        li {
            display: block;
            font-family: "Roboto";
            color: #505050;
            font-size: 12px;
            line-height: 20px;
            margin-bottom: 15px;

            span {
                color: #a0a0a0;
                display: block;
            }    
            
            .right-pen {
                float: right;
            }
        }
    }

    .toggle {
        position: absolute;
        top: 25px;
        left: -20px;
        width: 20px;
        content: '';
        cursor: pointer;
        height: 55px;
        display: block;
        background: #FFF;
        border-radius: 7px 0 0 7px;
        background-image: url('../../imgs/arrow-left.png');
        background-position: center center;
        background-repeat: no-repeat;
    }

    .accordion {
        .accordion-level {
            margin-bottom: 15px;

            > a {
                font-weight: bold;
            }
            &.active [data-accordion-toggle] img {
                transform: rotate(-90deg);
            }
            a {
                display: block;
                width: 100%;
                border-bottom: 1px solid #ebebeb;
                text-decoration: none;
                font-size: 12px;
                font-family: "Roboto";
                position: relative;
                color: #505050;
                padding: 15px;
                box-sizing: border-box;

                img {
                    position: absolute;
                    right: 25px;
                    top: 50%;
                    transform: translate(0, -50%) rotate(90deg);
                }
            }

            .accordion-toggle {
                display: none;

                &.active {
                    display: block;
                }

                .checkbox {
                    background: #ebebeb;
                    border-radius: 3px;
                    padding: 8px 25px 8px 18px;
                    box-sizing: border-box;
                    width: 100%;
                    
                    input {
                        vertical-align: middle;
                    }

                    a {
                        vertical-align: middle;
                        text-transform: uppercase;
                        color: #505050;
                        font-weight: bold;
                        font-family: "Roboto";
                        text-decoration: none;
                        padding: 0;
                        margin-left: 0;
                        font-size: 11px;
                    }
                }

                input[type=text] {
                    width: 100%;
                    padding: 18px;
                    border: 0;
                    outline: 0;
                    box-sizing: border-box;
                    border-bottom: 1px solid #EBEBEB;
                    background: url('../../imgs/search-icon.png');
                    background-position: 93% center;
                    font-family: "Roboto";
                    background-repeat: no-repeat;
                    background-size: 12px;
                }

                .search-results {
                    padding: 0 15px;
                    box-sizing: border-box;
                    width: 100%;
                    margin: 0 auto;
                    max-height: 250px;
                    overflow-y: scroll;
                    
                    &.text {
                        li {
                            font-size: 12px;
                            padding-left: 10px;
                            height: 30px;
                        }
                    }
                    
                    li {
                        height: 50px;
                        cursor: pointer;
                        font-family: "Roboto";
                        color: #505050;
                        font-size: 13px;
                        line-height: 50px;

                        &.active {
                            color: #e05830;
                            font-weight: bold;
                        }

                        img,
                        svg {
                            margin-right: 15px;
                            width: 32px;
                            vertical-align: middle;
                        }
                    }
                }
            }
        }
    }
}

.map-search-sidebar {
    box-sizing: border-box;
}

.previous-planning {
    background: #e1e1e1;
    height: 100%;
    padding: 50px 0;
    box-sizing: border-box;

    .previous-planning-box {
        width: 90%;
        margin: 0px auto;
        background: #FFF;
        border-radius: 7px;
        
        .previous-planning-box-title {
            padding: 35px 15px 20px 15px;
            display: grid;
            grid-template-columns: 1fr 1fr;
            border-bottom: 1px solid #ebebeb;

            h1 {
                color: $orange;
                font-size: 16px;
                padding-left: 15px;
                font-family: "Roboto";
            }

            .aside {
                text-align: right;
                padding-right: 30px;

                > div {
                    display: inline-block;
                    position: relative;
                }

                .aside-search {
                    border-right: 1px solid $orange;
                    padding-right: 5px;
                    margin-left: 35px;

                    input {
                        color: #a0a0a0;
                        outline: 0;
                        padding: 3px 0;
                        width: 160px;
                        font-family: "Roboto";
                        font-weight: 300;
                        font-size: 12px;
                        font-style: italic;
                        border: 0;
                    }

                    img {
                        position: absolute;
                        right: -25px;
                        top: 50%;
                        height: 12px;
                        transform: translate(0, -50%);
                    }
                }

                .aside-sort {
                    cursor: pointer;
                    font-family: "Roboto";
                    color: #505050;
                    font-size: 10px;
                    font-weight: bold;
                    text-transform: uppercase;
                    border-right: 1px solid $orange;
                    padding-right: 5px;
                    margin-left: 35px;

                    img {
                        position: absolute;
                        right: -15px;
                        top: 50%;
                        transform: translate(0, -50%);
                    }
                }
            }
        }

        .previous-planning-accordion {
            padding: 0 15px;

            .title {
                font-family: "Roboto";
                font-weight: 500;
                color: #505050;
                font-size: 12px;
                padding: 15px 30px;
                text-transform: uppercase;
                border-bottom: 1px solid #ebebeb;
                width: 100%;
                position: relative;
                box-sizing: border-box;
                cursor: pointer;

                img {
                    position: absolute;
                    right: 30px;
                    top: 50%;
                    transform: translate(0, -50%) rotate(90deg);
                    transition: .5s all;

                    &.active {
                        transform: translate(0, -50%) rotate(270deg);
                    }
                }
            }

            .toggle {
                display: none;

                li {
                    padding: 15px 80px;
                    box-sizing: border-box;
                    border-bottom: 1px solid #ebebeb;
                    background-repeat: no-repeat;
                    background-position: 45px 50%;
                    display: grid;
                    grid-template-columns: 1fr 1fr;
                    height: 43px;

                    &:hover,
                    &.active {
                        background-color: #ebebeb;
                        
                        .options {
                            display: block;
                        }
                        

                        .text {
                            color: #505050;

                        }
                    }
                    
                    a {
                        color: #505050;
                        text-decoration: none;
                    }

                    .options a {
                        color: $orange;
                    }

                    .options a:hover {
                        color: #FFF;
                    }

                    &.full {
                        grid-template-columns: 1fr;
                        height: auto;
                        max-height: 43px;
                        transition: .4s all;
                        cursor: pointer;
                        overflow: hidden;

                        &.nopadding {
                            padding-left: 30px;
                        }

                        &.active {
                            max-height: 200px;
                        }
                        
                        p {
                            margin-top: 20px;
                            color: #000;
                            line-height: 16px;
                        }
                    }

                    &.status-1 {
                        background-image: url('../../imgs/green-icon.png');
                    }
                    &.status-0 {
                        background-image: url('../../imgs/orange-icon.png');
                    }
                    &.status-2 {
                        background-image: url('../../imgs/red-icon.png');
                    }

                    .text {
                        font-size: 12px;
                        font-family: "Roboto";
                        font-weight: 300;
                        color: #a0a0a0;

                        span {
                            font-size: 10px;
                        }
                    }

                    .options {
                        display: none;
                        text-align: right;
                        margin-top: -3px;

                        a {
                            margin-left: 15px;
                        }
                    }
                }
            }
        }

    }
}

.cta {
    background: #FFF;
    font-size: 10px;
    color: $orange;
    background: #FFF;
    border-radius: 3px;
    padding: 5px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-family: "Roboto";

    &:hover {
        background: $orange;
        color: #FFF;
    }

    &.cta-orange {
        background: $orange;
        color: #FFF;

        &:hover {
            background: #FFF;
            color: $orange;
        }
    }
}

.bottom-cta {
    background: #ebebeb;
    text-align: right;
    padding: 15px;
    border-radius: 0 0 7px 7px;
    margin-top: -1px;

    button,
    a {
        border: 0;
        text-decoration: none;
        background: transparent;
        appearance: none;
        color: $orange;
        cursor: pointer;
        font-weight: 500;
        font-family: "Roboto";
        font-size: 14px;
        text-transform: uppercase;
        img {
            height: 10px;
            vertical-align: middle;
        }
        
        span {
            padding: 0 10px;
        }

        &.right {
            text-align: right;
        }
    }

    &.two-cta {
        display: grid;
        grid-template-columns: 1fr 1fr;

        a.left {
            text-align: left;
        }
    }
}

.go-back {
    height: 50px;
    background: #ebebeb;
    width: 100%;
    padding-left: 35px;
    box-sizing: border-box;
    line-height: 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;


    .ctas {
        padding-right: 40px;
        text-align: right;

        a {
            margin-left: 20px;
            color: $orange;

            &:hover {
                color: #FFF;
            }
        }
    }
    a {
        font-family: "Roboto";
        font-size: 10px;
        color: #505050;
        font-weight: 700;
        text-transform: uppercase;
        text-decoration: none;
    }

    img {
        vertical-align: middle;
    }

    .ctas img {
        width: 20px;
    }

    span {
        color: $orange;
        font-family: "Roboto";
        font-size: 14px;
        margin-right: 10px;
        margin-left: 10px;
    }
}

.screenshot header,
.screenshot nav,
.screenshot .go-back,
.screenshot .analytics-nav,
.screenshot .campaign-selector,
.screenshot .sidebar.grey {
    display: none;
}

.new-plan {
    background: #e1e1e1;
    height: 100%;

    .create-new-plan {
        width: 90%;
        margin: 0 auto;
        
        h1 {
            font-family: "Roboto";
            font-size: 16px;
            color: $orange;
            border-bottom: 1px solid #FFF;
            text-align: center;
            padding-top: 70px;
            padding-bottom: 25px;
            margin-bottom: 25px;
        }
    }

    .plans-options {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
        grid-column-gap: 40px;
        grid-auto-rows: minmax(70px, auto);

        .plan-option {
            background: #FFF;
            border-radius: 7px;
            padding: 30px 0;
            text-align: center;
            max-height: 160px;
            box-sizing: border-box;
            transition: .5s all;
            overflow: hidden;

            a {
                text-decoration: none;
                > img {
                    display: block;
                    height: 60px;
                    padding-bottom: 30px;
                    margin: 0 auto;
                }
            }

            &:hover  {
                max-height: 350px;
            }

            .plan-option-text {
                overflow: hidden;
            }

            h2 {
                font-size: 12px;
                font-family: "Roboto";
                color: #505050;
                text-transform: uppercase;
            }

            p {
                font-family: "Roboto";
                font-size: 12px;
                color: #a0a0a0;
                width: 80%;
                margin: 0 auto;
                line-height: 16px;
                margin-bottom: 15px;
                margin-top: 32px;
            }
        }
    }
}

.campaign-selector {
    position: absolute;
    top: 25px;
    left: 250px;

    .active-campaign {
        font-family: "Roboto";
        font-weight: 400;
        font-size: 13px;
        font-weight: bold;
        color: #505050;
        background: url('../../imgs/arrow-down.png');
        background-position: center right;
        background-repeat: no-repeat;
        padding-right: 20px;
        cursor: pointer;
    }
    
    .all-campaigns {
        position: absolute;
        width: 220px;
        z-index: 5555;
        margin-top: 10px;
        display: none;
        
        ul {
            list-style: none;
            border-bottom: 1px solid #ccc;
            li {
                display: block;
                background: #f9f9f9;
                border: 1px solid #ccc;
                border-bottom: 0;
                
                &:nth-child(1) {
                    border-top: 0;
                }

                &:hover {
                    background: $orange;
                    
                    a {
                        color: #FFF;
                    }
                }
                a {
                    font-family: "Roboto";
                    font-weight: 400;
                    font-size: 13px;
                    text-decoration: none;
                    color: #505050;
                    padding: 10px;
                    display: block;
                }
            }
        }
    }
}

.new-plan-audience {
    background: #e1e1e1;
    height: 100%;

    .new-form {
        padding-top: 70px;
        width: 70%;
        max-width: 760px;
        margin: 0 auto;

        .new-form-grid {
            display: grid;
            grid-template-columns: 1fr 10fr;
            grid-column-gap: 20px;

            &.no-illustration {
                grid-template-columns: 1fr;
            }
        }

        .new-form-illustration {
            border-radius: 7px;
            height: 0;
            padding-bottom: 100%;
            background: #FFF;
            position: relative;

            img {
                max-width: 60%;
                box-sizing: border-box;
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
            }
        }

        .new-form-form {
            background: #FFF;
            border-radius: 7px;

            .new-form-form-container {
                padding: 35px 40px;
            }
            
            .tags {
                background: #DDD;
                border-radius: 3px;
                padding: 0 8px;
                display: none;
                box-sizing: border-box;

                li {
                    margin: 8px 0;
                    display: inline-block;
                    background: #FFF;
                    font-family: "Roboto";
                    font-size: 11px;
                    margin-right: 4px;
                    border-radius: 3px;
                    padding: 8px;
                    font-weight: 500;
                    text-transform: uppercase;
                    position: relative;
                    padding-right: 30px;

                    a {
                        border-left: 1px solid #DDD;
                        height: 100%;
                        display: block;
                        position: absolute;
                        right: 0;
                        top: 0;
                        width: 20px;
                        line-height: 27px;
                        text-align: center;
                    }
                }
            }
            
            
            .form-title {
                display: grid;
                grid-template-columns: 1fr 1fr;
                border-bottom: 1px solid #ebebeb;
                padding-bottom: 20px;

                h1 {
                    color: $orange;
                    font-family: "Roboto";
                    font-size: 16px;
                }

                .steps {
                    font-family: "Roboto";
                    font-weight: bold;
                    font-size: 10px;
                    color: #505050;
                    text-transform: uppercase;
                    text-align: right;
                }
            }
        }
   
        .form-map {
            padding-bottom: 65%;
            height: 0;
        }

        .drag-box {
            border: 1px dashed #ebebeb;
            margin-top: 25px;
            padding: 40px 0;
            width: 100%;
            text-align: center;
            text-transform: uppercase;
            font-family: "Roboto";
            font-weight: bold;
            color: #a0a0a0;
            border-radius: 7px;

            &.hasJobs {
                display: grid;
                grid-template-columns: 1fr 1fr;
                padding: 5px 0;
                grid-column-gap: 5px;
                grid-row-gap: 5px;

                h2 {
                    display: none;
                }

                .jobs-entry {
                    background: #ebebeb;
                    text-align: left;
                    margin-bottom: 0;
                }
            }
        }

        .checkbox-box {
            margin-top: 30px;
            
            h2 {
                border-bottom: 1px solid #ebebeb;
                width: 100%;
                background: url('../../imgs/arrow-down.png');
                background-position: 97% center;
                background-repeat: no-repeat;
                font-size: 12px;
                display: block;
                line-height: 50px;
                padding-left: 25px;
                padding-right: 25px;
                box-sizing: border-box;
                color: #505050;
                font-family: "Roboto";
            }

            .checkbox-item {
                border-bottom: 1px solid #ebebeb;
                padding: 10px 25px;
                display: grid;
                grid-template-columns: 1fr 1fr;

                div:nth-child(1) {
                    line-height: 45px;
                    height: 45px;
                    font-family: "Roboto";
                    font-size: 12px;
                    color: #505050;

                    input[type=checkbox] {
                        margin-right: 15px;
                    }
                }

                div:nth-child(2) {
                    text-align: right;

                    img {
                        height: 45px;
                    }
                }
            }
        }

        .form-box {
            display: grid;
            grid-template-columns: 4fr 3fr;
            border-bottom: 1px solid #ebebeb;
            padding: 0 25px;

            &.full {
                grid-template-columns: 1fr;
                outline: 0;

                select {
                    height: 50px;
                }
            }

            &.search {
                input[type=text] {
                    background: url('../../imgs/search-icon.png');
                    background-position: right center;
                    background-repeat: no-repeat;
                    background-size: 12px;
                }
            }

            .with-select {
                display: grid;
                grid-template-columns: 2fr 1fr;
                grid-column-gap: 20px;

                input[type=text] {
                    text-align: right;
                }
            }
                
            select {
                border: 0;
                font-family: "Roboto";
                color: #505050;
                appearance: none;
                -webkit-appearance: none;
                -moz-appearance: none;
                background-image: url('../../imgs/select-down.png');
                background-position: right center;
                background-repeat: no-repeat;
                outline: 0;
            }
            
            input[type=text] {
                height: 50px;
                border: 0;
                font-family: "Roboto";
                font-style: italic;
                font-size: 12px;
                outline: 0;
            }

            label {
                height: 50px;
                font-size: 12px;
                display: block;
                line-height: 50px;
                color: #505050;
                font-family: "Roboto";

                span {
                    color: #a0a0a0;
                    font-weight: 300;
                    font-size: 10px;
                }
            }
        }

        .form-date {
            width: 100%;
            background: #ebebeb;
            position: relative;

            .calendar .calendar-table .table-row .table-col.in-range {
                background: rgba(224, 88, 48, .7);
                color: #FFF;
            }

            .calendar .calendar-table .table-row .table-col.clickable:hover .table-value-wrapper {
                background: rgba(224, 88, 48, .85);
                color: #FFF;
            }

            .calendar .calendar-table {
                border: 0;
            }

            .calendar .calendar-table .table-row .table-col.start-date .table-value-wrapper, .calendar .calendar-table .table-row .table-col.start-date .table-value-wrapper:hover, .calendar .calendar-table .table-row .table-col.end-date .table-value-wrapper, .calendar .calendar-table .table-row .table-col.end-date .table-value-wrapper:hover {
                background: $orange;
            }
            
            .daterangepicker {
                background: transparent;
                box-shadow: none;
            }

            .daterangepicker {
                width: 100%;
                justify-content: center;

                .controls {
                    position: absolute;
                    top: 0;
                    left: 56%;
                    margin-top: -33px;

                    .custom-range-inputs {
                        input {
                            background: transparent;
                            outline: 0;
                            padding: 0;
                            border: 0;
                        }
                    }
                }
            }

            .ui-widget.ui-widget-content{
                margin: 0 auto;
                background: transparent;
                border: 0;
            }

            .ui-widget-header{
                background: transparent;
                border: 0;
            }

            .ui-icon-circle-triangle-w {
                background-image: url('../../imgs/calendar-left.png');
                background-position: center center;
            }

            .ui-icon-circle-triangle-e {
                background-image: url('../../imgs/calendar-right.png');
                background-position: center center;
            }

            .ui-datepicker .ui-datepicker-title{
                font-family: "Roboto";
                color: #505050;
                text-transform: uppercase;
                font-size: 12px;
                margin-top: 5px;
            }

            .ui-datepicker th {
                font-weight: 400;
                font-size: 11px;
            }

            .ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default, .ui-button, html .ui-button.ui-state-disabled:hover, html .ui-button.ui-state-disabled:active {
                border: 0;
                background: transparent;
                text-align: center;
                color: #a0a0a0;
            }

            .ui-datepicker td{
                padding: 5px 0;
            }
        }
    }
}

.ooh-sidebar {
    display: none;

    &.jobs-open {
        &.open {
            grid-column: 6/8;
        }
    }
}
 
.jobs-sidebar {
    display: none;

    &.open {
        display: block;
        grid-column: 3/5;

        &.nav-toggled {
            grid-column: 2/4;
        }
    }
    
    .toggle {
        left: auto;
        right: -20px;
        transform: rotate(-180deg);
    }
    
    h2 {
        font-family: "Roboto";
        font-weight: 400;
        font-size: 16px;
        color: $orange;
        position: relative;

        a {
            position: absolute;
            right: 0;
        }
    }

    .accordion {
        margin-top: 25px;

        .accordion-level {
            a {
                background-color: #ebebeb;
                color: #505050;
                font-weight: bold;
                text-transform: uppercase;
                border-radius: 3px;
                padding: 8px 15px;
                margin-bottom: 15px;
            }
        }
    }
}


[data-js-draggable] {
    cursor: grab;
}

.ui-draggable-dragging[data-js-draggable] {
    cursor: grabbing;
}

.jobs-entry {
    display: grid;
    grid-template-columns: 30px 12fr 30px;
    border-radius: 3px;
    padding: 15px;
    margin-bottom: 15px;

    &:hover,
    &.active {
        background: #ebebeb;
    }

    .equal-icon,
    .x-icon {
        position: relative;

        img {
            position: absolute;
            top: 50%;
            left: 0;
            transform: translate(0, -50%);
        }

        &.x-icon {
            img {
                right: 7px;
                cursor: pointer;
                left: auto;
                width: 20px;
                right: 0;
            }
        }
        
    }

    p {
        color: #505050;
        font-family: "Roboto";
        font-size: 13px;
        line-height: 20px;
    }
}

.daterangepicker .custom-range-buttons button.apply-btn {
    background: $orange;
}
.selected-circuit {
    display: none;

    h2 {
        font-family: "Roboto";
        font-weight: 400;
        font-size: 16px;
        color: $orange;
        margin-bottom: 5px;
        position: relative;
        
        a {
            position: absolute;
            right: 0;
        }

    }

    h3 {
        color: #505050;
        margin-bottom: 15px;
        font-size: 12px;
        font-family: "Roboto";
        font-weight: 400;
    }

    .circuit-entries {
        li {
            cursor: pointer;
            display: grid;
            padding-bottom: 20px;
            padding-top: 20px;
            grid-template-columns: 70px 12fr;
            grid-column-gap: 20px;
            border-top: 1px solid #EBEBEB;
            padding-left: 10px;
            box-sizing: border-box;
            
            &:hover {
                background: #EEE;
            }
            img {
                width: 100%;
            }
            
            p {
                font-family: "Roboto";
                color: #505050;
                font-size: 12px;
                line-height: 20px;
            }
        }
    }
}
.selected-ooh {
    h2 {
        font-family: "Roboto";
        font-weight: 400;
        font-size: 16px;
        color: #505050;
        position: relative;

        a {
            position: absolute;
            right: 0;
        }
    }

    .tabs-container {
        .tab {
            display: none;

            &.active {
                display: block;
            }
        }
    }

    .tabs-titles {
        display: grid;
        grid-template-columns: 1fr 1fr;
        border: 1px solid #ebebeb;
        border-radius: 4px;
        margin-top: 15px;
        margin-bottom: 15px;

        li {
            color: #505050;
            height: 20px;
            line-height: 20px;
            cursor: pointer;
            text-align: center;
            font-family: "Roboto";
            font-weight: bold;
            text-transform: uppercase;
            font-size: 10px;
            
            &:hover,
            &.active {
                background: #ebebeb;
                color: $orange;
            }
        }

        &.one {
            grid-template-columns: 1fr;
        }

        &.two {
            grid-template-columns: 1fr 1fr;
        }
        
        &.three {
            grid-template-columns: 1fr 1fr 1fr;
        }
    }

    .slideshow img {
        width: 100%;
    }

    .slideshow-container {
        position: relative;

        .slide-left {
            position: absolute;
            z-index: 999;
            left: 0;
            top: 50%;
            transform: translate(0, -50%);
        }

        .slide-right {
            z-index: 999;
            position: absolute;
            right: 0;
            top: 50%;
            transform: translate(0, -50%);
        }

        .last-update {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 30px;
            background: rgba(255, 255, 255, .9);
            text-align: right;
            padding: 0 20px;
            z-index: 999;
            line-height: 30px;
            box-sizing: border-box;
            font-family: "Roboto";
            font-size: 11px;
            color: #505050;
            font-weight: bold;
        }
    }

    .ooh-description {
        background: #a0a0a0;
        color: #FFF;
        padding: 20px;
        box-sizing: border-box;
        width: 100%;
        font-family: "Roboto";
        font-size: 12px;
        line-height: 20px;
        padding-bottom: 60px;
        position: relative;

        .cta {
            position: absolute;
            bottom: 20px;
            right: 20px;
            line-height: 10px;
        }
    }

}

#gt_impressions,
#mobile_make {
    .cell {
        text {
            font-family: "Roboto";
            color: #FFF;
            font-size: 11px;
            fill: #FFF;
            cursor: default;
        }
    }
}
.analytics-content {
    .ctas a img {}
    .daterangepicker-field {
        border: 1px solid #ebebeb;
        padding: 5px;
        z-index: 3;
        text-align: center;
        font-family: "Roboto";
        position: absolute;
        margin-bottom: 20px;
        right: 0;
        top: 0;

        &.right {
            position: absolute;
            top: auto;
            right: 0;
            margin-top: -50px;
        }
    }

    [data-js=cell-7],
    [data-js=cell-8],
    [data-js=cell-9] {
        .small_graph {
            max-width: 250px;
            margin: 0 auto;

            &.nomax {
                max-width: 99999px;
            }
        }
    }
    .graph,
    .small_graph,
    .mid_graph {
        position: relative;
        h2.graph_title {
            font-family: "Roboto";
            margin-bottom: 18px;
            font-size: 14px;
            font-weight: 500;
            color: #505050;

            &.center {
                text-align: center;
            }

            a {
                float: right;
            }
        }
    }

    .cell-parent {
        position: relative;
    }

    .cell-parent[data-js=cell-1] .graph h2 a,
    .cell-parent[data-js=cell-1] .small_graph h2 a {
        display: none !important;
    }

    .graph-filters {
        margin-bottom: 20px;
        ul {
            list-style: none;


            li {
                cursor: pointer;
                display: inline-block;
                margin-right: 20px;

                &.label {
                    font-family: "Roboto";
                    font-size: 13px;
                    cursor: initial;
                    color: #333;
                    font-weight: 500;
                }
                
                &.disabled .circle {
                    background: #AAA !important;
                }

                .circle {
                    width: 8px;
                    height: 8px;
                    border-radius: 8px;
                    display: inline-block;
                    margin-right: 2px;

                }
                
                label {
                    font-family: "Roboto";
                    font-size: 13px;
                    cursor: pointer;
                    color: #505050;
                    vertical-align: middle;
                }

                input {
                    vertical-align: middle;
                }

                .input-control {
                    cursor: pointer;
                    display: inline-block;
                    position: relative;
                    font-weight: 100;
                    padding-left: 20px;
                    color: $radio-txt-color;
                  
                    input {
                        position: absolute;
                        width: auto !important;
                        z-index: 1;
                        opacity: 0;
                    }
                  
                    &__indicator {
                        border-radius: $input-radius;
                        display: block;
                        height:8px;
                        position: absolute;
                        top: 0;
                        border: 2px solid $orange;
                        left: 0;
                        user-select: none;
                        width: 8px;
                        text-align: center;
                        background-color: $radio-bg;
                        background-size: 50% 50%;
                        background-position: center center;
                        background-repeat: no-repeat;
                    }
                  
                }
                  
                  
                .input-control.radio {
                    input:checked ~ .input-control__indicator {
                        &:after {
                            border-radius: $input-radius;
                            content: "";
                            display: block;
                            height: 100%;
                            position: absolute;
                            top: 0;
                            left: 0;
                            transform: scale(.5);
                            transform-origin: center center;
                            width: 100%;
                            background: $radio-checked-focus;
                        }
                    }
                }
            }
        }
    }
    
    .mid_graph {
        grid-column: 1 / span 2;
    }

    .table_cell {
        padding: 7px 0;
        padding-left: 3px;
        border-right: 0;

        &:nth-child(2) {
            padding-right: 3px;
            border-left: 0;
            border-right: 0;
            text-align: right;
        }
    }

    .table_row:last-child {
        td {
            border-top: 2px solid #a6abd1;
            font-weight: bold;
            border-bottom: 0;
        }
    }

    .header_row th {
        color: transparent;
        border-right: 0;
        border-left: 0;
        border-bottom: 2px solid #a6abd1;
    }
    
    .semi_circle_container {
        height: 0;
        padding-bottom: calc(50% + 50px);
        overflow: hidden;

        p {
            font-family: "Roboto";
            font-size: 30px;
            color: #000;
            text-align: center;
            position: absolute;
            z-index: 5;
            bottom: 5px;
            left: 50%;
            transform: translate(-50%, 0);
        }

    }

    .semi_circle {
        width: 100%;
        padding-bottom: 100%;
        background-color: #fff;
        border-radius: 50%;
        position: relative;
        top: 50px;
        align-self: flex-end;

        &:after,
        .semi_circle_2 {
            content: '';
            position: absolute;
            border-radius: 50%;
        }
        
        .semi_circle_2{
            background: linear-gradient(to bottom, #eee 0%, #eee 50%, $orange 50%, $orange 100%);
            top: 0;
            right: 0;
            transition: .3s all;
            bottom: 0;
            left: 0;
            transform: rotate(0);
            animation: rotate-semi-circle 1s 1.5s ease-in-out forwards;
            z-index: 2;
        }
        

        &:after {
            background-color: #fff;
            top: 30px;
            z-index: 4;
            right: 30px;
            bottom: 30px;
            left: 30px;
        }
        
        // &:after {
        //     content: '';
        //     width: inherit;
        //     height: inherit;
        //     border: 50px solid rgba(211,211,211,.3);
        //     border-bottom: none;
        //     border-top-left-radius: 160px;
        //     position: absolute;
        //     border-top-right-radius: 160px;
        //     width: 100%;
        //     box-sizing: border-box;
        // }

        .left,
        .right {
            font-family: "Roboto";
            color: #000;
            font-size: 10px;
            position: absolute;
            bottom: 0;
        }

        .left {
            left: -25px;
        }

        .right {
            right: -20px;
        }
    }

    .small_graph.map,
    .main-graph.map {
        .graph-container {
            height: 400px;
        }

        &.tall .graph-container {
            height: 860px;

            &.biggest {
                height: 1400px;
            }
        }
        
        &.half .graph-container {
            height: 800px;
        }
    }

    .circle_graph {
        margin: 0 auto;
        margin-top: 50px;
        background: #01b8aa;
        width: 60%;
        padding-bottom: 60%;
        height: 0;
        border-radius: 100%;
        position: relative;

        p {
            position: absolute;
            left: 50%;
            bottom: 20px;
            transform: translate(-50%, 0);
            color: #FFF;
            font-family: "Roboto";
            font-size: 30px;
        }
    }
}

.calendar .calendar-header .calendar-selects .cal-month {
    padding-right: 5px;
}

.analytics-overview {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-column-gap: 50px;
    padding-top: 50px;
    padding-bottom: 50px;

    #heatmap-container {
        height: 400px;
        margin-bottom: 40px;
    }
    
    h2 {
        color: $orange;
        font-weight: bold;
        font-family: "Roboto";
        font-size: 12px;
        margin-bottom: 20px;
    }

    p,
    h3 {
        color: #515050;
        font-size: 12px;
        line-height: 16px;
        font-family: "Roboto";
        margin-bottom: 30px;
    }

    h3 {
        font-weight: bold;
    }

    .criteria {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-column-gap: 100px;

        p {
            strong {
                color: #9f9e9e;
                display: block;
            }
        }
    }

    .stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-column-gap: 50px;
        grid-row-gap: 25px;

        h4 {
            color: #515050;
            font-size: 12px;
            font-family: "Roboto";
            margin-bottom: 15px;
            font-weight: 400;
        }

        h5 {
            color: $orange;
            font-weight: 300;
            font-size: 18px;
            font-family: "Roboto";
        }
    }
}

@keyframes lds-ripple {
    0% {
        top: 96px;
        left: 96px;
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        top: 18px;
        left: 18px;
        width: 156px;
        height: 156px;
        opacity: 0;
    }
}
@-webkit-keyframes lds-ripple {
    0% {
        top: 96px;
        left: 96px;
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        top: 18px;
        left: 18px;
        width: 156px;
        height: 156px;
        opacity: 0;
    }
}

.lds-css {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: none;
    height: 100%;
    z-index: 9999;
    background: rgba(255, 255, 255, .9);
}
.lds-ripple {
    position: relative;
}

.lds-ripple div {
    box-sizing: content-box;
    position: absolute;
    border-width: 4px;
    border-style: solid;
    opacity: 1;
    border-radius: 50%;
    -webkit-animation: lds-ripple 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    animation: lds-ripple 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.lds-ripple div:nth-child(1) {
    border-color: #e05830;
}

.lds-ripple div:nth-child(2) {
    border-color: #f47e60;
-webkit-animation-delay: -0.5s;
    animation-delay: -0.5s;
}

.lds-ripple {
    width: 200px !important;
    height: 200px !important;
    position: absolute;
    margin-left: -100px;
    margin-top: -100px;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-100px, -100px) scale(1) translate(100px, 100px);
    transform: translate(-100px, -100px) scale(1) translate(100px, 100px);
}

.impressions-grid-scroll {
    height: calc(100vh - 165px);
    overflow-y: scroll;
}

.impressions-grid {
    padding: 60px;
    grid-row-gap: 60px;
    grid-template-columns: 2fr 2fr 2fr 3fr;
    display: grid;
    grid-column-gap: 30px;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
    

    .main-graph {
        grid-column: 1/4;
    }

    .map-toggle {
        position: absolute;
        z-index: 3;
        right: 20px;
        margin-top: 20px;

        &.top-toggle {
            margin-top: 0;
            top: 0;
            right: 0;

            ul li {
                background: #f7f7f7;
            }
        }

        &.three {
            ul {
                width: 200px;
                grid-template-columns: 1fr 1fr 1fr;
            }
        }
        ul {
            width: 180px;
            display: grid;
            background: #FFF;
            border-radius: 5px;
            grid-template-columns: 1fr 1fr;

            li {
                padding: 5px;
                font-family: "Roboto";
                text-align: center;
                cursor: pointer;
                font-weight: bold;
                text-decoration: none;
                text-transform: uppercase;
                color: $orange;
                font-size: 12px;

                &:nth-child(1) {
                    border-radius: 5px 0 0 5px;
                }

                &:last-child {
                    border-radius: 0 5px 5px 0;
                }

                &.active,
                &:hover {
                    background: $orange;
                    color: #FFF;
                }
            }
        }
    }

    &.grid-1 {
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 3fr;

        [data-js=cell-1] {
            grid-column: 1/7;
        }

        [data-js=cell-3] {
            grid-column: span 3;
        }

        [data-js=cell-4] {
            grid-column: span 3;
        }

        [data-js=cell-6] {
            grid-row: span 2;
        }

        [data-js=cell-7] {
            grid-column: span 2;
        }

        [data-js=cell-8] {
            grid-column: span 2;
        }

        [data-js=cell-9] {
            grid-column: span 2;
        }
    }

    &.grid-2 {
        grid-row-gap: 10px;
        grid-template-columns: 2fr 2fr 2fr 2fr;
        grid-template-rows: 1fr 1fr 1fr 1fr;

        [data-js=cell-1] {
            grid-column: 1/3;
            grid-row: 1/3;
        }

        [data-js=cell-2] {
            grid-column: 3/5;
            grid-row: 1/3;
        }


        [data-js=cell-3] {
            grid-column: 1/2;
            grid-row: 3/4;
        }

        [data-js=cell-4] {
            grid-column: 1/2;
            grid-row: 4/5;
        }

        [data-js=cell-5] {
            grid-column: 2/3;
            grid-row: 3/5;
        }

        [data-js=cell-6] {
            grid-column: 3/4;
            grid-row: 3/5;
        }

        [data-js=cell-7] {
            grid-column: 4/5;
            grid-row: 3/5;
        }
    }

    &.grid-3 {
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
        grid-template-rows: 1fr 1fr;

        [data-js=cell-1] {
            grid-column: 1/5;
            grid-row: 1/2;
        }

        [data-js=cell-2] {
            grid-column: 1/3;
            grid-row: 2/3;
        }

        [data-js=cell-8] {
            grid-column: 3/5;
            grid-row: 2/3;
        }

        [data-js=cell-3] {
            grid-column: 1/3;
            grid-row: 3/4;
        }

        [data-js=cell-4] {
            grid-column: 3/5;
            grid-row: 3/4;
        }
        
        [data-js=cell-5] {
            grid-column: 1/3;
            grid-row: 3/4;
        }

        [data-js=cell-6] {
            grid-column: 3/5;
            grid-row: 3/4;
        }

        [data-js=cell-7] {
            grid-column: 5/9;
            grid-row: 1/4;
        }
    }

    &.grid-4 {
        grid-template-columns: 4fr 4fr 4fr 4fr;
        grid-template-rows: 1fr 1fr;

        [data-js=cell-1] {
            grid-column: 1/3;
            grid-row: 1/3;
        }

        [data-js=cell-2] {
            grid-column: 3/5;
            grid-row: 1/2;
        }

        [data-js=cell-3] {
            grid-column: 3/4;
            grid-row: 2/3;
        }

        [data-js=cell-4] {
            grid-column: 4/5;
            grid-row: 2/3;
        }
    }
}

/** AUTOCOMPLETE DEFAULT CSS **/
.autocomplete-suggestions { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; border: 1px solid #999; background: #FFF; cursor: default; overflow: auto; -webkit-box-shadow: 1px 4px 3px rgba(50, 50, 50, 0.64); -moz-box-shadow: 1px 4px 3px rgba(50, 50, 50, 0.64); box-shadow: 1px 4px 3px rgba(50, 50, 50, 0.64); }
.autocomplete-suggestion { padding: 2px 5px; white-space: nowrap; overflow: hidden; }
.autocomplete-no-suggestion { padding: 2px 5px;}
.autocomplete-selected { background: #F0F0F0; }
.autocomplete-suggestions strong { font-weight: bold; color: #000; }
.autocomplete-group { padding: 2px 5px; font-weight: bold; font-size: 16px; color: #000; display: block; border-bottom: 1px solid #000; font-family: "Roboto"; font-size: 14px; padding: 7px;}
.autocomplete-suggestion {
    font-family: "Roboto";
    padding: 7px;
    color: #555;
    font-size: 13px;
}

/** DATE RANGE PICKER **/

.analytics-nav {
    height: 50px;
    background: #e0e0e0;
    text-align: center;

    ul {
        list-style: none;

        li {
            display: inline-block;
            font-family: "Roboto";
            font-weight: 500;
            font-size: 12px;
            padding: 0 30px 0 0;
            line-height: 50px;

            &:not(:last-child):after {
                padding-left: 30px;
                content: '|';
                color: #FFF;
                font-family: "Roboto";
                font-size: 15px;
            }

            a {
                color: #a0a0a0;
                text-decoration: none;

                &:hover,
                &.active {
                    color: $orange;
                }
            }
        }
    }
}


.popup {
    display: none;
    .overlay {
        background: rgba(255, 255, 255, .6);
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 100;
    }

    .popup-box {
        width: 600px;
        height: auto;
        box-sizing: border-box;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        border-radius: 12px;
        z-index: 101;
        background: #FFF;

        .popup-content {
            padding: 30px 50px 40px 50px;
        }
        
        .popup-title {
            position: relative;
            h2 {
                color: #e05830;
                font-size: 17px;
                font-family: "Roboto";
            }

            img {
                width: 16px;
                position: absolute;
                right: 0;
                top: 0px;
            }
        }

        form {
            margin-top: 20px;

            .form-box {
                border-top: 1px solid #EEE;
                padding: 20px 0;
                display: grid;
                grid-template-columns: 2fr 1fr;
                &:last-child {
                    border-bottom: 1px solid #EEE;
                }

                label {
                    font-family: "Roboto";
                    line-height: 23px;
                    font-size: 13px;
                }

                input[type=text] {
                    color: #DDD;
                    border: none;
                    text-align: right;
                    font-family: "Roboto";
                    font-size: 12px;
                }

                div {
                    text-align: right;
                }
                
                button {
                    appearance: none;
                    border: none;
                    background: #e05830;
                    color: #FFF;
                    text-transform: uppercase;
                    display: inline-block;
                    cursor: pointer;
                    border: 1px solid transparent;
                    
                    
                    &:hover {
                        background: #FFF;
                        color: #e05830;
                        border: 1px solid #e05830;
                    }
                }
            }
        }
        
        .popup-ctas {
            background: #ebebeb;
            width: 100%;
            padding: 15px 20px;
            box-sizing: border-box;
            border-radius: 0 0 12px 12px;
            text-align: right;

            button {
                font-family: "Roboto";
                color: #e05830;
                text-transform: uppercase;
                font-size: 14px;
                background: transparent;
                border: 0;
                font-weight: 500;
                height: 30px;
                outline: 0;
                width: 130px;
                cursor: pointer;
                
                &.big {
                    width: 180px;
                }

                img {
                    width: 20px;
                    vertical-align: middle;
                }

                span {
                    padding: 0 15px;
                }
            }
        }
    }
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;

    &.hidden {
        display: none;
    }

    .upload-box input[type=file] {
        display: none;
    }

    .picture-upload {
        display: grid;
        grid-template-columns: 1fr 1fr;
        margin-top: 25px;
        border-top: 1px solid #DDD;
        padding: 15px 20px;
        border-bottom: 1px solid #DDD;
        margin-bottom: 50px;

        > div:nth-child(1) {
            display: grid;
            grid-template-columns: 40px 1fr;
            grid-column-gap: 40px;
            
            div {
                position: relative;

                p {
                    position: absolute;
                    top: 50%;
                    transform: translate(0, -50%);
                }
            }
            img {
                width: 100%;
            }
        }

        > div:nth-child(2) {
            text-align: right;
            position: relative;
        }

        p {
            font-family: "Roboto";
            font-size: 12px;
            vertical-align: middle;
            color: #AAA;
        }
        
        .open-upload {
            float: right;
            background: $orange;
            font-family: "Roboto";
            text-decoration: none;
            font-weight: 400;
            color: #FFF;
            text-transform: uppercase;
            font-size: 11px;
            border-radius: 4px;
            padding: 5px;
            position: absolute;
            right: 0;
            top: 50%;
            transform: translate(0, -50%);
        }

    }
    .box-title {
        position: relative;
        h3 {
            color: $orange;
            font-size: 16px;
            font-family: "Roboto";
            font-weight: 400;
        }

        a {
            position: absolute;
            right: 0;
            top: 0;
        }
    }

    .license-details {
        margin-top: 30px;
        .license-detail {
            display: grid;
            grid-template-columns: 1fr 1fr;
            font-family: "Roboto";
            font-size: 12px;
            color: #000;
            border-top: 1px solid #EEE;
            padding: 10px 20px;
            box-sizing: border-box;

            &:last-child {
                border-bottom: 1px solid #EEE;
            }
            
            div:nth-child(2) {
                text-align: right;
                color: #AAA;
            }
        }
    }
    .overlay {
        position: absolute;
        z-index: 99999;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, .7);
    }

    .software-version {
        font-family: "Roboto";
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translate(-50%, 0);
        font-size: 12px;
        color: #A0A0A0;
        z-index: 999999;
    }

    .privacy-policy {
        font-family: "Roboto";
        position: absolute;
        bottom: 20px;
        right: 40px;
        font-size: 12px;
        z-index: 999999;

        a {
            color: $orange;
        }
    }

    .modal-box {
        border-radius: 4px;
        padding: 30px;
        position: absolute;
        min-width: 550px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: #FFF;
        z-index: 999999;
        box-shadow:0 4px 8px rgba(0,0,0,0.2);
    }

    .modal-logo {
        width: 150px;
        margin-bottom: 30px;
    }

    .x-button {
        position: absolute;
        top: 30px;
        right: 30px;
    }

    form {

        h4 {
            font-family: "Roboto";
            font-size: 16px;
            color: #505050;
            margin-bottom: 15px;
            margin-left: 15px;
        }

        .form-group.bottom {
            padding-bottom: 60px;
        }

        .error {
            font-family: "Roboto";
            font-size: 12px;
            color: #E05830;
            padding-left: 15px;
            margin-bottom: 20px;
        }

        .paragraph-here {
            display: none;
            padding-bottom: 55px;
        }

        .paragraph-here p {
            font-size: 12px;
            padding-left: 15px;
            font-family: "Roboto";
            color: #505050;
        }
        
        .left-cta img {
            padding-right: 10px;
        }

        .bottom-cta a {
            display: none;
        } 

        .bottom-cta.left {
            text-align: left;
            
            a {
                display: inline-block;
            }

            button {
                display: none;
            }
        }
        label {
            color: #505050;
            font-family: "Roboto";
            font-size: 12px;
            font-weight: 400;
            padding-left: 15px;
        }

        input[type=text],
        input[type=password] {
            width: 100%;
            border: 1px solid #EBEBEB;
            height: 40px;
            margin-top: 5px;
            line-height: 40px;
            text-indent: 30px;
            font-family: "Roboto";
            border-radius: 4px;
            font-size: 12px;
            margin-bottom: 15px;
        }
        
        .bottom-links {
            display: grid;
            padding-bottom: 65px;
            grid-template-columns: 1fr 1fr;
        }

        .checkbox-group {
            input[type=checkbox] {
                margin-left: 15px;
            }

            label {
                color: #A0A0A0;
                padding-left: 5px;
            }
        }

        .reset-password {
            text-align: right;
            padding-right: 15px;

            a {
                color: #505050;
                font-family: "Roboto";
                font-size: 12px;
            }
        }
    }

    .bottom-cta {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        box-sizing: border-box;
        border-radius: 0 0 4px 4px;
        background: #EBEBEB;
    }
}

.top-tabs {
    li {
        display: block;
        float: left;
        position: relative;
        transform: skew(21deg);
        background: #eee;
        
        &.active {
            background: #FFF;

            a {
                color: $orange;
            }
        }

        a {
            transform: skew(-21deg);
            font-family: "Roboto";
            font-size: 15px;
            text-decoration: none;
            padding: 20px;
            display: inline-block;
            color: #000;

        }
    }
}

.previous-planning .previous-planning-box .previous-planning-box-title.nopad {
    padding-top: 0;
    padding-bottom: 0;
}

.aside.pad {
    padding-top: 20px;
}

.previous-planning .previous-planning-box .previous-planning-accordion.notification-tab {
    display: none;

    &.active {
        display: block;
    }
}