/* ==================== 全局重置 ==================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
*::before, *::after { box-sizing: border-box; }

:root {
  --primary: #2563EB;
  --primary-light: #DBEAFE;
  --primary-dark: #1D4ED8;
  --success: #16A34A;
  --success-light: #DCFCE7;
  --warning: #D97706;
  --warning-light: #FEF3C7;
  --danger: #DC2626;
  --danger-light: #FEE2E2;
  --purple: #7C3AED;
  --purple-light: #EDE9FE;
  --teal: #0D9488;
  --teal-light: #CCFBF1;

  --text-primary: #111827;
  --text-secondary: #4B5563;
  --text-tertiary: #9CA3AF;
  --border: #E5E7EB;
  --border-light: #F3F4F6;
  --bg-page: #F9FAFB;
  --bg-card: #FFFFFF;
  --bg-hover: #F9FAFB;

  --sidebar-width: 240px;
  --header-height: 60px;
  --radius: 8px;
  --radius-sm: 6px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-page);
  line-height: 1.5;
}

/* ==================== 登录页 ==================== */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 20px;
}
.login-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  width: 100%;
  max-width: 420px;
}
.login-logo {
  text-align: center;
  margin-bottom: 32px;
}
.login-logo .icon {
  width: 56px;
  height: 56px;
  background: var(--primary);
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
  margin-bottom: 12px;
}
.login-logo h1 { font-size: 22px; font-weight: 700; color: var(--text-primary); }
.login-logo p { font-size: 13px; color: var(--text-tertiary); margin-top: 4px; }
.login-form .form-group { margin-bottom: 20px; }
.login-form label { display: block; font-size: 13px; font-weight: 500; color: var(--text-secondary); margin-bottom: 6px; }
.login-form input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  transition: border-color 0.2s;
}
.login-form input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.login-btn {
  width: 100%;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.login-btn:hover { background: var(--primary-dark); }
.login-hint {
  margin-top: 24px;
  padding: 16px;
  background: var(--bg-hover);
  border-radius: var(--radius);
  font-size: 12px;
  color: var(--text-tertiary);
}
.login-hint p { margin-bottom: 4px; }
.login-hint strong { color: var(--text-secondary); }

/* ==================== 主布局 ==================== */
.app-layout { display: flex; min-height: 100vh; }

/* 侧边栏 */
.sidebar {
  width: var(--sidebar-width);
  background: #1e293b;
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  transition: transform 0.3s;
}
.sidebar-header {
  height: var(--header-height);
  display: flex;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  gap: 10px;
}
.sidebar-header .logo-icon {
  width: 36px; height: 36px;
  background: var(--primary);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: #fff;
}
.sidebar-header h2 { font-size: 16px; font-weight: 700; color: #fff; white-space: nowrap; }
.sidebar-nav { flex: 1; padding: 12px 8px; overflow-y: auto; }
.nav-section-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
  padding: 12px 12px 6px;
  font-weight: 600;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  color: #cbd5e1;
  transition: all 0.2s;
  margin-bottom: 2px;
}
.nav-item:hover { background: rgba(255,255,255,0.08); color: #fff; }
.nav-item.active { background: var(--primary); color: #fff; }
.nav-item .nav-icon { font-size: 16px; width: 20px; text-align: center; }
.sidebar-footer {
  padding: 12px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.user-info-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: var(--radius-sm);
}
.user-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600;
  flex-shrink: 0;
}
.user-info-bar .user-text { flex: 1; min-width: 0; }
.user-info-bar .user-name { font-size: 13px; font-weight: 500; color: #fff; }
.user-info-bar .user-role { font-size: 11px; color: #94a3b8; }
.logout-btn {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 16px;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s;
}
.logout-btn:hover { color: #fff; background: rgba(255,255,255,0.1); }

/* 主内容区 */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.page-header {
  height: var(--header-height);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.page-header h1 { font-size: 18px; font-weight: 700; }
.page-content { flex: 1; padding: 24px; }

/* ==================== 通用组件 ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--bg-card);
  color: var(--text-primary);
  white-space: nowrap;
}
.btn:hover { background: var(--bg-hover); border-color: #d1d5db; }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-success { background: var(--success); color: #fff; border-color: var(--success); }
.btn-success:hover { filter: brightness(0.95); }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover { filter: brightness(0.95); }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-text { background: none; border: none; color: var(--primary); padding: 4px 8px; }
.btn-text:hover { background: var(--primary-light); }
.btn-text.danger { color: var(--danger); }
.btn-text.danger:hover { background: var(--danger-light); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

/* 表格 */
.table-wrapper { overflow-x: auto; }
table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.data-table th {
  background: var(--bg-hover);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  font-size: 13px;
}
.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-primary);
}
.data-table tbody tr:hover { background: var(--bg-hover); }
.data-table .empty-row td { text-align: center; color: var(--text-tertiary); padding: 40px; }

/* 简历字段拖拽排序 */
#customFieldTable tbody tr { cursor: grab; }
#customFieldTable tbody tr.dragging { opacity: 0.4; background: var(--primary-light); cursor: grabbing; }
#customFieldTable tbody tr.drag-over { box-shadow: inset 0 3px 0 var(--primary); background: var(--bg-hover); }
#customFieldTable .field-order-cell { white-space: nowrap; }
#customFieldTable .drag-handle { color: var(--text-tertiary); cursor: grab; margin-right: 8px; }
#customFieldTable .drag-handle:hover { color: var(--primary); }

/* 系统字段徽章 */
.badge-system { display: inline-block; font-size: 11px; line-height: 1; padding: 2px 6px; border-radius: 4px; background: var(--primary, #3b82f6); color: #fff; margin-left: 4px; vertical-align: middle; }
#customFieldTable .order-num { font-size: 12px; color: var(--text-tertiary); }

/* 运营数据表格：滚动容器 + 冻结（吸顶）表头 */
.ops-table-wrap { max-height: 62vh; overflow: auto; }
.ops-table thead th {
  background: var(--bg-hover);
  z-index: 10;
  /* border-collapse 下 sticky 表头会丢失下边框，用内阴影补一条分隔线 */
  box-shadow: inset 0 -1px 0 var(--border);
}
.ops-table thead tr:nth-child(1) th { position: sticky; top: 0; }
/* 第一行标题单元格（无 rowspan 的）固定高度，供第二行吸顶偏移对齐 */
.ops-table thead tr:nth-child(1) th:not([rowspan]) { height: 42px; }
.ops-table thead tr:nth-child(2) th { position: sticky; top: 42px; }

/* 表单 */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; color: var(--text-secondary); margin-bottom: 6px; }
.form-group label .required { color: var(--danger); }
.form-control {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  transition: border-color 0.2s;
  background: var(--bg-card);
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
textarea.form-control { height: auto; min-height: 80px; padding: 10px 12px; resize: vertical; }
select.form-control { cursor: pointer; }
.form-row { display: flex; gap: 16px; }

/* 期望岗位搜索自动补全 */
.pos-autocomplete { position: relative; }
.pos-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 260px;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  z-index: 50;
  padding: 4px;
}
.pos-suggestion {
  padding: 8px 10px;
  font-size: 14px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pos-suggestion:hover { background: var(--primary-light); }
.pos-suggestion-empty {
  padding: 10px;
  font-size: 13px;
  color: var(--text-tertiary);
  text-align: center;
}
.form-row .form-group { flex: 1; }

/* 搜索栏 */
.search-bar {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}
.search-bar .search-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.search-bar .search-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  justify-content: flex-end;
}

/* 标签 */
.stage-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.resource-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}
.resource-badge.type-a { background: var(--danger-light); color: var(--danger); }
.resource-badge.type-b { background: var(--warning-light); color: var(--warning); }

/* C类资源徽章 */
.resource-badge.type-c { background: var(--purple-light); color: var(--purple); }

/* 模态框 */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s;
}
.modal {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s;
}
.modal.modal-lg { max-width: 800px; }
.modal.modal-xl { max-width: 1320px; }
.modal-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header h3 { font-size: 16px; font-weight: 700; }
.modal-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-tertiary);
  padding: 4px 8px;
  border-radius: 4px;
}
.modal-close:hover { background: var(--bg-hover); color: var(--text-primary); }
.modal-body { flex: 1; overflow-y: auto; padding: 24px; }
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* Toast */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  z-index: 9999;
  transform: translateX(400px);
  transition: transform 0.3s;
  box-shadow: var(--shadow-lg);
}
.toast.show { transform: translateX(0); }
.toast-success { background: var(--success); color: #fff; }
.toast-error { background: var(--danger); color: #fff; }
.toast-warning { background: var(--warning); color: #fff; }
.toast-info { background: var(--primary); color: #fff; }

/* ==================== Dashboard ==================== */
.dashboard-filters {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.filter-tabs {
  display: flex;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 3px;
  border: 1px solid var(--border);
}
.filter-tab {
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s;
}
.filter-tab.active { background: var(--primary); color: #fff; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: transform 0.2s, box-shadow 0.2s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-card .stat-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  margin-bottom: 12px;
}
.stat-card .stat-label { font-size: 13px; color: var(--text-secondary); margin-bottom: 4px; }
.stat-card .stat-value { font-size: 28px; font-weight: 700; color: var(--text-primary); }
.stat-card .stat-sub { font-size: 12px; color: var(--text-tertiary); margin-top: 4px; }

/* 漏斗图 */
.funnel-container {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}
.funnel-title { font-size: 16px; font-weight: 700; margin-bottom: 20px; }
.funnel-chart { display: flex; flex-direction: column; gap: 4px; }
.funnel-stage {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
}
.funnel-stage .funnel-label {
  width: 100px;
  text-align: right;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  flex-shrink: 0;
}
.funnel-stage .funnel-bar-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}
.funnel-bar {
  height: 36px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  min-width: 40px;
  transition: width 0.5s ease;
}
.funnel-rate {
  font-size: 12px;
  color: var(--text-tertiary);
  white-space: nowrap;
}

/* ==================== 流程时间线 ==================== */
.timeline {
  position: relative;
  padding-left: 28px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  padding-bottom: 24px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -28px;
  top: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #fff;
  border: 3px solid var(--bg-card);
  z-index: 1;
}
.timeline-content {
  background: var(--bg-hover);
  border-radius: var(--radius);
  padding: 12px 16px;
  border: 1px solid var(--border-light);
}
.timeline-content .timeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.timeline-content .timeline-stage { font-weight: 600; font-size: 14px; }
.timeline-content .timeline-time { font-size: 12px; color: var(--text-tertiary); }
.timeline-content .timeline-detail { font-size: 13px; color: var(--text-secondary); }
.timeline-content .timeline-detail .detail-row { margin-bottom: 4px; }
.timeline-content .timeline-detail .detail-label { color: var(--text-tertiary); margin-right: 4px; }
.timeline-content .timeline-operator { font-size: 12px; color: var(--text-tertiary); margin-top: 8px; }

/* 候选人详情卡 */
.candidate-detail-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  margin-bottom: 20px;
}
.candidate-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 700;
  flex-shrink: 0;
}
.candidate-info { flex: 1; }
.candidate-info .candidate-name { font-size: 20px; font-weight: 700; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.candidate-info .candidate-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--text-secondary); }
.candidate-info .candidate-meta .meta-item { display: flex; align-items: center; gap: 4px; }

/* 操作区 */
.action-section {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--border-light);
  margin-bottom: 16px;
}
.action-section h3 { font-size: 15px; font-weight: 700; margin-bottom: 16px; }

