@mixin breakpoint($point) {
    @if $point == xs {
        @media (min-width: 420px) { @content; }
    } @else if $point == sm {
        @media (min-width: 640px) { @content; }
    } @else if $point == md {
        @media (min-width: 960px)  { @content; }
    } @else if $point == lg {
        @media (min-width: 1100px)  { @content; }
    } @else if $point == xl {
        @media (min-width: 1600px)  { @content; }
    } @else if $point == ipad-landscape {
        @media (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : landscape) { @content; }
    } @else if $point == ipad-portrait {
        @media (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : portrait) { @content; }
    }
}


$light-blue:            #2196f3;
$purple:                #673ab7;
$pink:                  #9c27b0;
$dark-blue:             #242f6b;
$orange:                #ff8b00;
$green:                 #4caf50;
$yellow:                #ffeb3b;
$red:                   #f44336;
$grey:                  #6d7072;
$trans:                 all .25s ease-in-out;


.forms_page_entry-reports-for-gravity-forms {
    background: rgba($light-blue, .1);
}

.entry-reports-for-gravity-forms {
    padding: 60px 25px 0 25px;
    margin: 0 auto;
    transition: $trans;

    @include breakpoint(md) {
        padding: 120px 50px 25px 50px;
        max-width: 70%;
        box-sizing: border-box;

        &.full {
            width: 100%;
            max-width: 100%;

            header {
                padding: 0 25px 0 70px;

                span {        
                    @include breakpoint(md) {
                        right: 25px;
                    }
                }
            }
        }
    }

    @media only screen and (max-width: 1600px) {
        max-width: 70%;
    }

    @media only screen and (max-width: 1300px) {
        max-width: 100%;
    }

    header {
        background: #bbd8fd;
        height: 45px;
        position: absolute;
        top: 46px;
        left: -20px;
        width: calc(100% + 20px);
        box-sizing: border-box;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        padding: 0;
        z-index: -1;

        @include breakpoint(md) {
            top: 0;
            height: 88px;
            transition: $trans;
        }

        img {
            display: block;
            width: 70%;
            margin: 0 auto;

            @include breakpoint(md) {
                height: 30px;
                width: auto;
                margin: 0 auto;
            }
        }

        span {
            padding: 3px 8px;
            background: #242057;
            color: #bbd8fd;
            border-radius: 5px;
            font-size: 1em;
            position: relative;
            right: 20px;
            transition: $trans;

            @include breakpoint(md) {
                right: calc(24% - 35px);
            }
        }
    }

    h2 {
        width: 100%;
    }

    h3 {
        font-size: 1.1em;
    }

    .box-heading {
        display: flex;
        flex-wrap: wrap;
        padding: 25px;
        background: #fff;
        margin: 25px 0 0 0;
        border: solid 1px #c3c4c7;
        border-radius: 5px;
        cursor: pointer;
        justify-content: space-between;
        width: 100%;
        box-sizing: border-box;

        &::after {
            content: '';
            display: block;
            width: 20px;
            height: 20px;
            background: url('../images/chevron-down.svg') no-repeat center;
            background-size: contain;
            transition: $trans;
        }

        &.open {

            border-bottom: none;
            border-bottom-left-radius: 0;
            border-bottom-right-radius: 0;

            &::after {
                transform: rotate(-180deg);
            }
        }
    }

    .gfer-mini-nav {
        a {
            text-decoration: underline;
            cursor: pointer;
        }
    }

    .displaying {
        
        border-top: solid 1px rgba($dark-blue, .1);
        padding: 15px 0 0 0;
        margin: 20px 0 0 0;
        font-size: 1.05em;

        @include breakpoint(md) {
            display: flex;
            justify-content: space-between;
            align-items: end;
        }

        strong {
            display: flex;
            margin: 0 0 0 5px;
        }

        .statement {
            width: 100%;

            @include breakpoint(md) {
                width: auto;
            }


            strong {
                margin: 0;
            }

            #summary {
                i {
                    font-style: normal;
                    background: #fff;
                    color: #3c434a;
                    font-weight: bold;
                    display: inline-block;
                    padding: 3px 5px;
                    border-radius: 3px;
                    line-height: 1;
                    font-size: 1em;
                }
            }
        }

        span {
            
            @include breakpoint(md) {
            }

        }

        .counts {
            font-weight: 600;
            display: block;
            width: 100%;
            margin: 15px 0 0 ;
            
            @include breakpoint(md) {
                margin: 0;
                min-width: 240px;
                text-align: right;
                width: auto;
            }
        }

        em {
            font-style: normal;
        }

        .toggles {

            display: flex;
            flex-wrap: wrap;
            margin: 20px 0;
            

            @include breakpoint(md) {
                justify-content: center;
                margin: 0;
                min-width: 430px;
            }
            
            
            img,
            i {
                display: block;
                width: 22px;
                height: 22px;
                background: #fff;
                padding: 3px;
                border-radius: 3px;
                margin: 0 4px;
                transition: $trans;
                cursor: pointer;
            }

            i {
                font-style: normal;
                color: #fff;
                display: flex;
                justify-content: center;
                align-items: center;
                margin: 0;
                border-radius: 0;
                padding: 3px 6px;
                transition: none;
                position: relative;
                user-select: none;

                &.not-selected {
                    color: rgba(#fff, .6);
                    opacity: .7;
                }

                &.selected {
                    color: #fff;
                    filter: contrast(150%);
                    text-shadow: 1px 1px rgba($dark-blue, .35);
                    opacity: 1;
                    
                    // &::after {
                    //     content: '';
                    //     display: block;
                    //     width: 100%;
                    //     height: 100%;
                    //     position: absolute;
                    //     bottom: -2px;
                    //     left: 0;
                    //     border-bottom: solid 2px rgba($dark-blue, .25);
                    //     border-radius: 4px;
                    // }
                }

                &:first-child {
                    border-top-left-radius: 4px;
                    border-bottom-left-radius: 4px;
                }

                &:hover {
                    filter: contrast(150%);
                    opacity: 1;
                }
            }

            .show-all-bars {
                //background: #00bcd4;
                margin: 0;
                border-top-right-radius: 4px;
                border-bottom-right-radius: 4px;

                &::after {
                    display: none !important;
                }
            }

            .active {
                transform: rotate(180deg);
                transition: $trans;
                background: $yellow;
            }

            &.rounded-bars {
                i {
                    border-radius: 100em;
                }
            }
        }
    }

    
    .gfer-intro {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .gfer-intro-buttons {
        text-align: right;
        display: block;

        a {
            margin: 0 0 0 5px;
        }
    }

    .gfer-pill {
        padding: 7px 14px;
        display: inline-block;
        background: #fff;
        text-decoration: none;
        border-radius: 4px;
        border: solid 1px rgba($dark-blue, .2);
        color: $dark-blue;

        &.green {
            background: $green;
            border: none;
            color: #fff;
            text-transform: uppercase;

            &:hover {
                background: $pink;
            }
        }
    }


    .form-ui {

        margin: 25px 0 0 0;
        user-select: none;

        ul {
            margin: 0;
            display: flex;
            flex-wrap: wrap;
        }

        li {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            margin: 0 10px 10px 0;

            &:first-child {
                border-top-left-radius: 5px;
                border-bottom-left-radius: 5px;
            }

            &:last-child {
                border-top-right-radius: 5px;
                border-bottom-right-radius: 5px;
            }

            span {
                margin: 0 5px 0 0;
                font-weight: 600;
            }
            
            input[type=date], 
            input[type=submit],
            select,
            a,
            span,
            em {
                height: 100%;
                border: solid 1px #9092b2;
                background: #fff;
                margin: 0;
                height: 36px;
                display: flex;
                align-items: center;
                box-shadow: 0 2px 1px rgba(28,31,63,.063);

                &:hover {
                    background: #fff;
                }
            }

            input[type=submit] {
                background: rgba($light-blue, .05);
                border: solid 1px $light-blue;
                color: $light-blue;
                border-radius: 5px;

                &:hover {
                    background: rgba($light-blue, .1);
                }
            }

            input[type=radio] {
                
                &::before {
                    @include breakpoint(md) {
                        margin: 0.2rem;
                    }
                }
            }

            em {
                display: flex;
                flex-wrap: wrap;
                align-items: center;
                font-style: normal;
                border-top-right-radius: 5px;
                border-bottom-right-radius: 5px;
                padding: 0 10px;
                margin: 0;

                input {
                    margin: 0 4px 0 10px;

                    &:first-child {
                        margin: 0 4px 0 0;
                    }
                }
            }

            select {
                border-radius: 0;
                border-top-right-radius: 5px;
                border-bottom-right-radius: 5px;
                height: 100%;
                -webkit-appearance: auto;
            }

            label {
                display: flex;
                align-items: center;
                margin: 0 10px;

                &.check-radio {
                    margin: 0;
                }
            }

            span {
                padding: 0 10px;
                border-right: 0;
                border-top-left-radius: 4px;
                border-bottom-left-radius: 4px;
                cursor: text;
            }

            input[type=date] {
                border-top-left-radius: 0;
                border-bottom-left-radius: 0;
                min-height: 100%;
            }

            .display-report-button {
                font-weight: 600;
                border: solid 1px #3e7da6;
                color: #3e7da6;
                background: #fff;
            }

        }

        .gfer-spinner {
            width: 25px;
            height: 25px;
            margin: 0 0 0 5px;
            display: none;
        }
    }

    table {
        width: 100%;
        //background: #fff;
        //border: solid 1px #c3c4c7;
        margin: 0;
        list-style: none;
        padding: 0;
        background: #fff;
        //box-shadow: 5px 5px 40px rgba(28,31,63, .1);
        margin: 20px 0 0 0;

        &.table-list {
            padding: 5px 25px;

            tr {
                td {
                    padding: 8px 0;
                    border-bottom: solid 1px #f1f1f1;
                    width: 100%;
                }
            }
        }

        .table-header {
            &.sticky {
                position: absolute;
                top: -36px;
                width: 100%;
                display: flex;
                flex-wrap: wrap;
                justify-content: space-between;
                border-bottom: solid 1px #c3c4c7;

                th {
                    border: none;
                }
            }
        }

        tbody {
            position: relative;
            margin: 36px 0 0 0;

            &.flip {
                display: flex;
                flex-direction: column-reverse;

                tr {
                    display: flex;
                    justify-content: space-between;
                }
            }

            &.move-counts {
                td:last-child {
                    width: 75%;
                    text-align: left;
                }
            }

            &.no-padding {
                td {
                    padding: 3px 10px;
                }
            }
        }

        th, td {
            padding: 10px 15px;
            vertical-align: middle;
        }

        th {
            border-bottom: solid 1px #c3c4c7;
            padding: 10px 15px;
        }

        td:last-child,
        th:last-child {
            
            text-align: right;

            @include breakpoint(md) {
                width: 20%;
            }
        }

        tr:nth-child(even) {
            //background: rgba($dark-blue, .02);
        }

        tr:hover {
            td {
                background: rgba($light-blue, .1) !important;
            }
        }

        th {
            text-align: left;
        }

        td {
            .tot {
                //font-weight: 600;
                // display: inline-block;
                // padding: 3px 6px;
                // background: rgba($light-blue, .1);
                // border: solid 1px rgba($light-blue, .4);
                // color: $light-blue;
                // font-size: .9em;
                // line-height: 1em;
                // border-radius: 3px;
            }
        }
    }

    .utp {
        padding: 7px 14px;
        border-radius: 5px;
        background: $green;
        color: #fff;
        text-decoration: none;
        text-transform: uppercase;
        margin: 5px 0 0 0;
        display: inline-block;

        &:hover {
            background: $pink;
        }
    }

    .enabled-forms {

        //padding: 10px 25px;
        border: solid 1px #c3c4c7;
        border-radius: 5px;

        a {
            text-decoration: none;
        }

        span {
            display: block;
            margin: 4px 0 0 0;
        }

        tr:nth-child(even) {
            td {
                background: #f6f9fc;
            }
        }
    }

    .gfer-settings {
    
        margin: 0;

        li {
            position: relative;
            display: inline-flex;
            margin: 0;
            align-items: center;

            &:hover {
                border-radius: 4px;
                ul {
                    display: block;
                }
            }
        }

        ul {
            background: #fff;
            box-shadow: 4px 4px 10px rgba(28,31,63,.063);
            border: solid 1px #c3c4c7;
            border-radius: 3px;
            position: absolute;
            top: 2px;
            right: 21px;
            z-index: 1;
            display: none;

            @media only screen and (min-width: 960px) {
                // left: 21px;
                // right: auto;
            }

            li {
                margin: 0;
                position: relative;
                display: flex;
                flex-wrap: wrap;
                align-items: center;
                position: relative;

                i {
                    // width: 20px;
                    // height: 20px;
                    font-size: 1em;
                    display: flex;
                    align-items: center;
                    margin: 0 5px 0 0;

                    &::before {
                        font-size: 1.3em;
                        color: #000;
                    }
                }

                a {
                    display: flex;
                    align-items: center;
                    padding: 10px;
                    color: #000;
                    width: 100%;

                    &:hover {
                        background: rgba($light-blue, .15);
                    }
                }

                img {
                    width: 16px;
                    height: 16px;
                    margin: 0 4px 0 0;
                }
            }
        }
    }

    .no-results {
        display: flex;
        align-content: center;
        margin: 20px 0 0 0;

        &::before {
            content: '';
            background: url('../images/alert-circle.svg') no-repeat center;
            background-size: contain;
            width: 18px; 
            height: 18px;
            margin: 0 5px 0 0;
            border-radius: 100em;
        }
    }

}

.forms_page_entry-reports-for-gravity-forms {
    #wpfooter {
        display: none;
    }
}

.gfer-rocket-apps-logo {
    position: fixed;
    bottom: 0;
    right: 25px;
    display: block;
    width: 40px;
    height: auto;
    padding: 15px;
    background: #fff;
    box-shadow: 5px 5px 40px rgba(28,31,63, .1);
}

.gfer-horizontal-bar-chart {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-sizing: border-box;
    padding: 56px 25px 25px 25px;
    background: #fff;
    box-shadow: 5px 5px 40px rgba(28,31,63, .1);
    border-radius: 5px;
    position: relative;

    &.rounded-bars {
        .bar {
            border-radius: 100em;

            em {
                border-radius: 100em;
            }
        }
    }

    &.flip {
        flex-flow: column-reverse;
    }

    &.move-counts {
        .bar {
            justify-content: flex-start;
        }
    }

    .gfer-date {
        width: 190px;
        display: flex;
        justify-content: flex-start;
        padding: 0 10px;
        box-sizing: border-box;
        cursor: pointer;

        &:hover {
            text-decoration: underline;
        }

        &.selected {
            font-weight: bold;
        }
    }

    .gfer-bar {
        display: flex;
        width: calc(100% - 190px);
    }

    li {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        align-items: center;
        width: 100%;
        border-bottom: dashed 1px rgba($dark-blue, .21);
        border-left: dashed 1px rgba($dark-blue, .21);
        border-right: dashed 1px rgba($dark-blue, .21);
        padding: 5px 0;
        margin: 0;
        font-size: 1em;
        z-index: 10;
        position: relative;

        &.no-padding {
            padding: 0;
        }

        &:hover {
            background-color: rgba($dark-blue, .05);

            em {
                background: $dark-blue;
            }

            .gfer-date {
                //color: $pink;
            }
        }

        &:first-child {
            border-top: dashed 1px rgba($dark-blue, .21);
        }

        &:last-child {
            border: none;
        }
    }

    .chart-header {
        background: #fff;
        font-weight: 600;
        padding: 6px 0;
        position: absolute;
        width: calc(100% - 50px);
        top: 25px;

        &:hover {
            background: #fff;

            .gfer-date {
                color: #000;
            }
        }

        &.no-padding {
            padding: 6px 0;
        }
    }
    
    .bar {
        //background-color: $pink; 
        color: #fff;
        border-radius: 2px;
        display: flex;
        justify-content: flex-end;

        em {
            font-style: normal;
            padding: 2px 8px;
            background: rgba($dark-blue, .2);
            border-radius: 2px;
            text-align: center;
            font-size: .85em;
            font-weight: 600;
            
        }
    }

    .v-bars {
        position: absolute;
        top: 25px;
        left: 215px;
        height: calc(100% - 50px);
        width: calc(100% - 239px); /* Should be 240 */
        display: flex;
        flex-wrap: wrap;
        z-index: 0;

        div {
            height: 100%;
            box-sizing: border-box;

            &:nth-child(odd) {
                background: rgba($dark-blue, .05)
            }
        }
    }

    .count {
        display: flex;
        justify-content: flex-end;
        font-weight: 600;
        height: 100%;
        align-items: end;
        position: relative;
        bottom: -60px;
        display: none;
    }
}

