@import url('https://fonts.googleapis.com/css?family=Poppins&display=swap');

html, body {
    font-family: "Poppins", Helvetica, Arial, sans-serif;
}

.navbar-toggler {
    background-color: rgba(255, 255, 255, 0.1);
}

nav.navbar.b-bar-vertical-inline {
    box-shadow: none;
    background-color: rgb(10, 108, 182, 0.25);
}

.b-bar-dropdown-menu-container {
    background-color: rgb(10, 108, 182, 0.25);
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

.cursor-pointer {
    cursor: pointer;
}

@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;
    }
}

.b-bar-vertical-inline.b-bar-dark, .b-bar-vertical-popout.b-bar-dark, .b-bar-vertical-small.b-bar-dark {
    color: var(--b-bar-dark-color, rgba(255, 255, 255, 0.7));
}

.modal.delete-modal {
    z-index: 1075;
}

tr.active,
tr.active a {
    background-color: var(--b-button-primary-background);
    color: white;
}

.b-bar-vertical-inline {
    min-width: var(--b-vertical-bar-width, 280px);
    max-width: var(--b-vertical-bar-width, 280px);
    width: var(--b-vertical-bar-width, 280px);
}

    /*Correct the navigation bar color*/
    .b-bar-vertical-inline.b-bar-dark .b-bar-link.active,
    .b-bar-vertical-inline.b-bar-dark .b-bar-dropdown-menu .b-bar-dropdown-item.active {
        background-color: var(--b-button-primary-active-background);
        color: var(--b-button-primary-active-color, white);
    }

.table td, .table th {
    vertical-align: middle;
}

.dashboard-widget {
    display: inline-flex;
    padding: 0px;
    padding-right: 12px;
    padding-bottom: 12px;
    min-width: 100%;
}

    .dashboard-widget img {
        padding-right: 12px;
        padding-left: 0px;
    }

    .dashboard-widget .dashboard-widget-body .dashboard-title {
        font-size: 1.2em;
        color: #443;
    }

    .dashboard-widget .dashboard-widget-body .dashboard-text {
    }

@media (min-width: 1440px) {
    .dashboard-widget {
        min-width: 49%;
        max-width: 45%;
    }
}

@media (min-width: 2000px) {
    .dashboard-widget {
        min-width: 33%;
        max-width: 33%;
    }
}

.custom-control.custom-switch,
.custom-control.custom-checkbox {
    padding-top: 7px;
}

.spinner div {
    color: var(--b-theme-text-primary) !important;
}

.card-title {
    margin: 0;
}

/* Skeleton styles */
.card-skeleton {
    background-color: #fff;
    height: auto;
    width: auto;
    overflow: hidden;
    margin: 0px;
    border-radius: 5px;
    clip-path: border-box;
}

/* card-skeleton image loading */
.card-skeleton-image img {
    width: 100%;
    height: 100%;
}

.card-skeleton-image.loading {
    height: 300px;
    width: 400px;
}

/* card-skeleton title */
card-skeleton-title.loading {
    height: 1.25rem;
    width: 25%;
    margin-top: 1rem;
    margin-bottom: .75rem;
    border-radius: 5px;
    margin-left: 0;
}

/* card-skeleton description */
.card-skeleton-description {
    font-size: 16px;
    clip-path: border-box;
}

.card-skeleton-description.loading {
    height: 2.25rem;
    border-radius: 5px;
    margin-left: 0;
}

/* The loading Class */
.loading {
    position: relative;
    background-color: #e2e2e2;
}

    /* The moving element */
    .loading::after {
        display: inline-block;
        content: "";
        position: absolute;
        width: 100%;
        height: 100%;
        transform: translateX(-100%);
        background: -webkit-gradient(linear, left top, right top, from(transparent), color-stop(rgba(255, 255, 255, 0.25)), to(transparent));
        xbackground: linear-gradient(90deg, transparent, green, transparent);
        background: linear-gradient(90deg, green, green, green);
        /* Adding animation */
        animation: loading 5.5s infinite;
    }

/* Loading Animation */
@keyframes loading {
    0% {
        transform: translateX(-100%);
        clip-path: circle(10%);
    }
    /*
    20% {
        transform: translateX(100%);
        clip-path: inset(0%, 0%, 0%, 0%);
    }
*/
    100% {
        transform: translateX(100%);
        clip-path: circle(10%);
    }
}


.skeleton-title {
    height: 1.25rem;
    width: 120px;
    min-width: 50px;
    max-width: 100%;
    font-size: 22px;
    font-weight: 700;
    min-height: 1.25rem;
    margin-top: 1rem;
    margin-bottom: .5rem;
    border-radius: 5px;
}

.skeleton-description {
    height: 2.25rem;
    width: auto;
    font-size: 22px;
    font-weight: 700;
    min-height: 1.2rem;
    margin-top: .5rem;
    margin-bottom: .5rem;
    border-radius: 5px;
}

.skeleton-loader {
    display: block;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0)), #f1f1f1;
    background-repeat: repeat-y;
    background-size: 50% 100%;
    background-position: 0 0;
    animation: shine 2.25s linear infinite;
    border-radius: 5px;
}

@keyframes shine {
    0% {
        background-position: -100% 0, /* move highlight to right */ 0 0;
    }

    85% {
        background-position: -100% 0, /* move highlight to right */ 0 0;
    }

    100% {
        background-position: 200% 0, /* move highlight to right */ 0 0;
    }
}

.text-width-full {
    flex: 0 0 100%;
    flex-wrap: nowrap !important;
    flex-direction: column;
    display: flex;
}

i.b-bar-icon {
    min-width: 36px;
    max-width: 36px;
    text-align: center;
    display: inline-block;
}

th .filter-container {
    cursor: pointer;
}

#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;
}

.b-bar-dropdown-item {
    padding: .5rem .5rem .5rem 70px;
}

tr.test-order {
    background-color: #444;
    color: lightgreen;
}

tr.can-delete {
    background-color: darkred;
    color: white;
}

div.card {
    margin-bottom: 1.5rem;
}

.col-form-label {
    color: #888;
    line-height: 1.3rem;
}

.tab-pane {
    border-left: .5px solid #ddd;
    border-right: .5px solid #ddd;
    border-bottom: .5px solid #ddd;
    margin-top: 0px;
    padding: 1.2rem;
}

.tab-content {
    margin-bottom: 24px;
}

.blazored-toast-container {
    z-index: 10000 !important;
}