/* 分页 */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.pagination-info { font-size: 13px; color: var(--text-tertiary); }
.pagination-btns { display: flex; gap: 4px; }
.pagination-btn {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
}
.pagination-btn:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.pagination-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* 文件上传 */
.file-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s;
}
.file-upload-area:hover { border-color: var(--primary); }
.file-upload-area .upload-icon { font-size: 32px; color: var(--text-tertiary); margin-bottom: 8px; }
.file-upload-area .upload-text { font-size: 13px; color: var(--text-secondary); }
.file-upload-area .upload-hint { font-size: 12px; color: var(--text-tertiary); margin-top: 4px; }
.file-attachment-list { margin-top: 8px; }
.file-attachment-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--bg-hover);
  border-radius: var(--radius-sm);
  margin-top: 4px;
  font-size: 13px;
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-tertiary);
}
.empty-state .empty-icon { font-size: 48px; margin-bottom: 12px; }
.empty-state .empty-text { font-size: 14px; }

/* 响应式 */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.show { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .search-bar .search-grid { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; }
}

/* ==================== V2 新增样式 ==================== */

/* ----- 自动填充标签 ----- */
.auto-fill-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  color: var(--primary);
  background: var(--primary-light);
  padding: 1px 8px;
  border-radius: 10px;
  margin-left: 6px;
  vertical-align: middle;
  white-space: nowrap;
}
.auto-fill-tag:empty { display: none; }

