/* ############# Core Html styles ############# */

html {
    min-width: 340px;
}

* {
    font-family: 'Calibri', sans-serif;
    font-size: 16px;
}

:root {
    --featureColor: #324b70;
    --featureSecondColor: #71819b;
    --darkColor: #000;
    --hoverColor: #b9b9b9;
    --selectArrow: url("../imgs/caret-down.svg");
}

h2 {
    color: var(--darkColor);
    font-size: 24px;
}

/* Colours */
.featureColor {
    color: var(--featureColor);
}

.featureSecondColor {
    color: var(--featureSecondColor);
}

.darkColor {
    color: var(--darkColor);
}

.hoverColor {
    color: var(--hoverColor);
}

/* Colours */

a:hover {
    transition: color 0.3s ease;
}

a {
    transition: color 0.3s ease;
}

body {
    background-color: #ffffff;
    /* font-family: "montserrat", sans-serif; */
    min-width: 340px;
    margin: 0 !important;
}


/* ############# Header styles ############# */

.headerContainer {
    width: 100%;
    /* position: fixed; */
    background-color: #ffffff;
    z-index: 1000;
    /* border-bottom: 1px solid var(--featureSecondColor); */
}

.mainHeaderContainer {
    padding-top: 1vw;
    padding-bottom: 1vw;
}

.headerInner,
.messageBar,
.coreInner,
.panelHeading {
    max-width: 1400px;
    padding-left: 2vw;
    padding-right: 2vw;
    margin-left: auto;
    margin-right: auto;
    display: flex;
}

.textPanel {
    max-width: 1400px;
    padding-left: 2vw;
    padding-right: 2vw;
    margin-left: auto;
    margin-right: auto;
    color: var(--featureSecondColor);
}

.darkPanel .textPanel,
.darkPanel .textPanel a {
    color: #ffffff;
}

.textPanel h1 {
    margin-top: 2vw;
    color: var(--featureColor);
    margin-bottom: 2vw;
}

.textPanel a {
    transition: color 0.5s ease;
    text-decoration: none;
    color: var(--featureSecondColor);
}

.textPanel a:hover {
    color: var(--featureSecondColor);
}

.headerInner {
    align-items: center;
    justify-content: center;
}

.messageBarContainer {
    background-color: var(--featureSecondColor);
    width: 100%;
    color: #CBCBCB;
}

.messageBar {
    padding: 1v 1v;
    display: flex;
    flex-direction: row;
}

.messageBar div svg {
    height: 1em;
}

.headerLeft,
.headerMiddle,
.headerRight {
    flex: 1;
    display: inline-table;
    vertical-align: middle;
}

.headerLeft img {
    width: 70%;
}

.headerLeft p,
.headerLeft p a {
    text-align: left;
    color: #cbcbcb;
}

.headerLeft p a:hover {
    color: var(--darkColor);
    transition: color 0.5s ease;
}

.headerLeft i {
    margin-right: 1vw;
}

.headerMiddle p,
.headerMiddle p a {
    text-align: center;
    width: 100%;
    color: #ffffff;
}

.headerRight p,
.headerRight p a {
    text-align: right;
    color: var(--featureColor);
    width: 100%;
}

.headerRight p a {
    color: var(--featureColor);
    margin-left: 2vw;
    text-decoration: none;
    position: relative;
}

.headerBar {
    width: 100%;
    background-color: #ffffff;
    display: block;
}

h1.logo {
    text-indent: -999999px;
    display: block;
    width: 100%;
    background-size: contain;
    aspect-ratio: 1;
    width: 80%;
}

.navBar {
    width: 100%;
}

.navBar ul {
    margin-left: auto;
    margin-right: auto;
    max-width: 1400px;
    text-align: center;
    margin-top: 1vw;
    margin-bottom: 0;
}

.navBar ul li {
    margin-left: 1vw;
    margin-right: 1vw;
    padding-left: 1vw;
    padding-right: 1vw;
    display: inline-block;
}

.navBar ul li a {
    text-decoration: none;
    color: var(--featureColor);
}

.navBar ul li a:hover {
    color: var(--darkColor);
}

.navBar ul li a.open {
    color: var(--darkColor);
}

/* ############# Body styles ############# */

.LoginContainer {
    /* width: 25%; */
    margin-left: 20%;
}

.h2Title {
    text-align: center;
}

.login_form_row {
    /* width: 100%; */
    padding: 2px;
}

.login_input {
    padding: 10px;
    font-size: 20px;
    border: solid var(--hoverColor) 2px;
    color: var(--featureColor);
    width: 100%;
}

.login_input::placeholder {
    color: var(--hoverColor);
}

.error {
    color: red;
}

.button {
    padding: 0.5px 12px;
    align-items: center;
    width: 100%;
    border-radius: 5px;
    cursor: pointer;
}

