/* ============================================================
   郭标HR人力资源管理系统 — 柠檬云风格
   白色卡片 + 浅灰背景(#f0f2f5) + 蓝色主色(#1890ff)
   ============================================================ */

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; font-size: 14px; color: #333; background: #f0f2f5; }
a { color: #1890ff; text-decoration: none; }
a:hover { color: #40a9ff; }

/* === Top Header === */
.top-header {
  display: flex; align-items: center; justify-content: space-between;
  height: 56px; padding: 0 24px;
  background: #fff; border-bottom: 1px solid #e8e8e8;
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
}
.header-left { display: flex; align-items: center; }
.hamburger-btn {
  display: none; width: 36px; height: 36px; border: none; background: none;
  font-size: 18px; color: #666; cursor: pointer; border-radius: 4px;
  margin-right: 8px; align-items: center; justify-content: center;
}
.hamburger-btn:hover { background: #f5f5f5; color: #333; }
.logo { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.logo-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 6px;
  background: #1890ff; color: #fff; font-weight: 700; font-size: 13px;
}
.logo-text { font-size: 16px; font-weight: 600; color: #333; }
.header-right { display: flex; align-items: center; gap: 20px; color: #666; font-size: 13px; }
.header-company { color: #999; }
.header-user { color: #333; font-weight: 500; }

/* === App Layout === */
.app-layout {
  display: flex; margin-top: 56px; min-height: calc(100vh - 56px);
}

/* === Sidebar === */
.sidebar {
  width: 220px; min-width: 220px; background: #fff;
  border-right: 1px solid #e8e8e8; padding: 16px 0;
  position: fixed; top: 56px; bottom: 0; overflow-y: auto;
  z-index: 99;
}
.nav-group { margin-bottom: 8px; }
.nav-group-title {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 20px; font-size: 12px; color: #999; text-transform: uppercase;
  letter-spacing: 0.5px; cursor: pointer; user-select: none;
}
.nav-group-title:hover { color: #666; }
.nav-arrow { font-size: 10px; transition: transform 0.2s; font-style: normal; }
.nav-group-title.active .nav-arrow { transform: rotate(180deg); }
.nav-group-items { overflow: visible; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px 10px 24px; cursor: pointer;
  color: #666; font-size: 14px; transition: all 0.15s;
  border-left: 3px solid transparent;
}
.nav-item:hover { background: #f5f5f5; color: #333; }
.nav-item.active {
  background: #e6f7ff; color: #1890ff; font-weight: 500;
  border-left-color: #1890ff;
}
.nav-icon { font-size: 16px; width: 20px; text-align: center; font-style: normal; }

/* === Main Content === */
.main-content {
  flex: 1; margin-left: 220px; padding: 24px;
  min-height: calc(100vh - 56px);
}
.page { display: none; }
.page.active { display: block; }

/* === Page Header === */
.page-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.page-title { font-size: 20px; font-weight: 600; color: #333; }
.page-subtitle { font-size: 13px; color: #999; margin-top: 4px; }
.page-actions { display: flex; gap: 8px; }

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 7px 16px; border-radius: 4px; font-size: 14px;
  border: 1px solid #d9d9d9; background: #fff; color: #333;
  cursor: pointer; transition: all 0.15s; gap: 6px;
  white-space: nowrap;
}
.btn:hover { border-color: #1890ff; color: #1890ff; }
.btn-primary {
  background: #1890ff; border-color: #1890ff; color: #fff;
}
.btn-primary:hover { background: #40a9ff; border-color: #40a9ff; color: #fff; }
.btn-danger { background: #fff; border-color: #ff4d4f; color: #ff4d4f; }
.btn-danger:hover { background: #ff4d4f; color: #fff; }
.btn-sm { padding: 4px 10px; font-size: 13px; }

/* === Forms === */
.form-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; color: #666; font-weight: 500; }
.form-input, .form-select {
  padding: 7px 12px; border: 1px solid #d9d9d9; border-radius: 4px;
  font-size: 14px; color: #333; background: #fff; outline: none;
  transition: border-color 0.2s;
}
.form-input:focus, .form-select:focus { border-color: #1890ff; box-shadow: 0 0 0 2px rgba(24,144,255,0.1); }
.form-input::placeholder { color: #bfbfbf; }
textarea.form-input { resize: vertical; min-height: 72px; }

/* === Stats Grid === */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px; margin-bottom: 20px;
}
.stat-card {
  background: #fff; border-radius: 6px; padding: 20px;
  border-left: 4px solid #1890ff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.stat-green { border-left-color: #52c41a; }
.stat-blue { border-left-color: #1890ff; }
.stat-orange { border-left-color: #fa8c16; }
.stat-red { border-left-color: #ff4d4f; }
.stat-purple { border-left-color: #722ed1; }
.stat-value { font-size: 28px; font-weight: 700; color: #333; line-height: 1.2; }
.stat-label { font-size: 13px; color: #999; margin-top: 4px; }

/* === Dashboard === */
.dash-row { display: flex; gap: 20px; margin-bottom: 20px; }
.dash-card {
  flex: 1; background: #fff; border-radius: 6px; padding: 20px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.dash-card-title {
  font-size: 15px; font-weight: 600; color: #333;
  margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #f0f0f0;
}

/* Bar Chart */
.bar-chart { display: flex; flex-direction: column; gap: 10px; }
.bar-item { display: flex; align-items: center; gap: 10px; }
.bar-label { width: 80px; font-size: 13px; color: #666; text-align: right; flex-shrink: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { flex: 1; height: 20px; background: #f0f0f0; border-radius: 10px; overflow: hidden; }
.bar-fill { height: 100%; background: #1890ff; border-radius: 10px; transition: width 0.4s; min-width: 2px; }
.bar-val { width: 36px; font-size: 13px; color: #333; font-weight: 500; }

/* Funnel */
.funnel-list { display: flex; flex-direction: column; gap: 8px; }
.funnel-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; background: #fafafa; border-radius: 4px;
}
.funnel-count { font-weight: 600; color: #1890ff; }

/* Quick Actions */
.quick-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.qa-btn {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 20px; background: #fafafa; border-radius: 6px;
  cursor: pointer; transition: all 0.15s; border: 1px solid transparent;
  min-width: 90px;
}
.qa-btn:hover { background: #e6f7ff; border-color: #91d5ff; }
.qa-icon { font-size: 24px; }
.qa-btn span { font-size: 12px; color: #666; }

/* Stats Mini */
.stats-mini { display: flex; gap: 16px; margin-top: 12px; }
.mini-item { text-align: center; flex: 1; }
.mini-label { font-size: 12px; color: #999; }
.mini-value { font-size: 18px; font-weight: 600; color: #333; margin-top: 2px; }

/* === Employee Layout === */
.emp-layout { display: flex; gap: 20px; }
.dept-tree {
  width: 220px; min-width: 220px; background: #fff; border-radius: 6px;
  padding: 16px; box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  align-self: flex-start; position: sticky; top: 80px;
}
.dept-tree-title { font-size: 15px; font-weight: 600; color: #333; margin-bottom: 12px; }
.dept-tree-body { display: flex; flex-direction: column; gap: 2px; }
.dept-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; border-radius: 4px; cursor: pointer;
  font-size: 13px; color: #666; transition: all 0.15s;
}
.dept-item:hover { background: #f5f5f5; }
.dept-item.active { background: #e6f7ff; color: #1890ff; font-weight: 500; }
.dept-count {
  font-size: 12px; color: #999; background: #f0f0f0;
  padding: 1px 8px; border-radius: 10px;
}
.dept-item.active .dept-count { background: #bae7ff; color: #1890ff; }
.emp-main { flex: 1; min-width: 0; }

/* === Toolbar === */
.toolbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; gap: 12px; flex-wrap: wrap;
}
.toolbar-left, .toolbar-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.count-badge { font-size: 13px; color: #999; }

/* === Tables === */
.table-wrap {
  background: #fff; border-radius: 6px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  padding: 12px 16px; text-align: left; font-size: 13px;
  font-weight: 600; color: #666; background: #fafafa;
  border-bottom: 1px solid #f0f0f0; white-space: nowrap;
  user-select: none;
}
.data-table th.sortable { cursor: pointer; }
.data-table th.sortable:hover { color: #1890ff; background: #f0f7ff; }
.data-table td {
  padding: 12px 16px; font-size: 13px; color: #333;
  border-bottom: 1px solid #f0f0f0;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #fafafa; }
.data-table .row-checkbox { width: 40px; text-align: center; }
.data-table .row-checkbox input { cursor: pointer; width: 16px; height: 16px; }
.clickable-row { cursor: pointer; }
.clickable-row:hover td { background: #e6f7ff; }
.empty-row td { text-align: center; padding: 40px; color: #999; }

/* Batch Actions Bar */
.batch-bar {
  display: none; align-items: center; gap: 12px;
  padding: 10px 16px; background: #e6f7ff; border-radius: 6px;
  margin-bottom: 12px; font-size: 13px; color: #1890ff;
}
.batch-bar.active { display: flex; }
.batch-bar .batch-count { font-weight: 600; }

/* Pagination */
.pagination {
  display: flex; align-items: center; gap: 6px;
  padding: 16px; justify-content: flex-end;
}
.pager-info { font-size: 13px; color: #999; margin-left: 8px; }

/* === Status Tags === */
.status-tag {
  display: inline-block; padding: 2px 10px; border-radius: 10px;
  font-size: 12px; font-weight: 500;
}

/* === Sub Tabs === */
.sub-tabs {
  display: flex; gap: 0; border-bottom: 1px solid #e8e8e8;
  margin-bottom: 20px;
}
.sub-tab {
  padding: 10px 20px; font-size: 14px; color: #666;
  cursor: pointer; border-bottom: 2px solid transparent;
  transition: all 0.15s;
}
.sub-tab:hover { color: #1890ff; }
.sub-tab.active { color: #1890ff; border-bottom-color: #1890ff; font-weight: 500; }
.sub-panel { display: none; }
.sub-panel.active { display: block; }

/* === Drawer (360 Panel) === */
.drawer-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.35); z-index: 200;
  display: none;
}
.drawer-overlay.active { display: block; animation: fadeIn 0.2s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 680px; max-width: 90vw; background: #fff;
  z-index: 201; display: none; flex-direction: column;
  box-shadow: -4px 0 12px rgba(0,0,0,0.08);
}
.drawer.open { display: flex; animation: slideIn 0.25s ease-out; }
.drawer-header {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 24px; border-bottom: 1px solid #f0f0f0;
}
.drawer-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: #1890ff; color: #fff; display: flex;
  align-items: center; justify-content: center;
  font-size: 20px; font-weight: 600; flex-shrink: 0;
}
.drawer-info { flex: 1; }
.drawer-info h3 { font-size: 18px; font-weight: 600; color: #333; }
.drawer-sub { font-size: 13px; color: #999; margin-top: 2px; }
.drawer-close {
  width: 32px; height: 32px; border: none; background: none;
  font-size: 20px; color: #999; cursor: pointer; border-radius: 4px;
}
.drawer-close:hover { background: #f5f5f5; color: #333; }
.drawer-tabs {
  display: flex; gap: 0; border-bottom: 1px solid #f0f0f0;
  padding: 0 24px;
}
.drawer-tab {
  padding: 12px 16px; font-size: 14px; color: #666;
  cursor: pointer; border-bottom: 2px solid transparent;
  transition: all 0.15s;
}
.drawer-tab:hover { color: #1890ff; }
.drawer-tab.active { color: #1890ff; border-bottom-color: #1890ff; }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px 24px; }
.drawer-footer {
  padding: 12px 24px; border-top: 1px solid #f0f0f0;
  display: flex; gap: 8px; justify-content: flex-end;
}

/* Detail Fields */
.detail-section { margin-bottom: 24px; }
.detail-section-title {
  font-size: 14px; font-weight: 600; color: #333;
  margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid #f0f0f0;
}
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.detail-item { display: flex; flex-direction: column; gap: 2px; }
.detail-label { font-size: 12px; color: #999; }
.detail-value { font-size: 14px; color: #333; }

/* Change Timeline */
.change-timeline { position: relative; padding-left: 20px; }
.change-timeline::before {
  content: ''; position: absolute; left: 6px; top: 0; bottom: 0;
  width: 2px; background: #f0f0f0;
}
.change-item { position: relative; padding-bottom: 20px; }
.change-dot {
  position: absolute; left: -17px; top: 4px;
  width: 10px; height: 10px; border-radius: 50%;
  background: #1890ff; border: 2px solid #fff;
  box-shadow: 0 0 0 2px #1890ff;
}
.change-content { font-size: 14px; color: #333; }
.change-date { font-size: 12px; color: #999; margin-top: 2px; }
.change-reason { font-size: 13px; color: #666; margin-top: 4px; }

/* === Kanban === */
.kanban {
  display: flex; gap: 16px; overflow-x: auto;
  padding-bottom: 8px; min-height: 300px;
}
.kanban-col {
  min-width: 260px; max-width: 300px; flex-shrink: 0;
  background: #f5f5f5; border-radius: 6px;
  display: flex; flex-direction: column;
}
.kanban-col-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; font-size: 14px; font-weight: 600; color: #333;
  border-bottom: 1px solid #e8e8e8;
}
.kanban-count {
  font-size: 12px; font-weight: 400; color: #999;
  background: #e8e8e8; padding: 1px 8px; border-radius: 10px;
}
.kanban-col-body { padding: 12px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.kanban-card {
  background: #fff; border-radius: 6px; padding: 14px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06); cursor: pointer;
  border: 1px solid #f0f0f0; transition: all 0.15s;
}
.kanban-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.1); border-color: #d9d9d9; }
.kanban-card-title { font-size: 14px; font-weight: 500; color: #333; margin-bottom: 6px; }
.kanban-card-info { font-size: 12px; color: #999; margin-bottom: 2px; }
.kanban-card-salary { font-size: 13px; color: #fa8c16; font-weight: 500; margin-top: 6px; }
.kanban-empty { text-align: center; padding: 20px; color: #bbb; font-size: 13px; }

/* === Calendar === */
.cal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.cal-title { font-size: 16px; font-weight: 600; color: #333; }
.cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 1px; background: #e8e8e8; border-radius: 6px; overflow: hidden;
}
.cal-head {
  padding: 10px; text-align: center; font-size: 13px;
  font-weight: 600; color: #666; background: #fafafa;
}
.cal-day {
  min-height: 90px; padding: 6px 8px; background: #fff;
  font-size: 13px; vertical-align: top;
}
.cal-day.empty { background: #fafafa; }
.cal-day-num { font-weight: 500; color: #333; margin-bottom: 4px; }
.cal-tag {
  display: block; padding: 2px 6px; border-radius: 3px;
  font-size: 11px; margin-bottom: 2px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
.cal-tag.normal { background: #f6ffed; color: #52c41a; }
.cal-tag.late { background: #fff7e6; color: #fa8c16; }
.cal-tag.absent { background: #fff1f0; color: #ff4d4f; }
.cal-tag.leave { background: #e6f7ff; color: #1890ff; }
.cal-tag.training { background: #f9f0ff; color: #722ed1; }

/* === Search Dropdown === */
.search-dropdown {
  position: absolute; top: 100%; left: 0; right: 0;
  background: #fff; border: 1px solid #d9d9d9; border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1); max-height: 200px;
  overflow-y: auto; z-index: 50;
}
.search-item {
  padding: 8px 12px; cursor: pointer; font-size: 13px;
  color: #333; transition: background 0.1s;
}
.search-item:hover { background: #e6f7ff; }
.selected-emp {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; background: #e6f7ff; border-radius: 4px;
  font-size: 13px; color: #1890ff;
}
.empty-state { text-align: center; padding: 12px; color: #bbb; font-size: 13px; }

/* === Modal === */
.modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.45); z-index: 300;
  display: none; align-items: center; justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal {
  background: #fff; border-radius: 8px; width: 700px; max-width: 92vw;
  max-height: 85vh; display: flex; flex-direction: column;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  animation: modalIn 0.2s ease-out;
}
@keyframes modalIn { from { transform: translateY(-20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; border-bottom: 1px solid #f0f0f0;
}
.modal-header h3 { font-size: 16px; font-weight: 600; color: #333; }
.modal-close {
  width: 28px; height: 28px; border: none; background: none;
  font-size: 18px; color: #999; cursor: pointer; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: #f5f5f5; color: #333; }
.modal-body { padding: 20px 24px; overflow-y: auto; flex: 1; }
.modal-footer {
  padding: 12px 24px; border-top: 1px solid #f0f0f0;
  display: flex; gap: 8px; justify-content: flex-end;
}

/* === Toast === */
.toast-container {
  position: fixed; top: 20px; right: 20px; z-index: 999;
  display: flex; flex-direction: column; gap: 8px;
}
.toast {
  padding: 12px 20px; border-radius: 6px; font-size: 14px;
  color: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  max-width: 360px; opacity: 0; transform: translateX(100%);
  transition: all 0.3s ease;
}
.toast.show { opacity: 1; transform: translateX(0); }
.toast.success { background: #52c41a; }
.toast.error { background: #ff4d4f; }
.toast.info { background: #1890ff; }
.toast.warning { background: #fa8c16; }
@keyframes toastIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* === Utility === */
.loading { text-align: center; padding: 40px; color: #999; font-size: 14px; }
.error-state { text-align: center; padding: 40px; color: #ff4d4f; font-size: 14px; }
.empty-text { text-align: center; padding: 20px; color: #bbb; font-size: 13px; }

/* === Org Chart === */
.org-root { padding: 16px 0; }
.org-company-card {
  text-align: center; padding: 20px 32px; background: linear-gradient(135deg, #1890ff, #096dd9);
  color: #fff; border-radius: 10px; margin-bottom: 24px; box-shadow: 0 4px 12px rgba(24,144,255,0.3);
}
.org-company-name { font-size: 20px; font-weight: 600; margin-bottom: 4px; }
.org-company-info { font-size: 13px; opacity: 0.85; }
.org-depts { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.org-dept-card {
  background: #fff; border: 1px solid #e8e8e8; border-radius: 8px; padding: 16px;
  transition: box-shadow 0.2s;
}
.org-dept-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.org-dept-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.org-dept-name { font-size: 15px; font-weight: 600; color: #333; }
.org-dept-count { font-size: 12px; color: #999; background: #f5f5f5; padding: 2px 8px; border-radius: 10px; }
.org-leader { font-size: 13px; color: #666; margin-bottom: 8px; padding: 6px 8px; background: #f0f7ff; border-radius: 4px; }
.org-leader-badge { font-size: 11px; color: #1890ff; background: #e6f7ff; padding: 1px 6px; border-radius: 3px; margin-right: 6px; }
.org-members { display: flex; flex-wrap: wrap; gap: 6px; }
.org-member {
  font-size: 12px; color: #555; background: #fafafa; border: 1px solid #e8e8e8;
  padding: 3px 10px; border-radius: 12px; cursor: pointer; transition: all 0.15s;
}
.org-member:hover { background: #1890ff; color: #fff; border-color: #1890ff; }

/* === Sub-tabs (shared) === */
.sub-tabs { display: flex; gap: 0; border-bottom: 1px solid #e8e8e8; margin-bottom: 16px; }
.sub-tab {
  padding: 10px 20px; font-size: 14px; color: #666; cursor: pointer; border-bottom: 2px solid transparent;
  transition: all 0.2s;
}
.sub-tab:hover { color: #1890ff; }
.sub-tab.active { color: #1890ff; border-bottom-color: #1890ff; font-weight: 500; }

/* === Active Filter (clickable stat cards) === */
.active-filter {
  box-shadow: 0 0 0 2px #1890ff, 0 2px 8px rgba(24,144,255,0.2);
  transform: scale(1.02);
}

/* === Detail View (for modal contract detail) === */
.detail-view { max-height: 70vh; overflow-y: auto; }

/* === Tag Pills === */
.tag-pill {
  display: inline-block; padding: 2px 8px; border-radius: 10px;
  font-size: 11px; font-weight: 500; line-height: 1.4;
}

/* === Compliance Badge === */
.compliance-badge {
  display: inline-block; padding: 2px 10px; border-radius: 10px;
  font-size: 12px; font-weight: 600; color: #fff; margin-left: 8px;
}

/* === Approval Timeline === */
.approval-timeline {
  display: flex; align-items: center; gap: 0; padding: 12px 0;
  overflow-x: auto; flex-wrap: nowrap;
}
.approval-node {
  display: flex; flex-direction: column; align-items: center;
  min-width: 100px; text-align: center;
}
.approval-node-dot {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 600;
  background: #f5f5f5; border: 2px solid #e8e8e8;
}
.approval-node-info {
  margin-top: 6px; font-size: 12px; max-width: 120px;
}
.approval-node-line {
  flex: 1; height: 2px; background: #e8e8e8;
  min-width: 20px; margin-top: -20px;
}

/* === Smart Alerts Bell === */
.smart-alerts-bell:hover { background: #f0f5ff; border-radius: 6px; }
.alerts-badge {
  animation: pulse-badge 2s infinite;
}
@keyframes pulse-badge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* === Loading Spinner === */
.loading-spinner {
  display: inline-block; width: 24px; height: 24px;
  border: 3px solid #f0f0f0; border-top-color: #1890ff;
  border-radius: 50%; animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* === Responsive === */
@media (max-width: 1200px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .dash-row { flex-direction: column; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .hamburger-btn { display: inline-flex; }
  .sidebar {
    transform: translateX(-100%); transition: transform 0.3s ease;
    box-shadow: none; z-index: 150;
  }
  .sidebar.mobile-open {
    transform: translateX(0);
    box-shadow: 4px 0 12px rgba(0,0,0,0.1);
  }
  .main-content { margin-left: 0; padding: 16px; }
  .emp-layout { flex-direction: column; }
  .dept-tree { width: 100%; position: static; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .drawer { width: 100%; max-width: 100%; }
  .detail-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .toolbar { flex-direction: column; align-items: flex-start; }
  .toolbar-left, .toolbar-right { width: 100%; }
  .modal { max-width: 96vw; margin: 8px; }
}

/* === AI Chat Panel === */
.ai-chat-panel {
  position: fixed; top: 56px; right: -420px; bottom: 0;
  width: 400px; background: #fff; z-index: 180;
  box-shadow: -4px 0 16px rgba(0,0,0,0.1);
  display: flex; flex-direction: column;
  transition: right 0.3s ease;
  border-left: 1px solid #e8e8e8;
}
.ai-chat-panel.open { right: 0; }
.ai-chat-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid #f0f0f0;
  background: linear-gradient(135deg, #1890ff, #096dd9);
  color: #fff;
}
.ai-chat-title { font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.ai-chat-close { border: none; background: none; color: #fff; font-size: 18px; cursor: pointer; opacity: 0.8; padding: 4px; }
.ai-chat-close:hover { opacity: 1; }
.ai-quick-actions { display: flex; gap: 6px; padding: 12px 16px; border-bottom: 1px solid #f0f0f0; flex-wrap: wrap; }
.ai-quick-btn {
  padding: 4px 12px; border: 1px solid #d9d9d9; border-radius: 16px;
  font-size: 12px; color: #666; background: #fff; cursor: pointer;
  transition: all 0.15s;
}
.ai-quick-btn:hover { border-color: #1890ff; color: #1890ff; background: #e6f7ff; }
.ai-chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.ai-msg { display: flex; gap: 8px; max-width: 90%; }
.ai-msg-user { align-self: flex-end; flex-direction: row-reverse; }
.ai-msg-assistant { align-self: flex-start; }
.ai-avatar {
  width: 32px; height: 32px; border-radius: 50%; background: #1890ff;
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}
.ai-msg-bubble { padding: 10px 14px; border-radius: 12px; font-size: 13px; line-height: 1.6; }
.ai-bubble-user { background: #1890ff; color: #fff; border-bottom-right-radius: 4px; }
.ai-bubble-assistant { background: #f5f5f5; color: #333; border-bottom-left-radius: 4px; }
.ai-chat-input {
  display: flex; gap: 8px; padding: 12px 16px;
  border-top: 1px solid #f0f0f0; background: #fafafa;
}
.ai-chat-input input {
  flex: 1; padding: 8px 12px; border: 1px solid #d9d9d9;
  border-radius: 20px; font-size: 13px; outline: none;
}
.ai-chat-input input:focus { border-color: #1890ff; }
.ai-typing { display: flex; gap: 4px; padding: 4px 0; }
.ai-typing span {
  width: 6px; height: 6px; border-radius: 50%; background: #999;
  animation: typing-bounce 1.2s infinite;
}
.ai-typing span:nth-child(2) { animation-delay: 0.2s; }
.ai-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
}

/* AI Button in header */
.ai-btn {
  background: linear-gradient(135deg, #1890ff, #096dd9) !important;
  color: #fff !important; border: none !important;
  border-radius: 20px !important; padding: 5px 14px !important;
  font-size: 13px !important; display: inline-flex; align-items: center; gap: 6px;
}
.ai-btn:hover { opacity: 0.9; }

/* === Login Overlay === */
.login-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5); z-index: 9999;
  display: flex; align-items: center; justify-content: center;
}
.login-card {
  background: #fff; border-radius: 12px; padding: 40px;
  width: 400px; max-width: 90vw;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.login-logo { text-align: center; margin-bottom: 28px; }
.login-logo h2 { font-size: 20px; color: #333; margin-top: 12px; }
.login-logo p { font-size: 13px; color: #999; margin-top: 4px; }

/* === Organization Tree === */
.org-tree-node { margin-left: 20px; }
.org-tree-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 4px; cursor: pointer;
  font-size: 13px; color: #333; transition: all 0.15s;
}
.org-tree-item:hover { background: #f5f5f5; }
.org-tree-item .dept-toggle {
  width: 16px; height: 16px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #999; font-size: 10px;
}
.org-tree-item .dept-badge {
  font-size: 11px; color: #999; background: #f0f0f0;
  padding: 1px 8px; border-radius: 10px; margin-left: auto;
}

/* === Leave Calendar === */
.leave-calendar {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 1px; background: #e8e8e8; border-radius: 6px; overflow: hidden;
  margin-bottom: 16px;
}
.leave-cal-head {
  padding: 8px; text-align: center; font-size: 12px;
  font-weight: 600; color: #666; background: #fafafa;
}
.leave-cal-day {
  min-height: 80px; padding: 4px; background: #fff; font-size: 12px;
}
.leave-cal-day.empty { background: #fafafa; }
.leave-cal-day.today { background: #e6f7ff; }
.leave-cal-num { font-weight: 500; color: #333; margin-bottom: 2px; }
.leave-cal-tag {
  display: block; padding: 1px 4px; border-radius: 3px;
  font-size: 10px; margin-bottom: 1px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}

/* === Risk Level Colors === */
.risk-high { color: #ff4d4f; }
.risk-medium { color: #fa8c16; }
.risk-low { color: #52c41a; }
.risk-bar {
  height: 6px; border-radius: 3px; background: #f0f0f0;
  overflow: hidden; margin-top: 4px;
}
.risk-bar-fill { height: 100%; border-radius: 3px; transition: width 0.3s; }

/* === Import/Export Buttons === */
.import-drop-zone {
  border: 2px dashed #d9d9d9; border-radius: 8px;
  padding: 40px; text-align: center; cursor: pointer;
  transition: all 0.2s; margin-bottom: 16px;
}
.import-drop-zone:hover { border-color: #1890ff; background: #f0f7ff; }
.import-drop-zone i { font-size: 36px; color: #1890ff; margin-bottom: 12px; }

/* === Responsive for AI Panel === */
@media (max-width: 768px) {
  .ai-chat-panel { width: 100%; right: -100%; }
}

/* === Channel Management === */
.channel-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.channel-card { background: #fff; border-radius: 6px; padding: 16px; border-left: 4px solid #1890ff; box-shadow: 0 1px 2px rgba(0,0,0,0.04); }
.channel-card-value { font-size: 24px; font-weight: 700; color: #333; }
.channel-card-label { font-size: 12px; color: #999; margin-top: 4px; }
.channel-type-tag { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 500; }

/* === Activity Timeline === */
.activity-timeline { padding: 8px 0; }
.activity-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f5f5f5; }
.activity-item:last-child { border-bottom: none; }
.activity-icon { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.activity-content { flex: 1; }
.activity-title { font-size: 13px; font-weight: 500; color: #333; }
.activity-desc { font-size: 12px; color: #666; margin-top: 2px; }
.activity-time { font-size: 11px; color: #999; margin-top: 4px; }

/* === Attachment Upload === */
.attachment-upload-area {
  border: 2px dashed #d9d9d9; border-radius: 8px; padding: 24px;
  text-align: center; cursor: pointer; transition: all 0.2s;
  margin-bottom: 16px; background: #fafafa;
}
.attachment-upload-area:hover { border-color: #1890ff; background: #f0f7ff; }
.attachment-upload-area i { font-size: 28px; color: #1890ff; margin-bottom: 8px; }
.attachment-list { display: flex; flex-direction: column; gap: 8px; }
.attachment-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  background: #fafafa; border-radius: 6px; border: 1px solid #f0f0f0;
}
.attachment-item:hover { background: #f0f7ff; border-color: #91d5ff; }
.attachment-icon { font-size: 20px; color: #1890ff; }
.attachment-name { flex: 1; font-size: 13px; color: #333; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attachment-size { font-size: 12px; color: #999; }
.attachment-actions { display: flex; gap: 4px; }

/* === Report AI Query === */
.report-ai-bar {
  background: #fff; border-radius: 6px; padding: 16px 20px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04); margin-bottom: 16px;
  display: flex; align-items: center; gap: 12px;
}
.report-ai-bar input { flex: 1; }
.report-ai-result { margin-bottom: 16px; }

/* === Export Buttons === */
.export-bar { display: flex; gap: 8px; margin-bottom: 12px; justify-content: flex-end; }

/* === Responsive === */
@media (max-width: 768px) {
  .channel-cards { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   v20 - 流程设计器 & 审批时间线样式
   ============================================================ */

/* === Workflow Designer === */
.workflow-designer {
  display: flex; flex-direction: column;
  background: #fff; border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  height: calc(100vh - 180px); min-height: 500px;
  overflow: hidden;
}
.designer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; border-bottom: 1px solid #e8e8e8;
  background: #fafafa;
}
.designer-header-left { display: flex; align-items: center; gap: 12px; }
.designer-header-right { display: flex; align-items: center; gap: 8px; }
.designer-title { font-size: 15px; font-weight: 600; color: #333; }

.designer-body {
  display: flex; flex: 1; overflow: hidden;
}

/* Designer Canvas */
.designer-canvas {
  flex: 1; position: relative; overflow: auto;
  background: #f8f9fa;
  background-image:
    radial-gradient(circle, #e0e0e0 1px, transparent 1px);
  background-size: 20px 20px;
  cursor: default; min-height: 400px;
}

.designer-svg-edges {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 1;
}
.designer-svg-edges path {
  pointer-events: stroke;
}

.designer-edge-line {
  fill: none; stroke: #b0b0b0; stroke-width: 2;
  cursor: pointer; pointer-events: stroke;
  transition: stroke 0.15s;
}
.designer-edge-line:hover { stroke: #1890ff; stroke-width: 3; }
.designer-edge-arrow { fill: #b0b0b0; }
.designer-edge-label {
  font-size: 11px; fill: #666;
  background: #fff; padding: 2px 6px;
}

.designer-connect-hint {
  position: absolute; bottom: 12px; left: 50%;
  transform: translateX(-50%);
  background: #1890ff; color: #fff;
  padding: 6px 16px; border-radius: 16px;
  font-size: 12px; z-index: 10;
  box-shadow: 0 2px 8px rgba(24,144,255,0.3);
  animation: fadeIn 0.2s;
}

/* Designer Nodes */
.designer-node {
  position: absolute; z-index: 5;
  cursor: move; user-select: none;
  display: flex; flex-direction: column; align-items: center;
  transition: box-shadow 0.15s;
}
.designer-node:hover { z-index: 6; }
.designer-node-selected { z-index: 7; }

.designer-node-inner {
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; transition: all 0.15s;
}
.designer-node-label {
  font-size: 12px; color: #333; margin-top: 4px;
  text-align: center; max-width: 120px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Start Node - Green Circle */
.designer-node-start .designer-node-inner.start-inner {
  width: 50px; height: 50px; border-radius: 50%;
  background: #52c41a; color: #fff;
  font-size: 18px;
  box-shadow: 0 2px 8px rgba(82,196,26,0.3);
}
.designer-node-start.designer-node-selected .designer-node-inner {
  box-shadow: 0 0 0 3px rgba(82,196,26,0.3), 0 2px 8px rgba(82,196,26,0.3);
}

/* End Node - Red Circle */
.designer-node-end .designer-node-inner.end-inner {
  width: 50px; height: 50px; border-radius: 50%;
  background: #ff4d4f; color: #fff;
  font-size: 18px;
  box-shadow: 0 2px 8px rgba(255,77,79,0.3);
}
.designer-node-end.designer-node-selected .designer-node-inner {
  box-shadow: 0 0 0 3px rgba(255,77,79,0.3), 0 2px 8px rgba(255,77,79,0.3);
}

/* Approver Node - Blue Rectangle */
.designer-node-approver .designer-node-inner.approver-inner {
  width: 140px; height: 56px; border-radius: 6px;
  background: #fff; border: 2px solid #1890ff;
  color: #1890ff; font-size: 16px;
  box-shadow: 0 2px 6px rgba(24,144,255,0.15);
}
.designer-node-approver.designer-node-selected .designer-node-inner {
  border-color: #096dd9;
  box-shadow: 0 0 0 3px rgba(24,144,255,0.2), 0 2px 6px rgba(24,144,255,0.15);
}

/* Condition Node - Yellow Diamond */
.designer-node-condition {
  align-items: center;
}
.designer-node-condition .designer-node-inner.condition-inner {
  width: 70px; height: 70px;
  background: #faad14; color: #fff;
  font-size: 18px;
  transform: rotate(45deg);
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(250,173,20,0.3);
}
.designer-node-condition .designer-node-inner.condition-inner i {
  transform: rotate(-45deg);
}
.designer-node-condition.designer-node-selected .designer-node-inner {
  box-shadow: 0 0 0 3px rgba(250,173,20,0.3), 0 2px 8px rgba(250,173,20,0.3);
}

/* Countersign Node - Purple Rectangle */
.designer-node-countersign .designer-node-inner.countersign-inner {
  width: 140px; height: 56px; border-radius: 6px;
  background: #fff; border: 2px solid #722ed1;
  color: #722ed1; font-size: 16px;
  box-shadow: 0 2px 6px rgba(114,46,209,0.15);
}
.designer-node-countersign.designer-node-selected .designer-node-inner {
  border-color: #531dab;
  box-shadow: 0 0 0 3px rgba(114,46,209,0.2), 0 2px 6px rgba(114,46,209,0.15);
}

/* Node Connect Point */
.designer-node-connect {
  position: absolute; bottom: -8px; left: 50%;
  transform: translateX(-50%);
  width: 16px; height: 16px;
  display: flex; align-items: center; justify-content: center;
  cursor: crosshair; z-index: 8;
  color: #d9d9d9; font-size: 8px;
  transition: color 0.15s;
}
.designer-node-connect:hover { color: #1890ff; }
.designer-node-start .designer-node-connect,
.designer-node-end .designer-node-connect {
  bottom: -6px;
}
.designer-node-condition .designer-node-connect {
  bottom: -12px;
}

/* Designer Sidebar */
.designer-sidebar {
  width: 280px; min-width: 280px;
  border-left: 1px solid #e8e8e8;
  background: #fff; display: flex; flex-direction: column;
  overflow-y: auto;
}
.designer-toolbar {
  display: flex; gap: 6px; padding: 12px;
  border-bottom: 1px solid #f0f0f0;
  flex-wrap: wrap;
}
.designer-toolbar .btn { flex: 1; min-width: 70px; font-size: 12px; }

/* Node Config Panel */
.node-config-panel { flex: 1; overflow-y: auto; }
.node-config-empty {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 40px 20px; color: #bbb;
  text-align: center;
}
.node-config-content { padding: 16px; }
.node-config-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}
.node-config-type {
  font-size: 14px; font-weight: 600; color: #333;
}

/* Condition Row */
.condition-row {
  display: flex; gap: 4px; align-items: center;
  margin-bottom: 8px;
}
.condition-row .form-input,
.condition-row .form-select {
  flex: 1; min-width: 0; padding: 4px 8px; font-size: 12px;
}
.condition-row .btn { flex-shrink: 0; padding: 4px 6px; }

/* Countersign Approver Row */
.countersign-approver-row {
  display: flex; gap: 4px; align-items: center;
  margin-bottom: 8px;
}
.countersign-approver-row .form-input { flex: 1; padding: 4px 8px; font-size: 12px; }
.countersign-approver-row .btn { flex-shrink: 0; padding: 4px 6px; }

/* === Approval Timeline (Vertical) === */
.approval-flow-section {
  margin-top: 20px; padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}
.approval-flow-title {
  font-size: 14px; font-weight: 600; color: #333;
  margin-bottom: 16px;
}

.approval-timeline-vertical {
  display: flex; flex-direction: column;
  padding-left: 4px;
}

.timeline-step {
  display: flex; position: relative;
  padding-bottom: 24px;
}
.timeline-step:last-child { padding-bottom: 0; }

.timeline-step-dot {
  width: 24px; min-width: 24px;
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 2px; z-index: 2;
}

.timeline-step-line {
  position: absolute;
  left: 11px; top: 24px; bottom: 0;
  width: 2px; background: #e8e8e8;
}
.timeline-step.completed .timeline-step-line { background: #b7eb8f; }
.timeline-step.current .timeline-step-line { background: #ffe58f; }
.timeline-step.rejected .timeline-step-line { background: #ffccc7; }

.timeline-step-content {
  flex: 1; margin-left: 8px;
  padding: 0 0 0 4px;
}
.timeline-step-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px;
}
.timeline-step-label {
  font-weight: 500; color: #333;
}
.timeline-step-approver {
  color: #666; font-size: 12px;
}
.timeline-step-time {
  font-size: 12px; color: #999; margin-top: 2px;
}
.timeline-step-comment {
  font-size: 12px; color: #666; margin-top: 4px;
  padding: 6px 10px; background: #fafafa;
  border-radius: 4px; border-left: 3px solid #e8e8e8;
}
.timeline-step.completed .timeline-step-comment { border-left-color: #b7eb8f; }
.timeline-step.current .timeline-step-comment { border-left-color: #ffe58f; }
.timeline-step.rejected .timeline-step-comment { border-left-color: #ffccc7; }

/* === Approval Progress Cards === */
.approval-progress-card {
  margin-bottom: 12px; padding: 16px 20px;
}
.approval-progress-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px; flex-wrap: wrap; gap: 8px;
}
.approval-progress-title {
  display: flex; align-items: center; gap: 8px;
}
.approval-progress-title strong {
  font-size: 14px; color: #333;
}
.approval-progress-meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; color: #999;
}
.approval-progress-flow {
  display: flex; align-items: center; gap: 0;
  padding: 12px 0; overflow-x: auto;
}

/* Flow Nodes (Horizontal) */
.flow-node {
  display: flex; flex-direction: column; align-items: center;
  min-width: 80px; text-align: center; padding: 0 8px;
}
.flow-node-dot {
  width: 12px; height: 12px; border-radius: 50%;
  margin-bottom: 6px;
}
.flow-node-label {
  font-size: 12px; color: #333; font-weight: 500;
}
.flow-node-name {
  font-size: 11px; color: #999; margin-top: 2px;
}
.flow-node-completed .flow-node-label { color: #52c41a; }
.flow-node-current .flow-node-label { color: #fa8c16; }
.flow-node-rejected .flow-node-label { color: #ff4d4f; }

.flow-arrow {
  color: #d9d9d9; font-size: 14px;
  padding: 0 4px; margin-top: -18px;
}

/* === Delegation Cards === */
.delegation-cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.delegation-card {
  padding: 16px 20px;
}
.delegation-card-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}
.delegation-card-title {
  display: flex; align-items: center; font-size: 14px; font-weight: 500;
}
.delegation-card-body {
  display: flex; flex-direction: column; gap: 6px;
}
.delegation-info {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: #666;
}
.delegation-info label {
  color: #999; min-width: 70px; font-size: 12px;
}
.delegation-card-footer {
  display: flex; gap: 12px; margin-top: 12px;
  padding-top: 12px; border-top: 1px solid #f0f0f0;
}

/* === btn-link utility === */
.btn-link {
  background: none; border: none; color: #1890ff;
  cursor: pointer; font-size: 13px; padding: 2px 4px;
  text-decoration: none;
}
.btn-link:hover { color: #40a9ff; text-decoration: underline; }

/* === Responsive for Designer === */
@media (max-width: 768px) {
  .workflow-designer { height: auto; min-height: 400px; }
  .designer-body { flex-direction: column; }
  .designer-sidebar {
    width: 100%; min-width: 100%;
    border-left: none; border-top: 1px solid #e8e8e8;
    max-height: 300px;
  }
  .delegation-cards { grid-template-columns: 1fr; }
}

/* ============================================================
   v21 - 排班管理样式
   ============================================================ */

/* === Shift Cards Grid === */
.shift-cards-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px; margin-bottom: 20px;
}
.shift-card {
  background: #fff; border-radius: 6px; padding: 16px 20px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  display: flex; flex-direction: column; gap: 10px;
  transition: box-shadow 0.15s;
}
.shift-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.shift-card-header {
  display: flex; align-items: center; justify-content: space-between;
}
.shift-card-name {
  font-size: 15px; font-weight: 600; color: #333;
  display: flex; align-items: center; gap: 8px;
}
.shift-color-dot {
  display: inline-block; width: 12px; height: 12px;
  border-radius: 50%; flex-shrink: 0;
}
.shift-card-body { display: flex; flex-direction: column; gap: 4px; }
.shift-card-row { font-size: 13px; color: #666; }
.shift-card-label { color: #999; margin-right: 4px; }
.shift-card-footer {
  display: flex; gap: 8px; margin-top: 4px;
  padding-top: 10px; border-top: 1px solid #f0f0f0;
}

/* === Shift Badge === */
.shift-badge {
  display: inline-block; padding: 2px 8px; border-radius: 4px;
  font-size: 12px; font-weight: 500; white-space: nowrap;
}

/* === Schedule Calendar === */
.schedule-calendar {
  background: #fff; border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  overflow: hidden;
}
.schedule-grid-wrap {
  overflow-x: auto;
}
.schedule-grid {
  width: 100%; border-collapse: collapse;
  min-width: 800px;
}
.schedule-grid th,
.schedule-grid td {
  padding: 6px 4px; text-align: center;
  border: 1px solid #f0f0f0; font-size: 12px;
  vertical-align: middle;
}
.schedule-grid thead th {
  background: #fafafa; font-weight: 600; color: #666;
  position: sticky; top: 0; z-index: 2;
  white-space: nowrap;
}
.sched-emp-col {
  position: sticky; left: 0; z-index: 3;
  background: #fafafa; min-width: 80px;
  text-align: left !important; padding-left: 12px !important;
}
.sched-emp-name {
  position: sticky; left: 0; z-index: 1;
  background: #fff; min-width: 80px;
  text-align: left; padding-left: 12px;
  font-weight: 500; color: #333;
  white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; max-width: 100px;
}
.sched-day-col {
  min-width: 48px; max-width: 56px;
}
.sched-weekend { background: #fafafa; color: #999; }
.sched-today { background: #e6f7ff !important; color: #1890ff; }
.sched-cell {
  cursor: pointer; transition: background 0.1s;
  min-width: 48px; height: 36px;
}
.sched-cell:hover { background: #f0f7ff; }
.sched-weekend-cell { background: #fafafa; }
.sched-today-cell { background: #e6f7ff !important; }
.sched-today-cell:hover { background: #bae7ff !important; }

/* === Shift Select Grid (in modal) === */
.shift-select-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}
.shift-select-item {
  border-radius: 6px; padding: 4px;
  transition: all 0.15s; background: #fff;
}
.shift-select-item:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transform: translateY(-1px);
}

/* === Pattern Display === */
.pattern-display {
  display: flex; flex-wrap: wrap; gap: 6px;
  align-items: center;
}
.pattern-day {
  display: inline-block; padding: 4px 10px;
  border-radius: 4px; font-size: 12px;
  font-weight: 500; white-space: nowrap;
}

/* === Working Hours Cards === */
.hours-cards-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.hours-card {
  background: #fff; border-radius: 6px; padding: 20px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  display: flex; flex-direction: column; gap: 10px;
  transition: box-shadow 0.15s;
}
.hours-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.hours-card-header {
  display: flex; align-items: center; justify-content: space-between;
}
.hours-card-name {
  font-size: 16px; font-weight: 600; color: #333;
}
.hours-card-type { margin-bottom: 2px; }
.hours-card-params {
  font-size: 13px; color: #666;
  padding: 8px 12px; background: #fafafa;
  border-radius: 4px;
}
.hours-card-scope {
  font-size: 12px; color: #999;
}
.hours-card-actions {
  display: flex; gap: 8px; margin-top: 4px;
  padding-top: 10px; border-top: 1px solid #f0f0f0;
}

/* === Responsive for Scheduling === */
@media (max-width: 768px) {
  .shift-cards-grid { grid-template-columns: 1fr; }
  .hours-cards-grid { grid-template-columns: 1fr; }
  .schedule-grid { min-width: 600px; }
  .shift-select-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
}

/* ============================================================
   v22 - 学习地图 / 培训评估 / 证书管理 / 课时统计
   ============================================================ */

/* === Learning Path Cards === */
.learning-path-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px; margin-bottom: 20px;
}
.learning-path-card {
  background: #fff; border-radius: 8px; padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  border: 1px solid #f0f0f0;
  cursor: pointer; transition: all 0.2s;
  display: flex; flex-direction: column; gap: 12px;
}
.learning-path-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-color: #91d5ff;
  transform: translateY(-2px);
}
.lp-card-header {
  display: flex; align-items: center; justify-content: space-between;
}
.lp-card-title {
  font-size: 16px; font-weight: 600; color: #333;
  display: flex; align-items: center; gap: 8px;
}
.lp-card-type {
  display: inline-block; padding: 2px 10px; border-radius: 10px;
  font-size: 11px; font-weight: 500;
  background: #e6f7ff; color: #1890ff;
}
.lp-card-body { display: flex; flex-direction: column; gap: 6px; }
.lp-card-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: #666;
}
.lp-card-row .lp-label { color: #999; min-width: 60px; }
.lp-card-footer {
  display: flex; gap: 8px; margin-top: 4px;
  padding-top: 12px; border-top: 1px solid #f0f0f0;
}

/* === Stage Flow Visualization === */
.stage-flow {
  display: flex; align-items: flex-start; gap: 0;
  overflow-x: auto; padding: 20px 0;
}
.stage-item {
  display: flex; flex-direction: column; align-items: center;
  min-width: 180px; max-width: 220px; flex-shrink: 0;
  position: relative;
}
.stage-item-box {
  background: #fff; border: 2px solid #1890ff;
  border-radius: 8px; padding: 12px 16px;
  text-align: center; width: 100%;
  box-shadow: 0 2px 6px rgba(24,144,255,0.1);
}
.stage-item-title {
  font-size: 14px; font-weight: 600; color: #1890ff;
  margin-bottom: 8px;
}
.stage-course-list {
  display: flex; flex-direction: column; gap: 4px;
  text-align: left;
}
.stage-course-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: #333; padding: 3px 0;
}
.stage-course-badge {
  display: inline-block; padding: 1px 6px; border-radius: 3px;
  font-size: 10px; font-weight: 500; flex-shrink: 0;
}
.stage-course-required { background: #fff7e6; color: #fa8c16; }
.stage-course-optional { background: #f0f0f0; color: #999; }
.stage-arrow {
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #1890ff; padding: 0 8px;
  margin-top: 20px; flex-shrink: 0;
}

/* === Star Rating === */
.star-rating {
  display: inline-flex; gap: 4px; direction: rtl;
}
.star-rating .star {
  font-size: 24px; color: #d9d9d9; cursor: pointer;
  transition: color 0.15s, transform 0.1s;
  user-select: none;
}
.star-rating .star:hover,
.star-rating .star.active {
  color: #faad14;
}
.star-rating .star:hover { transform: scale(1.15); }
.star-rating-display {
  display: inline-flex; gap: 2px;
}
.star-rating-display .star {
  font-size: 16px; color: #d9d9d9;
}
.star-rating-display .star.filled { color: #faad14; }

/* === Certificate Status === */
.cert-status-active {
  background: rgba(82,196,26,0.12); color: #52c41a;
}
.cert-status-expiring {
  background: rgba(250,140,22,0.12); color: #fa8c16;
}
.cert-status-expired {
  background: rgba(255,77,79,0.12); color: #ff4d4f;
}

/* === Expiring Certificates Alert === */
.cert-alert-section {
  background: #fff; border-radius: 8px; padding: 16px 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  margin-bottom: 20px; border-left: 4px solid #fa8c16;
}
.cert-alert-title {
  font-size: 14px; font-weight: 600; color: #333;
  margin-bottom: 12px; display: flex; align-items: center; gap: 8px;
}
.cert-alert-title i { color: #fa8c16; }
.cert-alert-groups {
  display: flex; gap: 16px; flex-wrap: wrap;
}
.cert-alert-group {
  flex: 1; min-width: 200px;
  padding: 12px; background: #fafafa; border-radius: 6px;
}
.cert-alert-group-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.cert-alert-group-title {
  font-size: 13px; font-weight: 600;
}
.cert-alert-group-count {
  font-size: 18px; font-weight: 700;
}
.cert-alert-list {
  display: flex; flex-direction: column; gap: 4px;
}
.cert-alert-item {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: #666; padding: 4px 0;
  border-bottom: 1px solid #f0f0f0;
}
.cert-alert-item:last-child { border-bottom: none; }
.cert-alert-name { font-weight: 500; color: #333; }
.cert-alert-date { color: #999; }

/* === Progress Bar === */
.progress-bar {
  width: 100%; height: 8px; background: #f0f0f0;
  border-radius: 4px; overflow: hidden;
}
.progress-fill {
  height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, #1890ff, #40a9ff);
  transition: width 0.4s ease;
}
.progress-bar-lg { height: 12px; border-radius: 6px; }
.progress-bar-lg .progress-fill { border-radius: 6px; }
.progress-label {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: #666; margin-top: 4px;
}

/* === Evaluation Summary === */
.eval-summary-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px; margin-bottom: 16px;
}
.eval-summary-item {
  background: #fafafa; border-radius: 6px; padding: 12px;
  text-align: center;
}
.eval-summary-label { font-size: 12px; color: #999; margin-bottom: 4px; }
.eval-summary-score { font-size: 24px; font-weight: 700; color: #faad14; }
.eval-summary-count { font-size: 11px; color: #bbb; margin-top: 2px; }

/* === Stage Builder (Modal) === */
.stage-builder { display: flex; flex-direction: column; gap: 12px; }
.stage-builder-item {
  background: #fafafa; border: 1px solid #e8e8e8;
  border-radius: 6px; padding: 12px;
}
.stage-builder-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.stage-builder-name {
  font-size: 14px; font-weight: 600; color: #333;
}
.stage-courses-list { display: flex; flex-direction: column; gap: 6px; }
.stage-course-row {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px; background: #fff; border-radius: 4px;
  border: 1px solid #f0f0f0;
}
.stage-course-row .form-input,
.stage-course-row .form-select {
  padding: 4px 8px; font-size: 12px;
}

/* === Learning Path Detail === */
.lp-detail-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}
.lp-detail-title { font-size: 18px; font-weight: 600; color: #333; }
.lp-detail-meta {
  display: flex; gap: 16px; font-size: 13px; color: #666;
  margin-top: 8px;
}
.lp-assignee-list {
  display: flex; flex-direction: column; gap: 8px;
  margin-top: 16px;
}
.lp-assignee-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; background: #fafafa; border-radius: 6px;
}
.lp-assignee-name { font-size: 13px; font-weight: 500; color: #333; min-width: 80px; }
.lp-assignee-progress { flex: 1; }

/* === Responsive for v22 === */
@media (max-width: 768px) {
  .learning-path-grid { grid-template-columns: 1fr; }
  .stage-flow { flex-direction: column; align-items: stretch; }
  .stage-arrow { transform: rotate(90deg); margin: 4px auto; padding: 0; }
  .stage-item { min-width: auto; max-width: none; }
  .cert-alert-groups { flex-direction: column; }
  .eval-summary-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   v23 - 编制规划 / 面试管理 / 入职离职清单 / 自定义字段
   ============================================================ */

/* === Headcount Planning Cards === */
.hc-plan-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.hc-plan-card {
  background: #fff; border-radius: 8px; padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  border: 1px solid #f0f0f0;
  cursor: pointer; transition: all 0.2s;
  display: flex; flex-direction: column; gap: 12px;
}
.hc-plan-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-color: #91d5ff; transform: translateY(-2px);
}
.hc-plan-card-header {
  display: flex; align-items: center; justify-content: space-between;
}
.hc-plan-card-title { font-size: 16px; font-weight: 600; color: #333; }
.hc-plan-card-body { display: flex; flex-direction: column; gap: 6px; }
.hc-plan-card-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: #666;
}
.hc-plan-card-row .hc-label { color: #999; min-width: 70px; }
.hc-plan-card-desc {
  font-size: 12px; color: #999; margin-top: 4px;
  padding-top: 8px; border-top: 1px solid #f0f0f0;
  line-height: 1.5;
}
.hc-plan-card-footer {
  display: flex; gap: 8px; margin-top: 4px;
  padding-top: 12px; border-top: 1px solid #f0f0f0;
}

/* === Headcount Department Editor === */
.hc-dept-table .form-input { padding: 4px 8px; font-size: 12px; }
.hc-dept-totals { margin-top: 12px; }
.hc-totals-row {
  display: flex; gap: 16px; flex-wrap: wrap;
  padding: 12px 16px; background: #f0f7ff; border-radius: 6px;
  font-size: 13px; color: #333;
}
.hc-total-item { display: inline-flex; align-items: center; gap: 4px; }

/* === Headcount Detail === */
.hc-detail-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 16px;
}
.hc-detail-dept-row {
  padding: 12px 0; border-bottom: 1px solid #f5f5f5;
}
.hc-detail-dept-row:last-child { border-bottom: none; }
.hc-detail-dept-info {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 6px;
}
.hc-detail-dept-name { font-size: 14px; font-weight: 500; color: #333; }
.hc-detail-dept-counts { font-size: 13px; color: #666; }
.hc-detail-dept-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.hc-detail-dept-bar .progress-bar { flex: 1; }
.hc-detail-dept-meta {
  display: flex; gap: 16px; font-size: 12px; color: #999;
}

/* === Headcount Chart Card === */
.hc-chart-card {
  background: #fff; border-radius: 6px; padding: 20px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.hc-chart-title {
  font-size: 15px; font-weight: 600; color: #333;
  margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #f0f0f0;
}
.hc-bar-chart { display: flex; flex-direction: column; gap: 12px; }
.hc-bar-row { display: flex; align-items: center; gap: 12px; }
.hc-bar-label { width: 80px; font-size: 13px; color: #666; text-align: right; flex-shrink: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hc-bar-group { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.hc-bar-track { height: 14px; background: #f0f0f0; border-radius: 7px; overflow: hidden; }
.hc-bar-fill { height: 100%; border-radius: 7px; transition: width 0.4s; min-width: 2px; }
.hc-bar-current { background: #1890ff; }
.hc-bar-planned { background: #52c41a; }
.hc-bar-vals { width: 60px; font-size: 12px; color: #999; flex-shrink: 0; }
.hc-bar-legend { display: flex; gap: 16px; margin-top: 16px; justify-content: center; }
.hc-legend-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #666; }
.hc-legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }

/* === Headcount Timeline === */
.hc-timeline-list { display: flex; flex-direction: column; gap: 12px; }
.hc-timeline-item { display: flex; align-items: center; gap: 12px; }
.hc-timeline-quarter { width: 60px; font-size: 13px; font-weight: 500; color: #333; flex-shrink: 0; }
.hc-timeline-bar-wrap { flex: 1; }
.hc-timeline-info { width: 80px; font-size: 12px; color: #999; text-align: right; flex-shrink: 0; }

/* === Interview Calendar (Week View) === */
.int-week-view { overflow-x: auto; }
.int-week-grid {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 1px; background: #e8e8e8; border-radius: 6px; overflow: hidden;
  min-width: 800px;
}
.int-week-day {
  background: #fff; min-height: 300px;
  display: flex; flex-direction: column;
}
.int-week-today { background: #f0f7ff; }
.int-week-weekend { background: #fafafa; }
.int-week-day-header {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 8px; border-bottom: 1px solid #f0f0f0;
  background: #fafafa;
}
.int-week-today .int-week-day-header { background: #e6f7ff; }
.int-week-day-name { font-size: 12px; color: #999; }
.int-week-day-num { font-size: 14px; font-weight: 600; color: #333; }
.int-week-day-num.today-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: #1890ff; color: #fff;
}
.int-week-day-body {
  flex: 1; padding: 6px; display: flex; flex-direction: column; gap: 4px;
  overflow-y: auto;
}
.int-cal-card {
  background: #fff; border: 1px solid #f0f0f0; border-left: 3px solid #1890ff;
  border-radius: 4px; padding: 6px 8px; cursor: pointer;
  transition: all 0.15s; font-size: 12px;
}
.int-cal-card:hover { box-shadow: 0 2px 6px rgba(0,0,0,0.1); transform: translateY(-1px); }
.int-cal-time { font-size: 11px; color: #999; font-weight: 500; }
.int-cal-candidate { font-size: 12px; font-weight: 500; color: #333; margin-top: 2px; }
.int-cal-interviewer { font-size: 11px; color: #999; margin-top: 1px; }

/* === Feedback Score Cards === */
.feedback-score-cards {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
.feedback-score-card {
  background: #fafafa; border-radius: 6px; padding: 12px 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.feedback-score-card label { font-size: 13px; color: #666; font-weight: 500; }

/* === Recommendation Badges === */
.recommendation-badge {
  display: inline-block; padding: 2px 10px; border-radius: 10px;
  font-size: 12px; font-weight: 500;
}

/* === Checklist Instance Cards === */
.checklist-list { display: flex; flex-direction: column; gap: 12px; }
.checklist-instance-card {
  background: #fff; border-radius: 6px; padding: 16px 20px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  border: 1px solid #f0f0f0;
}
.checklist-card-header {
  display: flex; align-items: center; justify-content: space-between;
}

/* === Checklist Items === */
.checklist-items-list { display: flex; flex-direction: column; gap: 0; }
.checklist-item-row {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 12px; border-bottom: 1px solid #f5f5f5;
  transition: background 0.15s;
}
.checklist-item-row:hover { background: #fafafa; }
.checklist-item-row:last-child { border-bottom: none; }
.checklist-item-done { opacity: 0.6; }
.checklist-item-done .checklist-item-name { text-decoration: line-through; color: #999; }
.checklist-item-check {
  padding-top: 2px; flex-shrink: 0;
}
.checklist-item-check input[type="checkbox"] {
  width: 18px; height: 18px; cursor: pointer;
  accent-color: #1890ff;
}
.checklist-item-info { flex: 1; min-width: 0; }
.checklist-item-name { font-size: 14px; color: #333; font-weight: 500; }
.checklist-item-meta {
  display: flex; gap: 12px; font-size: 12px; color: #999; margin-top: 4px;
  flex-wrap: wrap;
}
.checklist-item-cat {
  display: inline-block; padding: 1px 6px; border-radius: 3px;
  font-size: 11px; background: #e6f7ff; color: #1890ff;
}
.checklist-item-note { flex-shrink: 0; max-width: 200px; }

/* === Checklist Template Cards === */
.checklist-template-card {
  background: #fff; border: 1px solid #f0f0f0; border-radius: 6px;
  padding: 12px 16px; margin-bottom: 8px;
  transition: box-shadow 0.15s;
}
.checklist-template-card:hover { box-shadow: 0 2px 6px rgba(0,0,0,0.08); }

/* === Custom Field Management === */
.cf-field-list { display: flex; flex-direction: column; gap: 8px; }
.cf-field-card {
  background: #fff; border: 1px solid #f0f0f0; border-radius: 6px;
  padding: 12px 16px; display: flex; align-items: center;
  justify-content: space-between; transition: box-shadow 0.15s;
}
.cf-field-card:hover { box-shadow: 0 2px 6px rgba(0,0,0,0.08); }

/* === Responsive for v23 === */
@media (max-width: 768px) {
  .hc-plan-grid { grid-template-columns: 1fr; }
  .int-week-grid { min-width: 600px; }
  .feedback-score-cards { grid-template-columns: 1fr; }
  .hc-totals-row { flex-direction: column; gap: 8px; }
  .hc-bar-row { flex-direction: column; align-items: stretch; }
  .hc-bar-label { width: auto; text-align: left; }
  .hc-bar-vals { width: auto; text-align: left; }
}

/* === 骨架屏动画 === */
.skeleton-wrapper { padding: 16px; }
.skeleton-row { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 1px solid #f5f5f5; }
.skeleton-cell {
  height: 16px; border-radius: 4px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite;
}
@keyframes skeletonShimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* === 表单脏状态指示 === */
#modalBody input:valid:not(:placeholder-shown) { border-color: #d9d9d9; }
#modalBody .form-input:focus { border-color: #1890ff; box-shadow: 0 0 0 2px rgba(24,144,255,0.1); }

/* === 页面切换过渡 === */
.page.active { animation: pageFadeIn 0.2s ease; }
@keyframes pageFadeIn { from { opacity: 0.6; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

/* === 表格行点击反馈 === */
.clickable-row { cursor: pointer; transition: background 0.15s; }
.clickable-row:hover { background: #f0f7ff; }
.clickable-row:active { background: #e6f0fa; }
