/* Blazor-only additions. The legacy look comes from Content/bootstrap.css (3.4.0) and Content/Site.css. */

h1:focus {
    outline: none;
}

.validation-message {
    color: red;
}

.invalid {
    outline: 1px solid red;
}

/* Log off is a POST form in Blazor; draw its button like the legacy LoginStatus link. */
.linkbutton {
    background: none;
    border: none;
    padding: 0;
    color: inherit;
    cursor: pointer;
    font: inherit;
}

.submenuheader .linkbutton {
    color: white;
    padding-left: 20px;
}

.submenuheader .linkbutton:hover {
    color: #ffffcc;
}

.navbar-nav .linkbutton {
    padding: 15px;
    color: #9d9d9d;
}

/* Site.css gives every text input a 300px minimum; the Telerik picker's inner search box must shrink. */
.k-input input.k-input-inner {
    min-width: 0;
    max-width: none;
}

/* Table cells are links in Blazor; draw them like the legacy invisible row buttons. */
a.invisiblebutton, a.invisiblebutton:visited, a.invisiblebutton:hover, a.invisiblebutton:focus {
    display: block;
    padding: 1px 6px;
    color: inherit;
    text-decoration: none;
}

/* The legacy ReportViewer frame, used for the PDF viewer. PdfFrame sets the height from the page count. */
.reportframe-host {
    container-type: inline-size;
}

.reportframe {
    display: block;
    width: 100%;
    height: 1200px;
    border: 1px solid #dddddd;
    box-shadow: 0 0px 40px 0px rgba(0, 0, 0, 0.15);
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    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;
    }

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }
