/* ======================================================
   REEHOR WORK
   FONT CONTRAST V1

   全系统非白色字体加深一级。
   白色字体区域保持不变。
====================================================== */

:root {

  /* 原 #10273D */
  --rh-title: #081C2D;

  /* 原 #233B4F */
  --rh-text: #172D3E;

  /* 原 #6F8393 */
  --rh-text-secondary: #536A7A;

  /* 原 #91A1AE */
  --rh-text-light: #718491;
}


/* ======================================================
   页面主体
====================================================== */

body {
  color: #172D3E;
}


/* 一级标题 */
:where(
  main,
  .main-content,
  .page-content,
  .dashboard-content,
  .app-content
)
:where(
  h1,
  h2,
  h3,
  h4,
  .page-title,
  .dashboard-title,
  .card-title,
  .panel-title,
  .section-title
) {
  color: #081C2D !important;
}


/* 普通正文 */
:where(
  main,
  .main-content,
  .page-content,
  .dashboard-content,
  .app-content
)
:where(
  p,
  label,
  td,
  .text,
  .body-text,
  .item-name,
  .task-name,
  .project-name
) {
  color: #172D3E;
}


/* ======================================================
   次级文字
====================================================== */

:where(
  .page-subtitle,
  .dashboard-subtitle,
  .subtitle,
  .subtext,
  .helper-text,
  .description,
  .meta,
  .card-subtitle
) {
  color: #536A7A !important;
}


/* ======================================================
   KPI 卡片
====================================================== */

:where(
  .metric-title,
  .kpi-title
) {
  color: #526A7B !important;
}


:where(
  .metric-value,
  .kpi-value,
  .metric-number,
  .kpi-number
) {
  color: #081C2D !important;
}


:where(
  .metric-card,
  .kpi-card
)
:where(
  small,
  p,
  .subtitle,
  .description
) {
  color: #667B8B !important;
}


/* ======================================================
   工作台待办
====================================================== */

:where(
  .todo-item,
  .todo-row
)
:where(
  .todo-title,
  .title,
  strong
) {
  color: #102536 !important;
}


:where(
  .todo-item,
  .todo-row
)
:where(
  small,
  .meta,
  .subtitle
) {
  color: #617686 !important;
}


/* ======================================================
   今日重点事项
====================================================== */

:where(
  .priority-item,
  .focus-item,
  .today-focus-item
)
:where(
  strong,
  .title,
  .name
) {
  color: #102536 !important;
}


:where(
  .priority-item,
  .focus-item,
  .today-focus-item
)
:where(
  small,
  .meta,
  .subtitle
) {
  color: #617686 !important;
}


/* ======================================================
   表格
====================================================== */

table th {
  color: #4D6577 !important;
}


table td {
  color: #1B3243 !important;
}


/* ======================================================
   输入框
====================================================== */

input,
select,
textarea {
  color: #172D3E !important;
}


input::placeholder,
textarea::placeholder {
  color: #718491 !important;
}


/* ======================================================
   任务 / 项目抽屉
====================================================== */

:where(
  .drawer,
  .drawer-panel,
  .drawer-content,
  .employee-drilldown-drawer
)
:where(
  h1,
  h2,
  h3,
  h4,
  strong
) {
  color: #081C2D;
}


:where(
  .drawer,
  .drawer-panel,
  .drawer-content
)
:where(
  label,
  p,
  span
) {
  color: #344C5E;
}


/* 任务字段标签 */
.task-v6-field label {
  color: #40596B !important;
}


.task-v6-readonly {
  color: #354D5F !important;
}


/* ======================================================
   员工下钻
====================================================== */

.employee-drilldown-title {
  color: #081C2D !important;
}


.employee-drilldown-subtitle {
  color: #596F80 !important;
}


.employee-drilldown-name {
  color: #102536 !important;
}


.employee-drilldown-meta {
  color: #657A89 !important;
}


.employee-drilldown-action {
  color: #354D5E !important;
}


.employee-drilldown-date {
  color: #40586A !important;
}


/* ======================================================
   任务 / 项目操作区
====================================================== */

.task-actions-final-title,
.project-actions-title,
.task-life-v2-heading {
  color: #102536 !important;
}


.task-actions-final-meta,
.project-actions-note,
.task-life-v2-meta {
  color: #5E7383 !important;
}


/* ======================================================
   状态标签
   保留彩色体系，但文字略深
====================================================== */

:where(
  .badge-info,
  .risk-upcoming,
  .tag-info
) {
  color: #067386 !important;
}


:where(
  .badge-warning,
  .tag-warning
) {
  color: #C66C16 !important;
}


:where(
  .badge-danger,
  .tag-danger,
  .risk-overdue
) {
  color: #C53F3F !important;
}


:where(
  .badge-success,
  .tag-success
) {
  color: #117252 !important;
}


/* ======================================================
   必须保持白色的区域
====================================================== */


/* 左侧导航 */

:where(
  .sidebar,
  .app-sidebar,
  .side-nav
),
:where(
  .sidebar,
  .app-sidebar,
  .side-nav
)
:where(
  div,
  span,
  p,
  strong,
  a,
  button
) {
  color: #FFFFFF !important;
}


/* Sidebar 次级信息稍微柔和，但仍属于白色体系 */

:where(
  .sidebar,
  .app-sidebar,
  .side-nav
)
:where(
  small,
  .subtitle,
  .role,
  .user-role
) {
  color: #C9DDE3 !important;
}


/* 深色AI管理助手 */

.rh-ai-dark-bar,
.rh-ai-dark-bar
:where(
  div,
  span,
  p,
  strong
),
.employee-ai-assistant,
.employee-ai-assistant
:where(
  div,
  span,
  strong
) {
  color: #FFFFFF !important;
}


/* AI副标题 */
.rh-ai-dark-bar
:where(
  small,
  .subtitle,
  .subtext
),
.employee-ai-subtitle {
  color: #C8E0E6 !important;
}


/* 深色按钮 */

:where(
  .btn-primary,
  .primary-button,
  button.primary,
  .task-v6-confirm,
  .task-actions-complete,
  .task-actions-primary-full,
  .project-actions-complete,
  .employee-ai-button,
  .rh-ai-dark-button
) {
  color: #FFFFFF !important;
}


/* Logo */

.rh-company-logo-fallback {
  color: #FFFFFF !important;
}


/* 已完成/危险色块如果原设计使用深色背景，则不强行覆盖 */