.button p {
    text-align: center;
    color: #fff;
}

.button_link {
    background-color: transparent;
}

.button_link p {
    text-align: center;
    color: var(--featureColor);
}

.submit {
    background-color: var(--featureColor);
}

.submit:hover {
    background-color: var(--featureSecondColor);
}

.mainContent {
    max-width: 1400px;
    padding-left: 2vw;
    padding-right: 2vw;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.justifyForm {
    display: flex;
    justify-content: space-between;
}

select {
    /* reset appearance */
    appearance: none;
    border: 0;
    outline: 0;
    font: inherit;

    /* set appearance */
    width: 14rem;
    padding: 0.5rem 4rem 0.5rem 1rem;
    background: var(--selectArrow) no-repeat right 0.8em center / 1.4em, var(--featureSecondColor);
    color: #fff;
    border-radius: 0.25em;
    cursor: pointer;

    option {
        color: inherit;
        background-color: var(--featureSecondColor);
    }
}

#companySelect {
    width: 18rem;
    margin-left: 20px;
}

.companyRow {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.focusSubTitle {
    font-size: 26px;
    margin: 0;
    color: var(--featureColor);
}

.focus {
    color: #000;
}

.cursorHover {
    cursor: pointer;
}

.taxInfoContainer {
    margin-top: 1em;
}

.taxInfoRow {
    display: flex;
    justify-content: flex-end;
}

.taxInfoRow p {
    font-size: 16px;
    margin-block-start: 0.5em;
    margin-block-end: 0.5em;
}

.taxTxt {
    padding-left: 10px;
}

.messagesBorder {
    border: solid 2px var(--featureColor);
    border-radius: 2px;
    background-color: var(--hoverColor);
    overflow-y: scroll;
    max-height: 100px;
    padding: 5px;
    margin: 2px;
}

.messageSubTitle {
    font-size: 18px;
}

.msgTxt {
    padding: 0 10px 0 10px;
}

.flexRow {
    display: flex;
    flex-direction: row;
}

.flexRowWithSpace {
    display: flex;
    width: 50%;
    flex-direction: row;
    justify-content: space-between;
    margin-left: 10%;
}

.download_button {
    background-color: var(--featureSecondColor);
    width: 20%;
    height: 35px;
    justify-content: center;
}

.download_button:hover {
    background-color: var(--hoverColor);
}

#select_button_submit {
    display: flex;
    margin-left: 12%;
    color: #fff;
}

.buttonIcon {
    width: 20px;
    height: 20px;
    margin: 5px;
}

#p60Container {
    justify-content: space-between;
    align-items: center;

}

.p60InfoRow {
    align-items: center;
    border-bottom: solid var(--hoverColor);
    /* width: 75%; */
}

.p60Txt {
    font-size: 20px;
    margin-left: 10px;
    margin-block-end: 0.5em;
    margin-block-start: 0.7em;
}

.marginLeft {
    margin-left: 25px;
}

#downloadsContainer {
    padding: 0px 15px;
    border: solid 4px var(--featureColor);
}

#payslipsContainer {
    margin-top: 10px;
}

.payslip {
    background-color: var(--featureSecondColor);
    border-radius: 5px;
    align-items: center;
    padding-left: 10px;
    padding-right: 10px;
    margin: 5px 0px;
    justify-content: space-around;
}

.payslip:hover {
    cursor: pointer;
    background-color: var(--hoverColor);
}

.payslipTxt {
    color: #fff;
    font-size: 18px;
}

.month {
    width: 20%;
    color: #000;
}

.net,
.tax {
    width: 10%;
}

.viewPay {
    width: 15%;
    align-items: center;
}

.payslipSpacer {
    width: 30%;
}

/* View box */

.display {
    display: flex
}

.noDisplay {
    display: none;
}

.absolute {
    position: absolute;
}

.payslipViewBox {
    width: 70vw;
    height: 70vh;
    padding: 2%;
    margin: auto;
    border-radius: 5px;
    border: solid 3px #fff;
    background-color: var(--featureSecondColor);

}

.backgroundShade {
    z-index: 100;
    width: 100%;
    height: 100%;
    top: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.5);
    flex-direction: column;

}

.closeContainer {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    cursor: pointer;
}


/* View box end */

/* Custom Checkbox start */
input[type="checkbox"] {
    appearance: none;
    background-color: transparent;
    margin: 0;
    font: inherit;
    color: #fff;
    width: 1.5em;
    height: 1.5em;
    border: 0.15em solid #fff;
    border-radius: 0.15em;
    display: grid;
    place-content: center;
    cursor: pointer;
}

input[type="checkbox"]::before {
    content: "";
    width: 1em;
    height: 1em;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em #fff;

    /* Make the tick shape */
    transform-origin: bottom left;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);

    /* Windows High Contrast Mode */
    background-color: CanvasText;
}

