﻿@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Roboto', sans-serif;
    background-color: #FAFAFA;
    overflow-x: hidden;
}

main {
    margin-top: 70px;
}

a, .btn-link {
    color: #0366d6;
}

.blazored-toast-container {
    z-index: 1060 !important;
}

.container-fluid {
    padding: 0;
}

.icon-link {
    color: grey;
    font-size: 1.3rem;
    background-color: transparent;
    border: none;
}

    .icon-link:hover {
        color: darkgray;
    }

.navbar {
    height: 70px;
    z-index: 2; /* stay on top */
}
/* PAGINATOR */
.paginator {
    background-color: white;
    padding: 7px 40px;
}

.paginator-text {
    font-size: .8rem;
    color: darkgrey;
}

.paginator-button {
    border: none;
    background-color: transparent;
    color: lightgrey;
}
/* BUTTONS */
.btn-icon {
    position: relative;
    cursor: pointer;
    border-radius: 50px;
    background-color: transparent;
    border: 1px solid lightgrey;
    color: gray;
    font-size: 11px;
    width: 25px;
    height: 25px;
    top: -5px;
    padding: 0;
}

.btn-icon__grey {
    color: lightgrey;
    border: 1px solid lightgrey;
}

    .btn-icon__grey:hover {
        color: darkgray;
        border: 1px solid darkgrey;
    }

.btn-icon__green {
    color: green;
    border: solid 1px green;
}

    .btn-icon__green:hover {
        color: darkgreen;
        border: solid 1px darkgreen;
    }

.btn-icon__red {
    color: red;
    border: solid 1px red;
}

    .btn-icon__red:hover {
        color: darkred;
        border: solid 1px darkred;
    }

.info-container {
    position: relative;
    display: inline;
}

.info-container__btn {
    position: relative;
    cursor: pointer;
    border-radius: 50px;
    background-color: transparent;
    border: 1px solid gray;
    color: gray;
    font-size: 8px;
    width: 14px;
    top: -5px;
    padding: 0;
}

.info-container__pop-up {
    z-index: 3; /* keep on top */
    position: absolute;
    left: 20px;
    background-color: #212529;
    border: 1px solid black;
    border-radius: 5px;
    min-height: 50px;
    min-width: 200px;
    max-width: 400px;
    padding: 15px;
    font-size: 12px;
    box-shadow: 1px 2px 3px rgba(0,0,0,.5);
    color: white;
}

.info-container__pop-up__top {
    top: 0;
}

.info-container__pop-up__bottom {
    bottom: 0;
}

.info-container__close-btn {
    color: white;
    height: 20px;
    position: absolute;
    top: 0;
    right: 5px;
    font-size: 15px;
    border: none;
    background: none;
}


.btn-primary {
    color: #fff;
    background-color: #3F51B5;
    border-color: #1861ac;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu {
    transform: translateY(-10px);
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}
/* tables*/
.table {
    margin-bottom: 0;
}

    .table > tbody > tr > td {
        vertical-align: middle;
        padding: 5px;
    }

    .table > tbody > tr > th {
        vertical-align: middle;
        padding: 5px;
    }

.clickable-row:hover {
    background-color: #e6e6e6;
    cursor: pointer;
}

.table > tbody > tr > td:first-child {
    padding-left: 20px;
}

.table > thead > tr > th {
    padding-left: 5px;
}

    .table > thead > tr > th:first-child {
        padding-left: 20px;
    }
/* loading spinner */
.loader {
    border: 16px solid #f3f3f3; /* Light grey */
    border-top: 16px solid #343A40; /* dark grey */
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
}

.loader-sm {
    border: 8px solid #f3f3f3; /* Light grey */
    border-top: 8px solid #343A40; /* dark grey */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#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;
}

#new-version-ui {
    background: lightgreen;
    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;
}



/* SIDE NAV */
/* The sidebar menu */
.sidebar {
    height: 100%; /* 100% Full-height */
    width: 0; /* 0 width - change this with JavaScript */
    position: fixed; /* Stay in place */
    z-index: 1; /* Stay on top */
    top: 0;
    right: 0;
    background-color: #212529; /* Black*/
    overflow-x: hidden; /* Disable horizontal scroll */
    padding-top: 80px; /* Place content 80px from the top */
    transition: 0.5s; /* 0.5 second transition effect to slide in the sidebar */
    border-left: solid 1px grey;
}

    /* The sidebar links */
    .sidebar a, .sidebar button {
        padding: 8px 8px 8px 32px;
        text-decoration: none;
        font-size: 25px;
        color: #818181;
        display: block;
        transition: 0.3s;
        border: none;
        background: none;
        height: 50px;
        white-space: nowrap;
        overflow: hidden;
    }

    /* When you mouse over the navigation links, change their color */
    .sidebar a:hover, .sidebar button:hover {
        color: #f1f1f1;
        text-decoration: none;
    }

    /* Position and style the close button (top right corner) */
    .sidebar .closebtn {
        position: absolute;
        top: 60px;
        right: 25px;
        font-size: 36px;
        margin-left: 50px;
    }

/* Style page content - use this if you want to push the page content to the right when you open the side navigation */
#main-content {
    transition: margin-right .5s; /* If you want a transition effect */
}
/*********************/
/* ADMIN PAGE STYLES */
/*********************/