.submission-time {
    background: #fff;
    display: block;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    display: none;
    z-index: 999999999999999999999;
    box-shadow: 0 0 60px 0 rgba(0, 0, 0, 0.15);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    box-sizing: border-box;

    &.is-dragging {
        border-radius: 10px;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;

        .close-times {
            top: -10px;
            right: -10px;
        }
    }

    @include breakpoint(md) {
        width: 700px;
        // top: 50%;
        // transform: translateY(-50%);
        // left: calc(50% - 350px);
        top: auto;
        left: auto;
        bottom: 0;
        right: 0;
        
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        border-top-left-radius: 10px;
    }

    .upgrade-prompt {

        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        transition: all 1s ease-in-out;

        &.show {
            opacity: 1;
        }

        p {
            z-index: 111100;
            color: #000;
            position: relative;
            font-size: 1.1em;
            text-align: center;

            a {
                display: block;
                margin: 0 0 15px 0;
                @extend .gfer-pill;
                background: $green !important;
                color: #fff !important;
                padding: 15px 40px !important;
            }

            em {
                font-style: normal;
                display: block;
            }
            
        }
        
        &::before {
            content: '';
            display: block;
            position: absolute;
            top: 20px;
            left: 0;
            width: 100%;
            height: calc(100% - 20px);
            background: #fff;
            border-bottom-left-radius: 0;
            border-bottom-right-radius: 0;
            border-top-left-radius: 10px;
            opacity: .7;
            z-index: 1;
        }
    }

    .times-header {
        box-sizing: border-box;
        width: 100%;
        padding: 25px;
        border-bottom: solid 1px #f1f1f1;
        cursor: grab;
    }

    .close-times {
        width: 20px;
        height: 20px;
        border-radius: 100em;
        background: #fff;
        padding: 10px;
        position: absolute;
        top: 10px;
        right: 10px;
        cursor: pointer;
        background: rgba($red, .1);
        transition: $trans;
        z-index: 99999999999999;

        @include breakpoint(md) {
            top: -15px;
            right: 0;
            background: #fff;
        }
    }

    .header-info {
        display: block;
        width: calc(100% - 225px);
    }

    .key-and-dl {
        width: 160px;
        display: block;
        text-align: right;

        .key {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 5px;
            line-height: 1;
            margin: 5px 0 0 0;
            font-size: 1.1em;
            
            em {
                display: inline-block;
                border-radius: 100em;
                margin: 0 -2px;

                &:nth-child(1) {
                    background: rgba(#00baff, .2);
                    width: 16px;
                    height: 16px;
                }
                &:nth-child(2) {
                    background: rgba(#ff42c8, .2);
                    width: 14px;
                    height: 14px;
                }
                &:nth-child(3) {
                    background: rgba(#03ed43, .2);
                    width: 12px;
                    height: 12px;
                }
                &:nth-child(4) {
                    background: rgba(#fdba25, .2);
                    width: 10px;
                    height: 10px;
                }
                &:nth-child(5) {
                    background: rgba(#3500ff, .2);
                    width: 8px;
                    height: 8px;
                    margin: 0 2px 0 -2px;
                }
            }

            @include breakpoint(md) {
                margin: 0;
            }
        }
        
        #captureTimes {
            cursor: pointer;
            padding: 4px 0;
            display: block;

            &:hover {
                text-decoration: underline;
            }
        }
    }

    time {
        width: 100%;
        font-size: 1.1em;
        margin: 3px 0;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        box-sizing: border-box;

        .date {
            font-weight: bold;
        }

    }

    p {
        margin: 0;
        padding: 0;
        margin: 0;
        line-height: 1;
    }

    .submission-hours {
        display: flex;
        flex-wrap: wrap;
        box-sizing: border-box;
        width: 100%;
        padding: 10px 25px 15px 25px;

        span {
            width: 20%;
            padding: 10px 20px;
            //border: solid 1px #e0f1fd;
            //border: solid 1px #f1f1f1;
            margin: -1px -1px 0 0;
            line-height: 1.1;
            text-align: center;
            box-sizing: border-box;
            position: relative;
            transition: all 1s ease-in-out;
            
            &.blur {
                filter: blur(5px);
            }

            @include breakpoint(md) {
                padding: 25px 20px;
            }

            &:hover {
                //background: #f9f9f9;
            }

            &.focus {
                
                &::after {
                    content: '';
                    display: block;
                    border-radius: 100em;
                    position: absolute;
                    z-index: -1;
                    //filter: blur(10px);
                }

                &.first {
                    //cursor: url('../images/trending-up.svg') 4 4, auto;
                    em:first-child {
                        color: #00baff;
                    }
                    &::after {
                        background: rgba(#00baff, .2);
                        width: 110px;
                        height: 110px;
                        top: calc(50% - 55px);
                        left: calc(50% - 55px);
                    }
                }
                &.second {
                    em:first-child {
                        color: #ff42c8;
                    }
                    &::after {
                        background: rgba(#ff42c8, .2);
                        width: 90px;
                        height: 90px;
                        top: calc(50% - 45px);
                        left: calc(50% - 45px);
                    }
                }
                &.third {
                    em:first-child {
                        color: #03ed43;
                    }
                    &::after {
                        background: rgba(#03ed43, .15);
                        width: 70px;
                        height: 70px;
                        top: calc(50% - 35px);
                        left: calc(50% - 35px);
                    }
                }
                &.fourth {
                    em:first-child {
                        color: #fdba25;
                    }
                    &::after {
                        background: rgba(#fdba25, .15);
                        width: 60px;
                        height: 60px;
                        top: calc(50% - 30px);
                        left: calc(50% - 30px);
                    }
                }
                &.fifth {
                    em:first-child {
                        color: #3500ff;
                    }
                    &::after {
                        background: rgba(#3500ff, .15);
                        width: 45px;
                        height: 45px;
                        top: calc(50% - 22.5px);
                        left: calc(50% - 22.5px);
                    }
                }
            }

            &:first-child {
                border-top-left-radius: 4px;
            }
            &:nth-child(5) {
                border-top-right-radius: 4px;
            }
            &:nth-child(20) {
                border-bottom-right-radius: 4px;
            }
            &:nth-child(21) {
                border-bottom-left-radius: 4px;
            }
            &:nth-child(24) {
                border-bottom-right-radius: 4px;
            }
        }

        em {
            font-style: normal;
            display: block;

            &:first-child {
                font-size: 1.2em;
                font-weight: bold;
            }
            &:last-child {
                font-size: 1em;
                opacity: .6;
            }
        }

        .dl-time-png {
            display: flex;
            align-items: center;
            justify-content: center;
        }
    }

    .times-header {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        align-items: center;

        img {
            width: 45px;
            height: 45px;
        }
    }
}


.entry-reports-for-gravity-forms-license-table {

    @include breakpoint(md) {
        width: 50%;
    }

    td {

        display: flex;

        @include breakpoint(md) {
            display: table-cell;
            //text-align: right;
        }

        input[type=submit] {
            width: calc(50% - 2px);
            height: 40px;
            min-height: 40px;
            
            &:first-child {
                //margin: 0 0 0 10px;
            }
        }
    }

    tr:hover {
        td {
            background: #fff !important;
        }
    }

    td:first-child {
    }

    td:last-child {
        //text-align: left !important;
    }

    #erforgfor_key {
        
        width: 100%;
        height: 40px;
        min-height: 40px;

        @include breakpoint(md) {
            width: calc(100% - 5px);
        }
    }

    .gfer-license-activated {
        display: inline-block;
        padding: 7px 12px 8px 12px;
        background: $green;
        color: #fff;
        font-weight: 600;
        text-align: center;
        border-radius: 4px;
        text-decoration: none;
        margin: 20px 0;
        font-size: 1.1em;
    }
}



.license-details {
    display: block;
    background: #fff;
    //border: solid 1px #c3c4c7;

    dl {
        display: flex;
        flex-wrap: wrap;
        margin: 0;
        max-width: 50%;

        @media only screen and (max-width: 1600px) {
            max-width: 100%;
        }

        dt,dd {
            width: calc(50% - 40px);
            margin: 0;
            padding: 7px 0;
            //border-bottom: dashed 1px rgba($dark-blue, .2);
        }
    }

    .license-active {
        color: $green;
        font-weight: 600;
    }

    .license-expired {
        color: $red;
        font-weight: 600;
    }
}


.gfer-modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);

    .modal-content {
        background-color: #fefefe;
        margin: 15% auto;
        padding: 20px;
        border: 1px solid #888;
        width: 80%;
        max-width: 600px;
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    }
}

.gfer-warning {
    display: none;
    background: #fff;
    padding: 10px 13px;
    margin: 15px 0 0 0;
    font-weight: 600;
    border-radius: 4px;
    align-items: center;
    box-shadow: 0 0 10px 0 rgba($red, 0.1);
    color: $red;
    //border: solid 1px rgba($red, .4);

    &::before {
        content: '';
        width: 16px;
        height: 16px;
        background: url('../images/alert-circle.svg') no-repeat center;
        background-size: 100%;
        display: block;
        margin: 0 4px 0 0;
    }

    &.show {
        display: inline-flex;
        flex-wrap: wrap;
    }
}

.entry-reports-for-gf-preferences {
    width: 100%;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    background: #fff;
    
    border-left: solid 1px #c3c4c7;
    border-right: solid 1px #c3c4c7;
    border-bottom: solid 1px #c3c4c7;

    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;

    width: 100%;
    box-sizing: border-box;

    .modes {
        padding: 0;
        margin: -5px 0 20px 0;
        user-select: none;

        span, a {
            cursor: pointer;
            text-decoration: underline;
            color: #135e96;
            display: inline-block;
            padding: 0 5px;

            &:first-child {
                padding: 0 5px 0 0;
            }

            &:hover {
                color: $light-blue;
            }
        }
    }

    section {
        box-sizing: border-box;
        list-style: none;
        border-radius: 5px;
        //box-shadow: 5px 5px 40px rgba(28,31,63, .1);
        position: relative;
        width: 100%;
        padding: 0 25px 25px 25px;

        &.blur {
            filter: blur(4px);
        }
    }

    .gfer-horizontal-bar-chart {
        margin: 0;
        box-shadow: none;
        padding: 50px 0 0 0;
    }

    .chart-header {
        width: 100%;
    }
    

    .displaying {
        display: flex; 
        margin: 0;
    }

    p {
        margin: 0 0 10px 0;
    }

    .toggles-chart {
        
        .days-container {
            margin: 0;
        }
    }

    .day-colours {

        display: flex;
        flex-wrap: wrap;
        //width: 100%;
        box-sizing: border-box;
        //justify-content: space-between;
        margin: 0 0 0 -3px;

        li {
            
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: center;
            box-sizing: border-box;
            margin: 0;

            // @media only screen and (max-width: 1800px) {
            //     width: calc(25% - 2px);
            // }

            label {
                cursor: pointer;
                display: inline-flex;
                margin: 0;
                padding: 5px 10px 5px 10px;
                border-radius: 100em;
            }

            input {
                appearance: none;
                width: 26px;
                height: 30px;
                background-color: transparent;
                border: none;
                cursor: pointer;
                padding: 0;

                &::-webkit-color-swatch {
                    border-radius: 100em;
                    border: none;
                }
            }

            &:hover {
                label {
                    background: rgba($light-blue, .1);
                }
            }

            &:first-child {
                border-top-left-radius: 5px;
                border-bottom-left-radius: 5px;
            }

            &:last-child {
                justify-content: flex-end;
                border: none;
                border-top-right-radius: 5px;
                border-bottom-right-radius: 5px;

                @media only screen and (max-width: 1800px) {
                    // width: 100%;
                    // justify-content: center;
                }
            }
            
        }

    }

    .colour-importer {
    
        div {
            display: flex;
            flex-wrap: wrap;
            padding: 0 0 5px 0;
            justify-content: space-between;
            width: 100%;
        }

        p {
            padding: 0;
            margin: 0;
        }

        input[type=text] {
            width: calc(100% - 110px);
            font-weight: normal;
            font-family: monospace;

            &::placeholder {
                opacity: .3;
            }
        }

        button {
            height: 30px;
            font-weight: normal;
            margin: 0;
            width: 100px;
        }

        .entry-reports-for-gf-theme {
            display: inline-flex;
            padding: 3px;
            border: solid 1px #f1f1f1;
            border-radius: 2px;
            cursor: pointer;
            margin: 0 0 0 5px;
            position: relative;
            top: 1px;

            i {
                width: 10px;
                height: 10px;
            }
        }
    }

    .add-scheduled-report-button {
        padding: 12px;
        background: rgba($light-blue, .075);
        //border: solid 1px rgba($light-blue, .1);
        border-radius: 100em;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        user-select: none;
        font-weight: 600;
        color: $light-blue;
        margin: 20px 0;

        @include breakpoint(md) {
            padding: 8px 12px;
            display: inline-flex;
            margin: 5px 0 15px 0;
        }

        &:hover {
            background: rgba($light-blue, .15);
        }

        img {
            width: 14px;
            height: 14px;
            margin: 0 5px 0 0;
        }
    }

    .add-a-report-schedule,
    .add-a-report-schedule-rows {

        box-sizing: border-box;
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        margin: 0;

        li {
            display: inline-flex;
            align-items: center;
            //border: solid 1px red;
            margin: 0;
            padding: 0 0 10px 0;
            //border-bottom: solid 1px #ccc;
            box-sizing: border-box;
            justify-content: flex-start;
            position: relative;

            span {
                display: inline-flex;
                box-sizing: border-box;
                width: 100%;

                @include breakpoint(md) {

                    &:nth-child(1) {
                        width: 20%;
                    }
        
                    &:nth-child(2) {
                        width: 20%;
                    }
                    &:nth-child(3) {
                        width: 20%;
                    }
        
                    &:nth-child(4) {
                        width: calc(12% - 30px);
                    }
        
                    &:nth-child(5) {
                        width: 28%;
                    }

                    &:last-child {
                        width: 30px;
                    }

                }
            }

            input,
            select {
                width: calc(100% - 10px);
                margin: 0;

                &.selected {
                    border: solid 1px $light-blue;
                    background: rgba($light-blue, .05);
                }
            }
            
            input[type=number] {
                width: 50%;
                margin: 0 5px 0 0;
            }

            input::placeholder {
                opacity: .6;
            }

            &:last-child {

                input {
                    width: 100%;
                }
            }
        }

        .schedule-header {
            width: 100%;
            box-sizing: border-box;
            font-weight: 600;
            //border-bottom: solid 1px #ccc;
        }
    }

    .add-a-report-schedule {
        display: none;

        @include breakpoint(md) {
            display: flex;
        }
    }

    .add-a-report-schedule-rows {
        padding: 10px 0;
        margin: 10px 0;
        border-bottom: dashed 2px #ccc;
        
        @include breakpoint(md) {
            border: none;
            padding: 0;
            margin: 0;
        }

        li {
            padding: 10px 0;
            width: 100%;
            
            @include breakpoint(md) {

                &:nth-child(1) {
                    width: 20%;
                }

                &:nth-child(2) {
                    width: 20%;
                }
                &:nth-child(3) {
                    width: 20%;
                }

                &:nth-child(4) {
                    width: calc(12% - 30px);
                }

                &:nth-child(5) {
                    width: 28%;
                }

                &:last-child {
                    width: 20px;
                    position: relative;

                    span {
                        width: 110px;
                        padding: 10px;
                        position: absolute;
                        text-align: center;
                        left: -115px;
                        color: #3c434a;
                        display: none;
                        background: #fff;
                        border-radius: 5px;
                        line-height: 1.15;
                        box-shadow: 5px 5px 40px rgba(28,31,63, .15);

                        &::before {
                            content: '';
                            display: block;
                            background: #fff;
                            width: 14px;
                            height: 15px;
                            position: absolute;
                            top: calc(50% - 7px);
                            right: -7px;
                            transform: rotate(45deg);
                        }
                    }

                    &:hover {
                        span {
                            display: block;
                        }
                    }
                }

            }
        }
    }

    .save-preferences {
        margin: 15px 0 0 0;
    }

    .delete-schedule-row {
        cursor: pointer;
        filter: grayscale(100%);

        &:hover {
            filter: grayscale(0);
        }

        img {
            margin: 0 5px 0 0;
            width: 20px;
            height: 20px;

            @include breakpoint(md) {
                margin: 0;
            }
        }
    }
}

.entry-reports-for-gf-spinner,
.entry-reports-for-gf-save-status {
    position: absolute;
    display: none;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(#fff, .7) url('../images/loading.svg') no-repeat calc(50% - 20px) calc(50% - 30px);
    background-size: 40px;
    border-radius: 5px;
    z-index: 99;

    &.show {
        display: block;
    }
}

.entry-reports-for-gf-save-status {
    background: rgba(#fff, .8);
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    display: none;
    border-radius: 5px;
    font-size: 1.4em;

    strong {
        position: relative;
        top: -30px;
    }

    &.show {
        display: flex;
    }
}

.entry-reports-for-gf-box {
    display: none;

    &.with-padding {
        background: #fff;
        padding: 0 25px 25px 25px;
        width: 100%;
        box-sizing: border-box;

        border-left: solid 1px #c3c4c7;
        border-right: solid 1px #c3c4c7;
        border-bottom: solid 1px #c3c4c7;

        border-bottom-left-radius: 5px;
        border-bottom-right-radius: 5px;
    }

    p {
        margin: 0;
        
        @include breakpoint(md) {
            margin: 0 0 10px 0;
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 4px;
        }
    }

    .displaying {

        padding: 20px 0 0 0;
        margin: 20px 0 0 0;

        .toggles {

            @include breakpoint(md) {
                min-width: auto;
            }
        }

    }

    

    &.general-options {
        
        .general-options-container {
            
            padding: 10px 0 15px 0;

        }

        label {
            padding: 10px 15px;
            background: rgba($dark-blue, .05);
            border-radius: 100em;
            margin: 5px 0;
            width: 100%;
            box-sizing: border-box;
            display: inline-flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 5px;

            @include breakpoint(md) {
                width: auto;
                margin: 0 10px 0 0;
            }

            input[type=checkbox] {
                margin: 0;
            }
        }
    }
}

.gfer-tip {

    cursor: help;
    position: relative;

    &::before {
        content: '';
        display: block;
        width: 16px;
        height: 16px;
        background: $grey url('../images/circle-help.svg') no-repeat center;
        background-size: contain;
        border-radius: 100em;
    }

    svg {
        width: 16px;
        height: 16px;
        
    }

    .gfer-tip-text {
        display: none;
    }

    &:hover {
        .gfer-tip-text {
            display: block;
            padding: 10px;
            background: $grey;
            color: #fff;
            text-align: center;
            border-radius: 5px;
            width: 150px;
            position: absolute;
            bottom: 23px;
            left: calc(50% - 75px);
            box-sizing: border-box;
            line-height: 1.25em;

            &::after {
                content: '';
                background: $grey;
                display: block;
                width: 10px;
                height: 10px;
                border-radius: 2px;
                position: absolute;
                left: calc(50% - 5px);
                bottom: -5px;
                transform: rotate(45deg);
            }
        }
    }
}


.scheduled-row {

    .calendar-icon,
    .clock-icon {
        width: 38px;
        height: calc(100% - 4px);
        background: #f1f1f1;
        display: flex;
        align-items: center;
        justify-content: center;
        border-left: solid 1px #8c8f94;
        cursor: pointer;
        margin: 0 0 0 -40px;
        border-top-right-radius: 4px;
        border-bottom-right-radius: 4px;

        @include breakpoint(md) {
            width: 28px;
            height: 28px;
            margin: 0 0 0 -30px;
        }

        &.selected {
            border: solid 1px $light-blue;
            background: rgba($light-blue, .2);
        }

        img {
            width: 12px;
            height: 12px;
        }
    }
    em {
        font-style: normal;
    }

    input[readonly] {
        background: #fff;
    }


    em.day-time-selector {

        position: absolute;
        padding: 12px 15px;
        background: #fff;
        width: 100px;
        box-shadow: 5px 5px 40px rgba(28,31,63, .15);
        border-radius: 10px;
        display: none;
        z-index: 999;
        user-select: none;
        bottom: 10px;
        right: -25px;

        @include breakpoint(md) {
            right: -120px;
            bottom: -85px;
        }

        em {
            display: block;
            cursor: pointer;
            padding: 5px 5px 5px 15px;
            background: rgba(#fff, .4);
            border-radius: 2px;
            //text-align: center;
            border-radius: 5px;

            &.selected {
                background: rgba($light-blue, .2);
                color: $light-blue;
            }

            &:hover {
                background: rgba($light-blue, .075);
            }
        }

        

        &::after {
            content: '';
            display: none;
            width: 10px;
            height: 10px;
            transform: rotate(45deg);
            position: absolute;
            left: -5px;
            background: #fff;
            top: calc(50% - 5px);
            
            @include breakpoint(md) {
                display: block;
            }
        }
    }

    em.time-selector {

        // display: flex;
        // flex-wrap: wrap;
        //columns: 2;

        em {
            width: 50%;
            padding: 5px;
            text-align: center;
            box-sizing: border-box;
            float: left;
        }
        
        .am,
        .pm {
        }
    }

}