/* 共享样式（RCL）。
   界面样式主要由 Radzen 主题提供（humanistic），这里只保留少量与主题无关的通用规则。 */

/* 让 Radzen 主题接管正文排版；此处仅作兜底 */
html, body {
    margin: 0;
    height: 100%;
}

/* Blazor 表单验证（与 UI 组件库无关，Radzen 表单同样受用） */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

/* 未处理异常的提示条（见 MainLayout.razor 里的 #blazor-error-ui） */
#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;
}

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "发生了错误。";
}

/* MAUI 状态栏安全区 */
.status-bar-safe-area {
    display: none;
}

@supports (-webkit-touch-callout: none) {
    .status-bar-safe-area {
        display: flex;
        position: sticky;
        top: 0;
        height: env(safe-area-inset-top);
        width: 100%;
        z-index: 1;
    }
}