/* ----- 预警徽章 ----- */
.warning-badge {
  animation: warningPulse 2s ease-in-out infinite;
}
@keyframes warningPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* ----- 看板：预警卡片 ----- */
.dashboard-warnings {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.warning-card {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.warning-card .warning-users {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.warning-card .warning-user-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--danger-light);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--danger);
}

/* ==================== 沟通跟进 & AI 话术 ==================== */
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 1px 8px;
  border-radius: 10px;
  line-height: 1.6;
  white-space: nowrap;
}
.comm-gen-box, .comm-add-box {
  background: var(--bg-hover);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 12px;
}
.comm-timeline {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.comm-item {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.comm-item-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.comm-item-body {
  font-size: 13px;
  color: var(--text-secondary);
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.6;
}

/* ----- 看板：重点/非重点岗位对比表 ----- */
.position-split-table .split-bar {
  height: 8px;
  border-radius: 4px;
  background: var(--border-light);
  overflow: hidden;
  margin-top: 4px;
}
.position-split-table .split-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease;
}
.position-split-table .split-bar-fill.key { background: var(--danger); }
.position-split-table .split-bar-fill.non-key { background: var(--teal); }

/* ----- 数据录入表单 ----- */
.data-entry-form {
  max-width: 900px;
}
.data-entry-form .form-section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-light);
  display: flex;
  align-items: center;
  gap: 6px;
}
.data-entry-form .form-section-title i {
  color: var(--primary);
}

/* ----- 岗位管理：系数预览 ----- */
.coefficient-preview {
  padding: 12px 16px;
  background: var(--bg-hover);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  margin-top: 12px;
}
.coefficient-preview .preview-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 4px;
}
.coefficient-preview .preview-row:last-child { margin-bottom: 0; }
.coefficient-preview .preview-label {
  color: var(--text-tertiary);
  min-width: 80px;
}
.coefficient-preview .preview-value {
  font-weight: 600;
  color: var(--text-primary);
}

/* ----- 综合系数实时预览（复试流程） ----- */
#comprehensive_preview {
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--bg-hover) 100%);
  border-radius: var(--radius);
  border: 1px solid var(--primary);
  border-left: 4px solid var(--primary);
}
#comprehensive_value {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  margin-top: 4px;
}
#comprehensive_detail {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ----- 组织架构：小组卡片 ----- */
.group-card {
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.group-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.group-card .group-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--bg-card) 100%);
}
.group-card .group-body {
  padding: 16px 20px;
}
.group-card .member-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 13px;
}
.group-card .member-row .member-phone {
  font-size: 11px;
  color: var(--text-tertiary);
}

