@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

/* === Blazor-specific error UI === */
#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: 2100;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,...) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}


    .blazor-error-boundary::after {
        content: "An error has occurred.";
    }

input.is-invalid, .form-input-base.is-invalid {
    border-color: red;
}

.validation-message {
    color: red;
    font-size: 0.875rem;
}

.bm-container {
    z-index: 300 !important;
}


.container {
    width: 80% !important;
    margin: auto !important;
}



/* === Mozilla-specific UI fix === */
@media (min-width: 1024px) and (max-width: 1280px) {
    .container {
        max-width: 1024px !important;
    }
}


.edited-cell {
    background-color: yellow !important;
}

/*NAV MAIN LAYOUT*/
.sidebar-main {
    position: fixed;
    /*top: 0;*/
    top: 3.5rem;
    left: 0;
    width: 220px;
    background-color: #DDE6F2 !important;
    bottom: 0;
    z-index: 100 !important;
}


@media (min-width: 1881px) {
    .sidebar-main {
        width: 200px;
    }
}

@media (max-width: 1880px) and (min-width: 1551px) {
    .sidebar-main {
        width: 180px;
    }
}

@media (max-width: 1550px) and (min-width: 1401px) {
    .sidebar-main {
        width: 160px;
    }
}

@media (max-width: 1400px) {
    .sidebar-main {
        width: 140px;
    }
}


/*
.sub-sidebar {
    color: white;
    top: 0;
    width: 250px;
    height: 100%;
    background-color: #DDE6F2 !important;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    z-index: 99 !important;
    transition: transform 0.3s ease-in-out;
}

.nav-item label {
    transition: opacity 0.3s ease-in-out;
}*/

.top-row {
    background-color: #1F3A5F;
    color: white;
    border-bottom: 1px solid #1F3A5F;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
    z-index: 110 !important;
}

    .top-row a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row:not(.auth) {
        display: none;
    }

    .top-row.auth {
        justify-content: space-between;
    }

    .top-row a, .top-row .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page {
        flex-direction: row;
    }

    .top-row {
        position: sticky;
        top: 0;
        z-index: 1;
        padding-right: 1.5rem !important;
    }

    article {
        padding-left: 3rem !important;
        padding-right: 1.5rem !important;
    }
}