/* ADMIN SIDE NAV */
.admin-sidebar {
    height: 100%; /* 100% Full-height */
    width: 300px; /* 0 width - change this with JavaScript */
    position: fixed; /* Stay in place */
    z-index: 1; /* Stay on top, but under navbar */
    left: 0;
    bottom: 0;
    background-color: #d8d8d8; /* Black*/
    overflow-x: hidden; /* Disable horizontal scroll */
    padding-top: 60px; /* Place content 60px from the top */
    transition: 0.5s; /* 0.5 second transition effect to slide in the sidebar */
    border-right: solid 1px grey;
    padding-top: 80px;
}

.admin-sidebar__menu {
    list-style: none;
    padding-left: 5px;
    float: left;
    width: 100%;
}

.admin-sidebar__menu-link {
    padding-left: 10px;
    padding-top: 10px;
    text-decoration: none;
    font-size: 25px;
    color: #0f0f0f;
    display: block;
    transition: 0.3s;
    white-space: nowrap;
    overflow: hidden;
}

    .admin-sidebar__menu-link:hover {
        color: #808080;
        text-decoration: none;
    }

    .admin-sidebar__menu-link > i {
        padding-right: 10px;
    }


.admin-sidebar__close-btn {
    position: sticky;
    top: 50%;
    transform: translateY(-50%);
    height: 75px;
    float: right;
    background-color: #b4b3b3;
    border: none;
    width: 25px;
    padding: 0;
    font-size: 15px;
    border-radius: 6px 0px 0px 6px;
}

#close_btn_icon {
    width: 100%;
    display: block;
    transition: transform .5s;
}

.admin-main-content {
    margin-left: 300px;
    transition: margin-left .5s;
    padding: 20px;
}

/* TYPEAHEAD STYLES*/
.blazored-typeahead {
}

.blazored-typeahead__controls {
    position: relative;
    cursor: text;
    display: flex;
}

.blazored-typeahead__input {
    width: 100%;
    border: 1px solid #bfbfbf;
    padding: .5rem;
}

.blazored-typeahead__input-hidden {
    display: none;
}

.invalid {
    border-color: red !important;
}


.blazored-typeahead__input-mask-wrapper {
    display: flex;
    width: 100%;
}

.blazored-typeahead__input-mask {
    flex: 1;
    border-radius: 5px 0 0 5px;
    border-top: 1px solid #bfbfbf;
    border-bottom: 1px solid #bfbfbf;
    padding: .5rem;
    border-left: 1px solid #bfbfbf;
}

.blazored-typeahead__clear {
    width: 40px;
    display: flex;
    border-top: 1px solid #bfbfbf;
    padding: .5rem;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #bfbfbf;
    border-right: 1px solid #bfbfbf;
    cursor: pointer;
}

.blazored-typeahead__input__icon {
    width: 40px;
    display: flex;
    border-radius: 0 5px 5px 0;
    border-top: 1px solid #bfbfbf;
    border-left: 0;
    border-right: 1px solid #bfbfbf;
    border-bottom: 1px solid #bfbfbf;
    padding: .5rem;
    cursor: pointer;
    background: none;
}

    .blazored-typeahead__input__icon:hover {
        background-color: #f5f5f5;
    }


.blazored-typeahead__results {
    box-shadow: 0 5px 10px rgba(0,0,0,.2);
    padding-top: .5rem;
    min-height: 2rem;
    max-height: 30rem;
    overflow-y: auto;
}

.blazored-typeahead__result,
.blazored-typeahead__notfound,
.blazored-typeahead__results-footer {
    padding: .5rem;
}

    .blazored-typeahead__result-selected, .blazored-typeahead__result:hover, .blazored-typeahead__result:focus {
        outline: -webkit-focus-ring-color auto 1px;
        background-color: #f5f5f5;
        cursor: pointer;
    }

.blazored-typeahead__loader {
    width: 24px;
    height: 24px;
    background-color: #333;
    border-radius: 100%;
    -webkit-animation: sk-scaleout 1.0s infinite ease-in-out;
    animation: sk-scaleout 1.0s infinite ease-in-out;
}

@-webkit-keyframes sk-scaleout {
    0% {
        -webkit-transform: scale(0)
    }

    100% {
        -webkit-transform: scale(1.0);
        opacity: 0;
    }
}

@keyframes sk-scaleout {
    0% {
        -webkit-transform: scale(0);
        transform: scale(0);
    }

    100% {
        -webkit-transform: scale(1.0);
        transform: scale(1.0);
        opacity: 0;
    }
}

.checked {
    color: orange;
}

.search-label {
    justify-content: left;
    font-size: 70%;
}

.modal-dialog { max-height: 100%; }
.modal-content { max-height: 95%; }
.modal-body {max-height: 60%; }


/* DOWNLOADING ICON STUFF */
#download-indicator {
    display: none;
    min-width: 450px;
    position: fixed;
    bottom: 0;
    left: 0;
    background-color: #343a40;
    color: white;
    margin: 20px;
    padding: 5px;
}
#download-indicator-close-btn {
    padding-right: 5px;
    cursor: pointer;
}
#download-indicator-close-btn:hover {
    color: lightgray;
}

.downloading-item {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
.downloading-item > span {
    position: relative;
}
.downloading-loader {
    position: relative;
    display: flex;
    border-top: 2px solid lightgrey; /* dark grey */
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 2s linear infinite;
    margin: 0;
}
}
/* MEDIA QUERIES*/
@media (max-width: 780px) {
    .desktop-nav {
        display: none;
    }
}

@media (min-width: 768px) {
    .modal-dialog {
        max-width: 80%;
    }
}
