:root {
    --background-dark: #2D2D2D;
    --background-dark-alt: #4F4F4F;
    --background-disabled: #A3A3A3;
    --background-approved: #C8E8CE;
    --background-readonly: #C3C3C3;
    --text-approved: #969696;
    --text-readonly: #000;
    --text-light: #FFF;
    --text-dark: #2D2D2D;
    --color-error: #FF0000;
    --color-gray: #C3C3C3;
    --input-border-radius: 3px;
    --color-blue: #55D4FF;
    --color-blue-dark: #175EAE;
    --color-white: #FFF;
    --color-happy-green: #84cd5e;
    --color-dark-red: #5e000e;
    --color-dark-red-alt: #c42b1c;
    --indicator-color-ok: #49D159;
    --indicator-color-warning: #F8F810;
    --indicator-color-error: #FF0000;
}

@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Times New Roman';
    font-size: 1.2vw;
    color: var(--text-dark);
    margin: 9px 15px 15px 15px;    
}

h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    margin-top: 2.5rem;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

table {
    width: 100%;
    margin-top: 20px;
}

td.wide {
    width: 16vw;
}

td.medium {
    width: 8.5vw;
}

td.narrow {
    width: 5vw !important;
}

td.very-narrow {
    width: 3vw !important;
}

td.day {
    border-left: 1px solid var(--background-disabled);
    border-right: 1px solid var(--background-disabled);
}

td:first-child {
    padding-left: 5px;
}

td {
    padding-top: 10px;
    padding-bottom: 10px;
}

    td.center, th.center {
        text-align: center;
    }

tr {
    border-top: 1px solid var(--background-disabled);
}

    tr:first-child {
        border-top: 3px solid var(--background-disabled);
    }

    tr.totals {
        background-color: var(--background-dark);
        color: var(--text-light);
    }

.week-total {
    background-color: var(--background-dark);
    color: var(--text-light);
}

.header-small {
    color: var(--text-approved);
    font-size: 1.1vw;
}

.header-center {
    text-align: center;
}

.header-total {
    text-align: center;
    font-size: 1.8vw;
}

.header-large {
    font-size: 1.4vw;
    font-weight: 500;
}

.ml-large {
    margin-left: 4vw;
}

.ml-med {
    margin-left: 2vw;
}

.ml-small {
    margin-left: 1vw;
}

td.week-total {
    text-align: right;
    padding-right: 40px;
}

td.week-total-small, td.day-total-small {
    font-size: 1vw
}

td.week-total-large, td.day-total-large {
    font-weight: bold;
}

textarea:focus {
    outline: 1px solid #000; /* hack for Opera and Firefox */
}


select, select:active {
    border: 0.00001px solid #fff; /* hack for Opera, else could be 0 */
    outline: 0;
    background-color: #fff; /* hack for Opera, else could be transparent */
}

    select:hover {
        border-bottom: 1px solid var(--background-dark-alt);
        cursor: pointer;
    }

.image-button {
    cursor: pointer;
}

    .image-button:hover {
        box-shadow: 3px 3px 3px var(--background-dark-alt);
    }

#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;
    }

input[type=text] {
    border: 0;
    outline: 0;
    text-align: center;
}

    input[type=text].settings {
        border: 1px solid var(--color-happy-green);
        text-align: left;
        color: var(--text-dark);
        padding-left: 10px;
        padding-right: 10px;
        width: 50%;
    }

input.is-dirty {
    background-color: var(--background-disabled);
    font-weight: bold;
    border-radius: var(--input-border-radius);
}

input.input-approved {
    background-color: var(--background-approved);
    border-radius: var(--input-border-radius);
    color: var(--text-approved);
    font-weight: bold;
}

input.input-readonly {
    background-color: var(--background-readonly) !important;
    border-radius: var(--input-border-radius);
    color: var(--text-approved) !important;
    font-weight: bold;
}

.error-box {
    box-shadow: 0px 0px 5px 2px red;
}

input.hours-input {
    width: 2.5vw;
}

select.dropdown-wide {
    width: 14vw;
}

select.dropdown-medium {
    width: 6vw;
}

div.parent-grayed-out {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 100;
    background-color: rgba(0,0,0,0.5);
}

a.dropdown-item {
    cursor: pointer;
}

.dropdown-item.active, .dropdown-item:active {
    background-color: var(--color-gray) !important;
    color: var(--text-dark) !important;
}

#currentMonthChart {
    height: 30vh;
    box-shadow: 0px 0px 2px 0px #000000;
}

#yearPickerLink {
    color: #000;
    text-decoration: none;
}

    #yearPickerLink:hover {
        border-bottom: 1px solid var(--background-dark-alt);
        cursor: pointer;
    }

