/* ============================================================
   theme-light.css — 電腦版淺色（崇文海鮮 CI）
   使用者 2026/10/18：深色、淺色兩種都要，每台電腦自己選（右上角「淺色／深色」）。
   顏色取自自建 ERP《設計規範》5.1 品牌色票（《崇文海鮮 Visual Identity Guidelines》）：
   品牌藍 #0057B8、深藍 #00408A、淺藍 #1C74DD、深藍黑 #0E1726。珊瑚色不用（跟「動庫存」橘太像）。
   所有規則都限定在 html[data-theme="light"]：沒選淺色時完全不影響現在的深色。
   語意色不變：確認＝綠、動庫存＝橘、危險＝紅、一般＝藍（換品牌藍）。
   手機、現場看板、列印站不套用（倉庫暗、電視遠看，維持深色）。
   ============================================================ */
html[data-theme="light"] { --brand-blue: #0057B8; --brand-blue-deep: #00408A; --brand-blue-lt: #1C74DD; --brand-navy: #0E1726;
  --ds-bg: #F3F5F8; --ds-sidebar: #0057B8; --ds-surface: #FFFFFF; --ds-surface-2: #F2F7FD; --ds-hover: #E1ECF9;
  --ds-border: #D9E2EC; --ds-border-strong: #BFD7F1;
  --ds-text: #0E1726; --ds-text-2: #374151; --ds-text-3: #566375;
  --ds-primary: #0057B8; --ds-primary-fill: #0057B8; --ds-primary-fill-hover: #00408A; --ds-primary-soft: #E1ECF9;
  --ds-success: #047857; --ds-success-soft: #ECFDF5; --ds-warn: #B45309; --ds-warn-soft: #FFFBEB; --ds-danger: #B91C1C; --ds-danger-soft: #FEF2F2;
  --ds-shadow: 0 1px 2px rgba(14, 23, 38, .06), 0 1px 0 rgba(14, 23, 38, .02);
  --c-green: #047857; --c-emerald: #047857; --c-teal: #0F766E; --c-orange: #C2410C; --c-blue: #0057B8;
  --c-sky: #0369A1; --c-purple: #7C3AED; --c-yellow: #B45309; --c-red: #B91C1C; --c-slate: #566375;
  color-scheme: light; }
