﻿@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

:root {
    --mud-palette-surface: rgba(255,255,255,1);
}

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.3rem;
}

h4 {
    font-size: 1.1rem;
}

a, .btn-link {
    color: #0366d6;
}

sidebar .os-padding {
    margin-bottom: 1.5rem;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.content {
    padding-top: 1.1rem;
}

.content-wrapper {
    padding-bottom: 1rem;
}

.valid.modified:not([type=checkbox], [type=radio]) {
    border: 1px solid #26b050;
}

label.invalid {
    color: #dc3545 !important;
    border: none !important;
}

.invalid {
    border-color: #dc3545 !important;
    border-width: 1px;
}

[aria-invalid] {
    border-color: #dc3545 !important;
}

.form-control.invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 .25rem rgba(220,53,69,.25);
}

.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;
    }

.pointer {
    cursor: pointer;
}

.not-allowed {
    cursor: not-allowed;
}

.form-control.hover-input {
    background: none;
    border: 1px solid transparent;
}

    .form-control.hover-input:hover {
        background: #fff;
        border-color: #ced4da;
    }

    .form-control.hover-input:focus {
        background: #fff;
        border-color: #ced4da;
    }

    .form-control.hover-input:hover:disabled {
        background-color: #e9ecef;
    }

.text-light .form-control.hover-input {
    color: #f8f9fa;
}

    .text-light .form-control.hover-input:hover {
        color: #495057;
    }

.material-button-group button, .material-button-group a {
    background-color: rgba(0,0,0,0);
    border: rgba(255,255,255,0.3) solid 0.5px;
}

    .material-button-group button:hover, .material-button-group a:hover {
        background-color: rgba(0,0,0,0.1);
    }

.text-light .material-button-group button:hover, .text-light .material-button-group a:hover {
    background-color: rgba(255,255,255,0.1);
}

.text-light .dropdown-toggle::after {
    border-top: .3em solid #f8f9fa;
}

.init-loading {
    animation-name: loading;
    animation-duration: 3000ms;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

.select-file {
    top: 0.3rem;
    left: 0.3rem;
    position: absolute;
}

@keyframes loading {
    0% {
        transform: scale(.3);
    }

    20% {
        transform: scale(1.5);
    }

    30% {
        transform: scale(1);
    }

    60% {
        transform: scale(1);
    }

    90% {
        transform: scale(0) rotate(1000deg);
    }

    100% {
        transform: scale(0);
    }
}

.map-icon {
    height: 40px;
    width: 40px;
    object-fit: contain;
    /* wonky placement as described in the Leaflet documentation*/
    margin-left: -19px;
    margin-top: -41px;
}

    .map-icon.group {
        margin-top: -22px;
    }

.blazored-toast {
    top: 50px;
}

    .blazored-toast.blazored-toast-info.info-toast {
        background-color: white;
        color: #34a9ad;
        border: #34a9ad 1px solid;
    }

.blazored-toast-container {
    z-index: 500 !important;
}

.user-select {
    min-width: 14rem;
    max-width: 30rem;
}

.os-scrollbar.os-scrollbar-horizontal {
    bottom: 12px;
    height: 15px !important;
}

.card-body:empty {
    padding: 0px;
}

.infinite {
    animation-iteration-count: infinite !important;
}

.card-header.sticky-header {
    position: sticky;
    top: 50px;
    z-index: 4;
    background: white;
    margin-bottom: 45px;
}

.card-body.sticky-body {
    margin-top: -45px !important;
}

    .card-body.sticky-body .card.toggle .card-header.sticky-header {
        top: 105px;
        z-index: 3;
    }

    .card-body.sticky-body .card.toggle .card-body.sticky .card.toggle .card-header.sticky-header {
        top: 160px;
        z-index: 2;
    }

.bold-hover:hover {
    font-weight: bold;
}

.dropzone {
    border: 3px dashed steelblue;
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #eee;
    box-shadow: inset 0 0 8px rgba(0,0,0,0.2);
    color: #444;
    font-size: 1.5rem;
    cursor: pointer;
    position: relative;
    width: 324px;
}

    .dropzone:hover:not(.disabled) {
        background-color: #f3f3f3;
        color: #333;
    }

    .dropzone.disabled:hover {
        cursor: not-allowed;
        background-color: #eee;
        color: #444;
    }

    .dropzone input[type=file] {
        position: absolute;
        width: 100%;
        height: 100%;
        opacity: 0;
        cursor: pointer;
    }

        .dropzone input[type=file][disabled] {
            cursor: not-allowed;
        }

.dropzone-drag {
    background-color: palegreen;
}

body:not(.rz-default-scrollbars)::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,.2) !important;
}