/* ----- 组织架构：成员选择 ----- */
.group-member-cb {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--primary);
}
.member-select-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}
.member-select-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}
.member-select-item:hover {
  border-color: var(--primary);
  background: var(--bg-hover);
}
.member-select-item.checked {
  background: var(--primary-light);
  border-color: var(--primary);
}

/* ----- 自定义字段配置 ----- */
.field-type-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}
.field-type-badge.text { background: var(--primary-light); color: var(--primary); }
.field-type-badge.textarea { background: var(--teal-light); color: var(--teal); }
.field-type-badge.select { background: var(--warning-light); color: var(--warning); }
.field-type-badge.date { background: var(--purple-light); color: var(--purple); }
.field-type-badge.number { background: var(--success-light); color: var(--success); }

/* ----- 岗位系数提示 ----- */
.position-coefficient-hint {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 4px;
  padding: 6px 10px;
  background: var(--bg-hover);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary);
}
.position-coefficient-hint:empty { display: none; }

/* ----- 看板筛选器 ----- */
.dashboard-filters .filter-select {
  width: auto;
  min-width: 140px;
  height: 36px;
  padding: 0 28px 0 12px;
  font-size: 13px;
}

/* ----- 看板：数据范围标题 ----- */
.dashboard-scope-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.dashboard-scope-title i {
  color: var(--primary);
}

/* ----- 通用：信息提示框 ----- */
.info-box {
  padding: 16px 20px;
  background: var(--bg-hover);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--primary);
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.8;
}
.info-box strong { color: var(--text-primary); }

/* ----- 通用：规则说明卡片 ----- */
.rules-card {
  margin-top: 16px;
  padding: 20px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
}
.rules-card h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.rules-card h3 i { color: var(--primary); }
.rules-card .rule-item {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.8;
  padding: 4px 0;
}
.rules-card .rule-item strong { color: var(--text-primary); }

/* ----- 看板：进度条 ----- */
.progress-bar-container {
  width: 100%;
  height: 8px;
  background: var(--border-light);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 4px;
}
.progress-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease;
}

/* ----- 表单：级联选择器 ----- */
.cascade-select-group {
  display: flex;
  gap: 8px;
}
.cascade-select-group select {
  flex: 1;
}

/* ----- 表格：预警行高亮 ----- */
.data-table tr.warning-row {
  background: var(--danger-light) !important;
}
.data-table tr.warning-row:hover {
  background: var(--danger-light) !important;
}

/* ----- 数据录入：日期选择栏 ----- */
.date-selector-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.date-selector-bar .date-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ----- V2 响应式补充 ----- */
@media (max-width: 768px) {
  .member-select-grid { grid-template-columns: 1fr; }
  .cascade-select-group { flex-direction: column; }
  .dashboard-filters { flex-direction: column; align-items: stretch; }
  .dashboard-filters .filter-select { width: 100%; }
  .data-entry-form { max-width: 100%; }
}

/* ==================== 培训邀请函 / Offer 发放 ==================== */
.offer-main { display: flex; gap: 16px; align-items: flex-start; }
.offer-form { flex: 0 0 460px; max-width: 460px; }
.offer-review { flex: 1; position: sticky; top: 80px; }
.offer-bottom { display: flex; gap: 16px; margin-top: 16px; flex-wrap: wrap; }
.offer-bottom > .card { flex: 1; min-width: 320px; }
.btn-send {
  width: 100%; padding: 11px;
  background: var(--success); color: #fff;
  border: none; border-radius: 6px;
  font-size: 15px; font-weight: 600; cursor: pointer; margin-top: 4px;
}
.btn-send:hover { background: #15803D; }
.btn-send:disabled { background: #9CA3AF; cursor: not-allowed; }
.offer-section-title {
  font-size: 14px; font-weight: 700; color: var(--primary);
  margin: 6px 0 12px; padding-bottom: 6px;
  border-bottom: 2px solid var(--primary-light);
}
.offer-review-box {
  background: #fff; border: 1px solid var(--border);
  border-radius: 8px; padding: 8px;
  max-height: 72vh; overflow: auto;
}
.offer-review-box u { text-decoration: underline; font-weight: 600; color: #111827; }
.smtp-status { padding: 8px 12px; border-radius: 5px; font-size: 13px; margin-bottom: 12px; }
.smtp-status.ok { background: var(--success-light); color: var(--success); }
.smtp-status.no { background: var(--danger-light); color: var(--danger); }
.offer-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.offer-table th, .offer-table td { padding: 8px 10px; border-bottom: 1px solid var(--border-light); text-align: left; }
.offer-table th { color: var(--text-secondary); background: var(--bg-hover); font-weight: 600; }
.offer-table tbody tr:hover { background: var(--bg-hover); }

@media (max-width: 768px) {
  .offer-main { flex-direction: column; }
  .offer-form { flex: 1 1 100%; max-width: 100%; }
  .offer-review { position: static; }
}

/* ================================================================
   校园招聘模块样式
   ================================================================ */

/* Tab 切换 */
.campus-wrap { padding: 0; }
.campus-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--border-light); margin-bottom: 20px; overflow-x: auto; }
.campus-tab { padding: 10px 20px; border: none; background: none; cursor: pointer; font-size: 14px; color: var(--text-secondary); white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.2s; }
.campus-tab:hover { color: var(--primary); }
.campus-tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.campus-tab i { margin-right: 6px; }
.campus-content { min-height: 400px; }

/* 统计看板 */
.campus-stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-bottom: 24px; }
.campus-stat-card { display: flex; align-items: center; gap: 14px; background: var(--bg-card); border: 1px solid var(--border-light); border-radius: 10px; padding: 16px 20px; }
.campus-stat-card .stat-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.campus-stat-card .stat-info { flex: 1; }
.campus-stat-card .stat-num { font-size: 28px; font-weight: 700; color: var(--text-primary); line-height: 1.2; }
.campus-stat-card .stat-label { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }

.campus-stats-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.campus-stats-col { background: var(--bg-card); border: 1px solid var(--border-light); border-radius: 10px; padding: 16px; }
@media (max-width: 768px) { .campus-stats-row { grid-template-columns: 1fr; } }

.campus-section-title { font-size: 15px; font-weight: 600; color: var(--text-primary); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border-light); }
.campus-section-title i { margin-right: 6px; color: var(--primary); }

/* 表格 */
.campus-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.campus-table th { padding: 8px 10px; text-align: left; color: var(--text-secondary); background: var(--bg-hover); font-weight: 600; border-bottom: 1px solid var(--border-light); white-space: nowrap; }
.campus-table td { padding: 8px 10px; border-bottom: 1px solid var(--border-light); }
.campus-table tbody tr:hover { background: var(--bg-hover); }

/* 筛选栏 */
.campus-filter-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.campus-input, .campus-select { padding: 6px 10px; border: 1px solid var(--border); border-radius: 6px; font-size: 13px; outline: none; transition: border-color 0.2s; }
.campus-input:focus, .campus-select:focus { border-color: var(--primary); }
.campus-textarea { width: 100%; padding: 8px 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 13px; outline: none; resize: vertical; font-family: inherit; }
.campus-textarea:focus { border-color: var(--primary); }

/* 按钮 */
.btn-link { background: none; border: none; color: var(--primary); cursor: pointer; font-size: 13px; padding: 2px 6px; }
.btn-link:hover { text-decoration: underline; }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text-primary); }
.btn-outline:hover { background: var(--bg-hover); }