/* Detail editor */
.detail-editor div.panel {
    position: fixed;
    z-index: 1000;
    width: 30vw;
    border: 2px solid black;
    left: 35vw;
    top: 20vh;
    /* height: 25vw;*/
    background: white;
    box-shadow: 5px 5px 15px 5px var(--background-dark-alt);
    border-radius: 20px;
}

.detail-editor-title {
    padding-top: 5px;
    padding-bottom: 5px;
    background-color: var(--color-dark-red);
    color: var(--text-light);
    margin: auto;
    text-align: center;
    border-top-left-radius: 17px;
    border-top-right-radius: 17px;
}

.detail-editor {
    visibility: hidden;
    opacity: 0;
    transition-property: visibility,opacity;
    transition-duration: 0.5s;
    padding: 0;
}

.detail-editor-visible {
    visibility: visible;
    opacity: 1 !important;
    transition-property: opacity;
    transition-duration: 0.5s;
}

div.detail-editor-content {
    padding: 10px;
}

div.user-name {
    position: fixed;
    text-align: right;
    top: 0px;
    right: 30px;
    font-size: 0.9vw;
    font-weight: bold;
    background-color: var(--color-white);
}

/* Message box */
.mbox div.panel {
    position: fixed;
    z-index: 1000;
    width: 30vw;
    border: 2px solid black;
    left: 35vw;
    top: 40vh;
    /* height: 25vw;*/
    background: white;
    box-shadow: 5px 5px 15px 5px var(--background-dark-alt);
}

.mbox-title {
    padding-top: 5px;
    padding-bottom: 5px;
    background-color: var(--background-dark);
    color: var(--text-light);
    margin: auto;
    text-align: center;
}

.mbox {
    visibility: hidden;
    opacity: 0;
    transition-property: visibility,opacity;
    transition-duration: 0.5s;
    padding: 0;
}

.mbox-visible {
    visibility: visible;
    opacity: 1 !important;
    transition-property: opacity;
    transition-duration: 0.5s;
}

div.mbox-content {
    padding: 10px;
}

div.mbox-buttons {
    margin-top: 1vw;
    margin-bottom: 3.5vw;
}

    div.mbox-buttons div.column {
        float: left;
        width: 33.33%;
    }

    div.mbox-buttons div.column-center {
        text-align: center;
    }

    div.mbox-buttons div.column-right {
        text-align: right;
    }

    div.mbox-buttons:after {
        clear: both;
    }

/* /// Message box */
textarea.panel-text-input {
    width: 100%;
    height: 14vh;
    resize: none;
    padding: 5px;
}

.button-icon {
    cursor: pointer;
    font-size: 1vw;
}

    .button-icon:hover {
        color: var(--color-blue);
    }

.button-icon-disabled {
    color: rgba(0, 0, 0, 0.2) !important;
    cursor: default !important;
}

button {
    background-color: var(--background-dark);
    color: var(--text-light);
    border: 0 solid var(--background-dark);
    border-radius: 1vw;
    padding: 5px 20px 5px 20px;
    outline: 0;
}

    button:disabled,
    button[disabled] {
        background-color: var(--background-disabled) !important;
        cursor: default !important;
    }

    button:hover {
        background-color: var(--background-dark-alt);
    }

    button:focus {
        outline: 0;
    }

    button.link {
        background-color: var(--color-white);
        color: var(--color-blue-dark);
        text-decoration: underline;
        padding-top: 0;
    }

    button.important {
        background-color: var(--color-error);
    }

        button.important:hover {
            background-color: var(--color-dark-red-alt);
        }

i.no-charge-indicator {
    color: #55D4FF;
}

i.charge-indicator {
    color: #49D159;
}

i.hours-ok {
    color: var(--indicator-color-ok);
}

i.hours-warning {
    color: var(--indicator-color-warning);
}

i.hours-error {
    color: var(--indicator-color-error);
}

i.hours-indicator {
    font-size: 1vw;
}

i.space-right {
    margin-right: 0.3vw;
}

.cell-saving-icon {
    width: 1.7vw;
}

#panelChangeLog {
    top: 10%;
    height: 80%;
    width: 50%;
    left: 25%
}

#bChangeLogClose {
    margin-right: 20px;
}

#selectImpersonationResource {
    width: 100%;
    border: 1px solid #000;
    text-align: left;
    padding: 5px
}

.remove-all-empty-rows {
    padding-left: 60px;
}

/* Spinner */
/* ------------- */
.rotate {
    animation: rotate 1.5s linear infinite;
}

