/*
 * 爆款工作台主题补丁。
 * 项目主题由 data-theme-mode 控制，但 Tailwind 的 dark: 仍跟随系统配色；
 * 当系统为深色、页面手动切到日间时，需要在页面主题作用域内纠正颜色。
 */
body[data-theme-mode="light"] .hot-product-workspace #hotProductSelectedDateRangeText {
  border-color: #bfdbfe !important;
  background: rgba(239, 246, 255, 0.92) !important;
  color: #075985 !important;
}

body[data-theme-mode="light"] .hot-product-workspace #hotProductPriceRangeOptions {
  color: #475569;
}

body[data-theme-mode="light"] .hot-product-workspace #hotProductProgressSection > .overflow-x-auto {
  border-color: #cbd5e1 !important;
  background: rgba(255, 255, 255, 0.96) !important;
}

body[data-theme-mode="light"] .hot-product-workspace #hotProductProgressSection thead {
  background: #e8eef6 !important;
}

body[data-theme-mode="light"] .hot-product-workspace #hotProductProgressSection th {
  color: #334155 !important;
}

body[data-theme-mode="light"] .hot-product-workspace #hotProductProgressBody tr {
  background: rgba(255, 255, 255, 0.94) !important;
  color: #334155 !important;
}

body[data-theme-mode="light"] .hot-product-workspace #hotProductProgressBody tr:nth-child(even) {
  background: rgba(248, 250, 252, 0.96) !important;
}

body[data-theme-mode="light"] .hot-product-workspace #hotProductProgressBody tr:hover {
  background: rgba(219, 234, 254, 0.72) !important;
}

body[data-theme-mode="light"] .hot-product-workspace #hotProductProgressBody td {
  color: inherit;
}

body[data-theme-mode="light"] .hot-product-workspace #hotProductProgressSummary {
  color: #475569 !important;
}

body[data-theme-mode="light"] .hot-product-workspace .hot-product-results > .grid {
  border-color: #d5dfec !important;
  background: rgba(248, 250, 252, 0.96) !important;
}

body[data-theme-mode="light"] .hot-product-workspace #hotProductProgressPrevBtn,
body[data-theme-mode="light"] .hot-product-workspace #hotProductProgressNextBtn,
body[data-theme-mode="light"] .hot-product-workspace #hotProductProgressJumpBtn,
body[data-theme-mode="light"] .hot-product-workspace #hotProductResultPrevBtn,
body[data-theme-mode="light"] .hot-product-workspace #hotProductResultNextBtn,
body[data-theme-mode="light"] .hot-product-workspace #hotProductResultJumpBtn {
  border-color: #d5dfec !important;
  background: rgba(248, 251, 255, 0.96) !important;
  color: #4f6176 !important;
}

body[data-theme-mode="light"] .hot-product-workspace #hotProductProgressPrevBtn:hover,
body[data-theme-mode="light"] .hot-product-workspace #hotProductProgressNextBtn:hover,
body[data-theme-mode="light"] .hot-product-workspace #hotProductProgressJumpBtn:hover,
body[data-theme-mode="light"] .hot-product-workspace #hotProductResultPrevBtn:hover,
body[data-theme-mode="light"] .hot-product-workspace #hotProductResultNextBtn:hover,
body[data-theme-mode="light"] .hot-product-workspace #hotProductResultJumpBtn:hover {
  background: #eff6ff !important;
  color: #1d4ed8 !important;
}

body[data-theme-mode="light"] .hot-product-workspace #hotProductProgressJumpInput,
body[data-theme-mode="light"] .hot-product-workspace #hotProductResultJumpInput,
body[data-theme-mode="light"] .hot-product-workspace #hotProductResultPageSizeSelect {
  border-color: #d5dfec !important;
  background: #ffffff !important;
  color: #13253d !important;
  color-scheme: light;
}

body[data-theme-mode="light"] .hot-product-workspace #hotProductProgressPageNumbers button,
body[data-theme-mode="light"] .hot-product-workspace #hotProductResultPageNumbers button {
  border-color: #cbd5e1 !important;
  background: #ffffff !important;
  color: #475569 !important;
}

body[data-theme-mode="light"] .hot-product-workspace #hotProductProgressPageNumbers button:hover,
body[data-theme-mode="light"] .hot-product-workspace #hotProductResultPageNumbers button:hover {
  border-color: #93c5fd !important;
  background: #eff6ff !important;
  color: #1d4ed8 !important;
}

body[data-theme-mode="light"] .hot-product-workspace #hotProductProgressPageNumbers button[aria-current="page"],
body[data-theme-mode="light"] .hot-product-workspace #hotProductResultPageNumbers button[aria-current="page"] {
  border-color: #2563eb !important;
  background: #2563eb !important;
  color: #ffffff !important;
}

