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

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

*:focus {
    outline: none;
}

.speech-bubble {
    position: relative;
    background: white;
    border-radius: .4em;
}

    .speech-bubble:after {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        width: 0;
        height: 0;
        border: 10px solid transparent;
        border-right-color: white;
        border-left: 0;
        margin-top: -10px;
        margin-left: -10px;
    }

.XLBox {
    height: 2.1875rem;
    line-height: 1.75rem;
    color: #212529;
    font-size: 0.875rem;
    box-sizing: border-box;
    border: 1px solid #dadfe2;
    box-shadow: inset 0 4px 3px 0 rgba(0, 0, 0, 0.03);
    background-color: #ffffff;
    padding: 0.1875rem 0.625rem;
    overflow: visible;
    outline: none;
}

.XLBox.IsDirty {
    border: 2px solid black;
}

.ValidationError {
    border-color: red;
    box-shadow: red 5px 5px inset;
}

* .InputMessage {
    position: absolute;
    padding: 1px 10px 1px 1px;
    text-align: center;
    border-radius: 10px;
    font-size: 12px;
    color: white;
    opacity: 1;
    transition: opacity 3s ease-in-out;
}
* .InputMessage.Warning {
    background-color: red !important;
}

* .InputMessage.Info {
    background-color: green !important;
}

* .InputMessage .AnimatedEmoji {
    margin-left: 5px;
    font-size: 14px;
    color: orange;
    animation: blink 1s infinite;
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}


.XLDDL {
    height: 2.1875rem;
    line-height: 1.75rem;
    color: #212529;
    font-size: 0.875rem;
    box-sizing: border-box;
    border: 1px solid #dadfe2;
    box-shadow: inset 0 4px 3px 0 rgba(0, 0, 0, 0.03);
    background-color: #ffffff;
    padding: 0.1875rem 0.625rem;
    overflow: visible;
    outline: none;
}
.XLDDLNB {
    color: #212529;
    font-size: 0.875rem;
    border: 0;
    background-color: transparent;
    padding: 0.1875rem 0.625rem;
    outline: none;
}

select {
    padding: 5px;
    line-height: 1;
    border: 0;
    height: 1.75rem;
    background: url("../Images/ddl-bt.png") no-repeat right;
    -webkit-appearance: none;
}

.DDLElement {
    background-color: transparent;
    cursor: pointer;
}
.DDLElementHover {
    background-color: rgb(240, 220, 220);
    cursor: pointer;
}

.XLButton {
    height: 2.1875rem;
    line-height: 1.75rem;
    color: #212529;
    font-size: 0.875rem;
    font-weight: bold;
    border: 1px solid #dadfe2;
    background-color: White;
    padding: 0.1875rem 0.625rem;
    cursor: pointer;
}
    .XLButton:hover {
        background-color: rgb(240, 220, 220);
    }
    .XLButton:active {
        background-color: rgb(200, 160, 160);
    }

.XLButton.Disabled,
.XLButton.Disabled:hover,
.XLButton.Disabled:active {
    cursor: not-allowed;
    background-color: lightgrey;
    display: inline-block;
}

.XLButtonAction {
    height: 2.1875rem;
    line-height: 1.75rem;
    color: #212529;
    font-size: 0.875rem;
    font-weight: bold;
    border: 1px solid #dadfe2;
    background-color: #f6ecec;
    padding: 0.1875rem 0.625rem;
    cursor: pointer;
}
    .XLButtonAction:hover {
        background-color: #cfa9a9;
    }

.XLMicroButton {
    width: 15px;
    background-color: #f6ecec;
    cursor: pointer;
    text-align: center;
    border-radius: 2px;
    border: 1px solid transparent;
    cursor: pointer;
}
    .XLMicroButton:hover {
        background-color: #cfa9a9;
    }