input[type="checkbox"]:checked::before {
    transform: scale(1);
}

/* input[type="checkbox"]:focus {
    outline: max(2px, 0.15em) solid #fff;
    outline-offset: max(2px, 0.15em);
} */

/* Custom Checkbox End */

/* ############# Footer styles ############# */

footer {
    width: 100%;
    background-color: #fff;
    z-index: 100;
}

footer p,
footer p a {
    color: var(--featureColor);

}

footer p a:hover {
    color: var(--darkColor);
}

.footerMain {
    width: 100%;
}

.footerMainInner {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    min-height: 200px;
    font-size: 16px;
    display: flex;
    flex-direction: row;
    padding: 2vw;
}

.footerLowerInner {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: row;
    padding: 2vw;
}

.footerCol {
    flex: 1;
}

.footerCol h3 {
    font-size: 18px;
    color: var(--featureColor);
}

.footerCol p {
    line-height: 1.5em;
    font-size: 14px;
    color: var(--featureColor) !important;
}

.footerCol a {
    color: var(--featureColor);
    text-decoration: none;
}

.footerCol a:hover {
    color: var(--darkColor)
}

.footerLower {
    width: 100%;
    /* border-top: 1px solid var(--featureColor); */
    font-size: 14px;
}

.footerLowerInner {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: row;
    padding-top: 1vw;
    padding-bottom: 1vw;

}

.footerLowerLeft,
.footerLowerRight {
    flex: 1;
    display: table-cell;
    vertical-align: middle;
}

.footerLowerLeft {
    text-align: left !important;
    color: var(--featureColor);
}

.footerLowerRight {
    text-align: right !important;
    color: var(--featureColor);
}

.footerLowerRight a {
    color: var(--featureColor);
    margin-left: 3vw;
    text-decoration: none;
}

.footerLowerRight a:hover {
    color: var(--darkColor)
}

/* ############# Media Query styles ############# */
@media (max-width:1200px) {
    .headerRight {
        flex: 2;
    }

    .headerMiddle {
        flex: 0;
    }
}

@media (max-width: 920px) {
    .justifyForm {
        flex-direction: column;
    }

    .companyRow {
        display: flex;
        flex-direction: row;
        justify-content: center;
    }

    #companySelect {
        margin-left: 10px;
    }

    .taxInfoContainer {
        flex-direction: row;
        display: flex;
        justify-content: space-around;
    }

    .payslipSpacer {
        width: 0;
    }

    .payslipTxt {
        font-size: 16px;
    }
}

@media(max-width:800px) {
    #dateFilterContainer {
        flex-direction: column;
    }

    #select_button_submit {
        margin-left: 0%;
        margin-top: 10px;
    }
}

@media (max-width: 768px) {
    .login_input {
        width: 100%;
    }

    .login_button,
    .login_link {
        width: 100%;
    }

    .footerMainInner div:nth-of-type(2),
    .footerMainInner div:nth-of-type(4) {
        display: none;
    }
}

@media (max-width: 650px) {
    .taxInfoRow {
        justify-content: center;
    }

    .taxInfoContainer {
        flex-direction: column;
    }

    .focusSubTitle {
        font-size: 22px;
    }

    .headerInner {
        flex-direction: column;
    }

    #p60Container {
        flex-direction: column;
    }

    #dateFilterContainer {
        flex-direction: column;
    }

    .headerLeft,
    .headerMiddle,
    .headerRight {
        display: flex;
        justify-content: center;
    }

    .download_button {
        width: 45%;
        margin-top: 10px;
    }

    .payslipTxt {
        font-size: 14px;
    }

}

@media(max-width:550px) {

    .flexRowWithSpace {
        margin-left: 0;
        flex-direction: column;
        width: 100%;
    }

    .download_button {
        width: 45%;
        margin-top: 10px;
    }

}

@media (max-width:500px) {
    .LoginContainer {
        margin-left: 10%;
        width: 80%;
    }

    .login_form_row {
        padding: 0;
        margin: 2px;
    }

    .login_input,
    .login_button {
        width: calc(100% - 20px);
    }

    .footerMainInner {
        display: block;
    }

    .footerCol {
        text-align: center;
    }

    .p60InfoRow {
        width: 100%;
    }

    * {
        font-size: 14px;
    }

    .taxInfoRow p {
        font-size: 14px;
    }

    .p60Txt {
        font-size: 14px;
    }

    .p60Container {
        margin-top: 10px;
    }

    .mobileHide {
        display: none;
    }

    .download_button {
        width: 45%;
    }

}

@media (max-width: 400px) {
    #p60Container {
        flex-direction: column;
    }

    .download_button {
        width: 50%;
        margin-top: 10px;
    }
}