/* =========================================================
   目标达成及量化系统 · 设计系统 v2.0
   风格：现代专业 SaaS / 轻量商务
   ========================================================= */
:root {
  /* 色彩 · 品牌蓝 */
  --brand-50:  #eef5fd;
  --brand-100: #dbe9f8;
  --brand-200: #bcd6f1;
  --brand-300: #8fbce8;
  --brand-400: #5a9bdb;
  --brand-500: #2f7fd1;
  --brand-600: #1f63ad;
  --brand-700: #185388;
  --brand-800: #134068;
  --brand-900: #0e2d4a;

  /* 语义色 */
  --primary:   #1f6fb2;
  --primary-d: #185a93;
  --accent:    #38bdf8;
  --success:   #16a34a;
  --success-bg:#e8f6ee;
  --warning:   #d99a0b;
  --warning-bg:#fdf3e0;
  --danger:    #e0523f;
  --danger-bg: #fdecea;
  --purple:    #7c5cd6;
  --purple-bg: #f1ebfd;

  /* 中性 / 表面 */
  --bg:        #f4f7fb;
  --surface:   #ffffff;
  --surface-2: #f8fafc;
  --border:    #e7ecf2;
  --border-2:  #eef2f7;
  --text:      #1f2a37;
  --text-2:    #5b6776;
  --text-3:    #8a96a3;

  /* 圆角 */
  --r-xs: 6px;
  --r-sm: 8px;
  --r:    12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-full: 999px;

  /* 阴影 */
  --sh-sm: 0 1px 2px rgba(16,24,40,.06);
  --sh:    0 4px 16px rgba(16,24,40,.08);
  --sh-md: 0 8px 28px rgba(16,24,40,.10);
  --sh-lg: 0 18px 50px rgba(16,24,40,.14);

  /* 间距 */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px; --sp-8: 32px;
}

* { box-sizing: border-box; }
.hidden { display: none !important; }
body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===================== 登录 / 注册 ===================== */
.auth-screen {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(1200px 600px at 15% 10%, rgba(56,189,248,.35), transparent 60%),
    radial-gradient(1000px 700px at 90% 100%, rgba(31,111,178,.45), transparent 55%),
    linear-gradient(135deg, #123a66 0%, #0e2d4a 100%);
}
.auth-card {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(6px);
  width: 380px; max-width: 92vw;
  border-radius: var(--r-lg);
  padding: 32px 30px 28px;
  box-shadow: var(--sh-lg);
  border: 1px solid rgba(255,255,255,.5);
}
.auth-badge {
  width: 56px; height: 56px; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r); background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  box-shadow: 0 8px 20px rgba(31,111,178,.35);
}
.auth-badge svg { width: 30px; height: 30px; }
.auth-title { text-align: center; color: var(--brand-800); margin: 0 0 6px; font-size: 21px; letter-spacing: .5px; }
.auth-sub { text-align: center; color: var(--text-3); font-size: 13px; margin: 0 0 20px; }
.auth-tabs { display: flex; margin-bottom: 20px; background: var(--surface-2); border-radius: var(--r-full); padding: 4px; }
.auth-tab {
  flex: 1; background: none; border: none; padding: 9px; font-size: 14px; cursor: pointer;
  color: var(--text-2); border-radius: var(--r-full); transition: all .18s;
}
.auth-tab.active { background: #fff; color: var(--brand-600); font-weight: 700; box-shadow: var(--sh-sm); }
.auth-card label { display: block; margin: 14px 0 6px; color: var(--text-2); font-size: 13px; font-weight: 500; }
.auth-card input, .auth-card select {
  width: 100%; padding: 11px 13px; border: 1px solid var(--border);
  border-radius: var(--r-sm); font-size: 14px; background: #fff; outline: none; transition: all .18s;
}
.auth-card input:focus, .auth-card select:focus {
  border-color: var(--brand-400);
  box-shadow: 0 0 0 4px var(--brand-100);
}
.auth-btn {
  width: 100%; margin-top: 22px; padding: 12px; border: none; border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; transition: all .18s;
  box-shadow: 0 6px 16px rgba(31,111,178,.3);
}
.auth-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(31,111,178,.4); }
.auth-btn:active { transform: translateY(0); }
.auth-msg { margin-top: 14px; font-size: 13px; min-height: 18px; text-align: center; }
.auth-msg.err { color: var(--danger); }
.auth-msg.ok { color: var(--success); }

/* ===================== 布局 ===================== */
#appScreen { display: flex; min-height: 100vh; }

