:root {
    --header-back-color: #fff;
    --main-backcolor: #eee;
    --main-color: #343434;
    --card-back-color: #fff;
    --Sidebar-back-color: #2b343b;
    --Sidebar-back-color2: #2b343bcc;
}

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

* {
    margin: 0;
}

html,
body {
    font-family: "Source Sans Pro", sans-serif;
    font-size: 1rem;
    width: 100%;
    height: 100%;
}

body {
    line-height: 1.5;
    overflow-y: hidden;
    -webkit-font-smoothing: antialiased;
    --theme-main-color: #7b68ee;
    --theme-main-color-dark: #5b43ea;
    --theme-main-color-light: #dfdbfb;
    --theme-main-header-color: #7c4dff;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

input,
button,
textarea,
select {
    font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    user-select: none;
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.25rem;
    font-weight: bold;
}

h2 {
    font-size: 1.5rem;
    font-weight: 600;
}

h3 {
    font-size: 1.25rem;
    font-weight: normal;
}

h4 {
    font-size: 1.125rem;
    font-weight: 600;
}

h5 {
    font-size: 1rem;
    font-weight: 600;
}

h6 {
    font-size: 0.875rem;
    font-weight: 600;
}

p {
    line-height: 1.38;
}

a {
    text-decoration: none;
}

#app {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    background: #eee;
    color: #2a2e34;
}

/* --- */

