html, body {
    font-family: 'Segoe UI',Verdana,Helvetica,sans-serif !important;
    font-size: 14px;
    overflow: hidden;
}

a, .btn-link {
    color: #0366d6;
    cursor: pointer;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

app {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.top-row {
    height: 3.5rem;
    display: flex;
    align-items: center;
}

h3 {
    margin-bottom: 1.5rem;
}

.main {
    flex: 1;
    height: 100vh;
}

    .main .top-row {
        background-color: #f7f7f7;
        border-bottom: 1px solid #d6d5d5;
        justify-content: flex-end;
    }

        .main .top-row > a, .main .top-row .btn-link {
            white-space: nowrap;
            margin-left: 1.5rem;
        }

        .main .top-row a:first-child {
            overflow: hidden;
            text-overflow: ellipsis;
        }

.sidebar {
    background-image: linear-gradient(180deg, #212121 0%, #424242 70%);
}

    .sidebar .top-row {
        background-color: rgba(0,0,0,0.4);
    }

    .sidebar .navbar-brand {
        font-size: 1.1rem;
    }

    .sidebar .oi {
        width: 2rem;
        font-size: 1.1rem;
        vertical-align: text-top;
        top: -2px;
    }

    .sidebar .nav {
        overflow-y: auto;
        height: 100%;
        flex-wrap: nowrap;
        user-select: none;
    }

    .sidebar .nav-item {
        font-size: 0.9rem;
        padding-bottom: 0.5rem;
    }

        .sidebar .nav-item:first-of-type {
            padding-top: 1rem;
        }

        .sidebar .nav-item:last-of-type {
            padding-bottom: 1rem;
        }

        .sidebar .nav-item a {
            color: #d7d7d7;
            border-radius: 4px;
            display: flex;
            align-items: center;
            white-space: nowrap;
        }

            .sidebar .nav-item a.active {
                background-color: rgba(255,255,255,0.25);
                color: white;
            }

            .sidebar .nav-item a:hover {
                background-color: rgba(255,255,255,0.1);
                color: white;
            }

        .sidebar .nav-item.account {
            border-bottom: 1px solid rgba(0,0,0,0.4);
            margin-bottom: 1rem;
        }

.main > .content {
    padding: 0.5rem;
    height: 100%;
    overflow-y: auto;
}

.navbar-toggler {
    background-color: rgba(255, 255, 255, 0.1);
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#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;
    }

@media (max-width: 767.98px) {
    app {
        overflow: auto;
        flex-direction: row;
    }

    .main > .content {
        padding: 0;
    }

    .main .top-row:not(.auth) {
        display: none;
    }

    .main .top-row.auth {
        justify-content: space-between;
    }

    .main .top-row a, .main .top-row .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 768px) {
    app {
        flex-direction: row;
    }

    .sidebar {
        max-width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .main .top-row {
        position: sticky;
        top: 0;
    }

    .main > div {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    .navbar-toggler {
        display: none;
    }

    .sidebar .collapse {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }
}

.loading-spinner {
    display: inline-block;
    width: 80px;
    height: 80px;
}

    .loading-spinner:after {
        content: " ";
        display: block;
        width: 64px;
        height: 64px;
        margin: 8px;
        border-radius: 50%;
        border: 6px solid red;
        border-color: red transparent red transparent;
        animation: loading-spinner 0.5s linear infinite;
    }

@keyframes loading-spinner {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


.identity, .identity-container {
    height: 100vh;
}

    .identity .background-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 0;
        position: fixed;
        left: 0;
        overflow: hidden;
        top: 0;
    }

    .identity .identity-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

        .identity .identity-container .logo {
            display: block;
            margin: auto;
            height: 70px;
            max-width: 200px;
            object-fit: contain;
        }

        .identity .identity-container main {
            min-width: 400px;
            z-index: 1;
            background: #ffffff;
            padding: 16px;
            border-radius: 2px;
        }

.navbar-brand {
    margin: auto;
}

    .navbar-brand img {
        max-height: 2rem;
    }

.nav label {
    color: #ffffff;
    font-weight: bold;
    user-select: none;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.table-search {
    display: flex;
}

.data-card {
    animation: fadein 0.15s ease-in;
}

@keyframes fadein {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.data-card > .label {
    font-weight: 100;
    font-size: 18px;
    text-transform: uppercase;
    padding: 4px 8px;
    color: #fff;
    background: #e67e22;
}

.data-section > .label {
    font-weight: 100;
    text-transform: uppercase;
    padding: 4px 8px;
    color: #fff;
    background: #002050;
}

.data-section > section {
    padding: 8px;
    background: #e0e0e0;
}

.chart-container {
    padding: 16px;
}

.active-job-preview {
    padding: 4px 8px;
    font-weight: 100;
    text-transform: uppercase;
    background: #b00020;
    color: #ffffff;
    margin-bottom: 8px;
    user-select: none;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.div-table {
    display: table;
    width: 100%;
    cursor: pointer;
    user-select: none;
}

.div-table-head > * {
    font-weight: 600;
}

.div-table-head,
.div-table-content > *,
.div-table-footer {
    display: table-row;
}

.div-table-content {
    display: contents;
}

    .div-table-head > *,
    .div-table-content > * > *,
    .div-table-footer > * {
        display: table-cell;
        padding: .75rem;
        vertical-align: bottom;
        color: #000;
    }

    .div-table-content .fit {
        width: 1%;
        white-space: nowrap;
    }

    .div-table-content > *:hover {
        background: wheat;
        text-decoration: none;
    }

.user-calendar-small .header {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 0.5rem;
    user-select: none;
}

    .user-calendar-small .header .icon {
        cursor: pointer;
        margin: 0 0.25rem;
    }

.user-calendar-small .content .weekdays,
.user-calendar-small .content .dates {
    display: flex;
    flex-direction: row;
    margin-left: -6px;
    margin-right: 6px;
}

    .user-calendar-small .content .weekdays .weekday,
    .user-calendar-small .content .dates .day {
        height: 44px;
        max-height: 44px;
        width: 44px;
        max-width: 44px;
        margin: 2px 6px;
        user-select: none;
    }

    .user-calendar-small .content .weekdays .weekday {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .user-calendar-small .content .dates .day {
        border-radius: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        transition: background 0.15s;
    }

        .user-calendar-small .content .dates .day:hover {
            background: darkgray;
        }

        .user-calendar-small .content .dates .day.muted {
            color: darkgray;
        }

        .user-calendar-small .content .dates .day.highlight {
            background: lightgray;
        }

        .user-calendar-small .content .dates .day.focus {
            background: red;
            color: white;
        }

.confirmation-modal-wrapper {
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(40, 40, 40, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.confirmation-modal {
    display: flex;
    flex-direction: column;
    width: auto;
    height: auto;
    border-radius: 4px;
    background: #fff;
}

    .confirmation-modal .title {
        padding: 16px;
        text-align: center;
    }

    .confirmation-modal .actions {
        display: flex;
        flex-direction: row;
        border-bottom-left-radius: 4px;
        border-bottom-right-radius: 4px;
    }

        .confirmation-modal .actions > div {
            padding: 8px;
            flex: 1;
            text-align: center;
            cursor: pointer;
            user-select: none;
            color: #fff;
        }

            .confirmation-modal .actions > div:hover {
                filter: brightness(120%);
            }

        .confirmation-modal .actions .cancel {
            background: red;
            border-bottom-left-radius: 4px;
        }

        .confirmation-modal .actions .ok {
            background: green;
            border-bottom-right-radius: 4px;
        }

.calendar-week {
    height: 100%;
    width: 100%;
    overflow: auto;
    user-select: none;
}

    .calendar-week .header {
        display: flex;
        flex-direction: row;
        flex: 1;
        width: 100%;
        min-height: 30px;
        height: 30px;
        max-height: 30px;
        position: sticky;
        top: 0;
        z-index: 10;
        background: #fff;
    }

        .calendar-week .header .corner {
            width: 50px;
            min-width: 50px;
        }

        .calendar-week .header .day {
            display: flex;
            flex-direction: row;
            align-items: center;
            flex: 1;
            border-left: 1px solid #bdbdbd7f;
            padding: 0 4px;
        }

            .calendar-week .header .day > *:first-child {
                font-size: 19px;
                margin-right: 4px;
            }

    .calendar-week .content {
        display: flex;
        flex: 1;
        flex-direction: column;
        height: calc(100% - 30px);
    }

        .calendar-week .content .calendar-row {
            display: flex;
            flex-direction: row;
            flex: 1;
            width: 100%;
            min-height: 30px;
            height: 30px;
            max-height: 30px;
            border-top: 1px solid #bdbdbd7f;
        }

        .calendar-week .content .time {
            width: 50px;
            background: #fff;
            text-align: center;
            padding: 0 2px;
        }

        .calendar-week .content .day {
            display: flex;
            flex-direction: column;
            flex: 1;
            background: #f5f5f5;
            border-left: 1px solid #bdbdbd7f;
            position: relative;
        }

        .calendar-week .content .data {
            position: absolute;
            top: 0;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 0 4px;
            z-index: 9;
            border-radius: 2px;
            background: #f44336;
            color: #fff;
            cursor: pointer;
        }

.calendar-month {
    height: 100%;
    width: 100%;
    overflow: auto;
    user-select: none;
}

    .calendar-month .header {
        display: flex;
        flex-direction: row;
        flex: 1;
        width: 100%;
        min-height: 60px;
        height: 60px;
        max-height: 60px;
        background: #fff;
    }

        .calendar-month .header .day {
            display: flex;
            flex-direction: row;
            align-items: center;
            flex: 1;
            padding: 0 4px;
            text-transform: capitalize;
        }

    .calendar-month .content {
        display: flex;
        flex: 1;
        flex-direction: column;
        height: calc(100% - 60px - 2rem);
    }

        .calendar-month .content .week {
            display: flex;
            flex: 1;
            flex-direction: row;
            width: 100%;
            border-top: 1px solid #bdbdbd7f;
        }

            .calendar-month .content .week .day {
                display: flex;
                flex-direction: column;
                flex: 1;
                min-height: 84px;
                padding: 8px;
                cursor: pointer;
                transition: background 0.15s ease-in;
            }

                .calendar-month .content .week .day.past {
                    background: #f5f5f5
                }

                .calendar-month .content .week .day.current {
                    background: #82b3c9
                }

                .calendar-month .content .week .day:hover {
                    background: #64b5f6
                }

                .calendar-month .content .week .day .day-number {
                    margin-bottom: 4px;
                }

        .calendar-month .content .data {
            width: 100%;
            height: 40px;
            min-height: 40px;
            max-height: 40px;
            padding: 4px 8px;
            z-index: 9;
            border-radius: 2px;
            background: #f44336;
            color: #fff;
            cursor: pointer;
        }

.calendar-selection {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

    .calendar-selection .user {
        margin-bottom: 8px;
    }

    .calendar-selection .day-actions > * {
        cursor: pointer;
        margin: 0 8px;
    }

    .calendar-selection .calendar-modes {
        display: flex;
        flex-direction: row;
        cursor: pointer;
        color: rgb(50, 49, 48);
        font-size: 19px;
    }

        .calendar-selection .calendar-modes > div {
            margin: 0 4px;
        }

            .calendar-selection .calendar-modes > div:hover {
                color: rgb(0, 98, 175);
            }

            .calendar-selection .calendar-modes > div.active {
                color: rgb(0, 98, 175);
            }

.panel-wrapper.visible {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: transparent;
    z-index: 99;
    transition: background 0.15s;
}

.panel-wrapper.visible {
    background: rgba(0, 0, 0, 0.2);
}

.panel-outer {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: #fff;
    background-color: rgb(255, 255, 255);
    box-shadow: rgba(0, 0, 0, 0.22) 0px 25.6px 57.6px 0px, rgba(0, 0, 0, 0.18) 0px 4.8px 14.4px 0px;
    transition: all 0.15s;
}

.panel-inner {
    padding: 16px;
    display: flex;
    flex: 1;
    flex-direction: column;
}

.panel-outer.small.visible {
    width: 340px;
    max-width: 340px;
}

.panel-outer.medium.visible {
    width: 644px;
    max-width: 644px;
}

.panel-outer.large.visible {
    width: 948px;
    max-width: 948px;
}

.panel-outer.fluid.visible {
    left: 0;
    width: unset;
}

.panel-inner .header {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 16px;
}

.panel-inner .content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.panel-inner .footer {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
}

    .panel-inner .footer > *:not(:first-child) {
        margin-left: 16px;
    }