/* 侧栏 */
.sidebar {
  width: 232px; flex-shrink: 0;
  background: linear-gradient(180deg, #1b4f8a 0%, #123a66 60%, #0e2d4a 100%);
  color: #fff; display: flex; flex-direction: column;
  box-shadow: 4px 0 24px rgba(14,45,74,.18);
  position: relative; z-index: 2;
}
.sidebar .brand {
  padding: 20px 18px; font-size: 15px; font-weight: 700; letter-spacing: .5px;
  display: flex; align-items: center; gap: 11px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.brand-logo {
  width: 34px; height: 34px; flex-shrink: 0; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent), #2563eb);
  box-shadow: 0 4px 12px rgba(56,189,248,.4);
}
.brand-logo svg { width: 20px; height: 20px; }
.brand-text { line-height: 1.25; }
.brand-text small { display: block; font-size: 11px; font-weight: 400; opacity: .65; letter-spacing: 0; }

.nav { display: flex; flex-direction: column; padding: 14px 12px; flex: 1; gap: 4px; overflow-y: auto; }
.nav button {
  background: none; border: none; padding: 11px 13px; font-size: 14px; cursor: pointer;
  color: #cfe0f2; text-align: left; border-radius: var(--r-sm); width: 100%;
  display: flex; align-items: center; gap: 11px;
  transition: background .16s, color .16s, transform .16s;
}
.nav button:hover { background: rgba(255,255,255,.10); color: #fff; }
.nav button.active {
  background: rgba(255,255,255,.16); color: #fff; font-weight: 700;
  box-shadow: inset 3px 0 0 var(--accent);
}
.nav-ico { width: 18px; height: 18px; flex-shrink: 0; display: inline-flex; opacity: .92; }
.nav-ico svg { width: 18px; height: 18px; }

.nav .nav-parent { width: 100%; }
.nav .nav-parent > button { justify-content: flex-start; }
.nav .nav-parent .nav-caret { margin-left: auto; font-size: 11px; opacity: .7; transition: transform .2s; }
.nav .nav-parent.open .nav-caret { transform: rotate(90deg); }
.nav .nav-sub {
  display: none; margin: 2px 0 2px 16px; padding-left: 14px;
  border-left: 1px solid rgba(255,255,255,.16);
}
.nav .nav-sub.open { display: block; }
.nav .nav-parent.open .nav-sub { display: block; }
.nav .nav-sub button {
  padding: 9px 12px; font-size: 13px; gap: 9px; color: #b9cfe6;
  position: relative;
}
.nav .nav-sub button::before {
  content: ""; position: absolute; left: -15px; top: 50%; width: 6px; height: 6px;
  border-radius: 50%; background: rgba(255,255,255,.28); transform: translateY(-50%);
}
.nav .nav-sub button:hover { background: rgba(255,255,255,.08); }
.nav .nav-sub button.active {
  background: rgba(56,189,248,.18); color: #fff; font-weight: 700;
  box-shadow: none;
}
.nav .nav-sub button.active::before { background: var(--accent); box-shadow: 0 0 0 3px rgba(56,189,248,.25); }

.sidebar-foot { padding: 12px 14px; border-top: 1px solid rgba(255,255,255,.10); font-size: 12px; color: rgba(255,255,255,.6); }

/* 主区 */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

/* 顶部页眉 */
.page-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 26px; background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 5;
}
.page-head h1 { margin: 0; font-size: 19px; color: var(--text); font-weight: 700; letter-spacing: .3px; }
.ph-sub { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.ph-right { display: flex; align-items: center; gap: 14px; }
.page-head .user-pill {
  display: flex; align-items: center; gap: 9px; padding: 5px 12px 5px 6px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-full);
}
.page-head .user-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-400), var(--brand-700));
  color: #fff; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.page-head .user-meta { line-height: 1.25; }
.page-head .user-meta .un { font-size: 13px; font-weight: 600; color: var(--text); }
.page-head .user-meta .ur { font-size: 11px; color: var(--text-3); }
.logout-btn {
  background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border);
  padding: 8px 16px; border-radius: var(--r-sm); cursor: pointer; font-size: 13px; transition: all .16s;
}
.logout-btn:hover { background: var(--danger-bg); color: var(--danger); border-color: #f3c9c3; }

.content { flex: 1; padding: 22px 26px 30px; max-width: none; width: 100%; display: flex; flex-direction: column; min-width: 0; }
/* 工作台展开后：保持撑满（max-width 已默认 none） */
.content:has(.wb-host) { /* 详见 wb-host 区块 */ }

.ctx-bar {
  background: linear-gradient(0deg, var(--warning-bg), #fff);
  border: 1px solid #f3dca6; color: #8a6d3b; padding: 10px 16px;
  border-radius: var(--r-sm); margin: 0 26px 18px; font-size: 13px;
  display: flex; align-items: center; gap: 10px;
}

/* ===================== 销售工作台（原生嵌入） ===================== */

/* 销售工作台——主区容器与 iframe 自适应高度（撑满 .content 主区域） */
.content:has(.wb-host) { display: flex; flex-direction: column; flex: 1; min-height: 0; max-width: none; padding-left: 14px; padding-right: 14px; }
.wb-host { display: flex; flex-direction: column; flex: 1; min-height: 0; width: 100%; }
.wb-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border-2); flex: 0 0 auto; background: transparent; padding-left: 4px; }
.wb-tab { display: inline-flex; align-items: center; gap: 6px; padding: 11px 18px; background: transparent; border: none; border-bottom: 2px solid transparent; cursor: pointer; color: var(--text-2); font-size: 14px; font-family: inherit; margin-bottom: -1px; transition: all .15s; }
.wb-tab:hover { color: var(--brand-600); }
.wb-tab.active { color: var(--brand-700); border-bottom-color: var(--brand-500); font-weight: 600; }
.wb-tab-ico { font-size: 16px; }
.wb-frame-wrap { flex: 1 1 auto; min-height: 600px; width: 100%; display: flex; }
.wb-frame-wrap iframe { width: 100%; flex: 1 1 auto; border: 0; min-height: 600px; background: transparent; }

