/* ============================================================
   物业管理系统 - 全局样式（现代化清新风格）
   主调：蓝色系 + 浅色背景 + 柔和阴影 + 圆角
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* 品牌色 */
  --primary: #2563EB;
  --primary-600: #1D4ED8;
  --primary-700: #1E40AF;
  --primary-light: #EFF6FF;
  --primary-lighter: #DBEAFE;
  --primary-dark: #1E3A8A;

  /* 中性色 */
  --bg: #F5F7FA;
  --bg-deep: #EEF2F7;
  --surface: #FFFFFF;
  --surface-hover: #F9FAFB;
  --border: #E5E7EB;
  --border-light: #F0F1F3;
  --text: #111827;
  --text-secondary: #4B5563;
  --text-hint: #9CA3AF;
  --text-disabled: #C4C9D0;

  /* 语义色 */
  --success: #10B981;
  --success-light: #D1FAE5;
  --danger: #EF4444;
  --danger-light: #FEE2E2;
  --warning: #F59E0B;
  --warning-light: #FEF3C7;
  --info: #3B82F6;
  --info-light: #DBEAFE;

  /* 阴影 */
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-md: 0 4px 12px rgba(16, 24, 40, 0.06);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, 0.12);
  --shadow-card: 0 1px 3px rgba(16, 24, 40, 0.06), 0 1px 2px rgba(16, 24, 40, 0.04);

  /* 圆角 */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  /* 过渡 */
  --transition: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

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

a { color: var(--primary); text-decoration: none; }

/* ============================================================
   登录页
   ============================================================ */
