/* Radzen supplies the component styles and the reset. What is left is the error banner the
   framework injects outside the component tree, and a couple of page-level helpers. */

html, body {
    height: 100%;
    margin: 0;
}

/* The header bar is painted in the theme's primary colour, so anything on it has to be
   given the matching foreground rather than the default body colour. */
.v2o-header-user,
.v2o-header-user .rz-button-text {
    color: var(--rz-header-color, #fff);
}

.v2o-login {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: var(--rz-base-200, #f4f4f5);
    padding: 1rem;
}

.v2o-login-card {
    width: min(28rem, 100%);
}

/* Raw request and response payloads. They are the point of the call detail page, so they
   are shown in full and only wrapped. */
.v2o-payload {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.8125rem;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 24rem;
    overflow: auto;
    margin: 0;
    padding: 0.75rem;
    border-radius: 4px;
    background: var(--rz-base-200, #f4f4f5);
}

.v2o-transcript {
    white-space: pre-wrap;
    line-height: 1.6;
    margin: 0;
}

.v2o-key {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    word-break: break-all;
}

#blazor-error-ui {
    color-scheme: light only;
    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;
}
