@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    height: 100%;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #ff6d41;
    border-color: #f2673d;
}

.btn i {
    margin-right: 5px;
}

app {
    /*display: flex;
	flex-direction: row;*/
    overflow: hidden;
    height: 100%;
    margin: 0px;
    font-size: 0.9rem;
}

.app-content {
    overflow: hidden;
    display: flex;
    flex-direction: row;
    height: 100%;
}

@media (max-width: 767px) {
    .app-content {
        flex-direction: column;
    }
}

.hide {
    visibility: hidden;
}

.clickable {
    cursor: pointer;
}

    .clickable:hover {
        color: white;
        background-color: #5a71ff;
    }

.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;
}

@media (min-width: 768px) {

    .navbar-toggler {
        display: none;
    }
}

.grid-header {
    background-color: white;
}

/*Grid Fixes*/
table.grid-table .grid-header {
    position: unset !important;
}

table.grid-table .grid-filter {
    position: unset !important;
}

.mdc-menu {
    z-index: 1001 !important;
}

.background {
    position: fixed;
    top: 0;
    height: 100%;
    width: 100%;
    background: url(../images/PCBackground.png) no-repeat center center fixed;
    background-size: cover;
    z-index: -1;
}

.background-overlay {
    background-color: rgba(44, 62, 80, 0.05);
    background-image: url("../images/pattern.png");
    background-repeat: repeat;
    height: 100%;
    left: 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: -1;
}

/*LOADING SYMBOL*/
.lds-ellipsis {
    width: 80px;
    height: 80px;
    position: relative;
    width: 80px;
    height: 80px;
    left: 50%;
    top: 46%;
    margin-left: -1.6em;
    display: -webkit-flexbox;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
    justify-content: center;
}

    .lds-ellipsis div {
        position: absolute;
        top: 33px;
        width: 13px;
        height: 13px;
        border-radius: 50%;
        background: #fff;
        animation-timing-function: cubic-bezier(0, 1, 1, 0);
    }

        .lds-ellipsis div:nth-child(1) {
            left: 8px;
            animation: lds-ellipsis1 0.6s infinite;
        }

        .lds-ellipsis div:nth-child(2) {
            left: 8px;
            animation: lds-ellipsis2 0.6s infinite;
        }

        .lds-ellipsis div:nth-child(3) {
            left: 32px;
            animation: lds-ellipsis2 0.6s infinite;
        }

        .lds-ellipsis div:nth-child(4) {
            left: 56px;
            animation: lds-ellipsis3 0.6s infinite;
        }

@keyframes lds-ellipsis1 {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes lds-ellipsis3 {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(0);
    }
}

@keyframes lds-ellipsis2 {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(24px, 0);
    }
}

.rz-fileupload-buttonbar {
    padding: 0 !important;
}

.rz-dialog-content {
    flex-grow: 1 !important;
}

@media (max-width: 768px) {
    .rz-dialog:not(.rz-confirmdialog) {
        height: 100% !important;
    }
}

/* ===== Scrollbar CSS ===== */
/* Firefox */
* {
    scrollbar-width: auto !important;
    scrollbar-color: #5076e7 #ffffff !important;
}

    /* Chrome, Edge, and Safari */
    *::-webkit-scrollbar {
        width: 11px !important;
        height: 11px !important;
    }

    *::-webkit-scrollbar-track {
        background: #ffffff !important;
    }

    *::-webkit-scrollbar-thumb {
        background-color: #5076e7 !important;
        border-radius: 10px !important;
        border: 3px solid #ffffff !important;
    }

/*Mat-blazor overrides*/
.mat-checkbox label {
    margin-bottom: unset;
}

/*Overrided thead height on radzen dropdowns (can't put it in component because the drop down html gets generated outside of component)*/
.rz-dropdown-items-wrapper {
    max-height: calc(60vh - 200px) !important;
}

.main {
    display: flex;
    flex: 1;
    background-color: #f3f3f3;
    flex-direction: column;
    height: 100%;
    overflow-x: hidden;
}

@media (max-width: 768px) {
    .main {
        position: relative;
        overflow-x: initial;
    }
}

.content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* The container - needed to position the dropdown content */
.dropdown {
    position: relative;
    display: inline-block;
}

    .dropdown:first-child {
        margin-bottom: 5px;
        margin-top: 5px;
    }

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
    border-radius: 5px;
    display: none;
    position: absolute;
    background-color: #f1f1f1;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 100;
    left: -25px;
    margin-top: 5px;
    /*top: 40px*/
}

    /* Links inside the dropdown */
    .dropdown-content a {
        color: black;
        padding: 12px 16px;
        text-decoration: none;
        display: block;
    }

        /* Change color of dropdown links on hover */
        .dropdown-content a:hover {
            background-color: #ddd;
        }

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
    display: block;
}

#session-name {
    color: white;
    margin-right: 10px;
    margin-left: 10px;
    vertical-align: middle;
}

#session-changer i {
    line-height: 1.4;
}

.main-top-row {
    min-height: 3.5rem;
    display: flex;
    align-items: center;
    background-color: #373737;
    justify-content: space-between;
    border-bottom: 1px solid black;
    z-index: 1;
}

    .main-top-row > a {
        margin-left: 1.5rem;
    }

.pointer {
}

    .pointer:hover {
        cursor: pointer;
    }

.not-allowed{

}
    .not-allowed:hover{
        cursor:not-allowed;
    }

    .min-h-50{
        min-height:50%;
    }

    .min-vh-50{
        min-height:50vh;
    }

/* Default Bootstrap 4 Switch */
.custom-switch {
    padding-left: 2.5rem;
}

/* Small Toggle */
.custom-switch-sm .custom-control-label::before {
    width: 30px;
    height: 16px;
    border-radius: 8px;
}

.custom-switch-sm .custom-control-label::after {
    width: 12px;
    height: 12px;
    top: 2px;
}

.custom-switch-sm .custom-control-input:checked ~ .custom-control-label::after {
    transform: translateX(14px);
}

/* Large Toggle */
.custom-switch-lg .custom-control-label::before {
    width: 60px;
    height: 30px;
    border-radius: 15px;
}

.custom-switch-lg .custom-control-label::after {
    width: 24px;
    height: 24px;
    top: 3px;
}

.custom-switch-lg .custom-control-input:checked ~ .custom-control-label::after {
    transform: translateX(30px);
}

.custom-switch-xl .custom-control-label::before {
    width: 70px;
    height: 34px;
    border-radius: 17px;
}

.custom-switch-xl .custom-control-label::after {
    width: 26px;
    height: 26px;
    top: 4px;
}

.custom-switch-xl .custom-control-input:checked ~ .custom-control-label::after {
    transform: translateX(36px);
}

/* Drag-and-drop highlight for file upload drop zone */
.dropzone.dragover {
    border-color: #5076e7 !important;
    background: #eaf1ff !important;
    transition: background 0.2s, border-color 0.2s;
}

.file-input-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}