﻿@import "Constants.css";

input[type=date], input[type=password], input[type=date], input[type=email], input[type=phone], input[type=text] {
    -webkit-appearance: none;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=checkbox] {
    margin-right: 12px;
    width: 17px;
    height: 17px;
}

.form-row {
    display: grid;
    grid-gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
}

.form-control-1of3 {
    display: flex;
    margin-bottom: 10px;

    &.full-width {
        flex-grow: 1;
    }

    &.no-margin {
        margin: 0;
    }

    .form-control-2of3 {
        display: flex;
        flex-direction: column;
        height: 100%;
        flex-grow: 1;

        .form-control-3of3 {
            display: flex;
            flex-grow: 1;

            .form-group {
                width: 100%;
                border: 2px solid var(--lightgray);
                background-color: var(--lightgray);
                border-radius: 16px;
                padding: 9px 19px 9px 19px;
                text-align: left;

                &.no-background {
                    border: 0;
                    background-color: transparent;
                    border-radius: 0;
                    padding: 0;
                }

                &.show-rounded {
                    border-radius: 11px;
                    padding: 12px;

                    .checkbox .label {
                        margin-left: 18px;
                    }
                }

                &.centered-vertical {
                    display: flex;
                    align-items: center;
                }

                .label {
                    display: block;
                    font-size: var(--rem12px);
                    margin-bottom: 0px;
                    line-height: var(--rem16px);

                    &.font-size-normal {
                        font-size: var(--rem14px);
                    }
                }


                &.error {
                    border: 2px solid var(--errorred);
                }

                .form-input {
                    font-family: "Inter", sans-serif;
                    outline: none;
                    background-color: transparent;
                    border: 0px solid var(--lightgray);
                    padding: 0px;
                    color: var(--darkblue);
                    width: 100%;
                    line-height: 1.5em;

                    &:focus {
                        /*// background-color: var(--white);*/
                    }

                    &:disabled {
                        background-color: var(--lightgray);
                    }

                    &.no-background {
                        border-style: solid;
                        border-color: var(--mediumgray);
                        border-width: 1px;
                        border-radius: 3px;
                    }

                    &.align-left {
                        text-align: left;
                    }
                }
            }
        }
    }
}

.validation-message {
    color: var(--errorred);
    font-size: 0.75rem;
}

.password_rule_section {
    margin-top: var(--sm-margin);
    margin-bottom: var(--sm-margin);
    text-align: left;

    .password_rule_text {
        display: inline;

        &.pass {
            color: var(--tealgreen)
        }

        &.fail {
            color: var(--deepgray)
        }
    }
}

.nav-body {
    display: flex;
    flex-direction: column;
    margin: var(--lg-margin) 0px var(--lg-margin) var(--lg-margin);

    .nav-character {
        display: flex;
        justify-content: center;
        margin-bottom: 24px;
    }

    .logo-box {
        margin-bottom: var(--lg-margin);

        img {
            max-height: 75px;
        }
    }
    /* .logo-box {
        display: flex;
        margin-bottom: var(--lg-margin);
    }*/

    .nav-menu {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        flex-grow: 1;
        overflow: auto;
        /*Handles the top and bottom overflow indicator*/

        .nav-menu-overflow {
            overflow: auto;
            background: linear-gradient(white 30%, rgba(255, 255, 255, 0)), linear-gradient(rgba(255, 255, 255, 0), white 70%) 0 100%, radial-gradient(farthest-side at 50% 0, rgba(0, 0, 0, .2), rgba(0, 0, 0, 0)), radial-gradient(farthest-side at 50% 100%, rgba(0, 0, 0, .2), rgba(0, 0, 0, 0)) 0 100%;
            background-color: rgba(0, 0, 0, 0);
            background-repeat: repeat, repeat, repeat, repeat;
            background-attachment: scroll, scroll, scroll, scroll;
            background-size: auto, auto, auto, auto;
            background-repeat: no-repeat;
            background-color: white;
            background-size: 100% 40px, 100% 40px, 100% 16px, 100% 16px;
            background-attachment: local, local, scroll, scroll;
        }
        /* width */

        &::-webkit-scrollbar {
            width: 10px;
        }
        /* Track */

        &::-webkit-scrollbar-track {
            background: #f1f1f1;
        }
        /* Handle */

        &::-webkit-scrollbar-thumb {
            background: #888;
        }
            /* Handle on hover */

            &::-webkit-scrollbar-thumb:hover {
                background: #555;
            }

        .close-menu-button {
            display: none;
        }

        ul {
            margin-bottom: var(--lg-margin);
        }
    }
}