/* 简历详情 */
.campus-detail-grid { display: grid; gap: 20px; }
.campus-detail-section { background: var(--bg-card); border: 1px solid var(--border-light); border-radius: 8px; padding: 14px 16px; }
.campus-detail-section h4 { font-size: 14px; font-weight: 600; margin-bottom: 10px; color: var(--text-primary); }
.campus-detail-section h4 i { margin-right: 6px; color: var(--primary); }
.campus-detail-table { width: 100%; font-size: 13px; border-collapse: collapse; }
.campus-detail-table td { padding: 5px 8px; border-bottom: 1px solid var(--border-light); }
.campus-detail-table td:nth-child(odd) { color: var(--text-secondary); width: 80px; white-space: nowrap; }
.campus-detail-box { background: var(--bg-hover); border-radius: 6px; padding: 10px 12px; font-size: 13px; line-height: 1.6; white-space: pre-wrap; }
.campus-attachment { display: flex; align-items: center; gap: 6px; padding: 6px 0; font-size: 13px; }
.campus-attachment i { color: #ef4444; }
.campus-attachment a { color: var(--primary); }
.campus-interview-item { background: var(--bg-hover); border-radius: 6px; padding: 10px 12px; margin-bottom: 8px; font-size: 13px; line-height: 1.6; }

/* 37℃新闻管理（HR 品牌设置） */
.campus-news-admin-list { border: 1px solid var(--border-light); border-radius: 8px; overflow: hidden; }
.campus-news-admin-item { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--border-light); }
.campus-news-admin-item:last-child { border-bottom: none; }
.campus-news-admin-title { font-size: 14px; font-weight: 500; color: var(--text-primary); margin-bottom: 4px; }
.campus-news-admin-meta { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.campus-news-admin-actions { display: flex; gap: 12px; flex-shrink: 0; }
.badge-green { background: #d1fae5; color: #059669; padding: 2px 8px; border-radius: 10px; font-size: 12px; }
.badge-gray { background: #f3f4f6; color: #6b7280; padding: 2px 8px; border-radius: 10px; font-size: 12px; }
.text-danger { color: #ef4444 !important; }

/* 新闻富媒体上传器 */
.campus-news-media-uploader { border: 1.5px dashed var(--border); border-radius: 8px; padding: 20px; text-align: center; color: var(--text-tertiary); cursor: pointer; transition: all .2s; background: #fafafa; }
.campus-news-media-uploader:hover { border-color: var(--primary); color: var(--primary); background: #f5f8ff; }
.campus-news-media-uploader i { font-size: 26px; display: block; margin-bottom: 6px; }
.campus-news-media-uploader span { font-size: 13px; }
.campus-news-media-preview { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.campus-news-media-thumb { position: relative; width: 84px; height: 84px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); background: #f3f4f6; }
.campus-news-media-thumb img, .campus-news-media-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.campus-news-media-thumb .rm { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; border: none; cursor: pointer; font-size: 11px; line-height: 20px; display: flex; align-items: center; justify-content: center; padding: 0; }
.campus-news-media-thumb .rm:hover { background: #ef4444; }
.campus-news-media-thumb .vid-tag { position: absolute; bottom: 3px; left: 3px; background: rgba(0,0,0,.6); color: #fff; font-size: 10px; padding: 1px 5px; border-radius: 3px; }

/* ==================== 待办事项模块 ==================== */
.todo-page { padding: 4px 0; }
.todo-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.todo-tabs { display: flex; gap: 6px; background: var(--bg-hover); padding: 4px; border-radius: 10px; }
.todo-tab { border: none; background: transparent; padding: 8px 18px; border-radius: 8px; font-size: 14px; cursor: pointer; color: var(--text-secondary); font-weight: 600; transition: all .15s; }
.todo-tab:hover { color: var(--text-primary); }
.todo-tab.active { background: #fff; color: var(--primary); box-shadow: 0 1px 3px rgba(0,0,0,.08); }

.todo-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.todo-stat-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.todo-stat-count { font-size: 26px; font-weight: 800; line-height: 1.1; }
.todo-stat-label { font-size: 13px; color: var(--text-tertiary); margin-top: 4px; }

.todo-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; align-items: center; }
.todo-filters .form-control { width: auto; min-width: 130px; }

.todo-list { display: flex; flex-direction: column; gap: 12px; }
.todo-card { display: flex; align-items: stretch; gap: 14px; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; box-shadow: 0 1px 3px rgba(0,0,0,.04); transition: box-shadow .15s; }
.todo-card:hover { box-shadow: 0 3px 10px rgba(0,0,0,.08); }
.todo-card.todo-overdue { border-color: #fca5a5; background: #fff5f5; }
.todo-card-main { flex: 1; min-width: 0; }
.todo-card-title { font-size: 15px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.todo-card-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--text-tertiary); }
.todo-card-desc { margin-top: 8px; font-size: 13px; color: var(--text-secondary); background: var(--bg-hover); border-radius: 8px; padding: 8px 10px; }
.todo-completion { margin-top: 8px; font-size: 13px; color: var(--text-secondary); background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 8px; padding: 8px 10px; }
.todo-card-actions { display: flex; flex-direction: column; gap: 6px; justify-content: center; flex-shrink: 0; min-width: 92px; }
.todo-noaction { color: var(--text-tertiary); font-size: 13px; }

.todo-priority { padding: 2px 9px; border-radius: 10px; font-size: 12px; font-weight: 600; }
.todo-status { padding: 2px 9px; border-radius: 10px; font-size: 12px; font-weight: 600; }
.todo-status.status-pending { background: #f3f4f6; color: #6b7280; }
.todo-status.status-in_progress { background: #dbeafe; color: #2563eb; }
.todo-status.status-done { background: #dcfce7; color: #16a34a; }
.todo-source { padding: 2px 9px; border-radius: 10px; font-size: 12px; }
.todo-source.src-self { background: #eef2ff; color: #4f46e5; }
.todo-source.src-assigned { background: #fef3c7; color: #d97706; }
.todo-deadline { display: inline-flex; align-items: center; gap: 4px; }
.todo-badge.overdue { background: #fee2e2; color: #dc2626; padding: 1px 7px; border-radius: 8px; font-size: 11px; font-weight: 700; }

.todo-team { display: flex; flex-direction: column; gap: 16px; }
.todo-team-group { background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.todo-team-name { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--text-primary); background: var(--bg-hover); padding: 10px 16px; border-bottom: 1px solid var(--border); }
.todo-team-count { font-size: 12px; font-weight: 500; color: var(--text-tertiary); }
.todo-row { padding: 12px 16px; border-bottom: 1px solid var(--bg-hover); display: flex; flex-direction: column; gap: 6px; }
.todo-row:last-child { border-bottom: none; }
.todo-row.todo-overdue { background: #fff5f5; }
.todo-row-title { font-size: 14px; font-weight: 600; color: var(--text-primary); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.todo-row-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--text-tertiary); }

.todo-priority-options { display: flex; flex-wrap: wrap; gap: 10px; }
.todo-pri-opt { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; font-size: 13px; color: var(--text-secondary); transition: all .15s; background: #fff; }
.todo-pri-opt input { display: none; }
.todo-pri-opt:hover { border-color: var(--primary); }
.todo-pri-opt.selected { border-color: var(--primary); background: var(--primary-light); color: var(--primary); font-weight: 600; }
.todo-pri-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.form-hint { font-size: 12px; color: var(--text-tertiary); margin-top: 6px; }

/* 登录提醒弹窗 */
.todo-reminder-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.todo-reminder-list li { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--bg-hover); border-radius: 8px; font-size: 13px; }
.todo-reminder-list li.todo-reminder-overdue { background: #fff5f5; }
.todo-reminder-pri { padding: 2px 8px; border-radius: 9px; font-size: 12px; font-weight: 600; flex-shrink: 0; }
.todo-reminder-title { flex: 1; color: var(--text-primary); }

@media (max-width: 640px) {
  .todo-stats { grid-template-columns: repeat(2, 1fr); }
  .todo-card { flex-direction: column; }
  .todo-card-actions { flex-direction: row; min-width: 0; }
}

/* ==================== 日行为看板 ==================== */
.bb-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.bb-month-nav { display: flex; align-items: center; gap: 10px; }
.bb-month-label { font-size: 16px; font-weight: 700; color: var(--text-primary); min-width: 96px; text-align: center; }
.bb-actions { display: flex; gap: 8px; }
.bb-filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.bb-tab { padding: 6px 14px; border-radius: 16px; font-size: 13px; cursor: pointer; background: var(--bg-hover); color: var(--text-secondary); border: 1px solid transparent; transition: all .15s; }
.bb-tab:hover { border-color: var(--primary); }
.bb-tab.active { background: var(--primary); color: #fff; }
.bb-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--text-tertiary); margin-bottom: 14px; }
.bb-legend-item { display: inline-flex; align-items: center; gap: 5px; }
.bb-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.bb-dot.done { background: #16A34A; }
.bb-dot.miss { background: #DC2626; }
.bb-dot.none { background: #E5E7EB; }
.bb-dot.na { background: #CBD5E1; border: 1px dashed #94A3B8; }

.bb-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.bb-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius, 12px); padding: 14px; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.bb-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.bb-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.bb-card-title { min-width: 0; }
.bb-name { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.bb-cat-badge { display: inline-block; font-size: 11px; padding: 1px 8px; border-radius: 9px; background: var(--primary-light, #EFF6FF); color: var(--primary, #2563EB); margin-top: 2px; }
.bb-cat-badge.uncat { background: #F1F5F9; color: #64748B; }
.bb-target { font-size: 11px; color: var(--text-tertiary); margin-top: 3px; }

.cal-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; margin-bottom: 3px; }
.cal-weekdays span { text-align: center; font-size: 11px; color: var(--text-tertiary); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-cell { aspect-ratio: 1 / 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border-radius: 6px; font-weight: 700; cursor: pointer; background: #F8FAFC; color: var(--text-secondary); transition: transform .1s; }
.cal-cell:hover { transform: scale(1.06); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.cal-date { font-size: 10px; font-weight: 500; line-height: 1; opacity: .7; }
.cal-mark { font-size: 14px; line-height: 1; }
.cal-blank { background: transparent; cursor: default; }
.cal-blank:hover { transform: none; box-shadow: none; }
.cal-future { background: #FAFAFA; color: #D1D5DB; cursor: default; }
.cal-na { color: #94A3B8; cursor: default; }
.cal-none { color: #CBD5E1; }
.cal-done { background: #DCFCE7; color: #16A34A; }
.cal-miss { background: #FEE2E2; color: #DC2626; }
.bb-card-foot { margin-top: 10px; font-size: 12px; color: var(--text-tertiary); text-align: center; }
.bb-card-foot b { color: var(--primary, #2563EB); font-size: 14px; }

/* 数据来源提示 */
.bb-src-tip { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-tertiary); background: var(--bg-hover, #F8FAFC); border-radius: 8px; padding: 8px 12px; margin-bottom: 14px; }

/* 员工分类管理 */
.bb-cat-tip { font-size: 12px; color: var(--text-tertiary); background: var(--bg-hover, #F8FAFC); border-radius: 8px; padding: 10px 12px; margin-bottom: 14px; line-height: 1.6; }
.bb-cat-card { border: 1px solid var(--border); border-radius: 10px; padding: 14px; margin-bottom: 12px; background: #fff; }
.bb-cat-card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.bb-cat-card-head .bb-cat-name { flex: 1; }
.bb-cat-desc { width: 100%; margin-bottom: 10px; }
.bb-cat-targets { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.bb-cat-targets label { font-size: 12px; color: var(--text-secondary); display: flex; flex-direction: column; gap: 4px; }
.bb-cat-targets input { width: 130px; }
.bb-cat-members-title { font-size: 12px; color: var(--text-tertiary); margin-bottom: 6px; }
.bb-cat-members { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.bb-mem-item { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--text-secondary); cursor: pointer; }

/* ===================== 招聘需求板块 ===================== */
.rn-topcard { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 14px 18px; margin-bottom: 14px; }
.rn-title { font-size: 16px; font-weight: 700; color: var(--text-primary); display: flex; align-items: center; gap: 8px; }
.rn-title i { color: var(--primary); }
.rn-sub { font-size: 12px; font-weight: 400; color: var(--text-tertiary); margin-left: 6px; }
.rn-tabs { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.rn-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.rn-stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.rn-stat { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; text-align: center; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.rn-stat-num { font-size: 26px; font-weight: 800; color: var(--text-primary); line-height: 1.1; }
.rn-stat-label { font-size: 12px; color: var(--text-tertiary); margin-top: 4px; }

.rn-filterbar { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px; padding: 12px 16px; margin-bottom: 14px; }
.rn-filter-label { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-secondary); align-self: center; }
.rn-filter-item { display: flex; flex-direction: column; gap: 4px; }
.rn-filter-item label { font-size: 11px; color: var(--text-tertiary); }
.rn-filter-count { margin-left: auto; font-size: 12px; color: var(--text-tertiary); align-self: center; }

.rn-tablecard { padding: 0; overflow: hidden; }
.rn-table-wrap { overflow-x: auto; }
.rn-table { min-width: 1080px; margin: 0; }
.rn-table thead th { background: #F1F5F9; color: var(--text-secondary); font-size: 12px; font-weight: 600; padding: 11px 12px; white-space: nowrap; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 1; }
.rn-table tbody td { padding: 10px 12px; font-size: 13px; vertical-align: middle; border-bottom: 1px solid var(--border-light); }
.rn-table tbody tr:hover { background: var(--bg-hover); }
.rn-table tbody tr:last-child td { border-bottom: none; }
.rn-c-idx { width: 36px; text-align: center; color: var(--text-tertiary); }
.rn-idx { text-align: center; color: var(--text-tertiary); }
.rn-qty { text-align: center; font-weight: 600; }
.rn-dep { white-space: nowrap; }
.rn-pos { font-weight: 600; color: var(--text-primary); white-space: nowrap; }
.rn-remark { color: var(--text-secondary); max-width: 200px; }
.rn-muted { color: var(--text-tertiary); }

.urg-badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; line-height: 1.6; white-space: nowrap; }

.rn-prog { min-width: 190px; }
.rn-prog-bar { height: 6px; border-radius: 4px; background: #EEF2F7; overflow: hidden; margin-bottom: 5px; }
.rn-prog-bar span { display: block; height: 100%; border-radius: 4px; transition: width .3s; }
.rn-prog-txt { font-size: 12px; color: var(--text-secondary); line-height: 1.5; }
.rn-prog-txt b { color: var(--text-primary); }
.rn-prog-dots { color: var(--text-tertiary); }
.rn-done { color: #1ABC9C; font-weight: 700; margin-left: 6px; }
.rn-manual { color: #E67E22; font-weight: 700; margin-left: 6px; font-size: 11px; }
.rn-noprog { font-size: 12px; color: var(--text-tertiary); }

.rn-ops { white-space: nowrap; }
.rn-manual-btn { color: #E67E22; }
.rn-manual-cell { white-space: nowrap; }

.rn-empty { text-align: center; color: var(--text-tertiary); padding: 40px; }

.rn-foot { font-size: 12px; color: var(--text-tertiary); line-height: 1.8; padding: 14px 18px; margin-top: 14px; }

/* 地图弹窗 */
.rn-map-hint { font-size: 12px; color: var(--text-secondary); background: #F1F5F9; border-radius: var(--radius-sm); padding: 8px 12px; margin-bottom: 10px; line-height: 1.6; }
.rn-map-hint b { color: var(--primary); }
.rn-map-search { position: relative; margin-bottom: 10px; }
.rn-map-search i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-tertiary); font-size: 13px; }
.rn-map-search input { padding-left: 34px; }
.rn-map-wrap { display: flex; gap: 12px; align-items: stretch; }
.rn-map { flex: 1; height: 660px; background: #F8FAFC; border-radius: var(--radius-sm); border: 1px solid var(--border-light); }
.rn-map-side { width: 320px; display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; overflow: hidden; height: 660px; }
.rn-map-side-title { padding: 10px 12px; font-size: 13px; font-weight: 700; border-bottom: 1px solid var(--border-light); background: #F8FAFC; color: var(--text-primary); }
.rn-map-citylist { max-height: 210px; overflow: auto; padding: 6px; }
.rn-city-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-radius: 6px; cursor: pointer; font-size: 13px; color: var(--text-secondary); }
.rn-city-item:hover { background: var(--bg-hover); }
.rn-city-item b { color: #E8543F; font-weight: 700; }
.rn-city-empty { padding: 12px; color: var(--text-tertiary); font-size: 12px; }
.rn-map-detail { flex: 1; padding: 12px; overflow: auto; border-top: 1px solid var(--border-light); font-size: 13px; }
.rn-detail-title { font-weight: 700; margin-bottom: 8px; color: var(--text-primary); }
.rn-detail-row { padding: 8px 0; border-bottom: 1px dashed var(--border-light); }
.rn-detail-pos { font-weight: 600; color: var(--text-primary); }
.rn-detail-qty { color: #E8543F; font-weight: 700; margin-left: 4px; }
.rn-detail-dep { font-size: 12px; color: var(--text-tertiary); margin-top: 2px; }
.rn-map-loading { font-size: 13px; color: var(--text-tertiary); text-align: center; padding: 20px; }

.btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--text-secondary); }
.btn-ghost:hover { background: var(--bg-hover); }
.form-control-sm { padding: 5px 8px; font-size: 12px; min-width: 120px; }