body[data-theme-mode="dark"] .hot-product-workspace #hotProductSelectedDateRangeText {
  border-color: rgba(56, 189, 248, 0.28) !important;
  background: rgba(56, 189, 248, 0.1) !important;
  color: #e0f2fe !important;
}

body[data-theme-mode="dark"] .hot-product-workspace #hotProductPriceRangeOptions {
  color: #cbd5e1;
}

body[data-theme-mode="dark"] .hot-product-workspace #hotProductProgressSection > .overflow-x-auto {
  border-color: #475569 !important;
  background: rgba(30, 41, 59, 0.88) !important;
}

body[data-theme-mode="dark"] .hot-product-workspace #hotProductProgressSection h3 {
  color: #e2e8f0 !important;
}

body[data-theme-mode="dark"] .hot-product-workspace #hotProductProgressSection thead {
  background: #334155 !important;
}

body[data-theme-mode="dark"] .hot-product-workspace #hotProductProgressSection th {
  color: #f1f5f9 !important;
}

body[data-theme-mode="dark"] .hot-product-workspace #hotProductProgressBody tr {
  background: rgba(30, 41, 59, 0.76) !important;
  color: #e2e8f0 !important;
}

body[data-theme-mode="dark"] .hot-product-workspace #hotProductProgressBody tr:nth-child(even) {
  background: rgba(15, 23, 42, 0.58) !important;
}

body[data-theme-mode="dark"] .hot-product-workspace #hotProductProgressBody tr:hover {
  background: rgba(14, 165, 233, 0.15) !important;
}

body[data-theme-mode="dark"] .hot-product-workspace #hotProductProgressBody td {
  color: inherit;
}

body[data-theme-mode="dark"] .hot-product-workspace #hotProductProgressSummary {
  color: #cbd5e1 !important;
}

body[data-theme-mode="dark"] .hot-product-workspace .hot-product-results > .grid {
  border-color: rgba(148, 163, 184, 0.22) !important;
  background: rgba(15, 23, 42, 0.58) !important;
}

body[data-theme-mode="dark"] .hot-product-workspace #hotProductProgressPrevBtn,
body[data-theme-mode="dark"] .hot-product-workspace #hotProductProgressNextBtn,
body[data-theme-mode="dark"] .hot-product-workspace #hotProductProgressJumpBtn,
body[data-theme-mode="dark"] .hot-product-workspace #hotProductResultPrevBtn,
body[data-theme-mode="dark"] .hot-product-workspace #hotProductResultNextBtn,
body[data-theme-mode="dark"] .hot-product-workspace #hotProductResultJumpBtn {
  border-color: rgba(148, 163, 184, 0.28) !important;
  background: rgba(15, 23, 42, 0.52) !important;
  color: #cbd5e1 !important;
}

body[data-theme-mode="dark"] .hot-product-workspace #hotProductProgressPrevBtn:hover,
body[data-theme-mode="dark"] .hot-product-workspace #hotProductProgressNextBtn:hover,
body[data-theme-mode="dark"] .hot-product-workspace #hotProductProgressJumpBtn:hover,
body[data-theme-mode="dark"] .hot-product-workspace #hotProductResultPrevBtn:hover,
body[data-theme-mode="dark"] .hot-product-workspace #hotProductResultNextBtn:hover,
body[data-theme-mode="dark"] .hot-product-workspace #hotProductResultJumpBtn:hover {
  border-color: rgba(56, 189, 248, 0.48) !important;
  background: rgba(14, 165, 233, 0.16) !important;
  color: #e0f2fe !important;
}

body[data-theme-mode="dark"] .hot-product-workspace #hotProductProgressJumpInput,
body[data-theme-mode="dark"] .hot-product-workspace #hotProductResultJumpInput,
body[data-theme-mode="dark"] .hot-product-workspace #hotProductResultPageSizeSelect {
  border-color: rgba(148, 163, 184, 0.3) !important;
  background: rgba(15, 23, 42, 0.7) !important;
  color: #f1f5f9 !important;
  color-scheme: dark;
}

body[data-theme-mode="dark"] .hot-product-workspace #hotProductProgressPageNumbers button,
body[data-theme-mode="dark"] .hot-product-workspace #hotProductResultPageNumbers button {
  border-color: rgba(148, 163, 184, 0.28) !important;
  background: rgba(15, 23, 42, 0.56) !important;
  color: #cbd5e1 !important;
}