.svg-wrapper {
    min-width: 30px;
    display: flex;
    align-items: center;

    svg {
        fill: none;
        stroke: var(--darkblue);
        stroke-width: 1.5px;

        > * {
            fill: none;
            stroke: var(--darkblue);
            stroke-width: 1.5px;
        }
    }
}

.svg-wrapper-active {
    min-width: 30px;
    display: flex;
    align-items: center;

    svg {
        fill: none;
        stroke: var(--orange);
        stroke-width: 1.5px;

        > * {
            fill: none;
            stroke: var(--orange);
            stroke-width: 1.5px;
        }
    }
}

.svg-wrapper-teal {
    min-width: 30px;
    display: flex;
    padding: 5px;

    svg {
        fill: none;
        stroke: var(--tealgreen);
        stroke-width: 1.5px;

        > * {
            fill: none;
            stroke: var(--tealgreen);
            stroke-width: 1.5px;
        }
    }
}

.navlinks {

    li {
        cursor: pointer;
        color: var(--darkblue);
        font-weight: 600;
        font-size: 14px;
        margin-bottom: 12px;

        a {
            border-bottom: none;
            color: var(--darkblue);
            display: flex;
            align-items: center;

            span {
                padding-top: 4px;
                color: var(--darkblue);
                border-bottom: 2px solid transparent;
            }

            &.active {
                span {
                    color: var(--orange);
                    border-bottom: 2px solid var(--orange);
                }

                .svg, svg {
                    fill: none;
                    stroke: var(--orange);
                    stroke-width: 1.5px;

                    > * {
                        fill: none;
                        stroke: var(--orange);
                        stroke-width: 1.5px;
                    }
                }
            }
        }

        &:hover {
            span {
                border-bottom: 2px solid var(--darkblue);
            }
        }
    }
}

.chat-bubble {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background-color: white;
    border-radius: 16px;
    padding: 13px;
    cursor: pointer;
    border: 2px solid var(--orange);
    z-index: 9998;
}

.chat-window {
    height: 590px;
    width: 355px;
    position: fixed;
    bottom: 10px;
    right: 10px;
    display: flex;
    align-items: stretch;
    flex-direction: column;
    background-color: white;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    z-index: 9998;

    .header {
        background: var(--tealgreen);
        padding-left: 16px;
        border-radius: var(--border-radius) var(--border-radius) 0 0;
        line-height: 0.5rem;
        display: flex;
        align-items: center;

        .close {
            margin-right: 7px;
            cursor: pointer;
        }

        h2, h4 {
            flex-grow: 1;
            margin: 6px;
            color: var(--white);
        }

        button {
            margin: 7px;
            border: 0;
            background: transparent;
            color: #fff;
            font-size: 16px;
            background-color: var(--errorred);
            border-radius: var(--border-radius);
            padding: 0 8px 0 8px;
            cursor: pointer;
            height: 24px;
        }
    }

    .messages {
        flex-grow: 1;
        border-width: 0 1px;
        border-color: grey;
        border-style: solid;
        overflow-y: scroll;
        word-break: break-word;

        ul {
            list-style-type: none;
            padding: 0;
            display: flex;
            flex-direction: column;

            li {

                &.notice {
                    margin: 8px;
                    border-width: 0;
                    font-size: 0.75rem;
                    color: grey;
                    align-self: center
                }

                &.mine {
                    margin: 8px 8px 8px 32px;
                    align-self: flex-end;

                    & > .message {
                        border-radius: 8px 0 8px 8px;
                        background: #2b91d5;
                        padding: 4px;
                        color: var(--white);
                    }
                }

                &.theirs {
                    margin: 8px 32px 8px 8px;
                    align-self: flex-start;

                    & > .message {
                        border-radius: 0 8px 8px 8px;
                        background: var(--lightgray);
                        padding: 4px;
                    }
                }

                .message-header {
                    font-size: 0.75rem;
                    color: grey;
                }
            }
        }
    }

    .footer {
        display: flex;
        border-width: 0 1px 1px 1px;
        border-color: #808080;
        border-style: solid;
        padding: 10px;

        i {
            background-color: var(--orange);
            border-radius: var(--border-radius);
            align-content: baseline;
            padding: 5px;
            display: flex;
            align-items: center;
        }

        input[type=text] {
            border: none;
            border-radius: var(--border-radius);
            background-color: var(--lightgray);
            height: 32px;
            flex-grow: 1;
            padding-left: 10px;
            margin-right: 2px;
        }
    }

    .notification {
        border-width: 0 1px 0px 1px;
        border-color: grey;
        border-style: solid;
        display: flex;
        justify-content: center;
        color: grey;
        padding: 4px;
        height: 2.1rem;
    }
}