<omitted>
.wb-back-btn {
  display: inline-flex; align-items: center; gap: 5px; padding: 6px 14px;
  background: var(--brand-600); color: #fff; border: none; border-radius: var(--r-sm);
  cursor: pointer; font-size: 13px; transition: all .16s;
}
.wb-back-btn:hover { background: var(--brand-700); }

/* ===================== 卡片 / 网格 ===================== */
<omitted>

/* ===================== 卡片 / 网格 ===================== */
.card {
  background: var(--surface); border-radius: var(--r); padding: 18px;
  margin-bottom: 16px; box-shadow: var(--sh); border: 1px solid var(--border-2);
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--sh-md); }
.card h2 {
  margin: 0 0 14px; font-size: 15px; color: var(--brand-800); font-weight: 700;
  display: flex; align-items: center; gap: 8px;
}
.card h2::before {
  content: ""; width: 4px; height: 14px; border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), var(--brand-600));
}
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: 1fr 1fr; }
.g3 { grid-template-columns: repeat(3,1fr); }
.g4 { grid-template-columns: repeat(4,1fr); }
@media (max-width: 980px){ .g4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 720px){ .g2,.g3,.g4 { grid-template-columns: 1fr; } }

/* KPI */
.kpi {
  background: var(--surface); border-radius: var(--r); padding: 16px 14px; text-align: center;
  box-shadow: var(--sh); border: 1px solid var(--border-2); position: relative; overflow: hidden;
}
.kpi::before {
  content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand-400), var(--accent));
}
.kpi .v { font-size: 26px; font-weight: 800; color: var(--brand-700); letter-spacing: .5px; line-height: 1.2; }
.kpi .l { font-size: 12px; color: var(--text-3); margin-top: 6px; }
.kpi.blue .v { color: var(--brand-500); }
.kpi.blue::before { background: linear-gradient(90deg, #38bdf8, #2563eb); }

/* ===================== 表单 / 输入 ===================== */
.row { display: flex; flex-wrap: wrap; gap: 12px; }
.row > div { flex: 1; min-width: 130px; }
label { display: block; margin: 10px 0 5px; font-size: 13px; color: var(--text-2); font-weight: 500; }
input, textarea, select {
  width: 100%; padding: 9px 11px; border: 1px solid var(--border);
  border-radius: var(--r-sm); font-size: 13px; font-family: inherit; background: #fff;
  color: var(--text); outline: none; transition: border-color .16s, box-shadow .16s;
}
input:focus, textarea:focus, select:focus { border-color: var(--brand-400); box-shadow: 0 0 0 3px var(--brand-100); }
input:disabled { background: var(--surface-2); color: var(--brand-700); font-weight: 700; }
textarea { resize: vertical; min-height: 52px; max-height: 600px; overflow-y: auto; box-sizing: border-box; }
button.act {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700)); color: #fff; border: none;
  padding: 9px 16px; border-radius: var(--r-sm); cursor: pointer; font-size: 13px; font-weight: 500;
  transition: all .16s; box-shadow: 0 4px 12px rgba(31,111,178,.25);
}
button.act:hover { transform: translateY(-1px); box-shadow: 0 7px 18px rgba(31,111,178,.35); }
button.act.sec { background: linear-gradient(135deg, #6c8bbf, #4f6f9e); box-shadow: none; }
button.act.sec:hover { box-shadow: 0 6px 14px rgba(79,111,158,.3); }
button.del, button.del-sm {
  background: var(--danger-bg); color: var(--danger); border: 1px solid #f1c7c1;
  border-radius: var(--r-xs); cursor: pointer; padding: 6px 11px; font-size: 12px; transition: all .16s;
}
button.del:hover, button.del-sm:hover { background: #fbdcd7; }
button.del-sm { padding: 3px 9px; }

/* ===================== 表格 ===================== */
table { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 10px; font-size: 13px; }
th, td { border-bottom: 1px solid var(--border-2); padding: 9px 10px; text-align: left; vertical-align: top; }
th {
  background: var(--surface-2); color: var(--text-2); font-weight: 600; font-size: 12px;
  border-bottom: 1px solid var(--border); position: sticky; top: 0;
}
th:first-child { border-top-left-radius: var(--r-sm); }
th:last-child { border-top-right-radius: var(--r-sm); }
tbody tr { transition: background .14s; }
tbody tr:hover { background: var(--brand-50); }
td textarea { min-height: 80px; }
td input, td select { padding: 5px 7px; }

/* ===================== 标签 / 进度 ===================== */
.seg { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.muted { color: var(--text-3); font-size: 12px; }
.pill { display: inline-block; padding: 3px 10px; border-radius: var(--r-full); font-size: 12px; font-weight: 500; }
.u-ij { background: var(--danger-bg); color: var(--danger); }
.u-in { background: var(--brand-50); color: var(--brand-700); }
.u-nj { background: var(--warning-bg); color: var(--warning); }
.u-nn { background: var(--surface-2); color: var(--text-3); }
.u-sp { background: var(--purple-bg); color: var(--purple); }
.tag { display: inline-block; padding: 3px 11px; border-radius: var(--r-full); font-size: 12px; font-weight: 500; }
.t-done { background: var(--success-bg); color: var(--success); }
.t-none { background: var(--danger-bg); color: var(--danger); }
.t-part { background: var(--warning-bg); color: var(--warning); }
.t-rev  { background: var(--purple-bg); color: var(--purple); }

/* =========================================================
   系统设置 → 操作日志 / 公告 / 更新日志 / 备份 共用样式
   ========================================================= */

/* --- 操作日志 --- */
.audit-toolbar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin-bottom: 12px; padding: 12px; background: var(--surface-2);
  border-radius: var(--r-sm); border: 1px solid var(--border-2);
}
.audit-toolbar input, .audit-toolbar select { width: auto; min-width: 140px; }
.audit-tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.audit-tbl th, .audit-tbl td { border-bottom: 1px solid var(--border-2); padding: 9px 10px; vertical-align: top; }
.audit-tbl th { background: var(--surface-2); color: var(--text-2); font-weight: 600; font-size: 12px; }
.audit-tbl tbody tr:hover { background: var(--brand-50); }
.tag-act {
  background: linear-gradient(135deg, var(--accent), var(--brand-500));
  color: #fff; padding: 2px 10px; border-radius: var(--r-full);
  font-size: 12px; font-weight: 500;
}
.tag-new { background: var(--success-bg); color: var(--success); }
.tag-fix { background: var(--danger-bg); color: var(--danger); }
.tag-improve { background: var(--warning-bg); color: var(--warning); }
.pager {
  display: flex; align-items: center; gap: 10px; margin-top: 12px;
  justify-content: flex-end;
}
.pager button {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 5px 12px; cursor: pointer;
  font-size: 13px; color: var(--brand-700);
}
.pager button:hover:not([disabled]) { border-color: var(--brand-400); }
.pager button[disabled] { opacity: .45; cursor: not-allowed; }

/* --- 公告通知 --- */
.ann-toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.ann-list { display: flex; flex-direction: column; gap: 12px; }
.ann-card {
  background: var(--surface); border: 1px solid var(--border-2);
  border-radius: var(--r); padding: 14px 16px;
  border-left: 3px solid var(--border); transition: border-color .2s, box-shadow .2s;
}
.ann-card:hover { box-shadow: var(--sh); }
.ann-card.pinned {
  border-left-color: var(--warning);
  background: linear-gradient(180deg, #fffbe9 0%, var(--surface) 60%);
}
.ann-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; gap: 12px; }
.ann-title { font-size: 14px; }
.ann-pin {
  display: inline-block; padding: 1px 8px; border-radius: var(--r-full);
  background: var(--warning); color: #fff; font-size: 11px; font-weight: 600;
  margin-right: 6px;
}
.ann-meta { font-size: 12px; color: var(--text-3); }
.ann-body { line-height: 1.7; color: var(--text); white-space: pre-wrap; word-break: break-word; }
.ann-actions { display: flex; gap: 8px; margin-top: 12px; }

/* --- 更新日志 --- */
.cl-wrap { display: flex; flex-direction: column; gap: 14px; }
.cl-block {
  border: 1px solid var(--border-2); border-radius: var(--r);
  padding: 14px 18px; position: relative;
  border-left: 3px solid var(--brand-500);
  background: linear-gradient(180deg, #f8fbff 0%, var(--surface) 70%);
}
.cl-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.cl-version {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff; padding: 2px 12px; border-radius: var(--r-full);
  font-weight: 700; font-size: 13px;
}
.cl-date { color: var(--text-3); font-size: 12px; font-family: ui-monospace, monospace; }
.cl-flag {
  padding: 1px 8px; border-radius: var(--r-full);
  background: var(--success-bg); color: var(--success); font-size: 11px;
}
.cl-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cl-list li { display: flex; gap: 8px; align-items: flex-start; line-height: 1.6; font-size: 13px; }
.cl-list li .tag { flex-shrink: 0; margin-top: 4px; }
.cl-item-row { display: flex; gap: 8px; margin-top: 8px; align-items: center; }
.cl-item-row select { width: auto; min-width: 90px; flex: none; }
.cl-item-row input { flex: 1; }
.cl-item-row .del-sm { padding: 4px 10px; }

/* --- 备份与恢复 --- */
.bk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 980px) { .bk-grid { grid-template-columns: 1fr; } }
.bk-card {
  border: 1px solid var(--border-2); border-radius: var(--r);
  padding: 18px; background: var(--surface);
}
.bk-card-h {
  font-size: 15px; font-weight: 700; color: var(--brand-800);
  margin-bottom: 10px; display: flex; align-items: center; gap: 8px;
}
.bk-card-h::before {
  content: ""; width: 4px; height: 14px; border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), var(--brand-600));
}
.bk-stat { list-style: none; margin: 12px 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; font-size: 13px; }
.bk-stat li { color: var(--text-2); }
.bk-stat b { color: var(--brand-700); font-weight: 700; }
.bk-card-actions {
  display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap;
}
.bk-card-actions .act, .bk-card-actions a.act { text-decoration: none; }
.bk-card-actions input[type="file"] {
  flex: 1; min-width: 200px;
  border: 1px dashed var(--border); padding: 8px 10px; border-radius: var(--r-sm);
  background: var(--surface-2);
}
.warn-line {
  margin-top: 12px; padding: 8px 12px; border-radius: var(--r-sm);
  background: #fff7ed; border: 1px solid #fbcf9a; color: #b45309;
  font-size: 13px;
}
.bk-meta { margin-top: 12px; font-size: 12px; color: var(--text-2); }
.bk-tip code {
  background: var(--surface-2); padding: 1px 6px; border-radius: 4px;
  font-family: ui-monospace, monospace; font-size: 12px;
}
.bar { background: var(--surface-2); border-radius: var(--r-full); overflow: hidden; height: 14px; box-shadow: inset 0 1px 2px rgba(16,24,40,.06); }
.bar > i { display: block; height: 100%; border-radius: var(--r-full); background: linear-gradient(90deg, var(--brand-400), var(--accent)); transition: width .5s ease; }
.done-i > i { background: linear-gradient(90deg, #34c773, #16a34a); }
.part-i > i { background: linear-gradient(90deg, #f6c453, #e6a008); }
.fail-i > i { background: linear-gradient(90deg, #f0856a, #e0523f); }
.empty { color: var(--text-3); padding: 18px; text-align: center; font-size: 13px; }
.chart-box { position: relative; height: 200px; }

/* ===================== 管理员 ===================== */
.user-row { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px dashed var(--border); }
.user-row .nm { font-weight: 600; color: var(--text); }
.st-pending { color: var(--warning); font-weight: 600; }
.st-approved { color: var(--success); font-weight: 600; }
.st-rejected { color: var(--danger); font-weight: 600; }
.st-disabled { color: var(--text-3); font-weight: 600; }

/* ===================== 用户管理表格 ===================== */
.usr-search {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 14px; margin-bottom: 14px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-sm);
}
.usr-search input {
  flex: 1; min-width: 220px; padding: 8px 12px; border: 1px solid var(--border);
  border-radius: var(--r-sm); background: #fff; font-size: 13px;
}
.usr-search input:focus { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 3px rgba(56,125,255,.12); }
.usr-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.usr-tbl th, .usr-tbl td {
  text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border-2);
}
.usr-tbl th {
  background: var(--surface-2); color: var(--text-2); font-weight: 600;
  font-size: 12px; letter-spacing: .3px; white-space: nowrap;
}
.usr-tbl tbody tr:hover { background: var(--surface-2); }
.usr-tbl td .nm { font-weight: 600; color: var(--text); }
.usr-tbl td .ph { color: var(--text-3); font-size: 12px; font-family: ui-monospace, monospace; }
.usr-tbl .col-act { white-space: nowrap; }
.usr-tbl .col-act a {
  display: inline-block; margin-right: 8px; color: var(--brand-600); cursor: pointer;
  text-decoration: none; font-weight: 500;
}
.usr-tbl .col-act a:hover { color: var(--brand-800); text-decoration: underline; }
.usr-tbl .col-act a.danger { color: var(--danger); }
.usr-tbl .col-act a.danger:hover { color: #b03030; }
.usr-tbl .col-act a.disabled { color: var(--text-3); cursor: not-allowed; }
.role-tag {
  display: inline-block; padding: 2px 8px; border-radius: var(--r-full);
  font-size: 11px; font-weight: 600; line-height: 1.5;
}
.role-tag.admin { background: var(--purple-bg); color: var(--purple); }
.role-tag.user { background: var(--brand-50); color: var(--brand-700); }

/* ===================== 模态对话框 ===================== */
.modal-mask {
  position: fixed; inset: 0; background: rgba(16,24,40,.45);
  display: flex; align-items: center; justify-content: center; z-index: 9999;
  animation: maskIn .15s ease;
}
@keyframes maskIn { from{opacity:0} to{opacity:1} }
.modal {
  background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-xl);
  width: 460px; max-width: 92vw; max-height: 90vh; overflow: auto;
  animation: modalIn .2s cubic-bezier(.2,.8,.3,1);
}
@keyframes modalIn { from{opacity:0;transform:translateY(12px) scale(.97)} to{opacity:1;transform:none} }
.modal-h {
  padding: 16px 20px; border-bottom: 1px solid var(--border-2);
  font-weight: 700; font-size: 15px; color: var(--brand-800);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-h .close {
  width: 28px; height: 28px; border-radius: 6px; cursor: pointer;
  background: transparent; border: none; font-size: 18px; color: var(--text-3);
  display: flex; align-items: center; justify-content: center;
}
.modal-h .close:hover { background: var(--surface-2); color: var(--text); }
.modal-b { padding: 18px 20px; }
.modal-f {
  padding: 14px 20px; border-top: 1px solid var(--border-2);
  display: flex; justify-content: flex-end; gap: 10px;
}
.modal-f button {
  padding: 7px 16px; border-radius: var(--r-sm); border: 1px solid var(--border);
  background: #fff; color: var(--text-2); font-size: 13px; font-weight: 500; cursor: pointer;
  transition: all .15s;
}
.modal-f button:hover { border-color: var(--brand-400); color: var(--brand-700); }
.modal-f button.primary {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff; border-color: var(--brand-600); box-shadow: 0 4px 12px rgba(31,111,178,.3);
}
.modal-f button.primary:hover { transform: translateY(-1px); box-shadow: 0 7px 18px rgba(31,111,178,.4); }
.modal-f button.primary:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.modal-f button.danger { color: var(--danger); border-color: #f3c9c3; }
.modal-f button.danger:hover { background: var(--danger-bg); border-color: var(--danger); }
.modal label { display: block; margin: 12px 0 5px; font-size: 13px; color: var(--text-2); font-weight: 500; }
.modal label .req { color: var(--danger); margin-left: 2px; }
.modal input, .modal select {
  width: 100%; padding: 8px 12px; border: 1px solid var(--border);
  border-radius: var(--r-sm); font-size: 13px; background: #fff; transition: all .15s;
}
.modal input:focus, .modal select:focus {
  outline: none; border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(56,125,255,.12);
}
.modal .hint { font-size: 12px; color: var(--text-3); margin-top: 5px; }
.modal .err { font-size: 12px; color: var(--danger); margin-top: 8px; min-height: 16px; }
.modal .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ===================== 筛选 chips ===================== */
.filter-box { padding: 12px 14px; margin: 10px 0; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-sm); }
.filter-box .seg { margin: 0; }
.chip {
  background: #fff; border: 1px solid var(--border); color: var(--text-2);
  padding: 5px 13px; margin: 3px 6px 3px 0; border-radius: var(--r-full); font-size: 12px;
  cursor: pointer; transition: all .16s; user-select: none;
}
.chip:hover { border-color: var(--brand-400); color: var(--brand-600); }
.chip.on { background: var(--brand-600); border-color: var(--brand-600); color: #fff; box-shadow: 0 3px 10px rgba(31,111,178,.3); }

/* ===================== 业务员切换 + 日量化时间范围 ===================== */
.ctx-sel { padding: 12px 16px; background: var(--warning-bg); border: 1px solid #f3dca6; border-radius: var(--r-sm); }
.ctx-sel label { color: #8a6d3b; font-weight: 600; margin: 0; }
.time-range { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.time-range select { width: 56px; padding: 4px 5px; font-size: 12px; min-width: 0; }
.time-range i { font-style: normal; color: var(--text-3); font-size: 12px; padding: 0 1px; }

/* 滚动条美化 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #cdd7e2; border-radius: var(--r-full); border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: #b3c0cf; background-clip: padding-box; }

/* ===================== 周次 Tabs ===================== */
.wk-head {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--r);
  padding: 12px 14px; margin-bottom: 12px;
}
.wk-head .grow { flex: 1; min-width: 220px; }
.wk-tabs-wrap {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--r); padding: 8px 10px; margin-bottom: 14px;
}
.wk-tabs {
  display: flex; gap: 8px; overflow-x: auto; flex: 1;
  padding: 2px 2px 6px; scroll-behavior: smooth;
}
.wk-tabs::-webkit-scrollbar { height: 6px; }
.wk-tabs::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.wk-tab {
  flex: 0 0 auto; min-width: 132px; cursor: pointer; user-select: none;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 10px 12px; transition: all .15s;
  display: flex; flex-direction: column; gap: 4px;
  position: relative;
}
.wk-tab:hover { border-color: var(--brand); background: var(--brand-50); transform: translateY(-1px); }
.wk-tab.active {
  border-color: var(--brand);
  background: linear-gradient(135deg, rgba(24,95,165,.08), rgba(54,144,206,.06));
  box-shadow: 0 0 0 2px rgba(24,95,165,.12), var(--sh-sm);
}
.wk-tab.active::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: -1px;
  height: 3px; background: var(--brand-500);
  border-radius: 2px 2px 0 0;
}
.wk-tab-num { font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: .5px; }
.wk-tab-label { font-weight: 600; color: var(--text); font-size: 13px; }
.wk-tab-meta { display: flex; gap: 4px; flex-wrap: wrap; }
.wk-tab-date { font-size: 11px; color: var(--muted); }
.wk-nav-btn {
  flex: 0 0 auto; width: 32px; height: 32px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-sm);
  cursor: pointer; color: var(--text-2); font-size: 14px;
}
.wk-nav-btn:hover:not(:disabled) { background: var(--brand-50); border-color: var(--brand); color: var(--brand); }
.wk-nav-btn:disabled { opacity: .35; cursor: not-allowed; }
.wk-foot {
  display: flex; gap: 10px; justify-content: space-between; align-items: center;
  margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--border);
}
.wk-empty-card {
  background: var(--bg-soft); border: 2px dashed var(--border);
  border-radius: var(--r); padding: 50px 20px; text-align: center; color: var(--muted);
}
.wk-count-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: var(--r-full);
  background: var(--brand-50); color: var(--brand-700); font-size: 11px; font-weight: 600;
}

/* ===================== 日量化任务清单（金蝶表格风） ===================== */
.days-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 2px 8px; margin-top: 4px;
}
.days-toolbar .muted { font-size: 12px; }
.days-toolbar .act { padding: 6px 14px; }
.days-toolbar .act i { font-style: normal; font-weight: 700; margin-right: 4px; }

.days-tbl-wrap {
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: #fff;
  box-shadow: 0 1px 2px rgba(16,24,40,.04);
  overflow: hidden;
}
table.days-tbl { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
table.days-tbl thead th {
  background: #f5f7fa;
  color: #303133;
  font-weight: 600;
  font-size: 13px;
  text-align: left;
  padding: 10px 10px;
  border-bottom: 2px solid #409eff;
  white-space: nowrap;
  position: sticky; top: 0; z-index: 1;
}
table.days-tbl thead th .req { color: #f56c6c; margin-right: 2px; font-weight: 700; }
table.days-tbl thead th .th-ico {
  display: inline-block; margin-left: 4px;
  width: 14px; height: 14px; line-height: 12px; text-align: center;
  border: 1px solid #67c23a; border-radius: 3px;
  font-size: 0; vertical-align: middle; background: #fff;
  position: relative;
}
table.days-tbl thead th .th-ico::after {
  content: ''; position: absolute;
  left: 3px; top: 1px; width: 5px; height: 8px;
  border-right: 1.5px solid #67c23a; border-bottom: 1.5px solid #67c23a;
  transform: rotate(45deg);
}
table.days-tbl tbody td {
  padding: 8px 10px;
  border-bottom: 1px solid #ebeef5;
  vertical-align: top;
  background: #fff;
  font-size: 13px;
}
table.days-tbl tbody tr:nth-child(even) td { background: #fafbfc; }
table.days-tbl tbody tr:hover td { background: var(--brand-50); }
table.days-tbl tbody tr.row-done td { background: #f0f9eb; }
table.days-tbl tbody tr.row-done:hover td { background: #e1f3d8; }
table.days-tbl tbody tr.row-undone td { background: #fef0f0; }
table.days-tbl tbody tr.row-undone:hover td { background: #fde2e2; }
table.days-tbl tbody tr:last-child td { border-bottom: 1px solid #ebeef5; }

table.days-tbl .cell-inp,
table.days-tbl .cell-sel {
  width: 100%;
  padding: 5px 7px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  font-size: 13px;
  font-family: inherit;
  color: #303133;
  resize: vertical;
  outline: none;
  transition: border-color .14s, background .14s, box-shadow .14s;
  box-sizing: border-box;
  min-height: 30px;
  max-height: 120px;
  line-height: 1.45;
}
table.days-tbl textarea.cell-inp { min-height: 32px; max-height: 110px; }
table.days-tbl .cell-inp:hover,
table.days-tbl .cell-sel:hover { border-color: #c0c4cc; background: #fff; }
table.days-tbl .cell-inp:focus,
table.days-tbl .cell-sel:focus { border-color: #409eff; background: #fff; box-shadow: 0 0 0 2px rgba(64,158,255,.15); }
table.days-tbl .cell-inp::placeholder { color: #c0c4cc; font-size: 12px; }
table.days-tbl .cell-sel { appearance: none; -webkit-appearance: none; padding-right: 18px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='%2390a4ae' d='M5 6L0 0h10z'/></svg>");
  background-repeat: no-repeat; background-position: right 6px center;
}
table.days-tbl .cell-num { text-align: center; font-variant-numeric: tabular-nums; }
table.days-tbl .cell-inp:disabled { background: transparent; color: #606266; font-weight: 600; cursor: default; }

table.days-tbl .row-del {
  width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid transparent; background: transparent;
  color: #c0c4cc; font-size: 16px; line-height: 18px;
  cursor: pointer; transition: all .14s;
  padding: 0;
}
table.days-tbl .row-del:hover { background: #f56c6c; color: #fff; border-color: #f56c6c; }

table.days-tbl tfoot td {
  background: #fdf6ec;
  color: #8a6d3b;
  font-size: 13px;
  padding: 9px 10px;
  border-top: 1px solid #f3dca6;
  border-bottom: none;
  font-weight: 500;
}
table.days-tbl tfoot .ft-lbl { text-align: left; font-weight: 600; color: #8a6d3b; }
table.days-tbl tfoot .ft-num { text-align: center; font-variant-numeric: tabular-nums; font-weight: 700; color: #d9822b; }
table.days-tbl tfoot .ft-pct { text-align: center; color: #d9822b; }
table.days-tbl tfoot .ft-pct b { font-size: 15px; margin-left: 2px; }
table.days-tbl tfoot .ft-remark { color: #8a6d3b; font-size: 12px; }

.days-tbl .time-range { gap: 1px; flex-wrap: nowrap; }
.days-tbl .time-range select { width: 40px; padding: 3px 2px; font-size: 12px; min-width: 0; }
.days-tbl .time-range i { font-size: 11px; padding: 0; }

/* ===== 商务工作台 · 排班表 ===== */
.sc-loading{color:#6b7686;padding:24px 4px;font-size:14px}
.sc-wrap{max-width:100%}
.sc-toolbar{display:flex;flex-wrap:wrap;gap:14px;align-items:center;justify-content:space-between;margin-bottom:12px}
.sc-ym{display:flex;align-items:center;gap:8px;font-size:14px;color:#2a3543}
.sc-ym select{height:38px;border:1px solid #d7dde6;border-radius:9px;padding:0 10px;font-size:14px;background:#fff;outline:none}
.sc-ym select:focus{border-color:#2f6bff;box-shadow:0 0 0 3px rgba(47,107,255,.12)}
.sc-actions{display:flex;gap:10px}
.sc-save{height:38px;padding:0 22px;border:none;border-radius:9px;background:#2f6bff;color:#fff;font-size:14px;font-weight:600;cursor:pointer}
.sc-save:disabled{opacity:.6;cursor:default}
.sc-add-dept{height:38px;padding:0 16px;border:1px solid #d7dde6;border-radius:9px;background:#fff;color:#2a3543;font-size:14px;cursor:pointer}
.sc-add-dept:hover{border-color:#2f6bff;color:#2f6bff}
.sc-legend{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-bottom:10px;font-size:12.5px;color:#5a6675}
.sc-lg{display:inline-flex;align-items:center;justify-content:center;min-width:26px;height:24px;padding:0 7px;border-radius:6px;font-size:12px;font-weight:600;border:1px solid #e3e8ef}
.sc-hint{color:#9aa4b2;margin-left:4px}
.sc-table-scroll{overflow-x:auto;border:1px solid #e7ebf1;border-radius:12px;background:#fff}
.sc-table{border-collapse:collapse;font-size:12.5px;min-width:100%}
.sc-table th,.sc-table td{border:1px solid #eef1f6;padding:0;text-align:center;height:34px;min-width:30px}
.sc-table thead th{background:#f5f7fb;color:#5a6675;font-weight:600;position:sticky;top:0;z-index:2}
.sc-table th small{display:block;font-size:10px;color:#9aa4b2;font-weight:400;line-height:1}
.sc-name{position:sticky;left:0;background:#f5f7fb;z-index:1;text-align:left!important;padding:0 10px!important;white-space:nowrap;min-width:120px!important;font-weight:600;color:#2a3543}
.sc-day.wk{background:#fbf3f2;color:#c0504d}
.sc-cell{padding:0;background:transparent}
.sc-cell.wk{background:#fdf5f4}
.sc-sel{width:100%;height:34px;border:0;outline:0;background:transparent;font:600 12.5px/1 inherit;color:inherit;cursor:pointer;padding:0 6px;text-align:center;text-align-last:center;appearance:none;-webkit-appearance:none;-moz-appearance:none}
.sc-sel::-ms-expand{display:none}
.sc-sel:focus{box-shadow:inset 0 0 0 2px rgba(47,107,255,.55);position:relative;z-index:3}
.sc-sel.st-empty{color:#9aa4b2}
.sc-sel.st-work{background:#e8f7ee;color:#1f9d55}
.sc-sel.st-rest{background:#fff8e1;color:#b8860b}
.sc-sel.st-leave{background:#fdeceb;color:#e0533d}
.sc-sel.st-makeup{background:#fdeaf6;color:#d63384}
.sc-sel.st-out{background:#eaf1ff;color:#2f6bff}
.sc-sel.st-team{background:#f3e8ff;color:#8a4bd6}
.sc-lg.st-work{background:#e8f7ee;color:#1f9d55;border-color:#bfe6cd}
.sc-lg.st-rest{background:#fff8e1;color:#b8860b;border-color:#f0e0a8}
.sc-lg.st-leave{background:#fdeceb;color:#e0533d;border-color:#f5c2ba}
.sc-lg.st-makeup{background:#fdeaf6;color:#d63384;border-color:#f3c2dd}
.sc-lg.st-out{background:#eaf1ff;color:#2f6bff;border-color:#bcd2fb}
.sc-lg.st-team{background:#f3e8ff;color:#8a4bd6;border-color:#dcc7f3}
.sc-sel.st-raw{background:#f0f0f0;color:#555;font-size:10px}
.sc-dept td{background:#eef2f8!important;text-align:left!important;padding:6px 10px!important;font-weight:700;color:#2a3543}
.sc-leave{background:#f5f7fb;font-weight:700;color:#e0533d;min-width:54px!important}
.sc-remark{background:#f5f7fb;color:#5a6675;font-weight:600;min-width:170px!important;position:sticky;right:0;z-index:1}
.sc-remark-input{width:100%;box-sizing:border-box;border:0;outline:0;background:transparent;font:500 12.5px/1.4 inherit;color:#2a3543;padding:6px 8px}
.sc-remark-input:focus{box-shadow:inset 0 0 0 2px rgba(47,107,255,.45);border-radius:4px}
.sc-pname{cursor:pointer;border-bottom:1px dashed #b9c2d0}
.sc-pname:hover{color:#2f6bff}
.sc-mini{margin-left:6px;border:1px solid #e3e8ef;background:#fff;border-radius:6px;font-size:11px;line-height:1;padding:3px 7px;cursor:pointer;color:#6b7686}
.sc-mini:hover{border-color:#e0533d;color:#e0533d}
.sc-add{border:1px dashed #c9d3e0;background:#fbfdff;color:#2f6bff;width:100%;padding:8px;cursor:pointer;font-size:13px;border-radius:8px;margin:4px}
.sc-add:hover{background:#eef4ff}
