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

/*
 * ⚠️ 重要：
 * 先前這裡把 #blazor-error-ui 完全隱藏，連線中斷或伺服器例外時使用者看不到任何訊息，
 * 畫面看起來正常但點什麼都沒反應，只能自己重新整理。改為在 App.razor 提供中文提示。
 */

/* 開發者工具警告 */
.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;
}