.messagebox-container {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    justify-content: center;
    align-content: center;
    background-color: rgba(0, 0, 0, 0.6);
    padding: var(--md-margin);

    .inner-container {
        align-self: center;
        text-align: center;
        background-color: var(--white);
        width: 400px;
        padding: 20px;
        border-radius: 16px;

        &.upload-results {
            min-width: 440px;
            max-width: 600px;
            text-align: left;

            h3 {
                text-align: center;
            }

            &.body {
                div {
                    margin-bottom: 8px;
                }
            }
        }

        .popconfirm {
            display: inline-flex;
            flex-direction: row;
            width: 100%;
            justify-content: space-evenly;
        }

        .close {
            text-align: right;

            i {
                display: inline-block;
                fill: var(--darkblue);
                cursor: pointer;
            }
        }

        .body {
            margin-bottom: 24px;
            overflow: auto;
            max-height: 500px;
        }
    }

    &.toast {
        display: flex;
        z-index: 5;
    }

    &.visible {
        display: flex;
        flex-direction: row;
        animation: fadein 1.5s;
        animation-fill-mode: forwards;
    }
}

.form-select {
    /*// A reset of styles, including removing the default dropdown arrow*/
    /*appearance: none;*/
    /*// Additional resets for further consistency*/
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    outline: none;
    background-color: var(--lightgray);
    display: grid;
    border: 1px solid var(--lightgray);
    border-radius: 16px;
    cursor: pointer;
    line-height: 1.5em;
    background: url('https://services.bert.com.au/images/svg/caret%20down.svg') no-repeat right var(--lightgray);
    padding-right: 20px;

    &::-ms-expand {
        display: none;
    }

    &.full-width {
        width: 100%;
    }

    option {
        padding: 5px;
        border: 0px;
    }

    .h4 {
        font-size: 16px;
        line-height: 22px;
        letter-spacing: 0px;
    }

    &:focus-visible {
        outline: initial;
    }
}

/* This allows multiple controls over each other to hide and show like the currency input*/
.relative-text {
    position: relative;

    .back_input {
        z-index: 1;
    }

    .front_input {
        position: absolute;
        z-index: 2;
        left: 0;
        top: 0;
    }
}

.spinner-container {
    display: flex;
    flex-direction: column;
    position: absolute;
    z-index: 9999;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    justify-content: center;
    align-content: center;
    background-color: rgba(235, 235, 235, 0.75);

    .inner-container {
        align-self: center;
        display: flex;
        flex-direction: column;
        background-color: aliceblue;
        width: 12rem;
        height: 8rem;
        justify-content: space-evenly;
        align-content: center;
        border-radius: 0.5rem;
        border: solid 0.125rem;
        border-color: cornflowerblue;
    }
}

.banner {
    height: 64px;
    background-color: var(--tealgreen);
    border-radius: 16px;
    color: var(--white);
    display: flex;
    align-items: center;
    padding: 0 24px;
    margin-bottom: 16px;

    h3 {
        flex-grow: 1;
        color: var(--white);
        margin-bottom: 0px;
        margin-left: 8px;
    }
}

.nav-icon {
    width: 24px;
    height: 24px;

    div {
        height: 2px;
        background: var(--darkblue);
        margin: 6px 0 6px 0;

        &:last-child {
            width: 12px;
        }
    }
}

.title-back {
    display: flex;
    justify-content: space-between;
    /*margin-bottom: var(--sm-margin);*/

    h2 {
        margin-bottom: 0;
    }

    div:last-child {
        width: 24px;
    }
}

.slideout {
    right: 0;
    top: 0;
    bottom: 0;
    position: fixed;
    background: var(--white);
    width: 375px;
    padding: var(--md-margin);
    margin: 0;
    z-index: 19;
    box-shadow: 0px 2px 3px var(--lightgray);
    box-sizing: border-box;
}

.close-menu-button {
    width: 36px;
    padding: 0;
    height: 32px;
    position: absolute;
    right: 16px;
    top: 16px;
    border: none;
    outline: none;
    background: transparent;
    cursor: pointer;

    svg {
        fill: var(--darkblue);
    }
}

