@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #0366d6;
}

.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;
}

.main {
    flex: 1;
}

    .main .top-row {
        background-color: #2e3004;
        /*border-bottom: 1px solid #d6d5d5;*/
        justify-content: flex-end;
        z-index: 2;
    }

        .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, #2e3004 0%, #2e3004 70%);
}

    .sidebar .top-row {
        background-color: rgb(46, 48, 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: #babf11;
                color: white;
            }

            .sidebar .nav-item a:hover {
                background-color: #979b26;
                color: white;
            }

.content {
    padding-top: 1.1rem;
}

.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 {
    display: none;
    padding: .75rem 1.25rem;
    position: fixed;
    width: 30vw;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999999;
    color: #856404;
    background-color: #c1f104;
}

    #blazor-error-ui .reload {
        padding: .5rem;
        color: #212529;
        background-color: #ffc107;
        text-decoration: none;
    }

    #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;
    }

    .main > div {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }

    .navbar-toggler {
        display: none;
    }

    .sidebar .collapse {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }
}

/* Login page start */
.login-container {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    padding-top: 30px;
    padding-bottom: 40px;
    /* background-color: #f5f5f5; */
    /* height:100%; */
    width: 100%;
    align-content: center;
}

.login-title {
    align-self: center;
    padding-bottom: 20px;
}

.login-subtitle {
    align-self: center;
    padding-bottom: 114px;
}

.login-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.form-signin {
    width: 100%;
    max-width: 330px;
    padding: 15px;
    margin: auto;
}

    .form-signin .checkbox {
        font-weight: 400;
    }

    .form-signin .form-control {
        position: relative;
        box-sizing: border-box;
        height: auto;
        padding: 10px;
        font-size: 16px;
    }

        .form-signin .form-control:focus {
            z-index: 2;
        }

    .form-signin input {
        margin-bottom: 5px;
        border-bottom-right-radius: 0;
        border-bottom-left-radius: 0;
    }

        .form-signin input[type="password"] {
            border-top-left-radius: 0;
            border-top-right-radius: 0;
        }
/* Login page End */

/* The ribbons Start */

.corner-ribbon {
    width: 200px;
    background: #e43;
    position: absolute;
    top: 25px;
    left: -50px;
    z-index: 100;
    text-align: center;
    line-height: 50px;
    letter-spacing: 1px;
    color: #f0f0f0;
    transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
}

    /* Custom styles */

    .corner-ribbon.sticky {
        position: fixed;
    }

    .corner-ribbon.shadow {
        box-shadow: 0 0 3px rgba(0,0,0,.3);
    }

    /* Different positions */
    .corner-ribbon.top-left {
        top: 25px;
        left: -50px;
        transform: rotate(-45deg);
        -webkit-transform: rotate(-45deg);
    }

    .corner-ribbon.top-right {
        top: 25px;
        right: -50px;
        left: auto;
        transform: rotate(45deg);
        -webkit-transform: rotate(45deg);
    }

    .corner-ribbon.bottom-left {
        top: auto;
        bottom: 25px;
        left: -50px;
        transform: rotate(45deg);
        -webkit-transform: rotate(45deg);
    }

    .corner-ribbon.bottom-right {
        top: auto;
        right: -50px;
        bottom: 25px;
        left: auto;
        transform: rotate(-45deg);
        -webkit-transform: rotate(-45deg);
    }


    /* Colors */
    .corner-ribbon.white {
        background: #f0f0f0;
        color: #555;
    }

    .corner-ribbon.black {
        background: #333;
    }

    .corner-ribbon.grey {
        background: #999;
    }

    .corner-ribbon.blue {
        background: #39d;
    }

    .corner-ribbon.green {
        background: #2c7;
    }

    .corner-ribbon.turquoise {
        background: #1b9;
    }

    .corner-ribbon.purple {
        background: #95b;
    }

    .corner-ribbon.red {
        background: #e43;
    }

    .corner-ribbon.orange {
        background: #e82;
    }

    .corner-ribbon.yellow {
        background: #ec0;
    }
/* The ribbons End */

/*******************
 Footer
*******************/