body[data-theme-mode="dark"] .hot-product-workspace #hotProductProgressPageNumbers button:hover,
body[data-theme-mode="dark"] .hot-product-workspace #hotProductResultPageNumbers button:hover {
  border-color: rgba(56, 189, 248, 0.5) !important;
  background: rgba(14, 165, 233, 0.16) !important;
  color: #e0f2fe !important;
}

body[data-theme-mode="dark"] .hot-product-workspace #hotProductProgressPageNumbers button[aria-current="page"],
body[data-theme-mode="dark"] .hot-product-workspace #hotProductResultPageNumbers button[aria-current="page"] {
  border-color: #38bdf8 !important;
  background: rgba(14, 165, 233, 0.34) !important;
  color: #f0f9ff !important;
}

.hot-product-workspace .hot-result-checkbox {
  accent-color: #2563eb;
  cursor: pointer;
}

.hot-product-workspace .hot-result-checkbox:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.hot-product-workspace .hot-batch-action-trigger[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.hot-product-workspace .hot-batch-action-trigger svg {
  transition: transform 0.2s ease;
}

body[data-theme-mode="light"] .hot-product-workspace .hot-batch-action-trigger {
  border-color: #cbd5e1;
  background: #ffffff;
  color: #334155;
}

body[data-theme-mode="light"] .hot-product-workspace .hot-batch-action-trigger:hover,
body[data-theme-mode="light"] .hot-product-workspace .hot-batch-action-trigger[aria-expanded="true"] {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
}

body[data-theme-mode="light"] .hot-product-workspace #hotProductSelectedCount,
body[data-theme-mode="light"] .hot-product-workspace #hotProductProgressSelectedCount {
  background: #dbeafe;
  color: #1d4ed8;
}

body[data-theme-mode="light"] .hot-product-workspace .hot-batch-action-menu {
  border-color: #d5dfec;
  background: rgba(255, 255, 255, 0.98);
  color: #334155;
}

body[data-theme-mode="light"] .hot-product-workspace .hot-batch-action-item:hover {
  background: #eff6ff;
  color: #1d4ed8;
}

body[data-theme-mode="light"] .hot-product-workspace .hot-batch-action-danger {
  color: #be123c;
}

body[data-theme-mode="light"] .hot-product-workspace .hot-batch-action-danger:hover {
  background: #fff1f2;
  color: #9f1239;
}

body[data-theme-mode="light"] .hot-product-workspace .hot-result-table-wrap tbody tr:has(.hot-result-checkbox:checked) {
  background: rgba(219, 234, 254, 0.68) !important;
}

body[data-theme-mode="light"] .hot-product-workspace #hotProductProgressBody tr:has(.hot-progress-checkbox:checked) {
  background: rgba(219, 234, 254, 0.72) !important;
}

body[data-theme-mode="dark"] .hot-product-workspace .hot-result-checkbox {
  accent-color: #38bdf8;
}

body[data-theme-mode="dark"] .hot-product-workspace .hot-batch-action-trigger {
  border-color: rgba(148, 163, 184, 0.35);
  background: rgba(30, 41, 59, 0.78);
  color: #e2e8f0;
}

body[data-theme-mode="dark"] .hot-product-workspace .hot-batch-action-trigger:hover,
body[data-theme-mode="dark"] .hot-product-workspace .hot-batch-action-trigger[aria-expanded="true"] {
  border-color: rgba(56, 189, 248, 0.58);
  background: rgba(14, 165, 233, 0.16);
  color: #e0f2fe;
}

body[data-theme-mode="dark"] .hot-product-workspace #hotProductSelectedCount,
body[data-theme-mode="dark"] .hot-product-workspace #hotProductProgressSelectedCount {
  background: rgba(14, 165, 233, 0.2);
  color: #bae6fd;
}

body[data-theme-mode="dark"] .hot-product-workspace .hot-batch-action-menu {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.98);
  color: #e2e8f0;
}

body[data-theme-mode="dark"] .hot-product-workspace .hot-batch-action-item:hover {
  background: rgba(14, 165, 233, 0.15);
  color: #e0f2fe;
}

body[data-theme-mode="dark"] .hot-product-workspace .hot-batch-action-danger {
  color: #fda4af;
}

body[data-theme-mode="dark"] .hot-product-workspace .hot-batch-action-danger:hover {
  background: rgba(244, 63, 94, 0.15);
  color: #fecdd3;
}

body[data-theme-mode="dark"] .hot-product-workspace .hot-result-table-wrap tbody tr:has(.hot-result-checkbox:checked) {
  background: rgba(14, 165, 233, 0.16) !important;
}

body[data-theme-mode="dark"] .hot-product-workspace #hotProductProgressBody tr:has(.hot-progress-checkbox:checked) {
  background: rgba(14, 165, 233, 0.18) !important;
}
