@import "https://cdn.jsdelivr.net/npm/bulma@0.9.4/css/bulma.min.css";
@import "https://cdn.jsdelivr.net/npm/@mdi/font@6.9.96/css/materialdesignicons.min.css";
@import "https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.min.css";
@import "bulma-switch.min.css";

/*================================
    Colors
================================*/
:root {
    --white: #fff;
    --primary: #00d1b2;
    --transparent: #00000000;
    --disabled: #B0B0B0;
}

/*================================
    Loading
================================*/
.backdrop {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    align-items: center;
    justify-content: center;
    background-color: #000000A0;
    z-index: 900;
}

@keyframes spinner-grow {
    0% {
        transform: scale(0);
    }

    50% {
        opacity: 1;
    }
}

.spinner-grow {
    display: inline-block;
    width: 9rem;
    height: 9rem;
    vertical-align: text-bottom;
    border-radius: 50%;
    opacity: 0;
    animation: spinner-grow .75s linear infinite;
    background-color: #fff;
}

/*================================
    Layout
================================*/
*, *:focus, *:hover {
    outline: none;
}

.hero.is-small .hero-body {
    padding: 1rem;
}

@media screen and (max-width: 1024px) {
    .section {
        padding: 1.5rem;
    }

    .title {
        font-size: 1.5rem;
        padding: 0.5rem;
    }

    .hero.is-small .hero-body {
        padding: .25rem 0.5rem;
    }
}

.modal-background {
    background-color: rgba(10,10,10,.66);
}

.modal-card-foot, .modal-card-head {
    padding: 15px;
}

.is-full-width {
    width: 100%;
}

.is-full-height {
    height: 100%;
}

.is-center {
    text-align: center;
}

.is-pointer {
    cursor: pointer;
}

.is-hover:hover {
    cursor: pointer;
    color: var(--primary);
}

/*================================
    Forms
================================*/
.required:after {
    content: "*";
    color: red;
}

.file-name {
    max-width: inherit;
}

.switch[type=checkbox][disabled] + label {
    opacity: 1;
}

/*================================
    Table
================================*/
.table.is-hoverable.is-striped tbody tr:not(.is-selected):hover,
.table.is-hoverable.is-striped tbody tr:not(.is-selected):hover:nth-child(2n) {
    cursor: pointer;
    background-color: var(--primary);
}

.table .actions {
    text-align: right;
    vertical-align: middle;
    padding-top: 0;
    padding-bottom: 0;
}

    .table .actions a {
        color: var(--transparent);
        font-size: 1.3rem;
    }

.table tr:hover .actions a {
    color: var(--white);
}

.table th.is-small-col {
    width: 115px;
}

.table .is-visible-col-mobile {
    display: none;
}

.table .is-visible-col-tablet {
    display: none;
}

@media screen and (max-width: 512px) {
    .table .is-hidden-col-mobile {
        display: none;
    }

    .table .is-visible-col-mobile {
        display: block;
    }
}

@media screen and (max-width: 768px) {
    .table th.is-small-col {
        width: 85px;
    }

    .table .is-hidden-col-tablet {
        display: none;
    }

    .table .is-visible-col-tablet {
        display: block;
    }
}

.is-grid {
    display: grid;
}

.table td, .table th {
    padding: 0.5em 0.25em;
}

/*================================
    Login
================================*/
.login {
    background-image: url(../images/login.webp);
    background-position: center;
    background-size: cover;
}

    .login .box {
        width: 400px;
    }

    .login img {
        max-width: 200px;
        margin: 0 auto;
        display: flex;
        margin-bottom: 20px;
    }

@media screen and (max-width: 512px) {
    .login .box {
        width: 80%;
    }
}

/*********************************
 * Blazor
 ********************************/
#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;
    }

/*********************************
 * Print
 ********************************/
.is-visible-print {
    display: none;
}

@media print {
    .is-visible-print {
        display: inherit;
    }

    .is-hidden-print {
        display: none !important;
    }

    .section {
        padding: 0;
    }

    .panel {
        box-shadow: none;
        margin-bottom: 0 !important;
    }

    .panel-heading {
        background-color: transparent;
    }

    .table tr {
        font-size: 11px;
    }

    .table th.is-small-col {
        width: 70px;
    }
}
