@font-face {
    font-family: "Myriad Pro";
    font-weight: 400;
    src: url(/asset.f71a6e7edf8833823ee4.woff2) format("woff2");
}

@font-face {
    font-family: "Myriad Pro";
    font-weight: 600;
    src: url(/asset.b4f412725ffb46f181f0.woff2)
        format("woff2");
}

@font-face {
    font-family: "Myriad Pro";
    font-weight: 700;
    src: url(/asset.865a4ab59b0aaf48b18c.woff2) format("woff2");
}

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

:root {
    --primary-color: #e4252f;

    --text-color: #494949;
    --secondary-text-color: #1d1e37;

    --border-color: #ebedf3;

    --background-color: #ffffff;
    --secondary-background-color: #fafafa;

    --body-margin: 16px;

    --header-height: 44px;
}

:focus-visible {
    outline: 3px solid #008eff;
    outline-offset: 2px;
}

body {
    color: var(--text-color);
    font-family: "Myriad Pro", sans;

    margin: 0;

    background-color: var(--background-color);

    animation: fade-in;
    animation-duration: 1.25s;
    animation-timing-function: ease;
}

.fade-enter-active,
.fade-leave-active {
    transition: opacity 0.3s;
}

.fade-enter,
.fade-leave-to {
    opacity: 0;
}

.title {
    margin: 0;

    font-size: 24px;
    font-weight: 600;

    line-height: 1;
}

.title.small {
    font-size: 18px;
}

.title.strong {
    color: var(--secondary-text-color);

    font-size: 16px;
}

.text.small + .title {
    margin-top: 20px;
}

.text + .title,
.list + .title {
    margin-top: 26px;
}

.flex + .title {
    margin-top: 36px;
}

.text {
    display: block;

    color: var(--text-color);
    line-height: 18px;
}

.text.small {
    font-size: 14px;
}

.text.strong {
    color: var(--secondary-text-color);
    font-weight: 600;
    line-height: 21px;
}

.text.italic {
    font-style: italic;
}

.text.paragraph {
    max-width: 500px;
    white-space: pre-wrap;
    margin-block: 6px;
}

.auto-growing-textarea + .text {
    margin-top: 20px;
}

.selection-label + .text {
    margin-top: 22px;
}

.button {
    cursor: pointer;
    border: none;

    appearance: none;
    font-family: inherit;

    display: block;

    color: white;
    line-height: 1;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;

    padding: 11px 28px 10px;

    border-radius: 35px;
    background-color: var(--primary-color);

    transition: opacity 0.25s;
}

.button.secondary {
    background-color: #111111;
}

.button:disabled {
    opacity: 0.7;
}

.selection-label {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 10px 0 6px;
    border-bottom: 1px solid var(--border-color);
}

.selection-label + .selection-label {
    margin-top: 4px;
}

.text + .selection-label {
    margin-top: 10px;
}

.flex {
    display: flex;

    gap: 0 16px;
}

.flex.align-items-center {
    align-items: center;
}

.flex.align-items-end {
    align-items: end;
}

.flex.justify-content-end {
    justify-content: end;
}

.title + .flex,
.flex + .flex {
    margin-top: 20px;
}

.auto-growing-textarea + .flex,
.text + .flex {
    margin-top: 26px;
}

.text-field + .flex {
    margin-top: 36px;
}

.box {
    box-sizing: border-box;
    padding: 35px 30px 30px;

    border-radius: 8px;
    background-color: white;

    box-shadow: 0 2px 11px 0 rgba(0, 0, 0, 0.14);
}

.list {
    list-style-position: inside;

    margin: 0;
    padding: 0;
}

.title + .list {
    margin-top: 6px;
}

.activity-form {
    margin: 36px auto;
}

@media (max-width: 899px) {
    .activity-form {
        max-width: 600px;

        display: flex;
        flex-direction: column;
    }

    .activity-form .container {
        margin-bottom: 6px;
    }

    .activity-header {
        display: none;
    }
}

@media (min-width: 900px) {
    .activity-form {
        box-shadow: none;
        padding: 0;
    }
}

.content {
    width: 100%;

    padding: 16px 16px 40px;
    box-sizing: border-box;

    background-color: white;
}

@media (min-width: 900px) {
    .content {
        padding: 26px 26px 60px;
    }
}