.XLMenuButton {
    height: 2.1875rem;
    line-height: 1.75rem;
    color: #212529;
    font-size: 0.875rem;
    border: 0;
    background-color: #ffffff;
    padding: 0.1875rem 0.625rem;
    margin-bottom: -1px;
    white-space: nowrap;
    overflow: hidden;
    cursor: pointer;
}
.XLMenuButton:hover {
    background-color: rgb(209, 209, 221);
}

.XLMenuButton.ProjectInactive {
    font-style: italic;
    color: darkgrey;
}

.XLMenuButton.ProjectInactive.Selected {
    color: white;
    background-color: darkgrey;
}

.XLMenuButton.Selected {
    color: white;
    background-color: #212529;
}

.XLEditButton {
    height: 2.1875rem;
    line-height: 1.75rem;
    color: #212529;
    font-size: 0.875rem;
    font-weight: bold;
    border: none;
    background-color: #ffffff;
    padding: 0.1875rem 0.625rem;
    cursor: pointer;
}
    .XLButton:hover {
        background-color: rgb(209, 209, 221);
    }

.XLContent {
    /*    border: 1px solid rgb(220, 200, 200);*/
    position: relative;
    display: inline-block;
    margin: 5px;
    /*    box-sizing: border-box;
    -webkit-box-shadow: inset -1px -1px 3px -3px rgba(55,0,0,0.51);
    box-shadow: inset -1px -1px 3px -3px rgba(55,0,0,0.51);*/
/*    border-right: 1px solid;
    border-bottom: 1px solid;
    border-image: linear-gradient(315deg, rgb(240, 220, 220) 0%, white 51%, rgba(255,255,255,0) 100%) 1;*/
    padding: 20px;
}
    .XLContent:after {
        position: absolute;
        content: '';
        border-left: 1px solid;
        border-image: linear-gradient(180deg, rgb(240, 220, 220), white) 1;
        top: 30px;
        height: 70%;
        left: 18px;
    }
.XLHR {
    border: 0;
    background: linear-gradient(to right, rgb(240, 220, 220), white);
    height: 1px;
}
.XLFooter {
    background-color: lightgray;
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 20px;
    text-align: center;
}
.XLWorkPresetFooter {
    position: absolute;
    bottom: 0;
    left: inherit;
    width: inherit;
    max-width: 70%;
    padding: 20px;
    text-align: left;
}
.XLTable {
    width: 100%;
}
.XLTable th{
    line-height: 25px;
    height: 25px;
}
.XLTable thead{
    line-height: 25px;
    height: 25px;
}
.XLUserInfo {
    background-color: rgba(225, 198, 198, 0.37);
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 20px;
    padding-left: 0px;
    text-align: center;
}

.XLMVButton {
    width: 20px;
    height: 20px;
    font-size: 9px;
    padding: 2px;
    font-size: 8px;
    color: white;
    background-color: #6c9871;
    float: left;
    cursor: pointer;
}
    .XLMVButton:hover {
        background-color: #cfa9a9;
    }
.XLMVButtonWeekend {
    width: 20px;
    height: 20px;
    font-size: 9px;
    padding: 2px;
    font-size: 8px;
    color: white;
    background-color: #bbb5b5;
    float: left;
    cursor: pointer;
}
.XLMVButtonWeekend:hover {
    background-color: #cfa9a9;
}

.XLMVButtonBankHoliday {
    width: 20px;
    height: 20px;
    font-size: 9px;
    padding: 2px;
    font-size: 8px;
    color: white;
    background-color: #b9f1ba;
    float: left;
    cursor: pointer;
}
.XLMVButtonBankHoliday:hover {
    background-color: #cfa9a9;
}

.XLGenerating {
    position: fixed; /* Sit on top of the page content */
    width: 100%; /* Full width (cover the whole page) */
    height: 100%; /* Full height (cover the whole page) */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.2); /* Black background with opacity */
    z-index: 2; /* Specify a stack order in case you're using a different order for other elements */
    cursor: pointer; /* Add a pointer on hover */
}

