/*
 * 隱藏所有可能的錯誤和警告框
 * 確保不干擾正常頁面顯示
 */

/* Blazor錯誤UI - 完全隱藏 */
#blazor-error-ui {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    z-index: -1 !important;
}

/* 開發者工具警告 */
.blazor-error-boundary,
.blazor-error-ui,
.development-warning,
.dev-warning {
    display: none !important;
    visibility: hidden !important;
}

/*
 * ⚠️ 重要：
 * 先前這裡用「模糊選擇器」(例如 div[class*="error-"]) 會誤傷到系統自己的頁面錯誤提示
 * （例如 OnlineConsent.razor 的 .error-container），造成使用者看到「一片空白」而不知道原因。
 *
 * 因此此處只保留 Blazor 內建的 #blazor-error-ui 隱藏，不再全域隱藏一般頁面上的錯誤/警告 UI。
 */

/* 確保頁面頂部沒有遮擋元素 */
body::before,
html::before {
    display: none !important;
}

/* 隱藏任何可能的開發模式標識 */
.development-mode,
.dev-mode,
.debug-mode {
    display: none !important;
}