@media (min-width: 900px) {
    .content.activities {
        display: grid;
        grid-template-columns: auto auto auto auto auto auto;
        gap: 40px 40px;
        align-items: center;

        margin: 40px auto 100px;
        max-width: 1500px;
    }

    .activity-form,
    .activity-header {
        display: contents;
    }

    .activity-header .text {
        align-self: start;

        margin-bottom: 16px;
    }

    .content.activities .title {
        font-size: 16px;

        margin-bottom: 4px;
    }

    .content.activities .auto-growing-textarea {
        min-width: 140px;

        border: 1px solid #f0f0f0;

        margin: 0;
        padding: 0 6px;
    }

    .content.activities .auto-growing-textarea:focus-within {
        border: 1px solid #1d1e37;
    }

    .content.activities .selection-label {
        display: block;

        width: max-content;
        height: max-content;

        margin: -6px;
        padding: 6px;

        border: none;
    }

    .content.activities .flex,
    .content.activities .activity-form .text {
        margin: 0;
    }

    .content.activities .info,
    .content.activities .comment,
    .content.activities .selection-label .text {
        display: none;
    }

    .content.activities .container {
        grid-column: 1;
    }

    .content.activities .flex:last-child {
        grid-column: -1;
    }
}

.login-form {
    max-width: 350px;

    margin: calc(25vh - var(--header-height)) auto 20px;
}

@media (min-width: 900px) {
    .aside-layout {
        display: grid;
        grid-template-columns: 250px 1fr;

        height: calc(100vh - var(--header-height));
        height: calc(100dvh - var(--header-height));
    }

    .aside-layout > .aside {
        grid-column: 1;

        overflow-x: scroll;
    }

    .aside-layout > .content {
        overflow-x: scroll;
    }
}

.aside {
    padding: 6px 0;
    box-sizing: border-box;
    background-color: var(--secondary-background-color);
}

@media (min-width: 900px) {
    .aside {
        border-right: solid 1px var(--border-color);
    }
}

.aside > .text {
    display: block;

    margin: 20px 0 20px 16px;
}

@media (min-width: 900px) {
    .aside > .navigation a {
        margin-left: 22px;
    }
}

.export-page {
    margin: 32px auto 64px;
}

.export-page .export-table-scroll-container {
    overflow-x: auto;
    margin-inline: 64px;
}

.export-page .export-table {
    width: 100%;
    border-collapse: collapse;

    font-size: 14px;

    border: 1px solid var(--border-color);
}

.export-page .export-table th,
.export-page .export-table td {
    padding: 2px 6px;
    border: 1px solid var(--border-color);
}

.export-page .button {
    margin-inline-start: auto;
    margin-block-end: 20px;
    margin-inline-end: 64px;
}

.navigation.horizontal {
    display: flex;
    align-items: center;

    overflow-y: auto;
    scrollbar-width: thin;

    padding: 10px 20px;

    background-color: var(--secondary-background-color);
    border-bottom: solid 1px var(--border-color);
}

@media (hover: none) and (pointer: coarse) {
    .navigation.horizontal {
        scrollbar-width: none;
    }

    .navigation.horizontal::-webkit-scrollbar {
        display: none;
    }
}


.navigation.collapsible > .title {
    display: flex;
    align-items: center;
}

.navigation.collapsible > .title::after {
    content: "";

    margin-top: -1px;
    margin-left: 6px;

    height: 11px;
    width: 13px;

    background-image: url(/asset.b1f097455db9dd454e51.svg);
    background-size: 11px;
    background-repeat: no-repeat;
    background-position: center;

    transition: rotate 0.3s;
}

.navigation.collapsible[open] > .title::after {
    rotate: x 180deg;
}


@media (max-width: 899px) {
    .navigation.collapsible .links {
        display: flex;

        overflow-y: scroll;

        padding-bottom: 4px;
    }
}


.navigation > .title {
    cursor: pointer;

    padding: 8px 6px;
    margin-left: 10px;

    width: max-content;
}


.navigation a {
    color: inherit;
    text-decoration: none;
    text-underline-offset: 2px;

    transition: color 0.25s;
}

.navigation a.active {
    color: black;
    text-decoration: underline;
}

.navigation.horizontal a {
    flex-shrink: 0;

    margin: 0 10px;
    padding: 6px 4px;
}

.navigation.horizontal a:first-of-type {
    margin-left: auto;
}

.navigation.horizontal a:last-of-type {
    margin-right: auto;
}