.login-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: radial-gradient(1200px 600px at 20% -10%, #3B82F6 0%, transparent 55%),
              radial-gradient(1000px 700px at 110% 110%, #1D4ED8 0%, transparent 50%),
              linear-gradient(135deg, #1E3A8A 0%, #2563EB 55%, #3B82F6 100%);
  padding: 20px;
}
.login-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 44px 40px 36px;
  width: 400px;
  box-shadow: 0 24px 64px rgba(16, 24, 40, 0.28);
  animation: loginIn 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes loginIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.login-card .login-logo {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, #2563EB, #1D4ED8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}
.login-card h1 {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.5px;
}
.login-card .subtitle {
  text-align: center;
  color: var(--text-hint);
  margin: 6px 0 32px;
  font-size: 13px;
}

/* ============================================================
   表单
   ============================================================ */
.form-group { margin-bottom: 12px; }
.form-group label {
  display: block;
  margin-bottom: 4px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  outline: none;
  font-family: inherit;
  background: #fff;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-disabled); }
.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover { border-color: #D1D5DB; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.form-group textarea { resize: vertical; min-height: 70px; line-height: 1.7; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-group.full { grid-column: 1 / -1; }
/* 选员工后自动带出的信息提示行 */
.emp-info { min-height: 16px; margin-top: 3px; }
.emp-info-line { font-size: 12px; color: #64748B; background: #F1F5F9; border-radius: 4px; padding: 3px 8px; display: inline-block; line-height: 1.6; }
.emp-info-line b { color: #334155; font-weight: 600; }
/* 员工下拉（下拉第一行带搜索） */
.emp-combo input[type=text] { width: 100%; }
.emp-combo-list {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 60;
  background: #fff; border: 1px solid #CBD5E1; border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15,23,42,0.14); overflow: hidden;
}
.emp-combo-kw {
  width: 100%; box-sizing: border-box; border: none !important; outline: none;
  border-bottom: 1px solid #E2E8F0 !important; border-radius: 0 !important;
  padding: 8px 12px; font-size: 13px; background: #F8FAFC;
}
.emp-combo-opts { max-height: 240px; overflow-y: auto; }
.emp-combo-item {
  padding: 8px 12px; font-size: 13px; color: #1E293B; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.emp-combo-item span { font-size: 12px; color: #94A3B8; }
.emp-combo-item:hover { background: #EFF6FF; }
.emp-combo-item.active { background: #378ADD; color: #fff; font-weight: 600; }
.emp-combo-item.active span { color: rgba(255,255,255,0.85); }
.emp-combo-empty { padding: 14px; text-align: center; font-size: 12px; color: #94A3B8; }

/* ============================================================
   按钮
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 14px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
  line-height: 1.4;
}
.btn:active { transform: translateY(0.5px); }
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.3);
}
.btn-primary:hover { background: var(--primary-600); box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35); }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #059669; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #DC2626; }
.btn-info { background: var(--info); color: #fff; }
.btn-info:hover { background: #1D4ED8; }
.btn-outline {
  background: #fff;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}
.btn-ghost:hover { background: var(--surface-hover); }

.alert {
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.alert-error { background: var(--danger-light); color: #B91C1C; }
.alert-success { background: var(--success-light); color: #047857; }

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

/* 侧边栏 */
.sidebar {
  width: 200px;
  background: #0C447C;
  color: #E2E8F0;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

/* 杭州·城市天际线剪影（侧栏底部装饰，方案B） */
.hz-side-skyline {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  pointer-events: none;
  z-index: 0;
}
.sidebar nav { position: relative; z-index: 1; }

/* ===== 杭州·城市视觉亮点（方案A/C/D） ===== */
/* A：工作台顶部天际线横幅（书法标语居中·天际线右下衬托） */
.hz-hero {
  position: relative;
  height: 112px;
  border-radius: 10px;
  background: linear-gradient(135deg, #083A6B 0%, #0C447C 55%, #12508F 100%);
  overflow: hidden;
  margin-bottom: 8px;
}
.hz-hero > img {
  position: absolute;
  right: 0;
  bottom: -2px;
  height: 92%;
  max-width: 32%;
  object-fit: contain;
  object-position: right bottom;
  opacity: 0.9;
}
.hz-hero-brand { display: none; }
/* 横幅左侧：问候 + 时间 + 每日心灵鸡汤（融入标语横幅） */
.hz-hero-left {
  position: absolute; left: 34px; top: 50%; transform: translateY(-50%);
  z-index: 2; color: #FFFFFF; max-width: 28%;
}
.hz-hero-left .hl-top { display: flex; align-items: center; gap: 20px; }
.hz-hero-left .h-greet { font-size: 12px; opacity: 0.85; }
.hz-hero-left .h-name { font-size: 17px; font-weight: 700; line-height: 1.15; }
.hz-hero-left .h-pos { font-size: 11px; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-top: 2px; }
.hz-hero-left .h-pos .chip {
  display: inline-block; padding: 0 7px; border-radius: 999px;
  background: rgba(255,255,255,0.18); font-size: 11px; line-height: 1.5;
}
.hz-hero-left .hl-time { border-left: 1px solid rgba(255,255,255,0.25); padding-left: 20px; }
.hz-hero-left .h-date { font-size: 12px; opacity: 0.95; }
.hz-hero-left .h-time { font-size: 21px; font-weight: 700; letter-spacing: 1px; line-height: 1.15; }
.hz-hero-left .h-quote {
  margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(255,255,255,0.22);
  font-size: 12px; line-height: 1.45; opacity: 0.95;
}
.hz-hero-left .h-quote .q-mark { opacity: 0.7; margin-right: 4px; }
.hz-hero-center {
  position: absolute;
  left: 33%;
  right: 37%;
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
  color: #FFFFFF;
}
.hz-slogan-main {
  font-family: "STXingkai", "华文行楷", "KaiTi", "楷体", "STKaiti", serif;
  font-size: 20px;
  letter-spacing: 3px;
  text-shadow: 0 1px 6px rgba(8, 58, 107, .75);
}
.hz-slogan-sub {
  font-size: 12px;
  letter-spacing: 5px;
  opacity: .78;
  margin-top: 6px;
  text-indent: 5px;
}
/* 全局卡片线条水印：所有 .panel 卡片右下角叠加淡蓝城市线稿 */
.panel { position: relative; }
.panel::after {
  content: '';
  position: absolute;
  right: 12px;
  bottom: 8px;
  width: 170px;
  height: 56px;
  background: url('/static/images/hz-watermark-blue.svg') no-repeat center / contain;
  opacity: .26;
  pointer-events: none;
  z-index: 0;
}
.panel-header, .panel-body { position: relative; z-index: 1; }
/* 全系统小卡片城市线条水印（统计卡/看板KPI卡/汇总卡） */
.cp-item, .ov-card, .ov-dist-card, .ps-item, .kpi-card { position: relative; overflow: hidden; }
.cp-item::after, .ov-card::after, .ov-dist-card::after, .ps-item::after {
  content: '';
  position: absolute;
  right: 8px;
  bottom: 6px;
  width: 100px;
  height: 34px;
  background: url('/static/images/hz-watermark-blue.svg') no-repeat center / contain;
  opacity: .34;
  pointer-events: none;
}
/* 彩色 KPI 卡：水印转白色，深色底上更清晰 */
.kpi-card::after {
  content: '';
  position: absolute;
  right: 12px;
  bottom: 8px;
  width: 120px;
  height: 40px;
  background: url('/static/images/hz-watermark.svg') no-repeat center / contain;
  filter: brightness(0) invert(1);
  opacity: .22;
  pointer-events: none;
}
/* D：工作台底部蓝图背景层 */
.content { position: relative; }
.hz-page-bg {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 4px;
  width: calc(100% - 20px);
  pointer-events: none;
  opacity: .5;
  z-index: 0;
}
.wb-layout, .grid-2 { position: relative; z-index: 1; }
.wb-layout .panel, .grid-2 .panel { background: rgba(255,255,255,.93); }
.sidebar .logo {
  padding: 8px 12px 7px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-align: center;
}
.sidebar .logo .logo-img { width: 88%; height: auto; }
.sidebar .logo .logo-text { line-height: 1.2; margin-top: -22px; }
.sidebar .logo span {
  font-size: 12px;
  font-weight: 600;
  color: #C5D3EA;
  display: block;
  letter-spacing: 1px;
}
.sidebar nav { flex: 1; overflow-y: auto; padding: 12px 10px 20px; }
.nav-item {
  display: flex;
  align-items: center;
  padding: 9px 12px;
  margin-bottom: 2px;
  color: #B5D4F4;
  text-decoration: none;
  font-size: 14px;
  border-radius: var(--radius-sm);
  font-weight: 500;
}
.nav-item:hover { background: rgba(255,255,255,0.06); color: #F1F5F9; }
.nav-item.active {
  background: linear-gradient(135deg, #1A5CA0 0%, #2E7CD6 100%);
  color: #FFFFFF;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(6, 32, 58, 0.4);
  border: 1px solid rgba(255,255,255,0.12);
}
.nav-item .nav-icon {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-item .nav-icon svg { width: 20px; height: 20px; }
/* 一级板块：加粗加大，更醒目 */
.nav-item.nav-l1 {
  font-size: 14px;
  font-weight: 600;
  color: #DBEAFE;
  padding: 11px 12px;
  margin-top: 2px;
  cursor: pointer;
}
.nav-item.nav-l1 .nav-icon svg { width: 22px; height: 22px; }
.nav-item.nav-l1:hover { background: rgba(255,255,255,0.08); color: #FFFFFF; }
.nav-item.nav-l1.active {
  background: linear-gradient(135deg, #1A5CA0 0%, #2E7CD6 100%);
  color: #FFFFFF;
  box-shadow: 0 3px 10px rgba(6, 32, 58, 0.4);
  border: 1px solid rgba(255,255,255,0.12);
}
/* 展开箭头 */
.nav-arrow { margin-left: auto; font-size: 13px; transition: transform 0.2s; opacity: 0.7; }
.nav-item.nav-l1.open .nav-arrow { transform: rotate(180deg); }
/* 子项分组：默认折叠，展开后显示 */
.nav-subgroup { display: none; }
.nav-subgroup.open { display: block; }
/* 侧边栏二级子项（当前板块下的功能页） */
.nav-item.nav-sub { padding-left: 32px; font-size: 13px; }
.nav-sub-disabled { color: #9AA3AE; cursor: not-allowed; }
.nav-sub-tag { font-size: 11px; color: #B0B8C4; margin-left: auto; }
.nav-sub-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .5; margin-right: 10px; flex: none; }
.nav-badge { display: inline-block; margin-left: auto; background: #E24B4A; color: #fff; font-size: 11px; border-radius: 10px; padding: 0 6px; line-height: 17px; min-width: 17px; text-align: center; }
/* 当前板块标题（一级板块名，醒目大气） */
.nav-section-title {
  padding: 16px 12px 8px;
  font-size: 15px;
  font-weight: 600;
  color: #F1F5F9;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-section-title::before {
  content: '';
  width: 3px;
  height: 16px;
  border-radius: 2px;
  background: #2563EB;
  flex: none;
}

/* 主区 */
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }

/* 横向一级板块导航（顶部横条，与左侧深色栏同色无缝衔接） */
.section-nav {
  position: sticky;
  top: 60px;
  z-index: 49;
  display: flex;
  align-items: center;
  gap: 2px;
  background: #0C447C;
  padding: 0 16px;
  overflow-x: auto;
  height: 44px;
}
.section-nav .sn-item {
  padding: 0 16px;
  height: 30px;
  line-height: 30px;
  margin: 7px 3px;
  font-size: 13px;
  color: #B5D4F4;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 999px;
  transition: color 0.15s, background 0.15s;
}
.section-nav .sn-item:hover { color: #FFFFFF; background: rgba(255,255,255,0.10); }
.section-nav .sn-item.active {
  color: #FFFFFF;
  font-weight: 600;
  background: linear-gradient(135deg, #1A5CA0 0%, #2E7CD6 100%);
  box-shadow: 0 2px 8px rgba(6, 32, 58, 0.35);
  border: 1px solid rgba(255,255,255,0.14);
}
.topbar {
  height: 60px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar .page-title { font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.topbar .page-title-icon { font-size: 20px; line-height: 1; color: var(--primary); display: inline-flex; align-items: center; }
.topbar .page-title-icon svg { width: 20px; height: 20px; }
.topbar .user-info { display: flex; align-items: center; gap: 12px; }
.user-menu-wrap { position: relative; }
.user-menu-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 8px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition);
}
.user-menu-trigger:hover { background: var(--surface-hover); }
.user-menu-name { font-size: 14px; color: var(--text-secondary); font-weight: 500; }
.user-menu-caret { width: 16px; height: 16px; color: var(--text-hint); transition: transform var(--transition); }
.user-menu-wrap.open .user-menu-caret { transform: rotate(180deg); }
.user-menu-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 168px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.18s ease;
  z-index: 200;
}
.user-menu-dropdown.open { opacity: 1; visibility: visible; transform: translateY(0); }
.user-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition);
}
.user-menu-item:hover { background: var(--surface-hover); }
.user-menu-item svg { width: 18px; height: 18px; color: var(--text-secondary); }
.user-menu-item-danger { color: var(--danger); }
.user-menu-item-danger svg { color: var(--danger); }
.user-menu-item-danger:hover { background: #FEF2F2; }
.topbar .user-info .avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563EB, #1D4ED8);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}
.content { padding: 10px 16px; flex: 1; }

/* ============================================================
   看板卡片
   ============================================================ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary);
  opacity: 0;
  transition: opacity var(--transition);
}
.stat-card:hover::before { opacity: 1; }
.stat-card .stat-label { color: var(--text-secondary); font-size: 13px; font-weight: 500; }
.stat-card .stat-value { font-size: 30px; font-weight: 700; margin-top: 6px; letter-spacing: -0.5px; }
.stat-card .stat-value.warning { color: var(--warning); }
.stat-card .stat-value.danger { color: var(--danger); }
.stat-card .stat-value.success { color: var(--success); }
.stat-card .stat-value.info { color: var(--primary); }

.panel {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin-bottom: 10px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.panel-header {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-light);
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.panel-body { padding: 6px 8px; }

/* 工作台审批中心 tab */
.wb-ap-tabs { display: flex; gap: 6px; padding: 8px 14px; }
.wb-ap-tab { padding: 5px 13px; font-size: 12.5px; color: var(--text-secondary); cursor: pointer; border-radius: 999px; border: 1px solid transparent; white-space: nowrap; transition: all 0.15s; }
.wb-ap-tab:hover { color: var(--primary); background: var(--surface-hover); }
.wb-ap-tab.active { color: #FFFFFF; font-weight: 600; background: linear-gradient(135deg, #0C447C 0%, #16609F 100%); box-shadow: 0 2px 6px rgba(12,68,124,0.25); }

/* ============================================================
   表格
   ============================================================ */
.table { width: 100%; border-collapse: collapse; }
.table th {
  text-align: left;
  padding: 7px 12px;
  background: var(--surface-hover);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
  color: var(--text);
}
.table tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background var(--transition); }
.table tbody tr:hover { background: var(--primary-light); }
.table .text-muted { color: var(--text-hint); }

/* 表格横向滚动容器（增强器自动套用）：列多时左右滚动看全所有字段 */
.tp-table-scroll { overflow-x: auto; overflow-y: hidden; }
.tp-table-scroll .table { width: auto; min-width: 100%; table-layout: auto; }
.tp-table-scroll .table th,
.tp-table-scroll .table td { white-space: nowrap; }
/* 列拖拽排序 */
.tp-draggable { cursor: grab; }
.tp-draggable:active { cursor: grabbing; }
.tp-dragover { background: var(--primary-light) !important; }
body.tp-col-dragging { cursor: grabbing !important; user-select: none; }
/* 列宽拖拽手柄 */
.table th { position: relative; }
.tp-resizer {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: 7px; cursor: col-resize; z-index: 3;
  border-right: 1px dashed transparent;
}
.tp-resizer:hover, .tp-resizer.active { border-right: 2px solid var(--primary); }
body.tp-col-resizing { cursor: col-resize !important; user-select: none; }
/* 用户拖过列宽后启用 fixed 布局：缩窄的列截断显示，hover 靠 title 看全文 */
.tp-table-scroll .table.tp-fixed td {
  overflow: hidden;
  text-overflow: ellipsis;
}
/* 冻结操作列：横向滚动时操作列钉在右侧不动（增强器自动识别「操作」列） */
.tp-table-scroll .table.tp-sticky-action th:last-child,
.tp-table-scroll .table.tp-sticky-action td:last-child {
  position: sticky;
  right: 0;
  z-index: 2;
  box-shadow: -3px 0 8px rgba(12, 68, 124, 0.12);
}
.tp-table-scroll .table.tp-sticky-action th:last-child { background: var(--surface-hover); }
.tp-table-scroll .table.tp-sticky-action td:last-child { background: #fff; }
.tp-table-scroll .table.tp-sticky-action tbody tr:hover td:last-child { background: var(--primary-light); }

/* 导入弹窗文件拖拽区 */
.import-dropzone {
  border: 2px dashed var(--border);
  border-radius: 10px;
  padding: 26px 16px;
  text-align: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}
.import-dropzone .dz-icon { font-size: 32px; margin-bottom: 6px; }
.import-dropzone .dz-text { font-size: 13px; line-height: 1.7; }
.import-dropzone .dz-filename { font-size: 12px; color: var(--primary); margin-top: 8px; font-weight: 600; }
.import-dropzone.dz-over { border-color: var(--primary); background: var(--primary-light); }

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.4;
}
.badge-success { background: var(--success-light); color: #047857; }
.badge-warning { background: var(--warning-light); color: #B45309; }
.badge-danger { background: var(--danger-light); color: #B91C1C; }
.badge-info { background: var(--info-light); color: #1D4ED8; }
.badge-gray { background: #F3F4F6; color: #6B7280; }

.empty { text-align: center; color: var(--text-hint); padding: 28px 0; font-size: 13px; }

/* ============================================================
   模块占位页
   ============================================================ */
.module-placeholder {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--border);
  padding: 72px 40px;
  text-align: center;
}
.module-placeholder .mp-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 20px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}
.module-placeholder h2 { font-size: 19px; margin-bottom: 8px; }
.module-placeholder p { color: var(--text-secondary); margin-bottom: 24px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }

/* ============================================================
   模块子页签
   ============================================================ */
.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 6px;
  overflow-x: auto;
  padding: 2px 0;
}
.tab {
  padding: 4px 12px;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 12.5px;
  white-space: nowrap;
  transition: all var(--transition);
  font-weight: 500;
  border-radius: 999px;
  position: relative;
  border: 1px solid transparent;
}
.tab:hover { color: var(--primary); background: var(--surface-hover); }
.tab.active {
  color: #FFFFFF;
  font-weight: 600;
  background: linear-gradient(135deg, #0C447C 0%, #16609F 100%);
  box-shadow: 0 2px 8px rgba(12, 68, 124, 0.28);
}
.tab.active::after { display: none; }
/* tab 数量角标（我的待办/我的申请未完结数，2026-11-01 老板要求） */
.tab-badge {
  display: inline-block;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  padding: 0 4px;
  margin-left: 4px;
  border-radius: 8px;
  background: #E24B4A;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  vertical-align: top;
}
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn 0.25s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   弹窗
   ============================================================ */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.45);
  backdrop-filter: blur(3px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: maskIn 0.18s ease;
  padding: 20px;
}
@keyframes maskIn { from { opacity: 0; } to { opacity: 1; } }
.modal-box {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  width: 720px;
  max-width: 100%;
  max-height: 88vh;
  overflow: auto;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  color: var(--text-hint);
  cursor: pointer;
  border-radius: 50%;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover { background: var(--surface-hover); color: var(--text); }
/* 弹窗壳固定不滚、内容区(.modal-scroll)滚动：右上角放大⛶/关闭×按钮滚动时恒定可见（2026-10-30 老板要求）。
   仅对走 openModal（内部有 .modal-scroll）的弹窗生效；手写弹窗保持原整体滚动行为。 */
.modal-box:has(> .modal-scroll) {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal-scroll {
  overflow: auto;
  flex: 1 1 auto;
  min-height: 0;
  /* 负 margin 抵消弹窗壳 padding，让滚动条贴弹窗边缘，padding 在内恢复留白 */
  margin: -20px -24px;
  padding: 20px 24px;
}
.modal-md > .modal-scroll { margin: -24px; padding: 24px; }
.modal-lg > .modal-scroll, .modal-xl > .modal-scroll { margin: -32px; padding: 32px; }
.modal-lg.modal-full > .modal-scroll, .modal-xl.modal-full > .modal-scroll { margin: -40px -48px; padding: 40px 48px; }
.modal-box h3 { font-size: 16px; margin-bottom: 14px; font-weight: 700; padding-right: 30px; }
.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

/* ============================================================
   大气版大窗口（全局标准，从市场拓展 CRM 提炼）
   ============================================================ */
.modal-lg { width: 900px !important; max-width: 96vw !important; padding: 32px !important; }
.modal-lg.modal-full { width: calc(100vw - 232px) !important; height: 100vh !important; max-width: calc(100vw - 232px) !important; max-height: 100vh !important; border-radius: 0 !important; padding: 40px 48px !important; }
.modal-xl { width: min(1280px, 96vw) !important; max-width: 96vw !important; padding: 32px !important; }
.modal-md { width: 520px !important; max-width: 96vw !important; padding: 24px !important; }
.modal-xl.modal-full { width: calc(100vw - 232px) !important; height: 100vh !important; max-width: calc(100vw - 232px) !important; max-height: 100vh !important; border-radius: 0 !important; padding: 40px 48px !important; }
.modal-xl .lead-form-scroll { max-height: 66vh; overflow: auto; padding-right: 6px; }
.modal-xl.modal-full .lead-form-scroll { max-height: calc(100vh - 150px); }
.modal-mask.zoom-left { left: 232px !important; justify-content: flex-start !important; }
.modal-lg .form-section {
  font-size: 14px; font-weight: 700; color: #185FA5;
  margin: 14px 0 8px; padding: 6px 12px;
  background: #EBF3FC;
  border-left: 4px solid #378ADD;
  border-bottom: 1px solid #E3EDF7;
  border-radius: 6px;
  display: flex; align-items: center; gap: 8px;
}
.modal-lg .form-section::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #378ADD; flex-shrink: 0;
}
.modal-lg .form-section:first-child { margin-top: 8px; }
.modal-lg .form-grid { grid-template-columns: 1fr 1fr; gap: 4px 20px; }
.modal-lg .form-group { margin-bottom: 12px; }
.modal-lg .form-group label {
  font-size: 13px; font-weight: 600; color: #3A4B63; margin-bottom: 4px;
}
.modal-lg .form-group label .req { color: #E24B4A; margin-left: 2px; }
.modal-lg .form-group input,
.modal-lg .form-group select,
.modal-lg .form-group textarea {
  padding: 8px 12px; font-size: 14px;
  border: 1.5px solid #D7DEE8; border-radius: 10px;
  background: #FBFCFE;
  box-shadow: inset 0 1px 2px rgba(16,24,40,0.03);
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.modal-lg .form-group input:hover,
.modal-lg .form-group select:hover,
.modal-lg .form-group textarea:hover { border-color: #A9C4E4; background: #fff; }
.modal-lg .form-group input:focus,
.modal-lg .form-group select:focus,
.modal-lg .form-group textarea:focus {
  border-color: #378ADD; background: #fff;
  box-shadow: 0 0 0 4px rgba(55,138,221,0.14);
}
.modal-lg .form-group textarea { min-height: 72px; }
.modal-lg .form-group input[type=date],
.modal-lg .form-group input[type=month] { width: 100%; }
.modal-lg .contact-row { display:flex; gap:10px; align-items:center; margin-bottom:12px; background:#F7FAFD; padding:10px 12px; border-radius:10px; border:1px dashed #D7DEE8; }
.modal-lg .contact-row input { flex:1; }
.modal-lg .contact-row .btn-del { flex-shrink:0; }
.modal-lg .checkbox-group { display:flex; flex-wrap:wrap; gap:10px; }
.modal-lg .checkbox-group label {
  display:inline-flex; align-items:center; gap:7px;
  padding:9px 16px; font-size:14px; color:#3A4B63;
  background:#fff; border:1.5px solid #D7DEE8; border-radius:20px;
  cursor:pointer; transition:all .16s; user-select:none;
}
.modal-lg .checkbox-group label:hover { border-color:#A9C4E4; background:#F5F9FE; }
.modal-lg .checkbox-group input[type=checkbox] { width:auto; margin:0; accent-color:#378ADD; }
.modal-lg .checkbox-group input[type=radio] { width:auto; margin:0; accent-color:#378ADD; }
.modal-lg .checkbox-group label:has(input:checked) { background:#378ADD; border-color:#378ADD; color:#fff; font-weight:600; box-shadow:0 2px 8px rgba(55,138,221,0.35); }
/* ============================================================
   审批详情（modal-xl）表单样式与发起弹窗（modal-lg）统一
   （2026-11-01 老板要求：审批界面颜色版面与原始发起界面一致）
   ============================================================ */
.modal-xl .form-section {
  font-size: 14px; font-weight: 700; color: #185FA5;
  margin: 14px 0 8px; padding: 6px 12px;
  background: #EBF3FC;
  border-left: 4px solid #378ADD;
  border-bottom: 1px solid #E3EDF7;
  border-radius: 6px;
  display: flex; align-items: center; gap: 8px;
}
.modal-xl .form-section::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #378ADD; flex-shrink: 0;
}
.modal-xl .form-section:first-child { margin-top: 8px; }
.modal-xl .form-grid { grid-template-columns: 1fr 1fr; gap: 4px 20px; }
.modal-xl .form-group { margin-bottom: 12px; }
.modal-xl .form-group label {
  font-size: 13px; font-weight: 600; color: #3A4B63; margin-bottom: 4px;
}
.modal-xl .form-group label .req { color: #E24B4A; margin-left: 2px; }
.modal-xl .form-group input,
.modal-xl .form-group select,
.modal-xl .form-group textarea {
  padding: 8px 12px; font-size: 14px;
  border: 1.5px solid #D7DEE8; border-radius: 10px;
  background: #FBFCFE;
  box-shadow: inset 0 1px 2px rgba(16,24,40,0.03);
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.modal-xl .form-group textarea { min-height: 72px; }
.modal-xl .form-group input[type=date],
.modal-xl .form-group input[type=month] { width: 100%; }
.modal-xl .checkbox-group { display:flex; flex-wrap:wrap; gap:10px; }
.modal-xl .checkbox-group label {
  display:inline-flex; align-items:center; gap:7px;
  padding:9px 16px; font-size:14px; color:#3A4B63;
  background:#fff; border:1.5px solid #D7DEE8; border-radius:20px;
  cursor:pointer; transition:all .16s; user-select:none;
}
.modal-xl .checkbox-group input[type=checkbox] { width:auto; margin:0; accent-color:#378ADD; }
.modal-xl .checkbox-group input[type=radio] { width:auto; margin:0; accent-color:#378ADD; }
.modal-xl .checkbox-group label:has(input:checked) { background:#378ADD; border-color:#378ADD; color:#fff; font-weight:600; box-shadow:0 2px 8px rgba(55,138,221,0.35); }
.modal-xl .contact-row { display:flex; gap:10px; align-items:center; margin-bottom:12px; background:#F7FAFD; padding:10px 12px; border-radius:10px; border:1px dashed #D7DEE8; }
.modal-xl .contact-row input { flex:1; }
/* 只读审批表单：disabled 控件视觉与可编辑状态一致（白底深字，仅不可改） */
.modal-xl input[disabled],
.modal-xl select[disabled],
.modal-xl textarea[disabled] {
  background: #FBFCFE !important;
  color: #374151 !important;
  -webkit-text-fill-color: #374151;
  opacity: 1;
  cursor: default;
}
.modal-zoom {
  position:absolute; top:14px; right:52px; width:32px; height:32px;
  border:1px solid var(--border); border-radius:8px; background:#fff;
  color:var(--text-secondary); font-size:16px; cursor:pointer;
  display:flex; align-items:center; justify-content:center; transition:all .16s;
}
.modal-zoom:hover { border-color:#378ADD; color:#378ADD; background:#EBF3FC; }
.lead-form-scroll { max-height:64vh; overflow:auto; padding-right:6px; }
.modal-lg.modal-full .lead-form-scroll { max-height:calc(100vh - 150px); }
.modal-lg .lead-form-scroll .form-section { margin:16px 0 10px; }
.modal-lg .lead-form-scroll .form-section:first-child { margin-top:4px; }
.modal-lg.modal-full .form-grid { grid-template-columns: repeat(3, 1fr); }
.modal-lg.modal-full .form-grid .form-group[style*="grid-column"] { grid-column: 1 / -1; }
/* 跨两列（绕开 inline grid-column 强制整行规则），如采购涉及部门跟在费用发生年月右侧 */
.modal-lg.modal-full .form-grid .form-group.pu-span2 { grid-column: span 2; }
.modal-lg.modal-full .lead-form-scroll { max-height:calc(100vh - 130px); }
.modal-lg.modal-full .form-section { font-size:13px !important; margin:10px 0 6px !important; padding:6px 10px !important; }
.modal-lg.modal-full .form-group { margin-bottom:8px; }
.modal-lg.modal-full .form-group label { font-size:12px; margin-bottom:3px; }
.modal-lg.modal-full .form-group input,
.modal-lg.modal-full .form-group select,
.modal-lg.modal-full .form-group textarea { padding:6px 10px; font-size:13px; border-radius:7px; }
.modal-lg.modal-full .form-group textarea { min-height:50px; }
.modal-lg.modal-full .form-grid { gap:2px 14px; }
.modal-lg.modal-full .contact-row { gap:6px; margin-bottom:6px; padding:6px 8px; }
.modal-lg.modal-full .checkbox-group { gap:6px; }
.modal-lg.modal-full .checkbox-group label { padding:5px 10px; font-size:12px; gap:4px; }
.modal-lg.modal-full .checkbox-group label:has(input:checked) { background:#378ADD; border-color:#378ADD; color:#fff; font-weight:600; box-shadow:0 2px 8px rgba(55,138,221,0.35); }

/* ============================================================
   采购申请：科目分组卡片 + 物品明细表
   ============================================================ */
.pur-group { border:1px solid var(--border); border-radius:10px; padding:0; margin-bottom:14px; background:#fff; overflow:hidden; }
/* 头部：一条平整的分格条带，所有格子同高、竖线分隔，杜绝凹凸不平 */
.pur-group-head { display:flex; align-items:stretch; flex-wrap:wrap; padding:0; background:#F7FAFD; border-bottom:1px solid #DCE6F2; }
.pur-group-head .pg-cell { display:flex; flex-direction:column; justify-content:center; padding:7px 12px 8px; border-right:1px solid #E3EAF3; min-width:0; box-sizing:border-box; }
.pur-group-head .pg-cell label { font-size:11px; color:#7A8BA6; margin-bottom:3px; white-space:nowrap; }
.pur-group-head .pg-cell input { width:100%; border:none; background:transparent; padding:2px 0; font-size:13px; font-weight:600; color:#1F2D3D; border-radius:0; box-shadow:none; height:auto; }
.pur-group-head .pg-cell input:hover { background:#EFF5FC; }
.pur-group-head .pg-cell input:focus { background:#fff; box-shadow:inset 0 -2px 0 #378ADD; outline:none; }
.pur-group-head .pg-cell b { font-size:13px; color:#3D4757; font-weight:600; white-space:nowrap; line-height:22px; }
.pur-group-head .pg-cell.hl { background:#185FA5; }
.pur-group-head .pg-cell.hl label { color:#C9DEF5; }
.pur-group-head .pg-cell.hl b { color:#fff; font-size:14px; }
.pur-group-head .pg-ops { display:flex; align-items:center; gap:10px; padding:0 12px; margin-left:auto; }
.pur-group-head .pg-pay-btn { color:#185FA5; border-color:#9EC3E8; background:#fff; white-space:nowrap; }
.pur-group-head .pg-pay-btn:hover { background:#EFF5FC; }
/* 审批流程预览（采购弹窗底部步骤条） */
.flow-chain { display:flex; align-items:center; flex-wrap:wrap; gap:8px; row-gap:10px; padding:2px 0 4px; }
.fc-node { display:flex; align-items:center; gap:8px; background:#F7FAFD; border:1px solid #DCE6F2; border-radius:8px; padding:6px 12px; }
.fc-dot { width:20px; height:20px; border-radius:50%; background:#185FA5; color:#fff; font-size:11px; display:flex; align-items:center; justify-content:center; flex:none; }
.fc-node.fc-start .fc-dot { background:#0E8A6D; }
.fc-node.fc-end .fc-dot { background:#8A94A6; }
.fc-txt { display:flex; flex-direction:column; line-height:1.25; }
.fc-txt span { font-size:11px; color:#7A8BA6; white-space:nowrap; }
.fc-txt b { font-size:12px; color:#1F2D3D; font-weight:600; white-space:nowrap; }
.fc-arrow { color:#9AA8BC; font-size:14px; }
.fc-note { width:100%; font-size:11px; color:#8A94A6; }
/* 物品明细：Excel 式行线表格（输入框无边框，聚焦高亮） */
.pur-group .pur-cols-table { border-collapse:collapse; }
.pur-group .pur-cols-table th { background:#F5F8FC; font-size:12px; font-weight:600; color:#4A5A75; padding:7px 8px; border:1px solid #E0E8F2; border-left:none; border-top:none; position:relative; white-space:nowrap; }
.pur-group .pur-cols-table th:first-child { border-left:none; }
.pur-group .pur-cols-table td { padding:0; border:1px solid #E8EDF4; border-left:none; border-top:none; background:#fff; }
.pur-group .pur-cols-table td:first-child { border-left:none; }
.pur-group .pur-cols-table tr:last-child td { border-bottom:1px solid #E8EDF4; }
.pur-group .pur-cols-table td input { width:100%; box-sizing:border-box; padding:6px 8px; font-size:12px; border:none; background:transparent; border-radius:0; outline:none; }
.pur-group .pur-cols-table td input:hover { background:#F7FAFD; }
.pur-group .pur-cols-table td input:focus { background:#F0F7FF; box-shadow:inset 0 0 0 1.5px #378ADD; }
.pur-group .pur-cols-table td input:disabled { background:#F4F6F9; color:#8A94A6; cursor:not-allowed; }
.pur-group .pur-cols-table td.td-seq { text-align:center; font-size:12px; color:#8A94A6; padding:6px 2px; background:#FAFBFD; }
.pur-group .pur-cols-table td.td-del { text-align:center; padding:6px 4px; }
.pur-group .pur-cols-table td > span { display:inline-block; padding:6px 8px; font-size:12px; font-weight:600; }
/* 列宽拖拽手柄 */
.col-rz { position:absolute; right:-3px; top:0; bottom:0; width:7px; cursor:col-resize; z-index:3; }
.col-rz:hover { background:rgba(55,138,221,0.25); }
/* 自定义搜索下拉（替代原生 datalist） */
.pur-combo { position:fixed; z-index:3000; background:#fff; border:1px solid #C9D6E8; border-radius:8px; box-shadow:0 8px 24px rgba(16,42,80,0.16); overflow:hidden; }
.pur-combo .pc-search { width:100%; box-sizing:border-box; border:none; border-bottom:1px solid #E3EAF3; padding:8px 10px; font-size:12px; outline:none; background:#FAFCFE; }
.pur-combo .pc-list { max-height:262px; overflow:auto; }
.pur-combo .pc-item { padding:5px 12px; font-size:12px; line-height:1.5; cursor:pointer; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pur-combo .pc-item:hover { background:#F0F7FF; color:#185FA5; }
.pur-combo .pc-empty { padding:12px; font-size:12px; color:#8A94A6; text-align:center; }

/* 付款申请：采购清单明细行级勾选 */
#pm-items .pur-group .pur-cols-table th:first-child,
#pm-items .pur-group .pur-cols-table td:first-child { text-align:center; padding:6px 4px; }
#pm-items .pur-group .pur-cols-table td input[type="checkbox"],
#pm-items .pur-group .pur-cols-table th input[type="checkbox"] { width:auto; cursor:pointer; }
#pm-items .pm-row-off td { color:#B0B8C4; background:#FBFCFE; }
#pm-items .pm-row-off td > span, #pm-items .pm-row-off td b { color:#B0B8C4; }
.pg-ops input[type="checkbox"].indet { accent-color:#185FA5; }

/* ============================================================
   工具条
   ============================================================ */
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  gap: 8px;
  flex-wrap: wrap;
}
.toolbar-left { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.toolbar h2 { font-size: 15px; font-weight: 700; letter-spacing: -0.2px; }

/* ============================================================
   预警横幅
   ============================================================ */
.warn-banner {
  background: var(--warning-light);
  border: 1px solid #FCD34D;
  color: #92400E;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  font-size: 13px;
  display: none;
  align-items: center;
  gap: 8px;
}
.warn-banner.show { display: flex; }

/* ============================================================
   功能卡片
   ============================================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-card);
}
.feature-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.feature-card .f-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 14px;
}
.feature-card .f-name { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.feature-card .f-state { font-size: 12px; color: var(--text-hint); }

.feature-card { position: relative; }
.feature-card .flow-star {
  position: absolute; top: 8px; right: 10px;
  font-size: 16px; line-height: 1; cursor: pointer;
  color: #C4C9D0; transition: color var(--transition);
  user-select: none;
}
.feature-card .flow-star:hover { color: #F59E0B; }
.feature-card .flow-star.on { color: #F59E0B; }

/* ============================================================
   新建流程分类分组
   ============================================================ */
.flow-category { margin-bottom: 28px; }
.flow-category:last-child { margin-bottom: 0; }
.flow-cat-header {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.flow-cat-icon {
  width: 34px; height: 34px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; flex-shrink: 0;
}
.flow-cat-name { font-size: 16px; font-weight: 700; color: var(--text); }
.flow-cat-count {
  font-size: 12px; color: var(--text-hint);
  background: var(--bg-deep); padding: 2px 10px; border-radius: 999px;
}
.flow-sub { margin-bottom: 14px; }
.flow-sub:last-child { margin-bottom: 0; }
.flow-sub-header {
  font-size: 13px; font-weight: 600; color: var(--text-secondary);
  margin: 2px 0 10px; padding-left: 10px;
  border-left: 3px solid var(--primary); line-height: 1.4;
}
.flow-sub-header::after { content: ''; }

/* ============================================================
   项目选择器
   ============================================================ */
.project-selector { display: flex; align-items: center; gap: 8px; }
.project-selector .ps-label { font-size: 12px; color: var(--text-hint); white-space: nowrap; }
.project-selector select {
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  min-width: 140px;
  color: var(--primary);
  font-weight: 600;
  outline: none;
  background: var(--primary-light);
  cursor: pointer;
  transition: border-color var(--transition);
}
.project-selector select:focus { border-color: var(--primary); }

/* 顶栏项目标签 */
/* ============================================================
   项目切换 chip（嵌在 topbar 页面标题右侧，点击向下展开项目面板）
   三个胶囊按钮（首页工作台/项目下钻/我的应用）统一品牌深蓝底
   ============================================================ */
.proj-chip-wrap { position: relative; }
.tb-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: linear-gradient(135deg, #0C447C 0%, #16609F 100%);
  border: 1px solid #0C447C;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: #FFFFFF;
  text-decoration: none;
  transition: background 0.15s, box-shadow 0.15s, transform 0.15s;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(12, 68, 124, 0.25);
}
.tb-btn svg { width: 15px; height: 15px; color: #B5D4F4; }
.tb-btn:hover {
  background: linear-gradient(135deg, #16609F 0%, #2277C4 100%);
  box-shadow: 0 4px 12px rgba(12, 68, 124, 0.38);
  transform: translateY(-1px);
  color: #FFFFFF;
}
.apps-wrap { position: relative; }
.proj-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: linear-gradient(135deg, #0C447C 0%, #16609F 100%);
  border: 1px solid #0C447C;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s, transform 0.15s;
  box-shadow: 0 2px 6px rgba(12, 68, 124, 0.25);
}
.proj-chip:hover {
  background: linear-gradient(135deg, #16609F 0%, #2277C4 100%);
  box-shadow: 0 4px 12px rgba(12, 68, 124, 0.38);
  transform: translateY(-1px);
}
.proj-chip-label { font-size: 12px; color: #B5D4F4; }
.proj-chip-name { font-size: 13px; font-weight: 600; color: #FFFFFF; }
.drillbar-caret { font-size: 10px; color: #B5D4F4; }
.drillbar-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 320px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.14);
  z-index: 210;
  padding: 12px 10px;
}
.drillbar-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}
.drillbar-all { font-size: 12px; color: var(--primary); text-decoration: none; cursor: pointer; }
.drillbar-all:hover { text-decoration: underline; }

/* 展开面板里的项目列表（复用 sp-* 结构） */
.drillbar-panel .sp-list { max-height: 360px; overflow-y: auto; }
.drillbar-panel .sp-item-active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}
.drillbar-panel .sp-item-active::after {
  content: '✓';
  float: right;
  color: var(--primary);
}

/* ============================================================
   我的应用面板（topbar「我的应用」按钮展开，全功能快捷入口）
   ============================================================ */
.apps-panel {
  position: fixed;
  top: 66px;
  left: 244px;
  width: calc(100vw - 270px);
  max-width: 1400px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(16, 24, 40, 0.16);
  z-index: 210;
  padding: 16px 20px;
}
.apps-search-row { margin-bottom: 10px; }
.apps-search-row input {
  width: 320px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.apps-search-row input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.apps-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px 18px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding-right: 4px;
}
.apps-group-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  padding-left: 8px;
  border-left: 3px solid var(--primary);
  margin-bottom: 8px;
}
.apps-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s;
  cursor: pointer;
}
.apps-item:hover { background: var(--primary-light); }
.apps-ico {
  flex: none;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  background: #F0F5FC;
  border-radius: 8px;
}
.apps-item:hover .apps-ico { background: #fff; }
.apps-txt { min-width: 0; }
.apps-txt b {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.apps-item:hover .apps-txt b { color: var(--primary); }
.apps-txt i {
  display: block;
  font-style: normal;
  font-size: 11px;
  color: var(--text-hint);
  line-height: 1.4;
  margin-top: 1px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 侧边栏项目选择器 */
/* 方案A：选项目下钻弹窗（事业部收放） */
.sp-list { max-height: 360px; overflow-y: auto; }
.sp-group { margin-bottom: 4px; }
.sp-group-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid var(--border-light);
}
.sp-arrow { font-size: 12px; color: var(--text-hint); width: 14px; text-align: center; }
.sp-group-body { padding: 2px 0; }
.sp-item {
  padding: 8px 10px 8px 30px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.15s;
}
.sp-item:hover { background: var(--primary-light); color: var(--primary); }



/* ============================================================
   房产信息 - 视图切换
   ============================================================ */
.view-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fff;
}
.view-toggle .vt-btn {
  padding: 7px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  background: #fff;
  transition: all var(--transition);
  font-weight: 500;
}
.view-toggle .vt-btn + .vt-btn { border-left: 1px solid var(--border); }
.view-toggle .vt-btn.active { background: var(--primary); color: #fff; }

/* 房产信息 - 数据看板 */
.house-stats { display: flex; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.hs-card {
  flex: 1;
  min-width: 140px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition), transform var(--transition);
}
.hs-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.hs-card .hs-num { font-size: 30px; font-weight: 700; color: var(--primary); line-height: 1.2; letter-spacing: -0.5px; }
.hs-card:nth-child(2) .hs-num { color: var(--warning); }
.hs-card:nth-child(3) .hs-num { color: var(--success); }
.hs-card .hs-label { font-size: 13px; color: var(--text-secondary); margin-top: 6px; font-weight: 500; }
.hs-card .hs-sub { font-size: 12px; color: var(--text-hint); margin-top: 2px; }
.hs-card.hs-rented .hs-num { color: var(--success); }
.hs-card.hs-empty .hs-num { color: var(--warning); }
.hs-card.hs-selfuse .hs-num { color: var(--primary); }

/* 房产状态横向筛选按钮组 */
.status-filter { display: inline-flex; gap: 6px; }
.status-filter .sf-btn {
  padding: 7px 14px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 13px; color: var(--text-secondary); cursor: pointer;
  background: #fff; user-select: none; transition: all 0.15s;
}
.status-filter .sf-btn:hover { border-color: var(--primary); color: var(--primary); }
.status-filter .sf-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* 列表可排序表头 */
th.th-sort { cursor: pointer; user-select: none; white-space: nowrap; }
th.th-sort:hover { color: var(--primary); }
th.th-sort .sort-icon { font-size: 11px; margin-left: 4px; color: var(--primary); }

/* 房产信息 - 看板视图 */
.house-board-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}
.house-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition), transform var(--transition);
}
.house-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.house-card.hc-rented { border-left: 4px solid var(--success); }
.house-card.hc-deco { border-left: 4px solid var(--warning); }
.house-card .hc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}
.house-card .hc-room { font-size: 16px; font-weight: 600; color: var(--text); }
.house-card .hc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  padding: 4px 0;
}
.house-card .hc-row span { color: var(--text-hint); }
.house-card .hc-row b { color: var(--text); font-weight: 500; }
.house-card .hc-row .hc-owe { color: var(--danger); }

/* 房产信息 - 楼层布局视图 */
.house-layout { display: flex; flex-direction: column; gap: 20px; }
.hl-building {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.hl-b-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  background: linear-gradient(90deg, #EEF4FB, #F7FAFD);
  border-bottom: 1px solid var(--border-light);
}
.hl-b-name { font-size: 16px; font-weight: 700; color: var(--primary); }
.hl-b-meta { font-size: 13px; color: var(--text-secondary); }
.hl-b-stats { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.hl-b-st {
  font-size: 12px; font-weight: 600; line-height: 1;
  padding: 5px 10px; border-radius: 20px;
  white-space: nowrap;
}
.hl-b-st-rented { color: #1D9A6C; background: #E5F6EF; }
.hl-b-st-empty  { color: #6B7280; background: #EEF0F3; }
.hl-b-st-deco   { color: #D97706; background: #FEF3E2; }
.hl-b-st-selfuse{ color: #2563EB; background: #E7EEFB; }
.hl-b-st-occ    { color: #185FA5; background: #E6F0FA; }
.hl-b-st-emp    { color: #8A5A2B; background: #F5EDE3; }
.hl-floors { padding: 6px 10px 14px; }
.hl-floor { margin-top: 8px; }
.hl-f-head {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 6px 6px;
}
.hl-f-name {
  font-size: 14px; font-weight: 600; color: var(--text);
  min-width: 64px;
}
.hl-f-meta { font-size: 12px; color: var(--text-hint); }
.hl-rooms {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
  padding-left: 6px;
}
.hl-room {
  border: 1px solid var(--border);
  border-left: 4px solid #C8CDD4;
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 90px;
  flex: 1 1 0;        /* flex-grow 由 inline（=面积）覆盖，basis=0 使整行按面积比例精确分配 */
  min-width: 60px;    /* 保证极小房间仍能显示房号文字 */
  overflow: hidden;
  box-sizing: border-box;
  transition: box-shadow var(--transition), transform var(--transition);
}
.hl-room:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.hl-room.hl-r-rented { border-left-color: var(--success); background: #F2FBF7; }
.hl-room.hl-r-deco { border-left-color: var(--warning); background: #FEF9EE; }
.hl-room.hl-r-selfuse { border-left-color: var(--primary); background: #EEF4FE; }
.hl-room.hl-r-selfuse .hl-r-status { color: var(--primary); }
.hl-r-no { font-size: 14px; font-weight: 600; color: var(--text); }
.hl-r-area { font-size: 12px; color: var(--text-secondary); margin-top: 3px; }
.hl-r-status { font-size: 11px; color: var(--text-hint); margin-top: 3px; }
.hl-r-cust { font-size: 10px; color: var(--text-secondary); margin-top: 3px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hl-r-owe { font-size: 10px; font-weight: 600; color: #DC2626; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hl-r-owe.ok { color: var(--success); font-weight: 400; }
.hl-room.hl-r-rented .hl-r-status { color: var(--success); }
.hl-room.hl-r-deco .hl-r-status { color: var(--warning); }

/* 房产下钻导航（竖向树，位于侧边栏与内容区之间） */
.house-with-drill { display: flex; gap: 16px; align-items: flex-start; }
.house-main { flex: 1; min-width: 0; }
.drill-main { flex: 1; min-width: 0; }
/* 下钻分组（事业部折叠） */
.dt-group-body { display: block; }
.dt-group-body.collapsed { display: none !important; }
.dt-l1 { font-weight: 600; color: var(--primary-700); }
.drill-tree {
  width: 168px; flex: none;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
  max-height: calc(100vh - 200px); overflow: hidden;
  position: sticky; top: 76px;
}
.dt-head {
  padding: 10px 12px; font-size: 13px; font-weight: 600; color: var(--primary);
  border-bottom: 1px solid var(--border-light);
}
.dt-body { overflow-y: auto; padding: 5px; }
.dt-item {
  display: flex; align-items: center; gap: 4px;
  padding: 6px 8px; border-radius: 7px; cursor: pointer;
  font-size: 12px; color: var(--text);
}
.dt-item:hover { background: #F3F6FA; }
.dt-item.dt-active { background: var(--primary); color: #fff; }
.dt-item.dt-active .dt-cnt { color: rgba(255,255,255,0.85); }
.dt-idx { flex: none; color: var(--text-hint); font-size: 11px; min-width: 16px; text-align: right; }
.dt-item.dt-active .dt-idx { color: rgba(255,255,255,0.7); }
.dt-cnt { margin-left: auto; font-size: 11px; color: var(--text-hint); flex: none; }
.dt-l0 { font-weight: 600; }
.dt-l2 { padding-left: 22px; }
.dt-l3 { padding-left: 34px; font-size: 11px; background: #F4F7FB; border-radius: 6px; margin: 1px 0; }
.dt-l3:hover { background: #E8EFF7; }
.dt-l3.dt-active { background: var(--primary); }
.dt-arrow {
  width: 12px; text-align: center; color: var(--text-hint); flex: none;
  display: inline-block; transition: transform 0.15s; font-size: 11px;
}
.dt-arrow.open { transform: rotate(90deg); }
/* 下钻高亮 */
.hl-building.drill-hl { outline: 2px solid var(--primary); outline-offset: -2px; }
.hl-floor.drill-hl { background: #EEF4FB; border-radius: 8px; }
.hl-room.drill-hl { box-shadow: 0 0 0 3px var(--primary); border-color: var(--primary); }

/* ============================================================
   员工信息：搜索栏 + 行内操作菜单
   ============================================================ */
.search-bar {
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  padding: 4px 10px; margin-bottom: 6px;
}
.search-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.search-more-row { margin-top: 4px; padding-top: 4px; border-top: 1px dashed var(--border-light); }
/* 搜索字段单行化：标签与输入框同一行（不再上方叠标签占两行） */
.search-field { display: flex; flex-direction: row; align-items: center; gap: 6px; }
.search-field label { font-size: 11px; color: var(--text-hint); white-space: nowrap; }
.search-field input, .search-field select {
  padding: 3px 7px; border: 1px solid var(--border); border-radius: 7px;
  font-size: 12.5px; min-width: 118px; outline: none;
}
.search-field input:focus, .search-field select:focus { border-color: var(--primary); }
.search-actions { display: flex; gap: 6px; align-items: center; }
.search-actions .btn { padding: 3px 10px; font-size: 12.5px; }
.search-more { font-size: 11.5px; color: var(--primary); text-decoration: none; white-space: nowrap; }
.search-more:hover { text-decoration: underline; }

.row-menu {
  position: absolute; right: 0; top: 100%; z-index: 100;
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  box-shadow: var(--shadow-lg); min-width: 120px; padding: 4px; margin-top: 4px;
}
.row-menu a {
  display: block; padding: 7px 12px; font-size: 13px; color: var(--text);
  text-decoration: none; border-radius: 6px; cursor: pointer; white-space: nowrap;
}
.row-menu a:hover { background: var(--primary-light); color: var(--primary); }
.emp-table td { white-space: nowrap; }
.emp-table th:first-child, .emp-table td:first-child { width: 32px; }

/* ============================================================
   规划占位页 + 迷你下拉
   ============================================================ */
.placeholder { text-align: center; padding: 60px 20px; color: var(--text-hint); }
.ph-icon { font-size: 48px; margin-bottom: 16px; }
.ph-title { font-size: 18px; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; }
.ph-desc { font-size: 13px; margin-bottom: 20px; }
.ph-tags { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.ph-tags span {
  padding: 4px 14px; background: var(--primary-light); color: var(--primary);
  border-radius: 999px; font-size: 12px;
}
.mini-select { padding: 7px 10px; border: 1px solid var(--border); border-radius: 7px; font-size: 13px; }

/* ============================================================
   员工概览驾驶舱
   ============================================================ */
.ov-filter {
  display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  padding: 14px 16px; margin-bottom: 18px;
}
.ov-filter-item { display: flex; flex-direction: column; gap: 4px; }
.ov-filter-item label { font-size: 12px; color: var(--text-hint); }
.ov-filter-item select, .ov-filter-item input {
  padding: 7px 10px; border: 1px solid var(--border); border-radius: 7px; font-size: 13px; min-width: 150px; outline: none;
}
.ov-filter-item select:focus, .ov-filter-item input:focus { border-color: var(--primary); }

.ov-section { margin-bottom: 22px; }
.ov-section-title {
  font-size: 15px; font-weight: 600; color: var(--text);
  padding-left: 10px; border-left: 3px solid var(--primary); margin-bottom: 12px;
}
.ov-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.ov-card {
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  padding: 18px 16px; text-align: center;
}
.ov-card-val { font-size: 28px; font-weight: 700; color: var(--primary-700); }
.ov-card-val.warn { color: #E24B4A; }
.ov-card-label { font-size: 12px; color: var(--text-hint); margin-top: 6px; }

.ov-dist-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px;
}
.ov-dist-card {
  background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px;
}
.ov-dist-head { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 12px; }
.ov-bar-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ov-bar-label { font-size: 12px; color: var(--text-secondary); width: 80px; flex: none; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-bar-track { flex: 1; height: 10px; background: #F0F2F5; border-radius: 5px; overflow: hidden; }
.ov-bar-fill { height: 100%; background: linear-gradient(90deg, #2563EB, #60A5FA); border-radius: 5px; transition: width 0.4s; }
.ov-bar-val { font-size: 12px; color: var(--text-hint); width: 40px; flex: none; }
.ov-empty { color: var(--text-hint); font-size: 12px; text-align: center; padding: 16px 0; }

/* 单位通告 */
.notice-item {
  padding: 14px 16px; border-bottom: 1px solid var(--border-light);
}
.notice-item:last-child { border-bottom: none; }
.notice-item.notice-top { background: #FEF9EC; }
.notice-head { display: flex; align-items: center; gap: 8px; }
.notice-tag-top { background: #F59E0B; color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 4px; }
.notice-title { font-size: 14px; font-weight: 600; color: var(--text); cursor: pointer; }
.notice-title:hover { color: var(--primary); }
.notice-meta { font-size: 12px; color: var(--text-hint); }
.notice-link { font-size: 12px; color: var(--primary); text-decoration: none; }
.notice-del { color: #E24B4A; }
.notice-brief { font-size: 13px; color: var(--text-secondary); margin-top: 6px; padding-left: 2px; }

/* ============================================================
   可排序表头 + 拖拽列宽
   ============================================================ */
.table th.sortable { cursor: pointer; user-select: none; }
.table th.sortable:hover { color: var(--primary); }
.sort-arrow { font-size: 10px; color: var(--primary); margin-left: 2px; }

/* ============================================================
   通用表格增强：排序箭头 + 关键词筛选框
   ============================================================ */
.table th.tp-asc::after { content: ' ▲'; font-size: 10px; color: var(--primary); }
.table th.tp-desc::after { content: ' ▼'; font-size: 10px; color: var(--primary); }
.tp-search { display: flex; justify-content: flex-end; margin: 2px 0 8px; }
/* 注入页面工具栏的内联模式：与页面按钮同行、垂直居中 */
.tp-search.tp-toolbar-inline { display: inline-flex; align-items: center; gap: 8px; margin: 0; justify-content: flex-start; }
.tp-search-input {
  width: 220px; max-width: 100%; padding: 6px 10px;
  border: 1px solid var(--border); border-radius: 7px;
  font-size: 13px; outline: none; background: #fff; color: var(--text);
}
.tp-search-input:focus { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-light); }

/* ============================================================
   切换按钮组（二选一/三选一，替代少量选项的下拉）
   ============================================================ */
.seg-btns { display: inline-flex; gap: 0; background: var(--surface-hover); border: 1px solid var(--border); border-radius: 8px; padding: 1px; }
.seg-btn {
  border: none; background: transparent; padding: 3px 10px; font-size: 12.5px;
  color: var(--text-secondary); border-radius: 6px; cursor: pointer; white-space: nowrap;
  transition: background .15s, color .15s;
}
.seg-btn:hover { color: var(--primary); }
.seg-btn.active { background: var(--primary); color: #fff; font-weight: 600; box-shadow: 0 1px 4px rgba(12,68,124,0.25); }

/* ============================================================
   问题反馈悬浮机器人（合平服务 logo 红徽章风格深化）
   ============================================================ */
.fb-fab {
  position: fixed; right: 20px; bottom: 80px; z-index: 9998;
  width: 54px; height: 54px; border-radius: 50%;
  background: linear-gradient(135deg, #C44536 0%, #8E2B24 100%);
  border: 2px solid rgba(255,255,255,0.3);
  box-shadow: 0 4px 14px rgba(160,40,30,0.45);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: transform .15s, box-shadow .15s;
}
.fb-fab:hover { transform: scale(1.08); box-shadow: 0 6px 18px rgba(160,40,30,0.55); }
.fb-fab svg { width: 28px; height: 28px; }
.fb-fab .fb-tip {
  position: absolute; right: 64px; top: 50%; transform: translateY(-50%);
  background: #fff; color: #333; font-size: 12px; padding: 6px 12px;
  border-radius: 8px; white-space: nowrap;
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
  opacity: 0; pointer-events: none; transition: opacity .15s;
}
.fb-fab:hover .fb-tip { opacity: 1; }
.fb-fab .fb-tip::after {
  content: ''; position: absolute; right: -4px; top: 50%; transform: translateY(-50%) rotate(45deg);
  width: 8px; height: 8px; background: #fff;
}

.table.resizable-table { table-layout: fixed; width: 100%; }
.table.resizable-table th,
.table.resizable-table td { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table.resizable-table th { position: relative; overflow: visible; }
.col-resizer {
  position: absolute;
  top: 0;
  right: 0;
  width: 6px;
  height: 100%;
  cursor: col-resize;
  z-index: 1;
}
.col-resizer:hover { background: rgba(37, 99, 235, 0.2); }
.col-resizer::after {
  content: '';
  position: absolute;
  top: 0;
  right: 2px;
  width: 2px;
  height: 100%;
  background: transparent;
}
.col-resizer:hover::after { background: var(--primary); }

/* ============================================================
   楼盘项目汇总卡片
   ============================================================ */
.proj-summary { display: flex; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.proj-summary .ps-item {
  flex: 1;
  min-width: 160px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-card);
}
.proj-summary .ps-label { font-size: 13px; color: var(--text-hint); }
.proj-summary .ps-value { font-size: 22px; font-weight: 700; color: var(--primary); }
.proj-summary .ps-unit { font-size: 13px; color: var(--text-hint); }

/* ============================================================
   通用工具类
   ============================================================ */
.text-muted { color: var(--text-hint); }
.text-primary { color: var(--primary); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }

/* 滚动条美化 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #D1D5DB; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #9CA3AF; }
::-webkit-scrollbar-track { background: transparent; }

/* 组织架构树 */
.org-node { }
.org-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px;
  border: 1px solid #E8ECF1;
  border-radius: 8px;
  margin-top: 6px;
  background: #fff;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.org-row:hover { border-color: var(--primary-lighter); box-shadow: var(--shadow-sm); }
.org-arrow { color: #9CA3AF; font-size: 12px; width: 14px; }
.org-name { font-size: 14px; font-weight: 500; color: var(--text); }
.org-meta { font-size: 12px; color: var(--text-hint); }
.org-actions { margin-left: auto; display: flex; gap: 10px; font-size: 12px; }
.org-actions a { color: var(--primary); cursor: pointer; }
.org-actions a:last-child { color: var(--danger); }

/* ============================================================
   工作台首页
   ============================================================ */
/* 快捷入口三栏 */
.wb-quick-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; margin-bottom: 24px; }
@media (max-width: 900px) { .wb-quick-grid { grid-template-columns: 1fr; } }
.wb-quick-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-card); overflow: hidden; }
.wb-quick-panel .panel-header { border-bottom: 1px solid var(--border-light); }
.wb-quick-panel .panel-header .ph-tag { font-size: 12px; color: var(--text-hint); font-weight: 400; }
.wb-quick-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 16px; }
.wb-link {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-light); background: var(--surface-hover);
  color: var(--text); text-decoration: none; font-size: 13.5px;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}
.wb-link:hover { border-color: var(--primary-lighter); background: var(--primary-light); box-shadow: var(--shadow-sm); }
.wb-link .wb-ico {
  width: 34px; height: 34px; border-radius: 8px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary); color: #fff; font-size: 17px;
}
.wb-link .wb-ico svg { width: 18px; height: 18px; }
.wb-link .wb-txt { line-height: 1.25; }
.wb-link .wb-txt b { display: block; font-weight: 600; font-size: 13.5px; color: var(--text); }
.wb-link .wb-txt span { font-size: 11.5px; color: var(--text-hint); }

/* 今日日程：左主右日历布局 */
.wb-layout { display: grid; grid-template-columns: 1fr 720px; gap: 20px; align-items: stretch; margin-bottom: 20px; }
@media (max-width: 1100px) { .wb-layout { grid-template-columns: 1fr; } }
/* 左栏纵向 flex：新闻/审批自动填满剩余高度，与右栏等高 */
.wb-left { display: flex; flex-direction: column; }
.wb-left .wb-mid-grid { flex: 1; }
/* 右栏紧凑：缩小 panel 间距，日历+日程一屏直接显示 */
.wb-right .panel { margin-bottom: 14px; }
.wb-right .panel-body { padding: 12px 16px; }
/* 日历与今日日程左右并排（2026-10-19 老板要求） */
.wb-right { display: flex; flex-direction: column; }
.wb-right .wb-cal-sched-row { flex: 1; }
.wb-cal-sched-row { display: flex; gap: 14px; align-items: stretch; }
.wb-cal-sched-row .panel { flex: 1; min-width: 0; margin-bottom: 0; }
.wb-cal-sched-row .panel:last-child { flex: 1.2; }
@media (max-width: 1100px) { .wb-cal-sched-row { flex-direction: column; } }
/* 左栏中段两列：新闻中心 + 审批中心并排等高（JS 动态拉齐右栏日程日历底边） */
.wb-mid-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: stretch; }
.wb-mid-grid .panel { margin-bottom: 0; display: flex; flex-direction: column; }
.wb-mid-grid .panel .panel-body { flex: 1; }
@media (max-width: 1280px) { .wb-mid-grid { grid-template-columns: 1fr; } }
/* 公司概况驾驶舱指标卡（横贯整行，4 卡一行） */
.cp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 1280px) { .cp-grid { grid-template-columns: repeat(2, 1fr); } }
.cp-item {
  background: linear-gradient(135deg, #F4F8FD 0%, #EBF3FC 100%);
  border: 1px solid #DCE9F7;
  border-radius: 10px;
  padding: 12px 14px 10px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cp-item::after {
  content: ''; position: absolute; right: -14px; top: -14px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(37, 99, 235, 0.07);
}
.cp-item::before {
  content: ''; position: absolute; left: -16px; bottom: -16px;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(12, 68, 124, 0.05);
}
.cp-item .cp-val {
  font-size: 22px; font-weight: 700; color: #0C447C;
  line-height: 1.15; letter-spacing: -0.3px;
  font-variant-numeric: tabular-nums;
}
.cp-item .cp-val em { font-style: normal; font-size: 13px; font-weight: 600; margin-right: 2px; color: #16609F; }
.cp-item .cp-val i { font-style: normal; font-size: 12px; font-weight: 600; margin-left: 2px; color: #16609F; }
.cp-item .cp-label { font-size: 12px; color: var(--text-hint); margin-top: 3px; }
/* 首页新闻中心列表（无表头、紧凑行距） */
.news-list { display: flex; flex-direction: column; }
.news-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 4px 8px; border-radius: 6px; transition: background 0.12s;
}
.news-row:hover { background: var(--primary-light); }
.news-row + .news-row { border-top: 1px dashed var(--border-light); }
.news-row .news-title {
  font-size: 13.5px; color: var(--text); min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.news-row .news-time { flex: none; font-size: 12px; color: var(--text-hint); }
/* 个人信息头卡（紧凑横条） */
.wb-hello {
  background: linear-gradient(135deg, #0C447C, #185FA5);
  color: #fff; border-radius: var(--radius-md); padding: 14px 18px; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.wb-hello .h-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.wb-hello .h-greet { font-size: 12px; opacity: 0.85; }
.wb-hello .h-name { font-size: 19px; font-weight: 700; line-height: 1.15; }
.wb-hello .h-pos { font-size: 12px; opacity: 0.95; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.wb-hello .h-pos .chip {
  display: inline-block; padding: 0 8px; border-radius: 999px;
  background: rgba(255,255,255,0.18); font-size: 11.5px; line-height: 1.6;
}
.wb-hello .h-right { text-align: right; }
.wb-hello .h-date { font-size: 13px; opacity: 0.95; }
.wb-hello .h-time { font-size: 24px; font-weight: 700; letter-spacing: 1px; line-height: 1.1; }
.wb-hello .h-quote {
  width: 100%; margin-top: 10px; padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.2);
  font-size: 12.5px; line-height: 1.5; opacity: 0.95; text-align: center;
}
.wb-hello .h-quote .q-mark { opacity: 0.7; margin-right: 4px; }
.wb-remind-banner {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: var(--radius-sm);
  background: var(--warning-light); color: #B45309; font-size: 13px;
  border: 1px solid #FDE68A;
  margin-bottom: 16px;
}
/* 日历（紧凑布局：缩小竖向间距，一屏直接显示） */
.wb-cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.wb-cal-head .cal-title { font-weight: 600; font-size: 15px; }
.wb-cal-nav { display: flex; gap: 6px; }
.wb-cal-nav button {
  border: 1px solid var(--border); background: var(--surface); border-radius: 6px;
  width: 28px; height: 28px; cursor: pointer; color: var(--text-secondary); font-size: 14px;
}
.wb-cal-nav button:hover { border-color: var(--primary); color: var(--primary); }
.wb-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; }
.wb-cal-grid .cal-wd { text-align: center; font-size: 12px; color: var(--text-hint); padding: 1px 0; font-weight: 600; }
.wb-cal-cell {
  position: relative; text-align: center; padding: 8px 0 10px;
  border-radius: 7px; font-size: 13px; color: var(--text); cursor: pointer;
  border: 1px solid transparent; user-select: none;
}
.wb-cal-cell:hover { background: var(--primary-light); }
.wb-cal-cell.muted { color: var(--text-disabled); }
.wb-cal-cell.today { border-color: var(--primary); color: var(--primary); font-weight: 600; }
.wb-cal-cell.sel { background: var(--primary); color: #FFFFFF; font-weight: 600; }
.wb-cal-cell.sel.today { border-color: var(--primary-dark); }
.wb-cal-cell .dot {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 1px;
  width: 4px; height: 4px; border-radius: 50%; background: #F59E0B;
}
.wb-cal-cell.sel .dot { background: #FFFFFF; }
.wb-cal-legend { margin-top: 5px; font-size: 12px; color: var(--text-hint); display: flex; align-items: center; gap: 6px; }
.wb-cal-legend i { width: 6px; height: 6px; border-radius: 50%; background: #F59E0B; display: inline-block; }
/* 日程条目（紧凑） */
.wb-sched-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-light); background: var(--surface-hover);
  margin-bottom: 7px;
}
.wb-sched-item .s-time { flex: none; width: 52px; font-size: 13px; font-weight: 600; color: var(--primary); }
.wb-sched-item .s-body { flex: 1; min-width: 0; }
.wb-sched-item .s-title { font-size: 14px; font-weight: 500; color: var(--text); }
.wb-sched-item .s-content { font-size: 12px; color: var(--text-hint); margin-top: 2px; }
.wb-sched-item.done .s-title { text-decoration: line-through; color: var(--text-hint); }
.wb-sched-item .s-actions { flex: none; display: flex; gap: 6px; }
.wb-sched-item .s-actions a { font-size: 12px; cursor: pointer; color: var(--primary); }
.wb-sched-item .s-actions a.del { color: var(--danger); }
.wb-sched-list { max-height: 620px; overflow-y: auto; }


/* ============ 业户详情页 ============ */
.od-info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.od-info-item { display: flex; flex-direction: column; gap: 4px; }
.od-label { font-size: 12px; color: #8892A0; }
.od-value { font-size: 14px; color: #1E293B; font-weight: 500; }
.od-empty { padding: 40px 0; text-align: center; color: #8892A0; font-size: 13px; }
/* 证照资料 */
.od-doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.od-doc-box { border: 1px solid var(--border-light); border-radius: 10px; padding: 14px; background: #FAFBFD; }
.od-doc-title { font-size: 13px; font-weight: 600; color: #1E293B; margin-bottom: 10px; }
.od-doc-list { min-height: 40px; margin-bottom: 10px; }
.od-doc-empty { color: #B6BEC9; font-size: 12px; padding: 8px 0; }
.od-doc-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px; background: #fff; border: 1px solid var(--border-light); border-radius: 6px; margin-bottom: 6px; }
.od-doc-item a { font-size: 12px; color: #185FA5; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }
.od-doc-del { cursor: pointer; color: #E24B4A; font-size: 15px; flex: none; }
.btn-sm { padding: 4px 12px; font-size: 12px; }


/* ===== 员工信息弹窗：5 个标签页（基础/教育/工作/证书/家庭） ===== */
.emp-form-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); padding: 0 2px; margin-bottom: 12px; flex-wrap: wrap; }
.emp-form-tabs .eft-tab { padding: 8px 16px; font-size: 13px; color: #6B7280; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; user-select: none; white-space: nowrap; }
.emp-form-tabs .eft-tab:hover { color: #185FA5; }
.emp-form-tabs .eft-tab.active { color: #185FA5; border-bottom-color: #185FA5; font-weight: 600; }
.emp-form-tabs .eft-tab.locked { color: #C4C9D0; cursor: not-allowed; }
.emp-form-tabs .eft-tab.locked::after { content: ' 🔒'; font-size: 11px; }
.eft-panel { display: none; }
.eft-panel.active { display: block; }
.emp-base-save { margin: 14px 0 4px; text-align: right; }
.emp-sub-table { overflow-x: auto; }
.emp-sub-table { margin-bottom: 8px; }
.emp-sub-table table { table-layout: auto; }
.emp-sub-table td input, .emp-sub-table td select { width: 100%; box-sizing: border-box; padding: 6px 8px; font-size: 12px; border: 1px solid var(--border); border-radius: 6px; background: #fff; }
.emp-sub-table td { padding: 4px 6px; }

/* ===== 审批详情：横向进度条 + 时间线（方案A） ===== */
.ap-chain-wrap { background: #fff; border: 1px solid var(--border-light); border-radius: 10px; padding: 16px 14px; margin-bottom: 14px; overflow-x: auto; }
.ap-chain { display: flex; align-items: flex-start; min-width: 560px; }
.ap-node { display: flex; flex-direction: column; align-items: center; flex: none; width: 74px; position: relative; }
.ap-dot { width: 30px; height: 30px; border-radius: 50%; background: #F3F4F6; color: #9CA3AF; border: 1px dashed #D1D5DB; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }
.ap-node-done .ap-dot { background: var(--primary); color: #fff; border: none; }
.ap-node-cur .ap-dot { background: #fff; color: var(--primary); border: 3px solid var(--primary); box-shadow: 0 0 0 4px rgba(37,99,235,.12); font-weight: 700; }
.ap-node-reject .ap-dot { background: var(--danger); color: #fff; border: none; }
.ap-node-skip .ap-dot { background: #F9FAFB; color: #D1D5DB; border: 1px dashed #E5E7EB; }
.ap-node-wait .ap-dot { background: #F3F4F6; color: #9CA3AF; border: 1px dashed #D1D5DB; }
.ap-lbl { font-size: 11px; color: #374151; margin-top: 6px; text-align: center; line-height: 1.3; }
.ap-node-wait .ap-lbl, .ap-node-skip .ap-lbl { color: #9CA3AF; }
.ap-mode { display: inline-block; font-size: 10px; color: #B45309; background: #FEF3C7; border-radius: 4px; padding: 0 4px; margin-left: 2px; }
.ap-skip { display: block; font-size: 10px; color: #D1D5DB; }
.ap-line { flex: 1; height: 2px; background: #E5E7EB; margin-top: 15px; min-width: 16px; }
.ap-line-done { background: var(--primary); }
.ap-chain [data-hover] { cursor: pointer; }
.ap-chain [data-hover]:hover .ap-dot { box-shadow: 0 0 0 6px rgba(37,99,235,.15); }

/* 时间线 */
.ap-timeline { margin: 4px 0 12px; }
.ap-tl-item { display: flex; gap: 12px; padding: 8px 0; }
.ap-tl-avatar { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; flex-shrink: 0; }
.ap-tl-body { flex: 1; border-bottom: 1px solid var(--border-light); padding-bottom: 10px; }
.ap-tl-item:last-child .ap-tl-body { border-bottom: none; }
.ap-tl-head { font-size: 13px; color: #1F2937; }
.ap-tl-head b { font-weight: 600; }
.ap-tl-time { color: #9CA3AF; font-size: 11px; float: right; }
.ap-tl-act { font-size: 13px; margin-top: 3px; }
.ap-tl-comment { font-size: 12px; color: #6B7280; margin-top: 3px; background: #F9FAFB; border-radius: 6px; padding: 6px 8px; }
.ap-tl-atts { margin-top: 6px; }

/* ===== 审批详情：左右分栏（左侧录入界面 + 右侧审批操作区） ===== */
.ap-detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.ap-detail-head h3 { margin: 0 !important; padding: 0 !important; }
.ap-detail-head .ap-title { font-size: 15px; font-weight: 600; color: #1F2937; }
.ap-detail-head .ap-meta { color: #9CA3AF; font-size: 12px; margin-top: 4px; }
.ap-layout { display: flex; gap: 16px; align-items: flex-start; }
.ap-main { flex: 1; min-width: 0; }
.ap-side { width: 320px; flex: none; position: sticky; top: 0; max-height: calc(100vh - 150px); overflow-y: auto; padding-right: 2px; }
.ap-side-card { background: #fff; border: 1px solid var(--border-light); border-radius: 10px; margin-bottom: 12px; }
.ap-side-card:last-child { margin-bottom: 0; }
.ap-side-head { padding: 10px 14px; font-size: 13px; font-weight: 600; color: #1F2937; border-bottom: 1px solid var(--border-light); display: flex; align-items: center; gap: 8px; }
.ap-side-head .dot { width: 4px; height: 14px; background: var(--primary); border-radius: 2px; }
.ap-side-body { padding: 12px 14px; }
.ap-vstep { display: flex; gap: 8px; }
.ap-vrail { display: flex; flex-direction: column; align-items: center; flex: none; width: 20px; }
.ap-vdot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #D1D5DB; background: #fff; color: #9CA3AF; display: flex; align-items: center; justify-content: center; font-size: 10px; flex: none; line-height: 1; }
.ap-vline { width: 2px; flex: 1; background: #E5E7EB; min-height: 10px; }
.ap-vstep:last-child .ap-vline { display: none; }
.ap-vstep.done .ap-vdot { background: #16A34A; border-color: #16A34A; color: #fff; }
.ap-vstep.done .ap-vline { background: #BBE7CD; }
.ap-vstep.cur .ap-vdot { border-color: var(--primary); color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.15); font-weight: 700; }
.ap-vstep.reject .ap-vdot { background: #DC2626; border-color: #DC2626; color: #fff; }
.ap-vstep.skip .ap-vdot { background: #F9FAFB; color: #D1D5DB; border-style: dashed; }
.ap-vbody { flex: 1; padding-bottom: 13px; min-width: 0; }
.ap-vname { font-size: 13px; font-weight: 600; color: #1F2937; line-height: 1.3; }
.ap-vstep.cur .ap-vname { color: var(--primary); }
.ap-vsub { font-size: 11px; color: #6B7280; margin-top: 2px; line-height: 1.35; word-break: break-all; }
.ap-vstate { font-size: 11px; margin-top: 2px; }
.ap-vstate.ok { color: #16A34A; }
.ap-vstate.no { color: #DC2626; }
.ap-vstate.cur { color: var(--primary); }
.ap-quick-comment { width: 100%; min-height: 80px; border: 1px solid #D6DCE5; border-radius: 8px; padding: 9px 11px; font-size: 13px; font-family: inherit; resize: vertical; box-sizing: border-box; outline: none; }
.ap-quick-comment:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.ap-side-actions { display: flex; gap: 8px; margin-top: 10px; }
.ap-side-actions .btn { flex: 1; }
.ap-side-actions2 { display: flex; gap: 8px; margin-top: 8px; }
.ap-side-actions2 .btn { flex: 1; font-size: 12px; padding: 7px 0; }
.ap-ext-links { display: flex; gap: 14px; margin-top: 10px; font-size: 12px; }
.ap-ext-links a { color: var(--primary); text-decoration: none; }
.ap-ext-box { margin-top: 8px; display: none; }
.ap-ext-box.open { display: block; }
@media (max-width: 900px) {
  .ap-layout { flex-direction: column; }
  .ap-side { width: 100%; position: static; max-height: none; }
}

/* ===== 审批流配置：列表紧凑化 + 编辑卡片 ===== */
.fc-list td { padding: 8px 10px !important; vertical-align: middle; }
.fc-list thead th { padding: 8px 10px !important; }
.fl-card { background: #FBFCFE; border: 1px solid var(--border-light); border-radius: 10px; padding: 10px 14px; margin-bottom: 8px; }
.fl-card:hover { border-color: #C7D7EE; background: #fff; }
.fl-card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 13px; color: #1F2937; }
.fl-step-no { width: 20px; height: 20px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fl-card-body { display: grid; grid-template-columns: 1fr 150px; gap: 10px 14px; }
.fl-field label { display: block; font-size: 11px; color: #8A94A6; margin-bottom: 3px; }
.fl-field select, .fl-field input { width: 100%; }
.fl-field-full { margin-top: 8px; }
.fl-members { display: flex; flex-wrap: wrap; gap: 6px; }
.fl-chk { display: inline-flex; align-items: center; gap: 4px; background: #fff; border: 1px solid var(--border-light); border-radius: 16px; padding: 3px 10px 3px 6px; font-size: 12px; color: #374151; cursor: pointer; user-select: none; }
.fl-chk input { width: auto; margin: 0; accent-color: var(--primary); cursor: pointer; }
.fl-chk:has(input:checked) { background: #EFF6FF; border-color: var(--primary); color: var(--primary); font-weight: 600; }
.fl-members-wrap { max-height: 120px; overflow-y: auto; border: 1px solid var(--border-light); border-radius: 8px; padding: 8px 10px; background: #fff; }
.fl-mgroup { margin-bottom: 8px; }
.fl-mgroup:last-child { margin-bottom: 0; }
.fl-mgroup-t { font-size: 11px; color: #185FA5; font-weight: 600; margin-bottom: 4px; }

/* 人事变动申请 · 调整核定对比表（hc-adj：不走全局表格增强，表单/详情共用） */
table.hc-adj { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; border: 1px solid #E4E7EB; border-radius: 8px; overflow: hidden; }
table.hc-adj th { background: #F0F5FF; color: #185FA5; font-weight: 600; padding: 9px 12px; text-align: left; border-bottom: 2px solid #D6E4FF; }
table.hc-adj th.hc-after-col { color: #2563EB; }
table.hc-adj td { padding: 7px 12px; border-bottom: 1px solid #EEF1F5; vertical-align: middle; }
table.hc-adj tr:last-child td { border-bottom: none; }
table.hc-adj td:first-child { color: #5A7396; font-weight: 600; width: 110px; background: #FAFBFC; }
table.hc-adj td.hc-before input { background: #F8F9FB; color: #6B7280; }
table.hc-adj td.hc-after input { background: #F0F6FF; border-color: #A9C3F0; color: #185FA5; font-weight: 600; }
table.hc-adj td.hc-before, table.hc-adj td.hc-after { width: 42%; }
table.hc-adj td.hc-after { color: #185FA5; font-weight: 600; }
table.hc-adj td input { width: 100%; box-sizing: border-box; padding: 7px 10px; font-size: 13px; border: 1px solid #D6DCE3; border-radius: 6px; }
table.hc-adj td input:focus { border-color: #2563EB; outline: none; }
table.hc-adj tbody tr:hover td { background: #F6F9FF; }

/* 调整核定小计行 */
table.hc-adj tr.hc-subtotal td { background: #F0F6FF; border-top: 1.5px dashed #A9C3F0; }
table.hc-adj tr.hc-subtotal td:first-child { color: #185FA5; font-weight: 700; }
table.hc-adj tr.hc-subtotal td input { background: #E8F1FE; border-style: dashed; font-weight: 700; color: #185FA5; }
table.hc-adj tr.hc-subtotal td.hc-after { color: #2563EB; font-weight: 700; }

/* 调整核定三区渐变分组 */
table.hc-adj tr.hc-r1 td { background: linear-gradient(90deg, #F8FAFC, #F1F4F8); }
table.hc-adj tr.hc-r2 td { background: linear-gradient(90deg, #EFF6FF, #E3EEFC); }
table.hc-adj tr.hc-r3 td { background: linear-gradient(90deg, #F6F4FF, #EDEAFB); }
table.hc-adj tr.hc-r2 td { border-top: 2px solid #D6E4FF; }
table.hc-adj tr.hc-r3 td { border-top: 2px solid #DDD6F3; }
/* 小计行在工资区中更突出（覆盖区域渐变） */
table.hc-adj tr.hc-subtotal td { background: linear-gradient(90deg, #DCEBFB, #D0E3F9); }
table.hc-adj tr.hc-subtotal td:first-child { background: #DCEBFB; }
