/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* Zone Web — Main Shell Layout matching WPF MainWindow */

.zone-app[b-ktil1wkiui] {
    display: flex;
    flex-direction: column;
    height: calc(100vh / var(--zz, 1));
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 13px;
}

.zone-header[b-ktil1wkiui] {
    background: #29588c;
    color: white;
    flex-shrink: 0;
}

.zone-toolbar-area[b-ktil1wkiui] {
    background: #f0f0f0;
    border-bottom: 1px solid #c0c0c0;
    flex-shrink: 0;
}

.zone-main[b-ktil1wkiui] {
    flex: 1;
    /* min-height:0 is REQUIRED here, not cosmetic. A flex item defaults to min-height:auto and so
       refuses to shrink below its content — without this, tall page content stretches .zone-main
       past the viewport, every descendant height:100% resolves against that inflated height, and
       inner panes overflow instead of scrolling. This is the height chain the whole ESP shell
       depends on: .zone-app (100vh) → .zone-main → .esp-design-layout → .esp-content →
       .esp-form-container → .esp-form-content. */
    min-height: 0;
    overflow: hidden;
    background: white;
}

#blazor-error-ui[b-ktil1wkiui] {
    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[b-ktil1wkiui] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