@media (max-width: 899px) {
    .navigation.collapsible a {
        flex-shrink: 0;

        margin: 2px 4px;
        padding: 6px 4px;
    }
}

@media (min-width: 900px) {
    .navigation > a {
        display: block;
    }

    .navigation.collapsible a {
        display: block;

        padding: 2px;
    }

    .navigation a + a {
        margin-top: 6px;
    }
}

.header {
    display: flex;

    animation: fade-in;
    animation-duration: 1.25s;
    animation-timing-function: ease;
}


.header .logo {
    --padding-y: 10px;

    flex-shrink: 0;

    height: calc( var(--header-height) - ( var(--padding-y) * 2 ) );
    width: auto;

    padding-top: var(--padding-y);
    padding-bottom: var(--padding-y);
    padding-left: var(--body-margin);
    padding-right: var(--body-margin);

    background-color: white;
}


.header .navigation {
    flex-grow: 1;

    padding-top: 0;
    padding-bottom: 0;
    padding-right: 0;

    background-color: var(--primary-color);
    border: 0;
}


.header .navigation a {
    color: white;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;

    opacity: 0.8;

    transition: opacity 0.25s;
}

.header .navigation a.active {
    opacity: 1;
}

.header .navigation a:first-of-type {
    margin-left: 0;
}


.header .button {
    flex-shrink: 0;

    height: 100%;

    margin-left: 20px;
    padding: 8px 16px;

    border-radius: 0;
}

.text-field {
    box-shadow: none;
    font-family: inherit;
    border: 0px;
    border-radius: 0;
    background-color: inherit;

    display: block;
    width: 100%;

    color: #282828;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;

    padding: 10px 0 8px;
    border-bottom: 1px solid #f0f0f0;

    transition-property: border, color;
    transition-duration: 0.2s;
}

/* removes the autofill background color */
.text-field:-webkit-autofill {
    -webkit-background-clip: text;
}

.text-field:focus {
    outline: none;
    border-bottom: 1px solid #1d1e37;
}

.text-field::placeholder {
    opacity: 1;
    color: #c4c4c4;
}

.title + .text-field {
    margin-top: 30px;
}

/* inspired by https://css-tricks.com/the-cleanest-trick-for-autogrowing-textareas */
.auto-growing-textarea {
    display: grid;

    border-bottom: 1px solid #f0f0f0;

    transition: border 0.2s;
}

.auto-growing-textarea textarea,
.auto-growing-textarea::after {
    grid-row: 1;
    grid-column: 1;

    /* NOTE: disabled for now; better to show everything now, as it the fields are character limited */
    /*max-height: 64px;*/ /* three lines (line-height * 4) - padding-bottom */
}

.auto-growing-textarea::after {
    content: attr(data-replica-content) " ";
    visibility: hidden;

    white-space: pre-wrap;
    word-wrap: anywhere;
}

.auto-growing-textarea textarea,
.auto-growing-textarea::after {
    resize: none;
    width: 100%;

    margin: 0;
    padding: 0;
    border: none;
    outline: none;

    font-family: inherit;

    color: #282828;
    font-size: 14px;
    font-weight: 600;
    line-height: 18px;

    /* oh Firefox...
       "Firefox adds height to the TextArea to reserve place for scroll-bars.",
       adding "overflow-x: hidden;" removes it
        - https://stackoverflow.com/a/22700700/3436707
        - https://bugzilla.mozilla.org/show_bug.cgi?id=33654 */
    overflow-x: hidden;

    /* Firefox also has weird scrollbar issues with short scrollbars,
       which are common on textareas,
       unless it is thin! */
    scrollbar-width: thin;

    margin-top: 6px;

    padding-bottom: 8px;
    background-color: white;
}

.auto-growing-textarea textarea::placeholder {
    opacity: 1;
    color: #c4c4c4;
}

.auto-growing-textarea:focus-within {
    border-bottom: 1px solid #1d1e37;
}

.title + .text-field {
    margin-top: 30px;
}

@media print {
    .header,
    .print-wrapper .button {
        display: none;
    }
}

.print-wrapper {
    display: flex; /* needed to prevent padding/margin collapse for scrolling */
    overflow: scroll;

    background-color: lightgrey;
}

@media print {
    .print-wrapper {
        display: block;
        overflow: auto;

        background-color: inherit;
    }
}

.print-wrapper .button {
    position: fixed;

    bottom: 50px;
    right: 50px;
}