.border-orig {
    border: 1px solid #dee2e6 !important;
}

.main-footer div {
    display: block !important;
}

.brand-link {
    background-color: #2E3E4E !important;
    color: white;
}

.main-sidebar {
    background-color: #2E3E4E !important;
}

#suggestion-box {
    border: 1px solid black;
    border-radius: 5px;
    background-color: white;
}

    #suggestion-box p:hover {
        background-color: #eeebeb;
        border-radius: 5px;
    }

.custom-wizard .mud-card-header {
    display: none;
}

.custom-wizard .mud-card-actions {
    display: none;
}

.navigation-button {
    background: #f9f6f6;
}

    .navigation-button:hover {
        background: #eeebeb;
    }

.sticky-element {
    position: sticky;
    left: 0;
    background-color: white;
}

.radio-element {
    width: 12.5%;
    min-width: 87px;
}

.table-striped tbody tr:nth-of-type(odd) td.sticky-element:nth-of-type(n+1) {
    background-color: #f3f3f3;
}

tr.border td,
tr.border + tr td {
    border: none;
}

tr.focus > td.sticky-element {
    box-shadow: 0 -0.02rem 0.2rem 0.1rem #479cc8;
}

.loading-index {
    width: 9%;
    margin-bottom: 30px;
}

mark {
    padding: .2em 0 !important;
    background-color: #fdf2b7 !important;
}

.click:active {
    animation-name: blinking;
    animation-duration: 300ms;
    animation-iteration-count: 1;
    animation-timing-function: linear;
}

.file-page .card.thumbs {
    width: 150px !important;
}


/*#region ComboBox*/
.input-group.combo-box {
    border: 1px solid rgba(0,0,0,0);
    border-radius: 5px;
}

    .input-group.combo-box:focus-within {
        box-shadow: 0 0 0 0.2rem rgb(0 123 255 / 25%);
        border-radius: .25rem;
        border: 1px solid #80bdff;
    }

@media (max-width: 500px) {
    .combo-box-list {
        max-width: 90vw;
    }
}

@media (max-width:900px) {
    .combo-box-list li {
        height: 1.6rem !important;
        font-size: 1.2rem;
    }
}

.combo-box-list {
    z-index: 6;
    background-color: white;
    border: solid 1px #495057;
    position: absolute;
    max-width: 450px;
    min-width: 100%;
    top: calc(2.25rem + 2px);
    color: #495057;
    box-shadow: 0 10px 16px 0 rgb(0 0 0 / 20%), 0 6px 20px 0 rgb(0 0 0 / 19%);
}

    .combo-box-list > ul {
        list-style-type: none;
        height: 200px;
        overflow-y: scroll;
        padding-left: 1rem;
        margin-bottom: 0rem;
        color: #495057;
    }

    .combo-box-list li {
        white-space: nowrap;
        height: 1rem;
    }

        .combo-box-list li:hover {
            background-color: rgba(0,123,255,0.6);
            color: #222;
            cursor: pointer;
        }

        .combo-box-list li.selected,
        .combo-box-list li.selected.disabled,
        .combo-box-list li.selected.disabled:hover {
            background-color: rgba(0,123,255,0.4);
            color: #333;
        }

        .combo-box-list li.disabled,
        .combo-box-list li.disabled:hover {
            color: initial;
            background-color: initial;
            font-style: italic;
            opacity: 0.4;
            cursor: not-allowed;
        }