html[data-theme="light"] body { background: var(--ds-bg) !important; color: var(--ds-text-2) !important; }
html[data-theme="light"] ::-webkit-scrollbar-track { background: #E5E9EF; }
html[data-theme="light"] ::-webkit-scrollbar-thumb { background: #B6C2D1; }
/* 左側選單：品牌藍純色、白字（導覽列一律純色） */
html[data-theme="light"] aside.ds-sidebar { background: #0057B8 !important; border-right: 0 !important; }
html[data-theme="light"] aside.ds-sidebar,
html[data-theme="light"] aside.ds-sidebar .nav-item,
html[data-theme="light"] aside.ds-sidebar .nav-group-header,
html[data-theme="light"] aside.ds-sidebar .ds-brand-name,
html[data-theme="light"] aside.ds-sidebar .ds-brand-sub,
html[data-theme="light"] aside.ds-sidebar .ds-sidebar-foot,
html[data-theme="light"] aside.ds-sidebar #favorites-section * { color: rgba(255, 255, 255, .86) !important; }
/* 常用功能裡「現在這一頁」：白底品牌藍字（上一行的白字規則優先度比較高，要另外寫，不然白字白底看不到） */
html[data-theme="light"] aside.ds-sidebar #favorites-section .nav-item.active, html[data-theme="light"] aside.ds-sidebar #favorites-section .nav-item.active * { color: #0057B8 !important; }
html[data-theme="light"] aside.ds-sidebar .nav-group-header { color: #fff !important; }
html[data-theme="light"] aside.ds-sidebar .nav-item:hover { background: rgba(255, 255, 255, .12) !important; color: #fff !important; }
html[data-theme="light"] aside.ds-sidebar .nav-item.active { background: #fff !important; color: #0057B8 !important; box-shadow: none !important; font-weight: 700; }
html[data-theme="light"] aside.ds-sidebar .nav-item.active * { color: #0057B8 !important; }
html[data-theme="light"] aside.ds-sidebar .ds-brand,
html[data-theme="light"] aside.ds-sidebar #favorites-section,
html[data-theme="light"] .ds-sidebar-foot { border-color: rgba(255, 255, 255, .18) !important; }
html[data-theme="light"] .ds-brand-mark { background: #fff !important; color: #0057B8 !important; }
/* 上方列：白底、深藍黑標題 */
html[data-theme="light"] main.ds-main { background: var(--ds-bg) !important; }
html[data-theme="light"] header.ds-header { background: #fff !important; border-bottom: 1px solid var(--ds-border) !important; }
html[data-theme="light"] header.ds-header #page-title { color: #0E1726 !important; }
/* 卡片、面板：白底細框 */
html[data-theme="light"] .glass-panel,
html[data-theme="light"] .ds-card,
html[data-theme="light"] .ds-todo,
html[data-theme="light"] .ds-table-card { background: #fff !important; border-color: var(--ds-border) !important; box-shadow: var(--ds-shadow) !important; }
html[data-theme="light"] .ds-todo:hover { background: #F2F7FD !important; border-color: #BFD7F1 !important; }
/* 輸入框 */
html[data-theme="light"] .scan-input,
html[data-theme="light"] input[type="text"],
html[data-theme="light"] input[type="number"],
html[data-theme="light"] input[type="date"],
html[data-theme="light"] input[type="search"],
html[data-theme="light"] input[type="email"],
html[data-theme="light"] input[type="password"],
html[data-theme="light"] input:not([type]),
html[data-theme="light"] select,
html[data-theme="light"] textarea { background: #fff !important; color: #0E1726 !important; border-color: #C7D2DE !important; }
html[data-theme="light"] .scan-input::placeholder,
html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder { color: #5F6B7D !important; }
/* 舊畫面寫死的深色 Tailwind 色：換成淺色對應 */
html[data-theme="light"] [class~="bg-slate-950"],
html[data-theme="light"] [class~="bg-slate-900"],
html[data-theme="light"] [class*="bg-slate-900/"],
html[data-theme="light"] [class~="bg-gray-900"] { background-color: #fff !important; }
html[data-theme="light"] [class~="bg-slate-800"],
html[data-theme="light"] [class*="bg-slate-800/"],
html[data-theme="light"] [class~="bg-gray-800"] { background-color: #F2F7FD !important; }
html[data-theme="light"] [class~="bg-slate-700"],
html[data-theme="light"] [class*="bg-slate-700/"],
html[data-theme="light"] [class~="bg-slate-600"],
html[data-theme="light"] [class~="bg-gray-700"] { background-color: #E8EEF5 !important; }
html[data-theme="light"] [class*="border-slate-"],
html[data-theme="light"] [class*="border-gray-"] { border-color: #D9E2EC !important; }
html[data-theme="light"] [class*="divide-slate-"] > * + * { border-color: #E5EAF0 !important; }
/* 字：白字改深藍黑；但有色底的按鍵、標籤裡的白字保留 */
html[data-theme="light"] .text-white { color: #0E1726 !important; }
/* 實心有色底（按鍵、標籤）上的白字保留；只有 hover 才變色的不算 */
html[data-theme="light"] :is(.bg-blue-500,.bg-blue-600,.bg-blue-700,.bg-blue-800,.bg-emerald-500,.bg-emerald-600,.bg-emerald-700,.bg-emerald-800,.bg-green-500,.bg-green-600,.bg-green-700,.bg-green-800,.bg-red-500,.bg-red-600,.bg-red-700,.bg-red-800,.bg-orange-500,.bg-orange-600,.bg-orange-700,.bg-orange-800,.bg-amber-500,.bg-amber-600,.bg-amber-700,.bg-amber-800,.bg-purple-500,.bg-purple-600,.bg-purple-700,.bg-purple-800,.bg-cyan-500,.bg-cyan-600,.bg-cyan-700,.bg-cyan-800,.bg-indigo-500,.bg-indigo-600,.bg-indigo-700,.bg-indigo-800,.bg-teal-500,.bg-teal-600,.bg-teal-700,.bg-teal-800,.bg-sky-500,.bg-sky-600,.bg-sky-700,.bg-sky-800,.bg-yellow-500,.bg-yellow-600,.bg-yellow-700,.bg-yellow-800,.bg-pink-500,.bg-pink-600,.bg-pink-700,.bg-pink-800,.bg-rose-500,.bg-rose-600,.bg-rose-700,.bg-rose-800,.bg-violet-500,.bg-violet-600,.bg-violet-700,.bg-violet-800,.bg-fuchsia-500,.bg-fuchsia-600,.bg-fuchsia-700,.bg-fuchsia-800,.bg-lime-500,.bg-lime-600,.bg-lime-700,.bg-lime-800).text-white, html[data-theme="light"] :is(.bg-blue-500,.bg-blue-600,.bg-blue-700,.bg-blue-800,.bg-emerald-500,.bg-emerald-600,.bg-emerald-700,.bg-emerald-800,.bg-green-500,.bg-green-600,.bg-green-700,.bg-green-800,.bg-red-500,.bg-red-600,.bg-red-700,.bg-red-800,.bg-orange-500,.bg-orange-600,.bg-orange-700,.bg-orange-800,.bg-amber-500,.bg-amber-600,.bg-amber-700,.bg-amber-800,.bg-purple-500,.bg-purple-600,.bg-purple-700,.bg-purple-800,.bg-cyan-500,.bg-cyan-600,.bg-cyan-700,.bg-cyan-800,.bg-indigo-500,.bg-indigo-600,.bg-indigo-700,.bg-indigo-800,.bg-teal-500,.bg-teal-600,.bg-teal-700,.bg-teal-800,.bg-sky-500,.bg-sky-600,.bg-sky-700,.bg-sky-800,.bg-yellow-500,.bg-yellow-600,.bg-yellow-700,.bg-yellow-800,.bg-pink-500,.bg-pink-600,.bg-pink-700,.bg-pink-800,.bg-rose-500,.bg-rose-600,.bg-rose-700,.bg-rose-800,.bg-violet-500,.bg-violet-600,.bg-violet-700,.bg-violet-800,.bg-fuchsia-500,.bg-fuchsia-600,.bg-fuchsia-700,.bg-fuchsia-800,.bg-lime-500,.bg-lime-600,.bg-lime-700,.bg-lime-800) .text-white { color: #fff !important; }
html[data-theme="light"] button[class*="bg-slate-"].text-white { color: #0E1726 !important; }
html[data-theme="light"] .text-slate-100,
html[data-theme="light"] .text-slate-200,
html[data-theme="light"] .text-gray-200 { color: #1F2937 !important; }
html[data-theme="light"] .text-slate-300,
html[data-theme="light"] .text-gray-300 { color: #374151 !important; }
html[data-theme="light"] .text-slate-400,
html[data-theme="light"] .text-gray-400 { color: #4B5563 !important; }
html[data-theme="light"] .text-slate-500,
html[data-theme="light"] .text-gray-500,
html[data-theme="light"] .text-slate-600 { color: #566375 !important; }
html[data-theme="light"] .text-yellow-300,
html[data-theme="light"] .text-yellow-400,
html[data-theme="light"] .text-amber-300,
html[data-theme="light"] .text-amber-400 { color: #92400E !important; }
html[data-theme="light"] .text-emerald-300,
html[data-theme="light"] .text-emerald-400,
html[data-theme="light"] .text-green-300,
html[data-theme="light"] .text-green-400 { color: #047857 !important; }
html[data-theme="light"] .text-cyan-300,
html[data-theme="light"] .text-cyan-400,
html[data-theme="light"] .text-sky-300,
html[data-theme="light"] .text-sky-400,
html[data-theme="light"] .text-blue-300,
html[data-theme="light"] .text-blue-400,
html[data-theme="light"] .text-blue-200 { color: #0057B8 !important; }
html[data-theme="light"] .text-orange-300,
html[data-theme="light"] .text-orange-400 { color: #9A3412 !important; }
html[data-theme="light"] .text-red-300,
html[data-theme="light"] .text-red-400 { color: #B91C1C !important; }
html[data-theme="light"] .text-purple-300,
html[data-theme="light"] .text-purple-400 { color: #7C3AED !important; }
html[data-theme="light"] .text-pink-400 { color: #BE185D !important; }
html[data-theme="light"] .text-indigo-400 { color: #4338CA !important; }
html[data-theme="light"] .text-teal-400 { color: #0F766E !important; }
/* 小標籤（狀態、公司）：淡底深字 */
html[data-theme="light"] .badge-green { background: #ECFDF5 !important; color: #047857 !important; border-color: #A7F3D0 !important; }
html[data-theme="light"] .badge-blue { background: #E1ECF9 !important; color: #0057B8 !important; border-color: #BFD7F1 !important; }
html[data-theme="light"] .badge-yellow { background: #FFFBEB !important; color: #B45309 !important; border-color: #FDE68A !important; }
html[data-theme="light"] .badge-orange { background: #FFF7ED !important; color: #C2410C !important; border-color: #FED7AA !important; }
html[data-theme="light"] .badge-red { background: #FEF2F2 !important; color: #B91C1C !important; border-color: #FECACA !important; }
html[data-theme="light"] .badge-purple { background: #F5F3FF !important; color: #7C3AED !important; border-color: #DDD6FE !important; }
html[data-theme="light"] [class*="bg-blue-900"],
html[data-theme="light"] [class*="bg-blue-500/"],
html[data-theme="light"] [class*="bg-blue-600/"] { background-color: #E1ECF9 !important; }
html[data-theme="light"] [class*="bg-emerald-900"],
html[data-theme="light"] [class*="bg-emerald-500/"],
html[data-theme="light"] [class*="bg-green-900"] { background-color: #ECFDF5 !important; }
html[data-theme="light"] [class*="bg-orange-900"],
html[data-theme="light"] [class*="bg-orange-500/"],
html[data-theme="light"] [class*="bg-amber-900"],
html[data-theme="light"] [class*="bg-amber-500/"],
html[data-theme="light"] [class*="bg-yellow-900"],
html[data-theme="light"] [class*="bg-yellow-500/"] { background-color: #FFF7ED !important; }
html[data-theme="light"] [class*="bg-red-900"],
html[data-theme="light"] [class*="bg-red-500/"] { background-color: #FEF2F2 !important; }
html[data-theme="light"] [class*="bg-purple-900"],
html[data-theme="light"] [class*="bg-purple-500/"] { background-color: #F5F3FF !important; }
/* 一般操作的藍鍵換品牌藍 */
html[data-theme="light"] .ds-btn-primary,
html[data-theme="light"] .ds-btn-blue,
html[data-theme="light"] button.bg-blue-600,
html[data-theme="light"] button.bg-blue-500 { background: #0057B8 !important; color: #fff !important; }
html[data-theme="light"] .ds-btn-primary:hover,
html[data-theme="light"] .ds-btn-blue:hover { background: #00408A !important; }
html[data-theme="light"] .ds-btn-secondary { background: #fff !important; color: #0E1726 !important; border-color: #C7D2DE !important; }
html[data-theme="light"] .ds-btn-secondary:hover { background: #F2F7FD !important; }
/* 表格 */
html[data-theme="light"] .ds-table thead th,
html[data-theme="light"] .dense-table th,
html[data-theme="light"] table thead th { background: #F7F9FC !important; color: #374151 !important; border-bottom-color: #D9E2EC !important; }
html[data-theme="light"] .ds-table tbody tr:hover,
html[data-theme="light"] .dense-table tr:hover,
html[data-theme="light"] tbody tr:hover { background: #F2F7FD !important; }
html[data-theme="light"] .ds-table tbody td { color: #1F2937; border-bottom-color: #EEF2F6 !important; }
/* 視窗 */
html[data-theme="light"] .ds-modal { background: rgba(14, 23, 38, .45) !important; }
html[data-theme="light"] .ds-modal > div:first-child,
html[data-theme="light"] .ds-modal-box { background: #fff !important; border-color: #D9E2EC !important; box-shadow: inset 0 3px 0 var(--hl, #0057B8), 0 30px 80px -20px rgba(14, 23, 38, .35) !important; }
html[data-theme="light"] .ds-modal h3 { color: #0E1726 !important; }
/* 步驟列、統計小標籤 */
html[data-theme="light"] .ds-stat { background: #fff !important; }
html[data-theme="light"] .ds-stat-n { color: #0E1726 !important; }
/* 第二輪修正 */
html[data-theme="light"] #main-nav .nav-item i,
html[data-theme="light"] #main-nav .nav-group-header i:not(.nav-chevron),
html[data-theme="light"] aside.ds-sidebar i { color: rgba(255, 255, 255, .8) !important; }
html[data-theme="light"] #main-nav .nav-item.active i { color: #0057B8 !important; }
html[data-theme="light"] .ds-seg input[value="崇文"]:checked + div { background: #E1ECF9 !important; box-shadow: inset 0 0 0 1px #0057B8 !important; color: #0057B8 !important; }
html[data-theme="light"] .ds-seg input[value="八方"]:checked + div { background: #F5F3FF !important; box-shadow: inset 0 0 0 1px #7C3AED !important; color: #6D28D9 !important; }
html[data-theme="light"] .ds-seg input:checked + div { background: #fff !important; color: #0E1726 !important; box-shadow: 0 1px 2px rgba(14,23,38,.12), inset 0 0 0 1px #BFD7F1 !important; }
html[data-theme="light"] [class*="bg-teal-900"],
html[data-theme="light"] [class*="bg-cyan-900"],
html[data-theme="light"] [class*="bg-teal-500/"],
html[data-theme="light"] [class*="bg-cyan-500/"] { background-color: #F0FDFA !important; }
/* 淡色底（/數字）＋白字：白字看不到，改深色 */
html[data-theme="light"] [class*="bg-"][class*="/"].text-white { color: #0E1726 !important; }

/* 倉庫地圖：建築、走道、儲位格改淺色（佔用多少的顏色條不動） */
html[data-theme="light"] .warehouse-building, html[data-theme="light"] .warehouse-building-ij, html[data-theme="light"] .warehouse-building-k { background: #fff !important; border-color: #C7D2DE !important; }
html[data-theme="light"] .warehouse-container, html[data-theme="light"] .warehouse-container-new, html[data-theme="light"] .warehouse-new-layout { background-color: var(--ds-bg) !important; }
html[data-theme="light"] .zone-block, html[data-theme="light"] .rack-lanes-8, html[data-theme="light"] .rack-lanes-22 { background: #F7F9FC !important; border-color: #D9E2EC !important; }
html[data-theme="light"] .rack-lane, html[data-theme="light"] .rack-lane-new { background: #fff !important; border-color: #C7D2DE !important; }
html[data-theme="light"] .rack-lane.active { background: #FFFBEB !important; border-color: #F59E0B !important; }
html[data-theme="light"] .lane-id-tag, html[data-theme="light"] .rack-lane-new .lane-id-tag { color: #566375 !important; }
html[data-theme="light"] .rack-lane:hover .lane-id-tag, html[data-theme="light"] .rack-lane-new:hover .lane-id-tag { color: #374151 !important; }
html[data-theme="light"] .lane-full-locked { background: repeating-linear-gradient(45deg, #F3F4F6, #F3F4F6 10px, #E5E7EB 10px, #E5E7EB 20px) !important; }
html[data-theme="light"] .hover-tooltip { background: #fff !important; color: #0E1726 !important; border-color: #C7D2DE !important; }
html[data-theme="light"] .tooltip-level, html[data-theme="light"] .tooltip-stat { background: #F7F9FC !important; border-color: #D9E2EC !important; }
html[data-theme="light"] .tooltip-item { background: #F2F7FD !important; }
html[data-theme="light"] .tooltip-item-name { color: #0E1726 !important; }
html[data-theme="light"] .tooltip-item-info, html[data-theme="light"] .tooltip-level-name, html[data-theme="light"] .tooltip-stat-label { color: #4B5563 !important; }
html[data-theme="light"] .dense-table th { background: #F7F9FC !important; border-bottom-color: #D9E2EC !important; }
html[data-theme="light"] .dense-table tr:hover { background-color: #F2F7FD !important; }
/* 淡色小字（-200 色階）在白底看不到：換深色同色系 */
html[data-theme="light"] .text-emerald-200, html[data-theme="light"] .text-green-200 { color: #047857 !important; }
html[data-theme="light"] .text-orange-200, html[data-theme="light"] .text-amber-200, html[data-theme="light"] .text-yellow-200 { color: #92400E !important; }
html[data-theme="light"] .text-purple-200 { color: #6D28D9 !important; }
html[data-theme="light"] .text-red-200 { color: #B91C1C !important; }
html[data-theme="light"] .text-cyan-200, html[data-theme="light"] .text-sky-200 { color: #0369A1 !important; }
/* 登入畫面：品牌藍底（純色，不用漸層）、中間白框、登入鍵品牌藍 */
html[data-theme="light"] #view-login { background: #0057B8 !important; }
html[data-theme="light"] #view-login h1, html[data-theme="light"] #view-login h1 span, html[data-theme="light"] #view-login .fa-warehouse { color: #fff !important; }
html[data-theme="light"] #view-login > div > div:first-child p { color: rgba(255, 255, 255, .82) !important; }
html[data-theme="light"] #view-login > div > div:nth-child(2) { background: #fff !important; border: 0 !important; box-shadow: 0 24px 60px -24px rgba(14, 23, 38, .55) !important; }
html[data-theme="light"] #view-login label { color: #374151 !important; }
html[data-theme="light"] #view-login #btn-login { background: #0057B8 !important; color: #fff !important; }
html[data-theme="light"] #view-login #btn-login:hover { background: #00408A !important; }
html[data-theme="light"] #view-login > div > p { color: rgba(255, 255, 255, .88) !important; }
/* 暫存區監控：靛藍、粉紅的深色底 */
html[data-theme="light"] [class*="bg-indigo-900"], html[data-theme="light"] [class*="bg-indigo-500/"] { background-color: #EEF2FF !important; }
html[data-theme="light"] [class*="bg-pink-900"], html[data-theme="light"] [class*="bg-pink-500/"] { background-color: #FDF2F8 !important; }
html[data-theme="light"] .text-indigo-200, html[data-theme="light"] .text-indigo-300 { color: #4338CA !important; }
html[data-theme="light"] .text-pink-200, html[data-theme="light"] .text-pink-300 { color: #BE185D !important; }

/* 舊入庫頁的選層、虛擬儲位鍵 */
html[data-theme="light"] .level-btn-active { background: #E1ECF9 !important; border-color: #0057B8 !important; color: #0E1726 !important; }
html[data-theme="light"] .level-btn-active:hover { background: #D3E3F7 !important; }
html[data-theme="light"] .level-btn-full { background: #F3F4F6 !important; border-color: #D1D5DB !important; color: #9CA3AF !important; }
html[data-theme="light"] .virtual-card { background: #F2F7FD !important; border-color: #BFD7F1 !important; }
html[data-theme="light"] .virtual-card:hover { background: #E1ECF9 !important; border-color: #0057B8 !important; }
/* 揀貨單更新的紅色緊急提示：維持紅底白字 */
html[data-theme="light"] #update-complete-alert .text-white { color: #fff !important; }
html[data-theme="light"] #update-complete-alert .text-red-200 { color: #FECACA !important; }
html[data-theme="light"] #update-complete-alert .text-yellow-300 { color: #FDE047 !important; }
html[data-theme="light"] #update-complete-alert [class*="bg-red-950"] { background-color: rgba(69, 10, 10, .5) !important; }
html[data-theme="light"] #update-complete-alert [class*="bg-yellow-500/"] { background-color: rgba(234, 179, 8, .2) !important; }
/* 直接放在半透明黑底上的字（進度、清空中）維持白字 */
html[data-theme="light"] [class*="bg-black/"] > .text-white { color: #fff !important; }
/* 左側選單裡的字一律白色系（選中那一項除外） */
html[data-theme="light"] aside.ds-sidebar .text-white, html[data-theme="light"] aside.ds-sidebar [class*="text-slate-"] { color: rgba(255, 255, 255, .86) !important; }
html[data-theme="light"] aside.ds-sidebar .nav-item.active .text-white, html[data-theme="light"] aside.ds-sidebar .nav-item.active [class*="text-slate-"] { color: #0057B8 !important; }
html[data-theme="light"] #backup-reminder, html[data-theme="light"] #backup-reminder :not(.bg-white) { color: #fff !important; }   /* 備份提醒在選單裡：橘底白字（不要被上面選單的半透明白字蓋掉）；「立即備份」白底橘字照舊 */
/* ds.css 裡寫死的亮色字（深色底用）：選品項清單、調撥選品項 */
html[data-theme="light"] #product-select-table .ps-code, html[data-theme="light"] .tfp-exp .loc { color: #0057B8 !important; }
html[data-theme="light"] #product-select-table .ps-name { color: #0E1726 !important; }
html[data-theme="light"] #product-select-table .ps-spec { color: #374151 !important; }
html[data-theme="light"] #product-select-table .ps-cap { color: #B45309 !important; }
html[data-theme="light"] #product-select-table .ps-more { color: #566375 !important; }
html[data-theme="light"] #view-unified-inbound .inbound-type-btn.active { color: #0E1726 !important; }
/* 實心有色底（紅、橘按鍵）裡的說明小字：維持淺色才看得到 */
html[data-theme="light"] :is(.bg-red-600, .bg-red-700, .bg-red-800, .bg-orange-500, .bg-orange-600, .bg-orange-700, .bg-blue-600, .bg-blue-700, .bg-emerald-600, .bg-emerald-700, .bg-purple-600, .bg-purple-700) :is([class*="text-red-"], [class*="text-orange-"], [class*="text-amber-"], [class*="text-yellow-"], [class*="text-blue-"], [class*="text-emerald-"], [class*="text-green-"], [class*="text-purple-"], [class*="text-slate-"]):not([class*="bg-"]) { color: #fff !important; }

/* ===== 逐字對比檢查後修正（2026/10/18）：每一段字、每一個圖示量過，一般字至少 4.5、大字和圖示至少 3 ===== */
/* 實心按鍵、標籤的顏色（綠、橘、琥珀、黃、青…加深一階）兩種顏色共用，在 ds.css 最後；這裡只放淺色不一樣的 */
html[data-theme="light"] .bg-blue-500 { background-color: #1D4ED8 !important; }
html[data-theme="light"] .zone-label { background: #0057B8 !important; }
/* 選項按鍵（公司、類別）：選到的那一個實心底白字 */
html[data-theme="light"] input:checked + [class*="peer-checked:bg-blue-600"] { background-color: #0057B8 !important; }
html[data-theme="light"] input:checked + [class*="peer-checked:bg-purple-600"] { background-color: #7C3AED !important; }
/* 不能按的鍵：灰底深灰字（鍵上寫的原因要看得清楚），不用半透明 */
html[data-theme="light"] .ds-btn[disabled]:disabled, html[data-theme="light"] button[disabled]:disabled { background: #E2E8F0 !important; color: #475569 !important; border-color: #CBD5E1 !important; opacity: 1 !important; box-shadow: none !important; }
html[data-theme="light"] button[disabled]:disabled :is(i, span, small, b, em) { color: inherit !important; }
/* 倉庫熱度圖：沒用到的格子是淺灰，編號用深灰；有顏色的格子白字 */
html[data-theme="light"] .bg-slate-600 > .text-white\/80 { color: #475569 !important; }
/* 調撥選品項：本倉／外倉小標籤、倉庫列 */
html[data-theme="light"] .tfp-chip.main { background: #FFF7ED; color: #9A3412; }
html[data-theme="light"] .tfp-chip.ext { background: #F0FDFA; color: #0F766E; }
html[data-theme="light"] .tfp-wh { background: #F0FDFA; color: #0F766E; }
html[data-theme="light"] .tfp-wh.own { background: #ECFDF5; color: #047857; }
/* 物流商小標籤（顏色跟著物流商）：字加深 */
html[data-theme="light"] .lg-pill { color: color-mix(in srgb, var(--lc) 50%, #000); }
/* 今日工作的圖示、欄位標題的步驟圈（顏色跟著那一項）：圖示加深 */
html[data-theme="light"] .ds-todo[style*="--c"] .ds-todo-icon, html[data-theme="light"] .ds-flow[style*="--c"] .ds-todo-icon { color: color-mix(in srgb, var(--c) 60%, #000); }
html[data-theme="light"] .ds-col[style*="--c"] > .ds-col-title .ds-step-n { color: color-mix(in srgb, var(--c) 70%, #000); }
html[data-theme="light"] .ds-step[data-state="done"] .ds-step-n { color: #065F46; }
/* 其他淡字 */
html[data-theme="light"] .ds-step small { opacity: 1; }
html[data-theme="light"] #view-home .ds-clear { opacity: 1; }
html[data-theme="light"] .text-red-300\/70 { color: #B91C1C !important; }
html[data-theme="light"] .text-green-600, html[data-theme="light"] .text-emerald-600 { color: #15803D !important; }
html[data-theme="light"] .text-rose-300, html[data-theme="light"] .text-rose-400 { color: #BE123C !important; }
html[data-theme="light"] .text-orange-600 { color: #C2410C !important; }
/* 實心色底（例如首頁橘色「該備份了」）裡的半透明白字：改全白 */
html[data-theme="light"] :is(.bg-orange-600, .bg-orange-500, .bg-red-600, .bg-red-700, .bg-blue-600, .bg-emerald-600, .bg-amber-600) :is(.text-white\/60, .text-white\/70, .text-white\/80, .text-white\/90) { color: #fff !important; }
/* 入庫作業三張卡片的編號圈（還沒做到的那一步）：字加深 */
html[data-theme="light"] #view-unified-inbound .ds-col-title:not([data-state="now"]):not([data-state="done"]) .ds-step-n { color: color-mix(in srgb, var(--sc) 75%, #000); }
/* 品項分析的長條：數字壓在長條上（長條有長有短），深色字加白邊，壓在色條或灰底上都看得到 */
html[data-theme="light"] .bg-slate-700.relative > span.absolute.inset-0 { color: #0E1726 !important; text-shadow: 0 0 2px #fff, 0 0 2px #fff, 0 0 4px #fff; }