.a4-sheet {
    flex-shrink: 0;
    margin: 16px 16px 100px;

    width: 21cm;
    height: 29.7cm;

    color: black;
    font-size: 14pt;

    padding: 34.5pt 36pt;
    box-sizing: border-box;

    background-color: white;
    box-shadow: 0 2px 11px 0 rgba(0, 0, 0, 0.14);
}

.a4-sheet.multi {
    height: auto;
    min-height: 29.7cm;
}

@media (min-width: 820px) {
    .a4-sheet {
        margin: 36px auto 100px;
    }
}

@media print {
    .a4-sheet {
        margin: 0;
        padding: 0;

        width: auto;
        height: auto;

        box-shadow: none;
    }
}

.a4-sheet header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 22pt;
}

.a4-sheet .logo {
    display: block;
    height: 20pt;
}

.a4-sheet h1.title {
    font-size: 18pt;
    font-weight: 600;
}

.a4-sheet h2.title {
    font-size: 14pt;
    font-weight: 600;
    margin-bottom: 6pt;
}

.a4-sheet h3.title {
    margin: 6pt 0;
    color: #9b9b9b;
    font-size: 8pt;
    font-weight: 400;
}

.a4-sheet .activity-info {
    margin: -6pt 0 6pt;
    font-size: 10pt;
}

.a4-sheet .form-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 14pt;
}

.a4-sheet .form-section:last-of-type {
    margin-bottom: 0;
}

.a4-sheet .form-section h2,
.a4-sheet .form-section span {
    width: 100%;
}

.a4-sheet .form-section textarea,
.a4-sheet .form-section .form-field {
    width: calc(50% - 3.5pt);
    margin-bottom: 6pt;

    min-height: 53pt;

    box-sizing: border-box;
    padding: 7pt 7pt 5pt;

    border: 2pt solid #777;
    color: #9b9b9b;
    font-size: 8pt;
}

.a4-sheet textarea {
    resize: none;
    overflow-y: hidden;
}

.a4-sheet .radio {
    margin: 8pt 0;
    display: flex;
    align-items: center;
    color: black;
}

.a4-sheet .radio:first-of-type {
    margin-top: 18pt;
}

.a4-sheet .radio:before {
    content: "";
    margin-right: 6pt;
    width: 9pt;
    height: 9pt;
    border: 1pt solid black;
    border-radius: 50%;
}

.a4-sheet .checkbox {
    display: flex;
    align-items: center;
    margin: 0 0 5pt 2pt;
    color: black;
}

.a4-sheet .checkbox:before {
    content: "";
    display: block;
    width: 10pt;
    height: 10pt;
    margin-top: -2pt;
    margin-right: 6pt;
    border: 1pt solid black;
    border-radius: 2pt;
}

.a4-sheet .form-field.category-wrapper {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    margin: 0;
}

.a4-sheet .category-wrapper article {
    width: 33.3%;
}

.a4-sheet .grid-wrapper {
    display: grid;
    justify-content: space-between;
    /* grid-template-columns is used instead of grid-column-gap to 
       fix an issue with Chromium clipping the content when printing */
    grid-template-columns: calc(50% - 6pt) calc(50% - 6pt);
    grid-row-gap: 12pt;
}

.a4-sheet .grid-wrapper header {
    grid-column: 1 / -1;
    margin: 0;
}

.a4-sheet .grid-wrapper section {
    page-break-inside: auto;
}

.a4-sheet .activity-wrapper {
    page-break-inside: avoid;
}

.a4-sheet .activity-wrapper + .activity-wrapper {
    margin-top: 7pt;
}

.a4-sheet .category-title {
    margin-top: 8pt;
    margin-bottom: 8pt;

    border-bottom: 1px solid black;

    font-size: 14pt;
    font-weight: 600;
}

.a4-sheet .activity-title {
    margin-top: 0;
    margin-bottom: 0;

    font-size: 12pt;
    font-weight: 600;
}

.a4-sheet .activity-comment {
    margin-top: 4pt;
    margin-bottom: 0;

    font-size: 12pt;
    font-weight: 400;

    white-space: pre-wrap;
}

.a4-sheet .activity-wrapper label {
    font-size: 12pt;
}

.a4-sheet .activity-wrapper label + label {
    margin-left: 8pt;
}

.a4-sheet .activity-wrapper label input {
    margin-left: 2pt;
}



