@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
}

a, .btn-link {
    color: #0366d6;
}

#bg {
    background-attachment: fixed;
    background: url("../assets/images/chi-background.png") no-repeat center center fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    text-align: left;
    width: 100% !important;
    height: 100% !important;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.content {
    padding-top: 0.5rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

.secondaryOrange {
    color: #fff;
    background-color: #e67e3b;
    font-weight: bold !important;
}

.secondaryBlue {
    color: #fff;
    padding: 3px;
    background-color: #003c71;
    font-weight: bold !important;
}

.secondaryDarkGrey {
    color: #fff;
    padding: 3px;
    background-color: #343a40;
    font-weight: bold !important;
}

#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;
    }

.tableYScroll {
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
}

    .tableYScroll thead th {
        position: sticky;
        top: -2px;
        background-color: white;
        z-index: 999;
    }

.number-th {
    min-width: 86px;
}

@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;
    }

    .main .top-row {
        position: sticky;
        top: 0;
    }

    .main > div {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }

    .navbar-toggler {
        display: none;
    }

    .resize {
        max-width: 100%;
        height: auto;
    }
}



/* Theme Start*/
.chi-sidebar .mud-overlay {
    z-index: calc(var(--mud-zindex-appbar) - 1) !important;
}

.mud-menu-item.nav-menu-item:hover{
    color: inherit !important;
    text-decoration: none !important;
}

:root {
    /* footer-height */
    --chi-footer-height: 50px;
    
    /* font-weight */
    --chi-fw-light: 300;
    --chi-fw-regular: 400;
    --chi-fw-medium: 500;
    --chi-fw-semibold: 600;
    --chi-fw-bold: 700;
    --chi-fw-extrabold: 800;
}

.chi-fw-light { font-weight: var(--chi-fw-light) !important; }
.chi-fw-regular { font-weight: var(--chi-fw-regular) !important; }
.chi-fw-medium { font-weight: var(--chi-fw-medium) !important; }
.chi-fw-semibold { font-weight: var(--chi-fw-semibold) !important; }
.chi-fw-bold { font-weight: var(--chi-fw-bold) !important; }
.chi-fw-extrabold { font-weight: var(--chi-fw-extrabold) !important; }

.pa-2-2{
    padding-left: 6px;
    padding-right: 6px;
    padding-top: 6px;
    padding-bottom: 6px;
}
.px-2-2{
    padding-left: 6px;
    padding-right: 6px;
}
.py-2-2{
    padding-top: 6px;
    padding-bottom: 6px;
}
.pl-2-2{
    padding-left: 6px;
}
.pr-2-2{
    padding-right: 6px;
}
.pt-2-2{
    padding-top: 6px;
}
.pb-2-2{
    padding-bottom: 6px;
}

.ma-2-2{
    margin-left: 6px;
    margin-right: 6px;
    margin-top: 6px;
    margin-bottom: 6px;
}
.mx-2-2{
    margin-left: 6px;
    margin-right: 6px;
}
.my-2-2{
    margin-top: 6px;
    margin-bottom: 6px;
}
.ml-2-2{
    margin-left: 6px;
}
.mr-2-2{
    margin-right: 6px;
}
.mt-2-2{
    margin-top: 6px;
}
.mb-2-2{
    margin-bottom: 6px;
}

.mud-paper {
    border-radius: 8px;
    border-color: var(--mud-palette-divider) !important;
}

.hidden-error-input .mud-input {
    display: none;
}

.text-start{
    text-align: left;
}

.text-end{
    text-align: right;
}

.text-center{
    text-align: center;
}

/* CHI Main Error/Warning Snackbar Stacked Effect */
#mud-snackbar-container{
    z-index: calc(var(--mud-zindex-appbar) + 4) !important;
}

.chi-main-error-warning-snackbar {
    position: relative;
    bottom: -18px;
    max-height: 52px;
    max-width: 500px;
}

.chi-main-error-warning-snackbar.stacked {
    position: relative;
}

.chi-main-error-warning-snackbar.stacked::before,
.chi-main-error-warning-snackbar.stacked::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    border-radius: inherit;
    border: 1px solid currentColor;
    background-color: inherit;
    z-index: -1;
    box-shadow: 1px 1px 2px currentColor;
}

.chi-main-error-warning-snackbar.stacked::before {
    bottom: -8px;
    width: calc(100% + 15px);
    opacity: 0.7;
    top: -5px;
    transform: translateX(-53%);
}

.chi-main-error-warning-snackbar.stacked::after {
    bottom: -16px;
    width: calc(100% + 16px);
    opacity: 0.4;
    top: -9px;
    transform: translateX(-54%);
}

/* Theme End*/
