html, body {
    height: 100%;
}

app {
    display: block;
    height: 100%;
}

.header-logo {
    background-image: url("../images/Lewacon-Logo.png");
    width: 315px;
    height: 42px;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    filter: grayscale(100%) brightness(0) invert(1);
}

#blazor-error-ui {
    background: inherit;
    bottom: 0;
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 100001;
}

.xaf-grid-status-icon {
    width: 16px;
    height: 16px;
    display: block;
    margin: auto;
}

/* BusinessPartner DetailView: make the first row cards equal height */
.businesspartner-top-row .dxbl-fl-group {
    height: 100%;
}

    .businesspartner-top-row .dxbl-fl-group > .dxbl-fl-group-content {
        height: 100%;
    }

.generated-documents-popup-header {
    padding: 0.5rem 0.75rem;
}

.generated-documents-popup-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 1rem;
}

.generated-documents-popup-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
}

.generated-documents-pdf-dialog-body {
    padding: 0;
    overflow: hidden;
}

.generated-documents-pdf-dialog-frame {
    display: block;
    width: 100%;
    height: calc(90vh - 65px);
    border: 0;
    background: white;
}

.lims-document-viewer-page {
    width: 100%;
    height: 100vh;
    padding: 10px;
    box-sizing: border-box;
}

html.lims-document-operation-busy,
html.lims-document-operation-busy * {
    cursor: wait !important;
}

/* LIMS workflow visualization */
.lims-workflow {
    --lims-workflow-surface: var(--dxds-color-surface-neutral-default-rest, var(--bs-body-bg));
    --lims-workflow-content: var(--dxds-color-content-neutral-default-rest, var(--bs-body-color));
    --lims-workflow-border: var(--dxds-color-border-neutral-default-rest, var(--bs-border-color));
    --lims-workflow-accent-surface: var(--dxds-color-surface-primary-subdued-rest, var(--bs-primary-bg-subtle, var(--bs-body-bg)));
    --lims-workflow-accent-content: var(--dxds-color-content-primary-default-rest, var(--bs-primary));
    --lims-workflow-accent-border: var(--dxds-color-border-primary-default-rest, var(--bs-primary));
    width: 100%;
    overflow-x: auto;
}

.lims-workflow-svg {
    display: block;
    width: 100%;
    min-width: 1200px;
    height: auto;
}

.lims-workflow-edge {
    fill: none;
    stroke: var(--lims-workflow-content);
    stroke-opacity: 0.35;
    stroke-width: 2;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.lims-workflow-edge-alternative {
    stroke-dasharray: 5 4;
    opacity: 0.7;
}

.lims-workflow-edge-return {
    stroke-dasharray: 9 5;
    opacity: 0.85;
}

.lims-workflow-arrowhead {
    fill: color-mix( in srgb, var(--lims-workflow-content) 35%, var(--lims-workflow-surface) );
}

.lims-workflow-node-shape {
    fill: var(--lims-workflow-surface);
    stroke: var(--lims-workflow-content);
    stroke-opacity: 0.3;
    stroke-width: 1.5;
}

.lims-workflow-node-caption {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 8px 12px;
    box-sizing: border-box;
    text-align: center;
    line-height: 1.1;
    font-size: 0.7rem;
    color: var(--lims-workflow-content);
}

.lims-workflow-node-current .lims-workflow-node-shape {
    fill: color-mix( in srgb, var(--lims-workflow-current-color) 12%, var(--lims-workflow-surface) );
    stroke: color-mix( in srgb, var(--lims-workflow-current-color) 60%, var(--lims-workflow-surface) );
    stroke-opacity: 1;
    stroke-width: 3;
}

.lims-workflow-node-current .lims-workflow-node-caption {
    color: var(--lims-workflow-content);
    font-weight: 600;
}

/* Investigation status colors in ListView */
.lims-investigation-status-row > td {
    box-shadow: inset 0 0 0 9999px color-mix( in srgb, var(--lims-investigation-status-color) 12%, var( --dxds-color-surface-neutral-default-rest, var(--bs-body-bg) ) );
}