@import url('https://fonts.googleapis.com/css2?family=Arimo:ital,wght@0,400;0,700;1,400&family=Architects+Daughter&display=swap&family=Bowlby+One&display=swap');

:root {
    --black-darker: #000000;
    --black: #414141;
    --gray-darker: #666;
    --gray: #808080;
    --gray-lighter: #bbb;
    --gray-lightest: #f4f4f4;
    --white: #fff;

    --blue: #3e53a6;
    --blue-lighter: #3c78d8;
    --blue-lightest: #d2dcff;
    --green-darker: #255e3d;
    --green: #52AB76;
    --green-lighter: #A7D5B9;
    --pink: #FE6A96;
    --red-lighter: rgba(255, 69, 0, 0.2);

    --text-color: var(--black);
    --text-color-lighter: var(--black);
    --text-highlight-color: var(--red-lighter);
    --text-warning: var(--red-lighter);
    --text-info: var(--blue-lightest);

    --nav-background-color: var(--green);
    --nav-text-color: var(--white);

    --table-border-color: var(--gray-lighter);
}

html {
    font-size: 62.5%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    color: var(--text-color);
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}

h1, h2, h3, h4 {
    font-weight: 700;
}

h1 {
    font-size: 3.2rem;
}

h2 {
    font-size: 2.4rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 2.0rem;
}

h4 {
    font-size: 1.6rem;
}

p, ul {
    font-size: 1.6rem;
    line-height: 1.6rem;
    color: var(--text-color-lighter);
}

strong {
    font-weight: 700;
}

em {
    font-style: italic;
}

section.messages {
    padding: 1rem 0 .5rem;
}

form {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

form button {
    align-self: flex-start;
}

input {
    align-self: flex-start;
    padding: .25rem;
}

label {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-size: 1.6rem;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 2rem;

    & h1.break-words {
        font-size: 4.8rem;
        line-height: 1.2;
        white-space: pre-line;
    }
}

.bowlby {
    font-family: 'Bowlby One', sans-serif;
    font-weight: 400;
    font-style: normal;
}

a.bowlby {
    text-decoration: none;
}

main {
    flex: 1;
    padding: 2rem;
}

nav {
    display: flex;
    justify-content: space-between;

    background-color: var(--nav-background-color);
    color: var(--nav-text-color);
    padding: 2rem;
    align-items: center;
}

nav a {
    color: var(--nav-text-color);
}

nav a.logo {
    color: var(--nav-text-color);
    font-size: 2.2rem;
}

header {
    color: var(--black-darker);
    background-color: var(--green-lighter);
    padding: 2rem;
}

header a {
    color: var(--white);
}

footer {
    padding: 2rem;
    background-color: var(--black);
    color: var(--white);
}

footer div a {
    color: var(--white);
}

td, th {
    border: 1px solid var(--table-border-color);
    padding: 1rem;
}

table.allocations-view {
    font-size: 1.2rem;
    line-height: 1.6rem;

    & td.date {
        white-space: nowrap;
    }

    & tfoot td:first-child {
        text-align: right;
    }

    & th {
        text-align: left;
    }
}

table.weekly-view {
    font-size: 1.2rem;
    line-height: 1.6rem;

    & td.date {
        white-space: nowrap;
    }

    & tfoot td:first-child {
        text-align: right;
    }

    hr {
        border: none;
        height: 1px;
        background-color: var(--gray-lighter);

    }
}

table.month-view {
    font-size: 1.2rem;
    line-height: 1.6rem;

    & th {
        width: 5rem;
        background-color: var(--blue-lightest);
    }

    & td, th {
        border: 1px solid var(--blue-lighter);
    }

    & td {
        height: 6rem;
        padding: .5rem;

        & div {
            display: flex;
            flex-direction: column;
            align-items: center;
        }
    }
}

table.new-timesheet {
    font-size: 1.2rem;
    line-height: 1.6rem;
    display: inline-block;
}

.weekly-navigation {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.message {
    width: fit-content;

    & li {
        margin: .5rem 0;
        padding: .75rem;
    }

    & li.WARNING {
        background-color: var(--text-warning);
    }

    & li.INFO {
        background-color: var(--text-info);
    }
}

.legend {
    margin-top: 2rem;
    font-size: 1.2rem;

    & li {
        display: flex;
        flex-direction: row;
        align-content: center;
    }

    & img {
        padding-right: 1rem;
    }
}

ul {
    font-size: 1.2rem;
}

.card-list {
    display: grid;
    grid-template-columns: repeat(3, calc(33% - 1rem));
    column-gap: 2rem;
    row-gap: 2rem;
}

.card {
    padding: 1.5rem;
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .14), 0 3px 1px -2px rgba(0, 0, 0, .2), 0 1px 5px 0 rgba(0, 0, 0, .12);
    background-color: white;

    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: flex-start;
    align-content: baseline;
    justify-content: flex-start;

    h3 {
        white-space: nowrap;
    }

    ul {
        line-height: 2rem;
        font-size: 1.75rem;

        li {
            margin-bottom: 1rem;
        }

        li span.customer-name {
            font-size: 1.25rem;
            vertical-align: super;
            color: var(--blue);
        }
    }
}

@media screen and (max-width: 1000px) {
    .card-list {
        grid-template-columns: 100%;
    }
}
