/* ===================================================================
   Dark Mode Shared Overrides
   - 透過 html.dark 根選擇器覆寫 Tailwind 預設淺色 class。
   - 引入方式：<link rel="stylesheet" href="<path>/assets/css/dark_mode_shared.css">
   - Server-side 需在 session theme = dark 時輸出 <html class="dark">
   - 並建議在 <head> 最前面加 inline <style> 先上底色防 FOUC
   =================================================================== */

/* Body / base */
html.dark { color-scheme: dark; }
html.dark body { background-color: var(--theme-bg-dark, #0f172a) !important; color: #e5e7eb; }

/* 原生表單控制項（checkbox / radio / scrollbar 等）跟著深色主題 */
html.dark input[type="checkbox"],
html.dark input[type="radio"] { accent-color: var(--yk-theme-accent-dk, #3b82f6); }

/* 背景 */
html.dark .bg-white { background-color: #1e293b !important; }
html.dark .bg-gray-50 { background-color: #1f2937 !important; }
html.dark .bg-gray-100 { background-color: #0f172a !important; }
html.dark .bg-gray-200 { background-color: #334155 !important; }
html.dark .bg-gray-300 { background-color: #475569 !important; }
html.dark .bg-indigo-50 { background-color: rgba(99,102,241,0.15) !important; }
html.dark .bg-indigo-100 { background-color: rgba(99,102,241,0.22) !important; }
html.dark .bg-blue-50 { background-color: rgba(59,130,246,0.12) !important; }
html.dark .bg-blue-100 { background-color: rgba(59,130,246,0.22) !important; }
html.dark .bg-green-50 { background-color: rgba(34,197,94,0.12) !important; }
html.dark .bg-green-100 { background-color: rgba(34,197,94,0.18) !important; }
html.dark .bg-red-50 { background-color: rgba(239,68,68,0.12) !important; }
html.dark .bg-red-100 { background-color: rgba(239,68,68,0.18) !important; }
html.dark .bg-red-200 { background-color: rgba(239,68,68,0.25) !important; }
html.dark .bg-yellow-50 { background-color: rgba(234,179,8,0.12) !important; }
html.dark .bg-yellow-100 { background-color: rgba(234,179,8,0.2) !important; }
html.dark .bg-purple-50 { background-color: rgba(168,85,247,0.12) !important; }
html.dark .bg-purple-100 { background-color: rgba(168,85,247,0.2) !important; }
/* purple 的邊框與最深色文字（經銷商「金額額度制」的額度卡與基準列在用）。
   ⚠️ 帶透明度修飾的 class（例如 bg-purple-50/60）在 CSS 裡是**另一個選擇器**
   （.bg-purple-50\/60），不會被上面的 .bg-purple-50 命中——2026-08-07 就是這樣
   讓基準列在深色模式變成淺底白字幾乎看不見。新增這類底色時，要嘛在這裡逐個補
   變體，要嘛乾脆不要用 /xx 變體（後者比較不容易再踩到）。 */
html.dark .border-purple-200 { border-color: rgba(168,85,247,0.35) !important; }
html.dark .text-purple-900 { color: #f3e8ff !important; }
/* amber 系列（原本只有帶 /50 的變體，不透明的 bg-amber-50/100 會留白底 → 白底白字） */
html.dark .bg-amber-50 { background-color: rgba(245,158,11,0.12) !important; }
html.dark .bg-amber-100 { background-color: rgba(245,158,11,0.2) !important; }
/* emerald 系列（「廠商業績待轉」的已選合計列在用；green 系列已有，emerald 一直缺，
   深色模式下會變成整塊淺薄荷底浮在深色頁面上，刺眼但不到看不見的程度） */
html.dark .bg-emerald-50 { background-color: rgba(16,185,129,0.12) !important; }
html.dark .bg-emerald-100 { background-color: rgba(16,185,129,0.2) !important; }
html.dark .border-emerald-200 { border-color: rgba(16,185,129,0.4) !important; }
html.dark .text-emerald-700,
html.dark .text-emerald-800 { color: #6ee7b7 !important; }
/* 帶透明度的狀態底色（Tailwind 預設淺色疊在深色上會泛灰，需重映射）：應收明細「已收款/部分」列、認列清單買斷列 */
html.dark .bg-green-50\/50 { background-color: rgba(34,197,94,0.10) !important; }
html.dark .bg-amber-50\/50 { background-color: rgba(245,158,11,0.12) !important; }
html.dark .bg-amber-50\/40 { background-color: rgba(245,158,11,0.10) !important; }
html.dark .bg-indigo-50\/50 { background-color: rgba(99,102,241,0.15) !important; }

/* ── 其餘淺色底的通用覆寫（2026-10-12，同一天第三次「深色下淺底配淺字看不到」）──────────
   上面那批只顧到 gray／indigo／blue／green／red／yellow／purple／amber／emerald；
   orange／teal／rose／sky／cyan／pink／violet／lime／slate 一直沒有，帶 /60 這種透明度的也沒有
   ⇒ 深色頁上是一塊亮底，裡面的 text-gray-900 又被上面換成淺色 ⇒ 看不到（產品管理兩塊面板就是這樣）。

   這一批跟上面寫法刻意不同，兩件事：
   ① 帶 :not([class*="dark:bg-"])／:not([class*="dark:text-"]) —— 作者已經在同一個元素寫了
      Tailwind 的深色變體，就照作者的，不蓋掉（上面那批會蓋，是歷史包袱，不在這裡改）。
   ② 不加 !important —— 特異度 (0,3,1) 已經壓過 Tailwind utility (0,1,0)，
      頁面自己寫的 html.dark 規則（例：庫存的 .loc-owner-badge.bg-teal-50）排在後面照樣贏。
   底色＝該色 500 的低透明度、字＝該色 300 左右；對比對 #1e293b 卡片底都 ≥ 4.5:1。
   防線：portal/okr/tests/test_dark_light_bg.php（覆寫清單直接讀這支檔，加了這裡就自動算有救）。
   刻意要淺底的元素（極少）：在元素上寫 dark:bg-…（哪怕是同一個淺色），這裡就不碰它。 */
html.dark .bg-orange-50:not([class*="dark:bg-"]),
html.dark .bg-orange-50\/50:not([class*="dark:bg-"]) { background-color: rgba(249,115,22,0.12); }
html.dark .bg-orange-100:not([class*="dark:bg-"]),
html.dark .bg-orange-100\/60:not([class*="dark:bg-"]) { background-color: rgba(249,115,22,0.2); }
html.dark .bg-teal-50:not([class*="dark:bg-"]) { background-color: rgba(20,184,166,0.12); }
html.dark .bg-teal-100:not([class*="dark:bg-"]) { background-color: rgba(20,184,166,0.2); }
html.dark .bg-rose-50:not([class*="dark:bg-"]) { background-color: rgba(244,63,94,0.12); }
html.dark .bg-rose-100:not([class*="dark:bg-"]) { background-color: rgba(244,63,94,0.2); }
html.dark .bg-sky-50:not([class*="dark:bg-"]),
html.dark .bg-sky-50\/60:not([class*="dark:bg-"]) { background-color: rgba(14,165,233,0.12); }
html.dark .bg-sky-100:not([class*="dark:bg-"]) { background-color: rgba(14,165,233,0.2); }
html.dark .bg-cyan-50:not([class*="dark:bg-"]) { background-color: rgba(6,182,212,0.12); }
html.dark .bg-cyan-100:not([class*="dark:bg-"]) { background-color: rgba(6,182,212,0.2); }
html.dark .bg-pink-50:not([class*="dark:bg-"]) { background-color: rgba(236,72,153,0.12); }
html.dark .bg-pink-100:not([class*="dark:bg-"]) { background-color: rgba(236,72,153,0.2); }
html.dark .bg-violet-50:not([class*="dark:bg-"]),
html.dark .bg-violet-50\/50:not([class*="dark:bg-"]) { background-color: rgba(139,92,246,0.12); }
html.dark .bg-violet-100:not([class*="dark:bg-"]) { background-color: rgba(139,92,246,0.2); }
html.dark .bg-lime-50:not([class*="dark:bg-"]) { background-color: rgba(132,204,22,0.12); }
html.dark .bg-lime-100:not([class*="dark:bg-"]) { background-color: rgba(132,204,22,0.2); }
html.dark .bg-slate-50:not([class*="dark:bg-"]) { background-color: #1f2937; }
html.dark .bg-slate-100:not([class*="dark:bg-"]) { background-color: #0f172a; }
html.dark .bg-slate-200:not([class*="dark:bg-"]) { background-color: #334155; }
/* -200 的小標籤（「部分沖正」「卡住」）：字是 amber-800/900，上面已換成淺黃 ⇒ 底也要跟著變深 */
html.dark .bg-amber-200:not([class*="dark:bg-"]) { background-color: rgba(245,158,11,0.3); }
/* 已有不透明版、缺透明度變體的 */
html.dark .bg-red-50\/50:not([class*="dark:bg-"]) { background-color: rgba(239,68,68,0.10); }
html.dark .bg-blue-50\/40:not([class*="dark:bg-"]),
html.dark .bg-blue-50\/50:not([class*="dark:bg-"]) { background-color: rgba(59,130,246,0.10); }
html.dark .bg-amber-50\/60:not([class*="dark:bg-"]) { background-color: rgba(245,158,11,0.12); }
html.dark .bg-indigo-100\/70:not([class*="dark:bg-"]) { background-color: rgba(99,102,241,0.2); }
/* 對應的字（這幾色上面沒有；淺底上的 -700/-800 字在深色底上會變成深字配深底） */
html.dark .text-orange-600:not([class*="dark:text-"]) { color: #fb923c; }
html.dark .text-orange-700:not([class*="dark:text-"]),
html.dark .text-orange-800:not([class*="dark:text-"]),
html.dark .text-orange-900:not([class*="dark:text-"]) { color: #fdba74; }
html.dark .text-teal-600:not([class*="dark:text-"]) { color: #2dd4bf; }
html.dark .text-teal-700:not([class*="dark:text-"]),
html.dark .text-teal-800:not([class*="dark:text-"]),
html.dark .text-teal-900:not([class*="dark:text-"]) { color: #5eead4; }
html.dark .text-rose-600:not([class*="dark:text-"]) { color: #fb7185; }
html.dark .text-rose-700:not([class*="dark:text-"]),
html.dark .text-rose-800:not([class*="dark:text-"]),
html.dark .text-rose-900:not([class*="dark:text-"]) { color: #fda4af; }
html.dark .text-sky-600:not([class*="dark:text-"]) { color: #38bdf8; }
html.dark .text-sky-700:not([class*="dark:text-"]),
html.dark .text-sky-800:not([class*="dark:text-"]),
html.dark .text-sky-900:not([class*="dark:text-"]) { color: #7dd3fc; }
html.dark .text-cyan-600:not([class*="dark:text-"]) { color: #22d3ee; }
html.dark .text-cyan-700:not([class*="dark:text-"]),
html.dark .text-cyan-800:not([class*="dark:text-"]),
html.dark .text-cyan-900:not([class*="dark:text-"]) { color: #67e8f9; }
html.dark .text-pink-600:not([class*="dark:text-"]) { color: #f472b6; }
html.dark .text-pink-700:not([class*="dark:text-"]),
html.dark .text-pink-800:not([class*="dark:text-"]),
html.dark .text-pink-900:not([class*="dark:text-"]) { color: #f9a8d4; }
html.dark .text-violet-600:not([class*="dark:text-"]) { color: #a78bfa; }
html.dark .text-violet-700:not([class*="dark:text-"]),
html.dark .text-violet-800:not([class*="dark:text-"]),
html.dark .text-violet-900:not([class*="dark:text-"]) { color: #c4b5fd; }
html.dark .text-lime-700:not([class*="dark:text-"]),
html.dark .text-lime-800:not([class*="dark:text-"]),
html.dark .text-lime-900:not([class*="dark:text-"]) { color: #bef264; }
html.dark .text-slate-500:not([class*="dark:text-"]) { color: #cbd5e1; }
html.dark .text-slate-600:not([class*="dark:text-"]) { color: #d1d5db; }
html.dark .text-slate-700:not([class*="dark:text-"]) { color: #e2e8f0; }
html.dark .text-slate-800:not([class*="dark:text-"]) { color: #f1f5f9; }
html.dark .text-slate-900:not([class*="dark:text-"]) { color: #f8fafc; }
/* 對應的邊框（淺色邊在深色底上是一圈亮線） */
html.dark .border-orange-100:not([class*="dark:border-"]),
html.dark .border-orange-200:not([class*="dark:border-"]) { border-color: rgba(249,115,22,0.4); }
html.dark .border-teal-100:not([class*="dark:border-"]),
html.dark .border-teal-200:not([class*="dark:border-"]) { border-color: rgba(20,184,166,0.4); }
html.dark .border-rose-100:not([class*="dark:border-"]),
html.dark .border-rose-200:not([class*="dark:border-"]) { border-color: rgba(244,63,94,0.4); }
html.dark .border-sky-100:not([class*="dark:border-"]),
html.dark .border-sky-200:not([class*="dark:border-"]) { border-color: rgba(14,165,233,0.4); }
html.dark .border-cyan-100:not([class*="dark:border-"]),
html.dark .border-cyan-200:not([class*="dark:border-"]) { border-color: rgba(6,182,212,0.4); }
html.dark .border-pink-100:not([class*="dark:border-"]),
html.dark .border-pink-200:not([class*="dark:border-"]) { border-color: rgba(236,72,153,0.4); }
html.dark .border-violet-100:not([class*="dark:border-"]),
html.dark .border-violet-200:not([class*="dark:border-"]) { border-color: rgba(139,92,246,0.4); }
html.dark .border-slate-100:not([class*="dark:border-"]),
html.dark .border-slate-200:not([class*="dark:border-"]),
html.dark .border-slate-300:not([class*="dark:border-"]) { border-color: #334155; }

/* 文字 */
html.dark .text-gray-400 { color: #9ca3af !important; }
html.dark .text-gray-500 { color: #cbd5e1 !important; }
html.dark .text-gray-600 { color: #d1d5db !important; }
html.dark .text-gray-700 { color: #e2e8f0 !important; }
html.dark .text-gray-800 { color: #f1f5f9 !important; }
html.dark .text-gray-900 { color: #f8fafc !important; }
html.dark .text-indigo-600,
html.dark .text-indigo-700 { color: #a5b4fc !important; }
html.dark .text-indigo-800,
html.dark .text-indigo-900 { color: #c7d2fe !important; }
html.dark .text-blue-500 { color: #60a5fa !important; }
html.dark .text-blue-600,
html.dark .text-blue-700,
html.dark .text-blue-800 { color: #93c5fd !important; }
html.dark .text-green-600,
html.dark .text-green-700,
html.dark .text-green-800 { color: #86efac !important; }
html.dark .text-yellow-600 { color: #facc15 !important; }
html.dark .text-yellow-700,
html.dark .text-yellow-800 { color: #fde68a !important; }
html.dark .text-amber-600 { color: #fbbf24 !important; }
html.dark .text-amber-700,
html.dark .text-amber-800,
html.dark .text-amber-900 { color: #fcd34d !important; }
html.dark .text-red-500 { color: #f87171 !important; }
html.dark .text-red-600,
html.dark .text-red-700,
html.dark .text-red-800 { color: #fca5a5 !important; }
html.dark .text-purple-600 { color: #d8b4fe !important; }
html.dark .text-purple-700,
html.dark .text-purple-800 { color: #e9d5ff !important; }

/* 邊框 */
html.dark .border,
html.dark .border-t,
html.dark .border-b,
html.dark .border-l,
html.dark .border-r,
html.dark .border-gray-100,
html.dark .border-gray-200,
html.dark .border-gray-300,
html.dark .border-gray-400 { border-color: #334155 !important; }
html.dark .border-indigo-100,
html.dark .border-indigo-200,
html.dark .border-indigo-500 { border-color: rgba(99,102,241,0.45) !important; }
html.dark .border-blue-100,
html.dark .border-blue-200 { border-color: rgba(59,130,246,0.4) !important; }
/* 提示/警告方塊的彩色邊框：對應的 bg-*-50 早就有覆寫，邊框沒有 → 深色下會留一圈亮邊 */
html.dark .border-amber-100,
html.dark .border-amber-200 { border-color: rgba(245,158,11,0.4) !important; }
html.dark .border-yellow-100,
html.dark .border-yellow-200 { border-color: rgba(234,179,8,0.4) !important; }
html.dark .border-red-100,
html.dark .border-red-200 { border-color: rgba(239,68,68,0.4) !important; }
html.dark .border-green-100,
html.dark .border-green-200 { border-color: rgba(34,197,94,0.4) !important; }
html.dark .divide-gray-200 > :not([hidden]) ~ :not([hidden]),
html.dark .divide-gray-100 > :not([hidden]) ~ :not([hidden]) { border-color: #334155 !important; }

/* Shadow */
html.dark .shadow,
html.dark .shadow-sm,
html.dark .shadow-md,
html.dark .shadow-lg,
html.dark .shadow-xl {
    box-shadow: 0 4px 10px rgba(0,0,0,0.45), 0 2px 4px rgba(0,0,0,0.35) !important;
}

/* 表單元件
   ---------------------------------------------------------------------------
   ⚠️ 這組是**裸元素選擇器 ＋ !important**：它的用途是把「只有 Tailwind 淺色 class
   （bg-white / border-gray-300…）的原生控制項」在深色下救回來，所以刻意不挑對象、
   也刻意用 !important 壓過 Tailwind。代價是它會**無差別覆蓋自帶設計色的元件樣式**
   —— 元件那邊多半是 (0,1,0) 的 class 選擇器又沒有 !important，一律輸。

   ### 豁免：自己畫控制項外觀的模組請掛 `raw-ctl`

   兩個豁免標記，**功能完全相同**，寫成兩個 :not() 串接：

     ① `raw-ctl` —— **通用逃生口，新模組一律用這個。**
        意思是「這個控制項的外觀由我自己畫完，深色共用檔請不要碰」。
        用法：**在既有 class 旁邊多掛一個 `raw-ctl`**（不必改你原本的 class 名）：
            <input class="tc-chk-text raw-ctl">
        它本身不帶任何樣式，唯一作用就是被下面的 :not() 認出來。
        掛了之後**背景／文字色／框線／placeholder 四項全部交還給你**，
        所以你自己那份 CSS 要把深色也畫完（別只畫淺色，不然深色下會沿用瀏覽器預設）。

     ② `v4-` —— plan_report v4（計劃與拜訪）的**歷史別名**，等同於 ①，保留不動。
        它是第一個踩到這件事的模組：全站唯一「自己畫完整輸入元件外觀」的模組
        （透明底、無邊框、行內欄、琥珀焦點色…），而且有兩個宿主 —— 獨立頁
        plan_report_v4.php **不載本檔**，portal.php 手機「拜訪」分頁**會載**。
        沒有豁免的結果是同一份元件在兩個宿主長不一樣 —— 2026-08-12 使用者回報的
        「手機拜訪分頁顏色怪怪的」就是這個：速記卡的備註框被改成 #0f172a 硬底、
        「下一步」那條設計上透明無框的行內欄被畫出 #475569 藍灰框、焦點色從琥珀被換成灰。
        ⚠️ 契約不變：plan_report 的 <input>/<select>/<textarea> **一律要帶一個 v4- 開頭的
        class**；沒有專屬樣式可掛的（原生 stepper 的數字框、就地編輯的臨時輸入框等）
        掛命名空間標記 `v4-ctl`。**新增的 plan_report 元件掛哪一個都行**，
        但既有那些不要改名（改名＝在兩個宿主之間製造一次沒有錯誤訊息的迴歸）。

   ⚠️ **漏掛不會有錯誤訊息**，只會靜默走鐘：你畫的透明底行內欄被塗成 #0f172a 硬方塊，
      一張本來像「清單」的面板長得像「每列一個表單欄位」。而且**特異度再高也救不回來**
      （下面帶 !important），只有掛標記或跟著寫 !important 兩條路。
      〔2026-08-15 §9.13 D29 拍板一般化：在這之前只有 v4- 一個豁免，
        待辦中心的「工作項目」只能跟著寫 !important，等於把同一個問題複製第二份。〕

   ### 判斷要不要掛：不是「我想要自訂顏色」，是「這個東西該不該長得像表單欄位」

   真的是表單欄位（有框、有底、使用者預期點下去輸入）→ **不要掛**，交給共用檔統一。
   刻意做成「一行可以直接改的字」「行內就地編輯」「透明底的內嵌欄」→ **掛**。
   實例對照（同一支 todo_center.css 裡兩種都有）：延期選單的日期欄**不掛**（它就是欄位），
   工作項目那一列的文字**掛**（它要看起來是清單的一行）。
   ---------------------------------------------------------------------------
   維護提醒：這裡用的是**簡單選擇器**版本的 :not()（全瀏覽器支援），兩個標記寫成
   **兩個 :not() 串接**而不是 `:not([class*="v4-"], [class*="raw-ctl"])` ——
   後者的逗號版是 Selectors Level 4，舊瀏覽器不認得**會整條規則丟掉**。
   同理不要改寫成 `:not([class*="v4-"] *)` 這種複合選擇器。
   兩種寫法的失敗形狀一樣：全站深色表單樣式一次消失。 */
html.dark input[type=text]:not([class*="v4-"]):not([class*="raw-ctl"]),
html.dark input[type=number]:not([class*="v4-"]):not([class*="raw-ctl"]),
html.dark input[type=date]:not([class*="v4-"]):not([class*="raw-ctl"]),
html.dark input[type=month]:not([class*="v4-"]):not([class*="raw-ctl"]),
html.dark input[type=datetime-local]:not([class*="v4-"]):not([class*="raw-ctl"]),
html.dark input[type=search]:not([class*="v4-"]):not([class*="raw-ctl"]),
html.dark input[type=email]:not([class*="v4-"]):not([class*="raw-ctl"]),
html.dark input[type=password]:not([class*="v4-"]):not([class*="raw-ctl"]),
html.dark select:not([class*="v4-"]):not([class*="raw-ctl"]),
html.dark textarea:not([class*="v4-"]):not([class*="raw-ctl"]) {
    background-color: #0f172a !important;
    color: #f1f5f9 !important;
    border-color: #475569 !important;
}
html.dark input:not([class*="v4-"]):not([class*="raw-ctl"])::placeholder,
html.dark textarea:not([class*="v4-"]):not([class*="raw-ctl"])::placeholder { color: #94a3b8 !important; }
html.dark input[readonly]:not([class*="v4-"]):not([class*="raw-ctl"]),
html.dark .bg-gray-100[readonly] { background-color: #1e293b !important; }
html.dark input[type=date]::-webkit-calendar-picker-indicator,
html.dark input[type=month]::-webkit-calendar-picker-indicator,
html.dark input[type=datetime-local]::-webkit-calendar-picker-indicator { filter: invert(1) brightness(1.1); }

/* Hover */
html.dark .hover\:bg-gray-50:hover { background-color: #334155 !important; }
html.dark .hover\:bg-gray-100:hover { background-color: #334155 !important; }
html.dark .hover\:bg-gray-200:hover { background-color: #475569 !important; }
html.dark .hover\:bg-gray-300:hover { background-color: #475569 !important; }
html.dark .hover\:bg-gray-400:hover { background-color: #64748b !important; }
html.dark .hover\:bg-blue-50:hover { background-color: rgba(59,130,246,0.18) !important; }
html.dark .hover\:bg-blue-100:hover { background-color: rgba(59,130,246,0.25) !important; }
html.dark .hover\:border-blue-300:hover { border-color: rgba(96,165,250,0.55) !important; }
html.dark .hover\:text-gray-700:hover { color: #e2e8f0 !important; }
html.dark .hover\:text-gray-900:hover { color: #f8fafc !important; }
/* 彩色文字連結/按鈕的 hover 狀態——靜態色早有覆寫，:hover 變體漏掉會在深色底
   下讀到未覆寫的原生 Tailwind 深色調（如 red-900/blue-800），對比幾乎消失 */
html.dark .hover\:text-blue-600:hover,
html.dark .hover\:text-blue-700:hover,
html.dark .hover\:text-blue-800:hover { color: #93c5fd !important; }
html.dark .hover\:text-red-600:hover,
html.dark .hover\:text-red-700:hover,
html.dark .hover\:text-red-800:hover,
html.dark .hover\:text-red-900:hover { color: #fca5a5 !important; }
html.dark .hover\:text-indigo-700:hover,
html.dark .hover\:text-indigo-900:hover { color: #c7d2fe !important; }

/* Modal 遮罩 */
html.dark .bg-black.bg-opacity-50,
html.dark .bg-gray-600.bg-opacity-50 { background-color: rgba(0,0,0,0.75) !important; }

/* 表格 */
html.dark table thead,
html.dark table thead.bg-gray-50,
html.dark table thead.bg-gray-100 { background-color: #1f2937 !important; }
html.dark table thead th { color: #cbd5e1 !important; }
html.dark tbody tr:hover { background-color: rgba(255,255,255,0.04) !important; }
html.dark .divide-y > tr,
html.dark tbody tr { border-color: #334155; }

/* 捲軸 */
html.dark ::-webkit-scrollbar { width: 10px; height: 10px; }
html.dark ::-webkit-scrollbar-track { background: #0f172a; }
html.dark ::-webkit-scrollbar-thumb { background: #475569; border-radius: 5px; }
html.dark ::-webkit-scrollbar-thumb:hover { background: #64748b; }