@keyframes rotate {
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    display: inline-block;
    width: 1.4vw;
    height: 1.4vw;
    border-radius: 50%;
    box-shadow: inset -2px 0 0 2px #000;
    position: relative;
    top: 0.2vw;
}

/* Loader */
/* ----------------- */

/* Absolute Center Spinner */
.loading {
    position: fixed;
    z-index: 999;
    height: 2em;
    width: 2em;
    overflow: show;
    margin: auto;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    animation: fadein 2s;
}

@keyframes loading {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Transparent Overlay */
.loading:before {
    content: '';
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(rgba(20, 20, 20,.8), rgba(0, 0, 0, .4));
    background: -webkit-radial-gradient(rgba(20, 20, 20,.8), rgba(0, 0, 0,.4));
}

/* :not(:required) hides these rules from IE9 and below */
.loading:not(:required) {
    /* hide "loading..." text */
    font: 0/0 a;
    color: transparent;
    text-shadow: none;
    background-color: transparent;
    border: 0;
}

    .loading:not(:required):after {
        content: '';
        display: block;
        font-size: 10px;
        width: 1em;
        height: 1em;
        margin-top: -0.5em;
        -webkit-animation: spinner 35ms infinite linear;
        -moz-animation: spinner 35ms infinite linear;
        -o-animation: spinner 35ms infinite linear;
        animation: spinner 35ms infinite linear;
        border-radius: 0.5em;
        -webkit-box-shadow: rgba(255,255,255, 0.75) 1.5em 0 0 0, rgba(255,255,255, 0.75) 1.1em 1.1em 0 0, rgba(255,255,255, 0.75) 0 1.5em 0 0, rgba(255,255,255, 0.75) -1.1em 1.1em 0 0, rgba(255,255,255, 0.75) -1.5em 0 0 0, rgba(255,255,255, 0.75) -1.1em -1.1em 0 0, rgba(255,255,255, 0.75) 0 -1.5em 0 0, rgba(255,255,255, 0.75) 1.1em -1.1em 0 0;
        box-shadow: rgba(255,255,255, 0.75) 1.5em 0 0 0, rgba(255,255,255, 0.75) 1.1em 1.1em 0 0, rgba(255,255,255, 0.75) 0 1.5em 0 0, rgba(255,255,255, 0.75) -1.1em 1.1em 0 0, rgba(255,255,255, 0.75) -1.5em 0 0 0, rgba(255,255,255, 0.75) -1.1em -1.1em 0 0, rgba(255,255,255, 0.75) 0 -1.5em 0 0, rgba(255,255,255, 0.75) 1.1em -1.1em 0 0;
    }

/* Animation */

@-webkit-keyframes spinner {
    0% {
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@-moz-keyframes spinner {
    0% {
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@-o-keyframes spinner {
    0% {
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes spinner {
    0% {
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

.dark-mode {
    filter: invert(1);
}

/* Toggle */
.toggle {
    cursor: pointer;
    display: inline-block;
}

.toggle-switch {
    display: inline-block;
    background: #ccc;
    border-radius: 16px;
    width: 58px;
    height: 32px;
    position: relative;
    vertical-align: middle;
    transition: background 0.25s;
}

    .toggle-switch:before, .toggle-switch:after {
        content: "";
    }

    .toggle-switch:before {
        display: block;
        background: linear-gradient(to bottom, #fff 0%, #eee 100%);
        border-radius: 50%;
        box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
        width: 24px;
        height: 24px;
        position: absolute;
        top: 4px;
        left: 4px;
        transition: left 0.25s;
    }

.toggle:hover .toggle-switch:before {
    background: linear-gradient(to bottom, #fff 0%, #fff 100%);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5);
}

.toggle-checkbox:checked + .toggle-switch {
    background: #84CD5E;
}

    .toggle-checkbox:checked + .toggle-switch:before {
        left: 30px;
    }

.toggle-checkbox {
    position: absolute;
    visibility: hidden;
}

.toggle-label {
    margin-left: 5px;
    position: relative;
    top: 2px;
}

/* Timer indicator */
.timer-running::before {
    content: "";
    width: 8px;
    height: 8px;
    margin-top: -4px;
    background-color: var(--indicator-color-error);
    border-radius: 50%;
    display: inline-block;
    position: absolute;
    animation: pulsate 1s infinite;
}

.timer-running-msg {
    color: var(--indicator-color-error);   
    animation: pulsate 1s infinite;
    font-size: 23px;
    vertical-align: bottom;
}

img.timer-icon {
    height: 2.1vw;
    position: relative;
    top: -0.1vw;
}

@keyframes pulsate {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Blazor */


#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;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9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g0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) 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");
    }