h1:focus {
    outline: none;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;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jMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

.loading-progress circle {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: #1b6ec2;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

/* --- */

.test-container {
    display: flex;
    flex-direction: row;
    flex-grow: 1;
    gap: 0.5em;
    position: relative;
    min-height: 0;
}

.cell {
    background-color: antiquewhite;
    width: 5em;
    height: 5em;
}

.item {
    background-color: aliceblue;
    width: fit-content;
    height: fit-content;
    padding: 0.75em 0.5em;
    cursor: pointer;
}

/* --- */

main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    height: 100%;
}

.calendar__month {
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
    min-height: 0;
    padding-right: 1em;
    /*background-color: rgba(255, 165, 0, 0.2);*/
}

.month__scroll {
    overflow-y: auto;
    overflow-x: hidden;
    flex-grow: 1;
    padding-bottom: 0;
    max-height: 100%;
    height: 100%;
}

.month__view {
    height: 100%;
    /*background-color: rgba(255, 0, 255, 0.2);*/
}

.month__header {
    margin-bottom: -25px;
    height: 25px;
    position: sticky;
    top: 0;
    z-index: 30;
    background-color: antiquewhite;
}

.cal-cell {
    float: left;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.month__header .cal-cell.cal-weekend {
    background: #fafbfc;
}

.month__header .cal-cell {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    padding: 5px 0 5px 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    white-space: nowrap;
    text-align: left;
    border-left: 1px solid #e1e1e1;
    color: #292d34;
    background: #fff;
}
.cal__cell-Row {
    display: flex;
    position: relative;
    height: 100%;
}

    .cal__cell-Row.cal__header {
        margin-bottom: -25px;
        height: 25px;
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        z-index: 30;
    }

.cal__header {
    text-align: center;
    font-weight: bolder;
}

.cal-header .cal-cell.cal-weekend {
    background: #f1f1f1;
}

.cal__header .cal-cell {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    padding: 5px 0 5px 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    white-space: nowrap;
    text-align: left;
    border-left: 1px solid #e1e1e1;
    color: #292d34;
    background: #fff;
}

.cal-cell {
    float: left;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.cal-days {
    border-left: 1px solid #e1e1e1;
    border-top: 0;
    border-bottom: 0;
}

.cal-days__row {
    page-break-inside: avoid;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-self: stretch;
    background-color: rgba(0, 0, 255, 0.1);
}

.cal-days .cal-cell-row {
    border-bottom: 1px solid #e1e1e1;
}

.cal-cell-row {
    display: flex;
    position: relative;
    height: 100%;
}

.cal-day-cell:not(:first-child) {
    border-left: 1px solid #e1e1e1;
}

.cal-day-cell.cal-weekend,
.cal-day-cell.cal-out-month {
    background-color: #f1f1f1;
}

.cal-day-cell {
    min-height: 140px;
    min-width: 14%;
    flex-grow: 1;
    flex-basis: 0;
    margin-right: -1px;
    background: #fff;
}

.cal-cell {
    float: left;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.cal-day {
    position: relative;
    height: 100%;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.cal-day__inner {
    position: absolute;
    width: 100%;
    height: 100%;
    min-height: 140px;
    border: 1px solid transparent;
    pointer-events: none;
}

.cal-day-cell.cal-today .cal-day__inner {
    border-color: #4169E1;
}

.cal-milestones {
    margin-bottom: auto;
}

.cal-cell-bottom {
    height: 23px;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0 9px 0 4px;
    margin-top: 5px;
}

.cal-day-number {
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    margin-left: auto;
}

.cal-events {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    padding-top: 4px;
}

.cal-slot {
    padding: 2px 8px 2px 5px;
    position: relative;
}

.cal-event {
    display: block;
    min-height: 20px;
    width: 100%;
    padding: 4px;
    cursor: pointer;
}

    .cal-event:not([draggable="True"]) {
        cursor: default;
    }

    .cal-event__content {
        display: flex;
        height: 100%;
        border: solid 1px;
        border-left: 0;
    }

.cal-event-stub .cal-event__content {
    border: none;
}

.cal-event-status {
    min-width: 5px;
    margin: -1px 0 -1px -4px;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

.cal-event-container {
    padding: 4px;
    width: auto;
    min-width: 0;
    overflow: hidden;
    flex-grow: 1;
}

.event-text {
    white-space: nowrap;
    overflow: hidden;
    display: flex;
    align-items: center;
    line-height: 1.15;
    margin-top: 2px;
    margin-bottom: 2px;
    position: relative;
    flex-grow: 1;
    min-width: 0;
    font: 12px;
}

.cal-event-stub .event-text {
    visibility: hidden;
}

.test-container {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
    min-height: 0;
}

.test-scrollable-container {
    flex-grow: 1;
    padding-bottom: 0;
    max-height: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

.test-header {
    margin-bottom: -25px;
    height: 25px;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 30;
    background-color: antiquewhite;
}

    .test-header span {
        font-weight: bolder;
    }

.cal-days .cal-days__row:first-child {
    margin-top: 25px;
}

/* ----- LOG-IN ----- */

.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    user-select: none;
}

.login {
    flex: 0 0 40%;
    min-width: 25rem;
    max-width: 35rem;
    user-select: none;
}

    .login-content {
        border-radius: 0.5rem;
        padding: 3rem;
        background-color: #fff;
        box-shadow: 0px 10px 34px -15px rgba(0, 0, 0, 0.24);
    }

    .login-icon {
        user-select: none;
        width: 80px;
        height: 80px;
        margin: 0 auto;
        margin-bottom: 10px;
    }

        .login-icon i {
            font-size: 3rem;
            background: #1089ff;
            color: white;
            border-radius: 50%;
            padding: 1rem;
        }

.login-header {
    user-select: none;
        font-size: 2rem;
    font-weight: 300;
    text-align: center;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
    user-select: none;
}

    .form-control {
        display: block;
        width: 100%;
        height: 52px;
        padding: 0.375rem 0.75rem;
        background: #fff;
        color: #000;
        font-size: 16px;
        font-weight: 400;
        line-height: 1.5;
        border-radius: 5px;
        border-top-left-radius: 0.25rem !important;
        border-bottom-left-radius: 0.25rem !important;
        box-shadow: none;
        border: 1px solid rgba(0, 0, 0, 0.1);
        transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    }

        .form-control:focus, .form-control:active {
            outline: none !important;
            box-shadow: none;
            border: 1px solid #1089ff;
        }

    button:not(:disabled), [type=button]:not(:disabled), [type=reset]:not(:disabled), [type=submit]:not(:disabled) {
        cursor: pointer;
    }

    .btn.btn-primary {
        background: #1089ff !important;
        border: 1px solid #1089ff !important;
        color: #fff !important;
    }

    .btn:hover, .btn:active, .btn:focus {
        outline: none;
    }

    .btn-primary:focus {
        box-shadow: 0 0 0 0.2rem rgba(38, 143, 255, 0.5);
    }

    /* top bar */

    .top-bar {
        display: flex;
        align-items: center;
        padding: .75rem .5rem;
        background-color: #f7f7f7;
        border-bottom: 1px solid #d6d5d5;
    }

        .top-bar .user {
            flex-grow: 1;
            text-align: right;
            margin-right: 1rem;
            user-select: none;
        }

        .top-bar .btn-logout {
            display: inline-block;
            text-align: center;
            text-decoration: none;
            user-select: none;
            color: #0366d6;
            background-color: transparent;
            border: 1px solid transparent;
            padding: .375rem .75rem;
            font-size: 1rem;
            line-height: 1.5;
            cursor: pointer;
            transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
        }

            .top-bar .btn-logout:focus,
            .top-bar .btn-logout:active,
            .top-bar .btn-logout:hover {
                text-decoration: underline;
                box-shadow: none;
                color: #0056b3;
            }