.XLMobileButton {
    width: 300px;
    height: 40px;
    border: 1px solid #ccc;
    line-height: 40px;
}
.XLMobileButton:hover{
    background-color: aliceblue;
}

a, .btn-link {
    color: #0366d6;
}
.O365EventSelector {
    position: absolute;
    min-width: 800px;
    max-height: 120px;
    transition: max-height 0.5s ease-out;
    background-color: white;
    border: 1px solid lightgray;
    padding: 3px;
    margin: 0px;
    overflow: hidden;
    overflow-y: auto;
    z-index: 10;
}

/*    .O365EventSelector:before {
        content: '';
        width: 100%;
        height: 100%;
        position: absolute;
        left: 0;
        top: 0;
        background: linear-gradient(transparent 140px, grey);
    }*/

    .O365EventSelector.expanded {
        position: absolute;
        min-width: 800px;
        max-height: 500px;
        transition: max-height 1.5s ease-out;
        overflow: hidden;
    }

    .O365EventSelector.expanded:before {
        background: none;
    }


    .O365EventSelector .SelectorHeader {
        user-select: none;
        font-weight: bold;
        text-align: left;
        border-bottom: 1px solid #dadfe2;
    }

    .SelectorHeader .Period, .SelectorHeader .Location, .SelectorHeader .Organizer {
    border-right: 1px dotted black;
}

    .O365EventSelector .Events {
        text-align: left;
    }

        .O365EventSelector .Events .SingleCalendarEvent {
            cursor: pointer;
            display: block;
            float: none;
            clear: left;
            width: 100%;
            border-bottom: 1px #dadfe2 dotted;
            margin-bottom: 2px;
        }

    .O365EventSelector .Events .SingleCalendarEvent:hover {
        background-color: #dadfe2;
        height:100%;
    }

    .O365EventSelector .Events .SingleCalendarEvent:last-child {
        border: none;
        margin: 0px;
    }


    .O365EventSelector .Period {
        position: relative;
        display: block;
        float: left;
        width: 240px;
    }

    .Period .FromTime {
        position: relative;
        float: left;
        width: 100px;
        text-align: left;
    }

    .Period .FromToSeperator {
        position: relative;
        float: left;
        width: 30px;
    }

    .Period .ToTime {
        position: relative;
        float: left;
        width: 80px;
        text-align: left;
    }

    .O365EventSelector .Location {
        position: relative;
        display: block;
        float: left;
        width: 25px;
        text-align: center;
    }

    .O365EventSelector .Organizer {
        position: relative;
        float: left;
        width: 25px;
        text-align: center;
}

    .O365EventSelector .Subject {
        padding-left: 2px;
        position: relative;
        width: auto;
        overflow: hidden;
    }

    .btn-primary {
        color: #fff;
        background-color: #1b6ec2;
        border-color: #1861ac;
    }

app {
    position: relative;
    display: flex;
    flex-direction: column;
}

.top-row {
    height: 3.5rem;
    display: flex;
    align-items: center;
    color: white;
}

.main {
    flex: 1;
}

    .main .top-row {
        background-image: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgb(46, 38, 38) 70%);
        border-bottom: 4px solid rgba(0,0,0,0.4);
        font-size: 1.1rem;
        justify-content: flex-start;
    }

        .main .top-row > a, .main .top-row .btn-link {
            white-space: nowrap;
        }

.main .top-row a:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar {
    background-image: linear-gradient(180deg, dimgrey 0%, darkred 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-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;
            height: 3rem;
            display: flex;
            align-items: center;
            line-height: 3rem;
        }

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

.content {
}

.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) {
    .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 {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .main .top-row {
        position: sticky;
        top: 0;
    }

    .navbar-toggler {
        display: none;
    }

    .sidebar .collapse {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }
}





h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

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

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

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}