.footer {
    bottom: 0;
    z-index: 60;
    font-size: smaller;
    color: #fff;
    left: 0px;
    padding: 2px 15px;
    position: absolute;
    right: 0;
    border-top: 1px solid #3f4205;
    text-align: center;
    background: #2e3004;
}

/* Kustom notification Start */
/* .kustom-notification-container {
	position: absolute;
	top: 15px;
	right: 315px;
} */
/* Kustom notification End */
.blazored-toast-container {
    z-index: 51 !important;
}

.blazored-toast-body .blazored-toast-header h5 {
    text-transform: none !important;
    font-size: 18px !important;
}


@media(max-width:575px) {
    .xs-remove {
        display: none;
    }
}

.dtree li {
    list-style-type: none;
}

.card {
    margin-top: 15px;
}

.h-60 {
    height: 60% !important;
}
/* Hide attempting to reconnect modal  */
.components-reconnect-show, .components-reconnect-failed, .components-reconnect-rejected {
    display: none !important;
}

#components-reconnect-modal {
    display: none !important;
}

#custom-star-rating #clear-rating {
    color: #ca3f07 !important;
}

#custom-star-rating:not(.ui-disabled) i:hover {
    color: #686d04 !important;
}

#custom-star-rating .rating.not-filled, #custom-star-rating.ui-disabled .clear-rating {
    opacity: 0.4 !important;
}

#custom-star-rating .ui-disabled {
    pointer-events: none !important;
}

.text-red {
    color: rgb(187, 20, 20) !important;
}

/* Add a hover effect (blue shadow) */
.img.img-thumbnail {
    width: auto;
    height: 200px;
}

.img.img-small-thumbnail {
    width: auto;
    height: 50px;
}

.custom-images-row img:hover {
    box-shadow: 0 0 2px 1px rgba(0, 140, 186, 0.5);
}

.custom-images-row * {
    box-sizing: border-box;
}

.custom-images-row .column {
    float: left;
    width: 33.33%;
    padding: 5px;
}
/* Clearfix (clear floats) */
.custom-images-row::after {
    content: "";
    clear: both;
    display: table;
}
/* Responsive layout - makes the three columns stack on top of each other instead of next to each other */
@media screen and (max-width: 500px) {
    .custom-images-row .column {
        width: 100%;
    }
}

.custom-images-row label:before {
    position: absolute;
    z-index: 100;
}

.blazored-toast-container {
    z-index: 200000 !important;
}

/* Confirm Window CSS */
.k-dialog-wrapper {
    z-index: 10002 !important;
}

.custom-window-container {
    z-index: 10010 !important;
}

.d-contents {
    display: contents !important;
}

.custom-link {
    color: #1f1f1f !important;
    text-decoration: underline !important;
    cursor: pointer !important;
}

.traceable-todo {
    background: #b19cd9ba !important;
}

.NotCompletedTodo {
    background: #FF9900 !important;
    font-weight: 500;
}

.dot-class {
    cursor: pointer;
    white-space: nowrap;
    width: 30%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.UnknownMaterialItem {
    color: red !important;
    font-weight: bold;
    opacity: 0.7;
}

.k-switch-on:hover .k-switch-track, .k-switch-on.k-state-hover .k-switch-track {
    color: #ddff00;
    background-color: #748313;
}

.k-switch-off .k-switch-track {
    color: #fff;
    background-color: #b30303;
}

.k-switch-off:hover .k-switch-track, .k-switch-off.k-state-hover .k-switch-track {
    color: #201f1f;
    background-color: #e70505;
}

.blink-text {
    animation: blinker-text 1s step-start infinite;
}

@keyframes blinker-text {
    50% {
        opacity: 0;
    }
}

.textarea-form-control {
    padding: .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    -background-clip: padding-box;
    -webkit-background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

.input-group>.custom-file, .input-group>.custom-select, .input-group>.w-100, .input-group>.form-control-plaintext {
    position: relative;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    width: 1% !important;
    min-width: 0;
    margin-bottom: 0;
}

.btn-group-lg>.btn, .btn-lg {
    padding: 8px !important;
}
