/* 驾驶舱顶栏 — 三屏统一（左侧系统名 + 导航切换） */
.ckpt-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  min-width: 0;
}

.ckpt-header-left h1 {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  white-space: nowrap;
  margin: 0;
}

.ckpt-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;
}

.ckpt-time {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
}

.ckpt-enter {
  padding: 8px 20px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  background: var(--enter-bg, #fff);
  color: var(--enter-color, #1890ff);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  white-space: nowrap;
}

.ckpt-enter:hover {
  background: var(--enter-hover, #e6f4ff);
  color: var(--enter-color, #1890ff);
}

/* 驾驶舱顶部导航（考核 / 企业 / 指标） */
.ckpt-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  flex-shrink: 0;
}
.ckpt-nav-item {
  padding: 7px 16px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.ckpt-nav-item:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}
.ckpt-nav-item.active {
  background: rgba(255, 255, 255, 0.95);
  color: #0f2744;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}
html[data-theme="dark"] .ckpt-nav-item.active {
  background: rgba(56, 189, 248, 0.92);
  color: #041018;
}

/* 顶栏 — 考核/统计年度（浅色默认，深色对齐企业端高对比） */
.header-year,
.header-industry {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.header-year .year-bar-label,
.header-industry .year-bar-label {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
}

.header-year .year-select {
  padding: 4px 28px 4px 10px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.95);
  color: #1a3353;
  cursor: pointer;
  outline: none;
  font-family: inherit;
  transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.header-year .year-select:focus {
  border-color: rgba(255, 255, 255, 0.75);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.header-year .year-hint {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 深色模式：半透明底 + 亮色文字，与企业端主题切换 pill 一致 */
html[data-theme="dark"] .header-year,
html[data-theme="dark"] .header-industry {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.38);
}

html[data-theme="dark"] .header-year .year-bar-label,
html[data-theme="dark"] .header-industry .year-bar-label {
  color: #f1f5f9;
}

html[data-theme="dark"] .header-year .year-select {
  background: rgba(6, 18, 40, 0.95);
  border-color: rgba(56, 189, 248, 0.58);
  color: #f8fafc;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .header-year .year-select:focus {
  border-color: rgba(56, 189, 248, 0.9);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.28);
}

html[data-theme="dark"] .header-year .year-select option {
  background: #0a1628;
  color: #f1f5f9;
}

html[data-theme="dark"] .header-year .year-hint {
  color: rgba(226, 232, 240, 0.78);
}