/* Customize the label (the container) */
.checkbox {
    display: flex !important;
    align-items: center;
    cursor: pointer;
    user-select: none;
    position: relative;
    font-size: inherit !important;
    font-family: inherit;
    /* Hide the browser's default checkbox */

    input {
        position: absolute;
        opacity: 0;
        cursor: pointer;
        height: 0;
        width: 0;
    }

    .label {
        margin-left: var(--xs-margin);
    }

    .checkmark-wrapper {
        position: relative;
        max-height: 16px;
        min-height: 16px;
        max-width: 16px;
        min-width: 16px;
        /* Create a custom checkbox */

        .checkmark {
            position: absolute;
            top: 0;
            left: 0;
            height: 16px;
            width: 16px;
            border-style: solid;
            border-color: var(--mediumgray);
            border-width: 1px;
            border-radius: 3px;
        }
            /* Create the checkmark/indicator (hidden when not checked) */

            .checkmark:after {
                content: "";
                position: absolute;
                left: 4px;
                top: 1px;
                width: 4px;
                height: 8px;
                border-style: solid;
                border-color: transparent;
                border-width: 0 2px 2px 0;
                transform: rotate(45deg);
            }
    }
    /* Show the checkmark when checked */

    input:checked ~ .checkmark-wrapper .checkmark:after {
        border-color: var(--darkblue);
    }

    input:disabled ~ .checkmark-wrapper .checkmark {
        background: var(--lightgray);
    }
}

/* Customize the label (the container) */
.toggle {
    display: flex !important;
    align-items: center;
    position: relative;
    cursor: pointer;
    user-select: none;
    font-size: inherit !important;
    font-family: inherit;
    /* Hide the browser's default checkbox */


    input {
        position: absolute;
        opacity: 0;
        cursor: pointer;
        height: 0;
        width: 0;
    }

    .toggle-check-wrapper {
        position: relative;
        height: 18px;
        width: 42px;
        /* Create a custom checkbox */

        .toggle-check {
            position: absolute;
            top: 0;
            left: 0;
            height: 18px;
            width: 34px;
            border-style: solid;
            border-color: var(--mediumgray);
            border-width: 1px;
            border-radius: 8px;
        }
            /* Create the checkmark/indicator (hidden when not checked) */

            .toggle-check:after {
                background-color: var(--mediumgray);
                content: "";
                position: absolute;
                border-color: var(--mediumgray);
                left: 3px;
                top: 2px;
                width: 12px;
                height: 12px;
                border-style: solid;
                border-width: 0;
                border-radius: 8px;
            }
    }
    /* Show the checkmark when checked */

    input:checked ~ .toggle-check-wrapper .toggle-check:after {
        background-color: var(--tealgreen);
        left: 17px;
        border-color: var(--tealgreen);
    }

    input:disabled ~ .toggle-check-wrapper toggle-check {
        background: var(--lightgray);
    }
}

.nav-style {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
}

.tooltip-container {
    display: inline;
    margin-left: 4px;
    position: relative;

    .tooltip-text {
        visibility: hidden;
        right: 0px;
        text-align: left;
        padding: 24px;
        position: absolute;
        z-index: 3;
        width: 312px;
        border-radius: var(--border-radius);
        background-color: var(--offwhite);
        box-shadow: 0 0px 20px 10px rgba(46, 58, 89, 0.1);

        .remove-list-style {
            li {
                line-height: 2;
            }
        }
    }

    &:hover {
        .tooltip-text {
            visibility: visible;
        }
    }
}

.ql-toolbar {
    border-radius: 10px 10px 0px 0px;
    background-color: #f5f5f5;
}

.ql-container {
    border-radius: 0px 0px 10px 10px;
    background-color: #f5f5f5;
}

.employer-selector-container {
    position: relative;

    button {
        background-color: transparent;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        margin: 0;
        margin-top: 8px;
        margin-bottom: 8px;
        padding-right: 0;

        span {
            color: #2E3A59;
            font-family: Poppins, sans-serif;
            font-size: 14px;
            font-weight: 600;
            letter-spacing: 0;
            line-height: 20px;
            margin-right: 8px
        }
    }

    > div {
        background-color: white;
        position: absolute;
        top: 47px;
        right: 0;
        display: flex;
        flex-direction: column;
        border-radius: 16px;
        z-index: 19;

        i {
            align-self: flex-end;
            top: 6px;
            position: absolute;
            right: 6px;
        }

        div {
            margin: 24px;

            .title {
                margin-top: 16px;
                margin-bottom: 4px;
            }

            label {
                display: flex;
                align-items: center;

                input {
                    height: 16px;
                    align-items: center;
                }

                .item {
                    margin-left: 4px;
                    white-space: nowrap;
                }
            }
        }
    }
}