.combo-box-input {
    padding-right: 0;
    border-right: none;
}

    .combo-box-input.invalid {
        box-shadow: none !important;
        border-right: none !important;
        border: 1px solid #ced4da !important;
    }

    .combo-box-input:focus {
        box-shadow: none;
        border-right: none;
        border: 1px solid #ced4da;
    }

.input-group-text.dropdown {
    border-left: none;
    background: white;
}

.input-group-text.clear {
    border-left: none;
    border-right: none;
    background: white;
    padding-left: 5px;
    padding-right: 3px;
    font-size: x-small;
    color: #a9a9a9;
}

    .input-group-text.clear:hover {
        color: initial;
    }

    .input-group-text.clear:disabled {
        color: #a9a9a9 !important;
    }

.input-group-text.disabled {
    background-color: #e9ecef;
    color: #a9a9a9 !important;
}

/*#endregion ComboBox*/

@media (max-width:575px) {
    .card-body {
        padding-left: 10px;
        padding-right: 10px;
    }

    .radio-element {
        width: 25%;
        font-size: .95em;
    }

    .loading-index {
        width: 28%;
    }

    .large-on-phone {
        font-size: x-large;
    }

    .col, .col-1, .col-10, .col-11, .col-12, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-auto, .col-lg, .col-lg-1, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-auto, .col-md, .col-md-1, .col-md-10, .col-md-11, .col-md-12, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-auto, .col-sm, .col-sm-1, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-auto, .col-xl, .col-xl-1, .col-xl-10, .col-xl-11, .col-xl-12, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-auto {
        padding-left: 2px;
        padding-right: 2px;
    }

    .container, .container-sm {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (min-width:575px) and (max-width:992px) {
    .loading-index {
        width: 20%
    }
}

@media (min-width:992px) and (max-width:1410px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .loading-index {
        width: 14%
    }
}

#global-project-btn {
    width: 30vw;
    max-width: 400px;
    font-size: large;
}

@media (max-width:400px) {
    #global-project-btn {
        display: none;
    }
}

@keyframes blinking {
    from {
        color: inherit;
    }

    50% {
        color: transparent;
    }

    to {
        color: inherit;
    }
}

span.right.list-tooltip {
    bottom: -33px;
    margin-left: -60px;
}

.clear-sort {
    width: 16px;
    height: 16px;
    background-repeat: no-repeat;
    background-size: 16px;
    background-image: url(../images/Sort.svg);
}

th:hover .clear-sort {
    background-image: url(../images/ClearSort.svg);
}

.main-footer div {
    padding-bottom: 8px;
}

tr.expanded {
    background-color: #f4f6f9 !important;
    border-color: #dee4ed !important;
}

.card table {
    border-top: hidden;
}

input[type="checkbox"][disabled]:checked {
    filter: invert(100%) hue-rotate(18deg) brightness(5);
}

input[type="checkbox"].catalyst-modified {
    box-shadow: 0 0 0 .1rem #ffa50057;
}

.catalyst-modified {
    border: solid 1px orange !important;
    animation-name: catalyst-modified;
    animation-duration: 1000ms;
    animation-iteration-count: 1;
    animation-timing-function: linear;
}

    .catalyst-modified:focus {
        box-shadow: 0 0 0 .2rem #ffa50057 !important;
    }

@keyframes catalyst-modified {
    from {
        box-shadow: none;
    }

    25% {
        box-shadow: 0 0 0 .5rem #ffa50057;
    }

    50% {
        box-shadow: none;
    }

    75% {
        box-shadow: 0 0 0 .5rem #ffa50057;
    }

    to {
        box-shadow: none;
    }
}

input[type="checkbox"][disabled]:checked {
    filter: invert(100%) hue-rotate(18deg) brightness(5);
}

.mud-color-dialog {
    width: 378px;
}