.card-item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    width: 100%;
}

.card-item-wrapper {
    perspective: 1000px;
    position: relative;
    transition: transform 0.3s ease;
}

    .card-item-wrapper:hover {
        /* Scale down slightly and move down to simulate a press */
        transform: scale(0.95) translateY(0px);
    }

.card-item {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
    backface-visibility: hidden;
    padding: 20px;
    display: flex;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    flex-direction: column;
    z-index: 2;
}

.card-item-body {
    display: flex;
    justify-content: space-between;
}

.card-item-title {
    line-height: 1;
}

.card-item-trend {
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-item-footer {
    font-size: 14px;
    color: var(--darkblue); /*#6c757d;*/
    margin-top: auto;
    display: flex;
}

.card-item-totals {
    color: var(--tealgreen);
    font-size: 16px;
    align-self: end
}


.windsor-contribution-status-paid {
    background-color: var(--fadedgreen);
}

/*//.windsor-contribution-status-submitted{*/
/*//  background-color:yellow;*/
/*//}*/
.windsor-contribution-status-submitted {
    background-color: var(--fadedyellow);
}

.windsor-contribution-status-saved {
    background-color: var(--fadedblue);
}

.windsor-contribution-status-voided {
    background-color: var(--fadedpurple);
}

.windsor-contribution-status-week-red {
    background-color: var(--fadedred);
}

.windsor-contribution-status-week-green {
    background-color: var(--fadedgreen);
}


.password-strength-container {
    background-color: var(--lightgray);
    border-radius: var(--border-radius);
    padding: var(--md-margin);
    text-align: left;
    margin-bottom: var(--sm-margin);

    .password-strength-bar {
        height: 8px;
        width: 25%;
        display: inline-block;
        background-color: var(--white);

        &.password-strength-1 {
            background-color: red;
        }

        &.password-strength-2 {
            background-color: orange;
        }

        &.password-strength-3 {
            background-color: #4b9aff;
        }

        &.password-strength-4 {
            background-color: green;
        }
    }

    .password-strength-meter span:first-of-type {
        border-bottom-left-radius: var(--border-radius);
        border-top-left-radius: var(--border-radius);
    }

    .password-strength-meter span:last-of-type {
        border-bottom-right-radius: var(--border-radius);
        border-top-right-radius: var(--border-radius);
    }
}

.member-search {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
}

.compliance-cont-week {
    padding: 2.5px;
    margin: 2px;
    min-width: 18%;
    border-radius: 7px;
    text-align: center;
}

.employer-home-logo {
    width: 72px;
    height: 72px;
}

.member-home-logo {
    width: 72px;
    height: 72px;
}

@media screen and (max-width: 1367px) {
    nav.hide-nav {
        display: none;
    }

    .form-row {
        display: block;
    }

    .screen-overlay {
        &.show {
            display: block;
        }
    } 

    .nav-body {

        .nav-character {
            display: none;
        }

        .nav-menu {
            /*justify-content: flex-end;*/

            &::-webkit-scrollbar {
                width: 0px;
            }

            .close-menu-button {
                display: block;
            }

            ul {
                li:last-child {
                    margin: 0;
                }
            }
        }
    }
}

@media screen and (max-width: 577px) {
    /*var(--phone-width)) {*/
    .employer-home-logo {
        width: 48px;
        height: 48px;
    }

    .member-home-logo {
        width: 48px;
        height: 48px;
    }

    .member-search {
        flex-direction: column;
    }

    .hide-if-mobile {
        display: none;
    }

    .chat-bubble-high {
        bottom: 76px;
    }

    .chat-window {
        height: 97%;
        width: 94%;
    }

    .banner {
        height: 140px;
        flex-wrap: wrap;

        h3 {
            width: 70%;
        }

        .btn-primary {
            margin-left: 32px;
        }
    }

    .form-group {
        input[type="date"]::-webkit-inner-spin-button,
        input[type="date"]::-webkit-calendar-picker-indicator {
            display: none;
            -webkit-appearance: none;
        }
    }
}
