/* ============================================================
   FORECAST 2026 — HTML port of the Excel/VBA workbook
   Visual style mimics the original WPS/Excel sheets.
   ============================================================ */
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", Arial, sans-serif;
  font-size: 13px; color: #2a2f3a; background: #f4f6fb;
}
/* dopamine palette: 科技蓝 #3B6FE0 · 薄荷绿 #3FB99A · 暖橙 #FF9A62 */
:root {
  --blue:#3B6FE0; --blue-d:#2f5ed0; --green:#3FB99A; --orange:#FF9A62;
  --ink:#1f2733; --muted:#6b7587; --line:#e7ebf3; --bg:#f4f6fb; --card:#ffffff;
  --sidebar-w:240px; --header-h:64px;
  --radius:16px; --radius-sm:10px;
  --shadow-sm:0 1px 2px rgba(16,24,40,.05), 0 1px 3px rgba(16,24,40,.06);
  --shadow:0 6px 22px rgba(16,24,40,.08);
  --shadow-lg:0 18px 50px rgba(16,24,40,.16);
}

#login-view, #app-view { display:none; }
#login-view.show { display:flex; }
#app-view.show { display:flex; }

/* ============================================================
   v3 商业级后台布局：左侧侧边栏 + 顶部条 + 内容区
   ============================================================ */
#app-view { min-height:100vh; }

/* ---------- 侧边栏（浅色 · 彩色标签 · 轻松解压）---------- */
#sidebar {
  width: var(--sidebar-w); flex: 0 0 var(--sidebar-w);
  background: linear-gradient(180deg,#fcfdff 0%,#f3f6fd 100%);
  border-right:1px solid #e9edf6; color:#5a6577; display:flex; flex-direction:column;
  position:sticky; top:0; height:100vh; z-index:60;
}
.side-brand { display:flex; align-items:center; gap:11px; padding:18px 18px 16px; }
.side-brand .logo {
  width:38px; height:38px; border-radius:12px; flex:0 0 38px;
  background:linear-gradient(135deg,#4C6FFF,#2DC58A); color:#fff;
  display:flex; align-items:center; justify-content:center; font-size:20px; font-weight:800;
  box-shadow:0 6px 14px rgba(76,111,255,.28);
}
.side-brand .brand-tx { line-height:1.25; }
.side-brand .brand-tx b { display:block; font-size:16px; color:#1f2733; letter-spacing:.5px; }
.side-brand .brand-tx span { font-size:11px; color:#9aa3b5; }

#sidenav { flex:1; overflow-y:auto; padding:8px 12px; }
.nav-item {
  display:flex; align-items:center; gap:11px; padding:10px 12px; margin:5px 0;
  border-radius:13px; color:#52607a; font-weight:600; font-size:13.5px;
  cursor:pointer; user-select:none; position:relative; transition:all .16s;
}
.nav-ic-wrap {
  width:32px; height:32px; flex:0 0 32px; border-radius:10px;
  display:flex; align-items:center; justify-content:center;
  color:var(--c1); background:color-mix(in srgb, var(--c1) 14%, #fff); transition:all .16s;
}
.nav-item:hover { background:color-mix(in srgb, var(--c1) 9%, #fff); color:#1f2733; }
.nav-item.active {
  background:linear-gradient(135deg, var(--c1), var(--c2)); color:#fff;
  box-shadow:0 8px 18px color-mix(in srgb, var(--c1) 38%, transparent);
}
.nav-item.active .nav-ic-wrap { background:rgba(255,255,255,.25); color:#fff; }

.side-foot { padding:12px; border-top:1px solid #e9edf6; }
.side-foot .me { display:flex; align-items:center; gap:10px; }
.side-foot .me-tx { line-height:1.3; overflow:hidden; }
.side-foot .me-tx b { display:block; font-size:13px; color:#1f2733; }
.side-foot .me-tx span { font-size:11px; color:#9aa3b5; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.side-foot .caseno { margin-top:9px; font-size:11px; color:#9aa3b5; }
.side-foot .caseno b { color:#2DC58A; }
.avatar {
  width:36px; height:36px; flex:0 0 36px; border-radius:50%;
  background:linear-gradient(135deg,#3FB99A,#5b86e8); color:#fff;
  display:flex; align-items:center; justify-content:center; font-weight:800; font-size:15px;
}
.avatar.sm { width:32px; height:32px; flex:0 0 32px; font-size:13px; }

#side-scrim { display:none; position:fixed; inset:0; background:rgba(16,24,40,.45); z-index:55; }

/* ---------- 主区 ---------- */
#main { flex:1; min-width:0; display:flex; flex-direction:column; }

/* ---------- 顶部条 ---------- */
#topbar {
  height: var(--header-h); flex:0 0 var(--header-h);
  display:flex; align-items:center; gap:14px; padding:0 22px;
  background:#ffffff;
  border-bottom:1px solid var(--line); position:sticky; top:0; z-index:50;
}
.hamb { display:none; background:none; border:none; color:var(--ink); cursor:pointer; padding:4px; border-radius:8px; }
.hamb:hover { background:#eef1f7; }
.back-btn { align-items:center; gap:4px; background:#eef2fb; color:var(--blue); border:none; cursor:pointer;
  font:inherit; font-weight:600; font-size:13px; padding:7px 12px 7px 8px; border-radius:10px; }
.back-btn:hover { background:#e0e8fa; }
.page-title { flex:1; line-height:1.2; }
.page-title b { font-size:18px; color:var(--ink); }
.page-title span { display:block; font-size:11px; color:var(--muted); letter-spacing:.4px; text-transform:uppercase; }
.top-right { display:flex; align-items:center; gap:14px; }
.case-chip { font-size:12px; color:var(--muted); background:#eef2fb; padding:6px 12px; border-radius:20px; white-space:nowrap; }
.case-chip b { color:var(--blue); }

/* 用户下拉 */
.usermenu { position:relative; }
.user-btn { display:flex; align-items:center; gap:9px; background:none; border:1px solid transparent; padding:5px 8px; border-radius:12px; cursor:pointer; color:var(--ink); }
.user-btn:hover { background:#f1f4fa; }
.ub-tx { text-align:left; line-height:1.25; }
.ub-tx b { font-size:13px; }
.ub-tx span { display:block; font-size:11px; color:var(--muted); }
.user-btn .chev { color:var(--muted); transition:transform .2s; }
.usermenu.open .chev { transform:rotate(180deg); }
.menu-pop {
  position:absolute; right:0; top:calc(100% + 8px); min-width:190px;
  background:#fff; border:1px solid var(--line); border-radius:14px; box-shadow:var(--shadow-lg);
  padding:6px; opacity:0; visibility:hidden; transform:translateY(-6px); transition:all .16s; z-index:80;
}
.usermenu.open .menu-pop { opacity:1; visibility:visible; transform:translateY(0); }
.menu-pop a { display:flex; align-items:center; gap:10px; padding:9px 11px; border-radius:9px; font-size:13px; font-weight:600; color:var(--ink); cursor:pointer; }
.menu-pop a:hover { background:#f1f4fa; }
.menu-pop a.danger { color:#d23f3f; }
.menu-pop a.danger:hover { background:#fdecec; }
.menu-sep { height:1px; background:var(--line); margin:5px 4px; }

/* ---------- 内容区 ---------- */
#content { flex:1; overflow-y:auto; padding:24px; }
@media (min-width:1200px){ #content { padding:28px 32px; } }

/* ---------- Sheet container ---------- */
.sheet { display:none; max-width:1480px; margin:0 auto; }
.sheet.active { display:block; animation:fadeUp .28s ease both; }
@keyframes fadeUp { from{opacity:0; transform:translateY(8px);} to{opacity:1; transform:translateY(0);} }

/* ---------- 响应式：窄屏侧栏抽屉化 ---------- */
@media (max-width:900px){
  #sidebar {
    position:fixed; left:0; top:0; height:100vh; transform:translateX(-100%);
    transition:transform .25s ease; box-shadow:var(--shadow-lg);
  }
  #app-view.side-open #sidebar { transform:translateX(0); }
  #app-view.side-open #side-scrim { display:block; }
  .hamb { display:inline-flex; }
  .case-chip { display:none; }
  .ub-tx { display:none; }
  #content { padding:16px; }
}

/* Generic excel-like grid table */
table.xl { border-collapse: collapse; background:#fff; table-layout: fixed; }
table.xl td, table.xl th {
  border: 1px solid #b9c0cc; padding: 2px 5px; vertical-align: middle;
  overflow: hidden; word-break: break-word; white-space: pre-wrap;
}
.lbl { background:#f2f5fa; font-weight:700; text-align:center; }
.lbl-r { text-align:right; }
.title-cell { font-weight:700; text-align:center; }
.center { text-align:center; }
.wrap { white-space: pre-wrap; }

/* inputs inside cells */
.xl input, .xl textarea, .xl select {
  width:100%; border:none; background:transparent; font: inherit; color:inherit;
  padding:2px 3px; resize: none; outline:none;
}
.xl input:focus, .xl textarea:focus, .xl select:focus { background:#fffbe6; }
.xl textarea { display:block; min-height: 100%; }

/* buttons row */
.btnbar { margin: 10px 0; display:flex; flex-wrap:wrap; gap:8px; }
button.xlbtn {
  background:var(--blue); color:#fff; border:none; border-radius:8px;
  padding:8px 16px; font-size:13px; font-weight:600; cursor:pointer;
  box-shadow:0 2px 6px rgba(59,111,224,.25); transition:transform .05s, filter .15s;
}
button.xlbtn:hover { filter:brightness(1.07); }
button.xlbtn:active { transform:translateY(1px); }
button.xlbtn.green { background:var(--green); box-shadow:0 2px 6px rgba(63,185,154,.3); }
button.xlbtn.amber { background:var(--orange); box-shadow:0 2px 6px rgba(255,154,98,.3); }
button.xlbtn.gray  { background:#9aa3b2; box-shadow:none; }
button.xlbtn.silver { background:#5f6a79; color:#fff; box-shadow:inset 0 -2px 0 rgba(0,0,0,.14), 0 2px 6px rgba(95,106,121,.28); }
button.xlbtn.nav   { background:#5b86e8; min-width:64px; }
button.xlbtn.block { display:block; width:100%; margin-top:12px; padding:11px; font-size:14px; }

/* ---------- Home ---------- */
#home-wrap { text-align:center; background:#fff; padding:40px 20px; border:1px solid #c9d2e0; }
#home-wrap h1 { font-size:30px; margin:0; color:#000; white-space:pre-line; }
#home-wrap .yr { font-size:24px; color:#7030A0; margin:14px 0; }
#home-wrap .sys { font-size:22px; color:#0070C0; font-weight:700; margin-bottom:24px; }
.home-info { display:flex; justify-content:center; gap:30px; align-items:center; margin:18px 0 28px; font-size:14px; font-weight:700;}
.home-info label { margin-right:6px; }
.home-info input, .home-info select { font:inherit; padding:4px 8px; border:1px solid #aac; border-radius:4px; }
.home-nav { display:grid; grid-template-columns:repeat(3,minmax(180px,1fr)); gap:16px; max-width:760px; margin:0 auto; }
.home-card {
  background:#4472c4; color:#fff; border-radius:10px; padding:22px 14px;
  font-size:16px; font-weight:700; cursor:pointer; box-shadow:0 2px 6px rgba(0,0,0,.2);
}
.home-card:hover { background:#365aa0; }
.home-card.exp { background:#548235; }
.home-card.exp:hover { background:#436a2a; }
#home-wrap .foot { margin-top:26px; color:#666; font-size:11px; }

/* ---------- Section title bars ---------- */
.sec-title { font-size:16px; font-weight:700; text-align:center; background:#dfe7f3; padding:8px; border:1px solid #b9c0cc; }
.sec-title.big { font-size:22px; }
.qmc-title { font-size:24px; font-weight:700; text-align:center; color:#000; background:#3BCFFF; padding:10px; border:1px solid #2aa8d6; }

/* problem-management center cyan zone */
.qmc { background:#6BDEFF; }
.qmc td { border-color:#4cc2e8; }
.qmc .lbl { background:#6BDEFF; }

/* ---------- Modal (UserForm) ---------- */
.modal-mask {
  display:none; position:fixed; inset:0; background:rgba(0,0,0,.45); z-index:100;
  align-items:flex-start; justify-content:center; overflow:auto; padding:40px 10px;
}
.modal-mask.show { display:flex; }
.modal {
  background:#f0f0f0; border:1px solid #888; border-radius:8px; width:min(960px,96vw);
  box-shadow:0 8px 30px rgba(0,0,0,.4);
}
.modal .mhead { background:#1f3864; color:#fff; padding:10px 14px; font-weight:700; border-radius:8px 8px 0 0; display:flex; justify-content:space-between; }
.modal .mhead .x { cursor:pointer; }
.modal .mbody { padding:14px; }
.form-grid { display:grid; grid-template-columns:auto 1fr auto 1fr; gap:8px 10px; align-items:center; }
.form-grid label { font-weight:600; text-align:right; white-space:nowrap; }
.form-grid input, .form-grid select { padding:5px 7px; border:1px solid #aab; border-radius:4px; font:inherit; width:100%; }
.modal .mfoot { padding:10px 14px; text-align:right; border-top:1px solid #ccc; }

/* search results listbox */
.resultbox { margin-top:12px; max-height:50vh; overflow:auto; border:1px solid #b9c0cc; }
table.resgrid { border-collapse:collapse; width:max-content; min-width:100%; font-size:12px; }
table.resgrid th, table.resgrid td { border:1px solid #d0d6e0; padding:3px 6px; white-space:nowrap; }
table.resgrid th { background:#4472c4; color:#fff; position:sticky; top:0; }
table.resgrid tr.sep td { background:#fff2cc; font-weight:700; }
table.resgrid tr:hover td { background:#eef4ff; }

/* msgbox */
.msg-mask { display:none; position:fixed; inset:0; background:rgba(0,0,0,.35); z-index:200; align-items:center; justify-content:center; }
.msg-mask.show { display:flex; }
.msg { background:#fff; border-radius:8px; min-width:320px; max-width:560px; box-shadow:0 10px 40px rgba(0,0,0,.4); overflow:hidden;}
.msg .mh { padding:10px 16px; font-weight:700; color:#fff; }
.msg .mh.info{background:#2f5597;} .msg .mh.warn{background:#bf8f00;} .msg .mh.err{background:#c00000;} .msg .mh.q{background:#548235;}
.msg .mc { padding:16px; white-space:pre-line; line-height:1.5; }
.msg .mf { padding:10px 16px; text-align:right; background:#f3f3f3; }
.msg .mf button { margin-left:8px; padding:6px 18px; border:none; border-radius:5px; cursor:pointer; font-weight:600; background:#4472c4; color:#fff; }
.msg .mf button.sec { background:#bbb; color:#222; }

.hint { font-size:11px; color:#666; margin:6px 0; }
a.celllink { color:#0000ff; text-decoration:underline; }
.scroll-x { overflow-x:auto; }

/* 独立模块卡片：标题栏（白字居中、统一字号）+ 表体，整体白底圆角阴影立体卡 */
.mod-card { background:#fff; border:1px solid #eef1f6; border-radius:18px; box-shadow:var(--shadow);
  overflow:hidden; margin:0 0 18px; }
.mod-title { background:linear-gradient(135deg,#3B6FE0,#5b86e8); color:#fff !important; text-align:center;
  font-size:16px; font-weight:700; letter-spacing:1px; padding:13px 16px; }
.mod-body { overflow-x:auto; padding:10px 14px 14px; }
.mod-body table.xl { width:100%; }
#content[data-season] .mod-title { background:var(--season-grad); }
html.dark .mod-card { background:#fff; border-color:#eef1f6; }

/* ============ v2: dopamine components ============ */
.sheet { background:transparent; }

/* login */
/* 注意：不要在这里写 display，否则会盖过第 14 行的 display:none，导致登录页一直显示、登录后也挡在最上层。
   可见性统一由 .show 控制（见下方 #login-view.show）。 */
#login-view { min-height:100vh; align-items:center; justify-content:center;
  background:radial-gradient(1200px 600px at 50% -10%, #e7eefc, #f4f6fb); }
#login-view.show { display:flex; }
.login-card { width:380px; max-width:94vw; background:#fff; border-radius:20px;
  box-shadow:0 18px 50px rgba(59,111,224,.18); overflow:hidden; }
.login-title { text-align:center; font-size:20px; font-weight:800; color:#fff; padding:26px 16px 18px;
  background:linear-gradient(135deg,#3B6FE0,#3FB99A); line-height:1.5; }
.login-title span { font-size:15px; font-weight:600; opacity:.95; }
.login-tabs { display:flex; }
.ltab { flex:1; text-align:center; padding:12px; cursor:pointer; font-weight:700; color:#8a94a6; border-bottom:2px solid #eee; }
.ltab.on { color:#3B6FE0; border-bottom-color:#3B6FE0; }
.login-body { padding:20px 22px 8px; }
.login-body label { display:block; font-weight:600; margin:10px 0 4px; color:#555; }
.login-body input { width:100%; padding:10px 12px; border:1px solid #d6deea; border-radius:10px; font:inherit; }
.login-body input:focus { outline:none; border-color:#3B6FE0; box-shadow:0 0 0 3px rgba(59,111,224,.12); }
.login-foot { text-align:center; margin:12px 0 4px; color:#8a94a6; }
.login-foot a { color:#3B6FE0; cursor:pointer; }
.login-tip { font-size:11px; color:#9aa3b2; padding:6px 22px 20px; line-height:1.5; }
.link-sent { margin-top:14px; padding:12px; background:#eef7f4; border-radius:10px; font-size:13px; text-align:center; }

/* home */
#home-wrap { text-align:center; background:#fff; padding:30px 20px 36px; border:none;
  border-radius:18px; box-shadow:0 10px 30px rgba(59,111,224,.08); max-width:920px; margin:18px auto; }
#home-wrap h1 { font-size:26px; color:#222; margin:0; }
#home-wrap .sys { font-size:18px; color:#3B6FE0; font-weight:700; margin:8px 0 18px; }
.welcome { margin:0 auto 16px; }
.wl-name { font-size:20px; font-weight:800; color:#2a2f3a; }
.wl-sub { color:#7a8294; margin-top:4px; }
.role-pill { font-size:12px; background:#eaf0fd; color:#3B6FE0; padding:2px 10px; border-radius:20px; margin-left:6px; vertical-align:middle; }
.enc-card { max-width:620px; margin:0 auto 22px; background:#fbfdff; border:2px solid #3B6FE0; border-radius:16px; padding:18px; }
.enc-tag { display:inline-block; color:#fff; font-weight:700; padding:4px 14px; border-radius:20px; margin-bottom:10px; }
.enc-text { font-size:15px; color:#3a4250; margin-bottom:12px; }
.enc-meta { font-size:12px; color:#8a94a6; margin-top:8px; }
.home-nav { display:grid; grid-template-columns:repeat(3,minmax(180px,1fr)); gap:14px; max-width:760px; margin:8px auto 0; }
.home-card { background:linear-gradient(135deg,#3B6FE0,#5b86e8); color:#fff; border-radius:14px; padding:22px 14px;
  font-size:16px; font-weight:700; cursor:pointer; box-shadow:0 6px 16px rgba(59,111,224,.22); transition:transform .08s, filter .15s; }
.home-card:hover { filter:brightness(1.06); transform:translateY(-2px); }
.home-card.exp { background:linear-gradient(135deg,#3FB99A,#56c7ab); box-shadow:0 6px 16px rgba(63,185,154,.25); }
.home-card.dash { background:linear-gradient(135deg,#FF9A62,#ffb184); box-shadow:0 6px 16px rgba(255,154,98,.25); }
#home-wrap .foot { margin-top:24px; color:#9aa3b2; font-size:12px; }

/* progress bar */
.pbar { position:relative; height:18px; background:#eef1f6; border-radius:10px; overflow:hidden; min-width:120px; }
.pbar.wide { max-width:420px; margin:0 auto; height:22px; }
.pbar-fill { height:100%; border-radius:10px; transition:width .4s; }
.pbar span { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-size:11px; font-weight:700; color:#37414f; }

/* status badge（其他页面如看板/业务活动管理仍用药丸标签）*/
.badge { display:inline-block; color:#fff; font-weight:700; font-size:12px; padding:2px 10px; border-radius:20px; }

/* dashboard */
.dash-ctrl { display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin:12px 0; }
.dash-ctrl select { padding:7px 10px; border:1px solid #d6deea; border-radius:8px; font:inherit; background:#fff; }
.dash-sum { background:#f1ecfc; border-radius:12px; padding:12px 16px; margin-bottom:12px; font-size:14px; }
table.dash { border-collapse:separate; border-spacing:0; width:max-content; min-width:100%; background:#fff; border-radius:12px; overflow:hidden; box-shadow:0 4px 14px rgba(0,0,0,.06); }
table.dash th { background:#6a5fa0; box-shadow:inset 0 -2px 0 rgba(0,0,0,.14); color:#fff; padding:10px 12px; font-weight:700; white-space:nowrap; text-align:center; }
/* 高管看板表标题：沉稳的雅紫色（实色、有质感，不用渐变）*/
.dash-cap { background:#6a5fa0; color:#fff; text-align:center;
  font-weight:700; font-size:15px; letter-spacing:1px; padding:11px 14px; border-radius:14px;
  box-shadow:inset 0 -2px 0 rgba(0,0,0,.14), 0 4px 14px rgba(106,95,160,.28); margin:2px 0 12px; }
table.dash td { padding:9px 12px; border-bottom:1px solid #eef1f6; white-space:nowrap; text-align:center; }
table.dash tr.top td { background:#f6f2fe; }

/* misc */
.lastedit { font-size:12px; color:#8a94a6; margin:4px 2px 10px; }
.robanner { background:#fff3e8; color:#c2660a; border:1px solid #ffd9b8; border-radius:10px; padding:8px 12px; margin:0 0 10px; font-weight:600; }
td.ro { background:#fafbfd; color:#6b7280; }
.sec-title { border-radius:10px 10px 0 0; }
.sec-title.big { border-radius:12px; }
input[readonly], .xl input[readonly] { color:#6b7280; }

/* ============================================================
   v4 · 登录页（左图右窗，科技感背景） / 首页日历 / 季节主题
   ============================================================ */

/* ---------- 登录：左右分栏 ---------- */
#login-view { padding:0 !important; align-items:stretch !important; }
.login-split { display:flex; width:100%; min-height:100vh; }

/* 左侧品牌区（CSS 科技背景，无外网依赖） */
.login-hero {
  flex:0 0 62%; position:relative; overflow:hidden; color:#fff;
  background:linear-gradient(135deg,#0a1b46 0%,#143476 46%,#2a4ea6 100%);
  display:flex; flex-direction:column; justify-content:center; padding:6vw;
}
.hero-grid { position:absolute; inset:0;
  background-image:linear-gradient(rgba(255,255,255,.07) 1px,transparent 1px),
                   linear-gradient(90deg,rgba(255,255,255,.07) 1px,transparent 1px);
  background-size:42px 42px;
  -webkit-mask-image:radial-gradient(120% 100% at 30% 30%, #000 40%, transparent 85%);
          mask-image:radial-gradient(120% 100% at 30% 30%, #000 40%, transparent 85%); }
.hero-glow { position:absolute; inset:0; pointer-events:none;
  background:
    radial-gradient(420px 420px at 18% 22%, rgba(63,185,154,.40), transparent 60%),
    radial-gradient(520px 520px at 85% 80%, rgba(91,134,232,.45), transparent 60%),
    radial-gradient(300px 300px at 75% 15%, rgba(255,154,98,.25), transparent 60%);
  filter:blur(8px); animation:heroFloat 14s ease-in-out infinite alternate; }
@keyframes heroFloat { from{transform:translate3d(0,0,0) scale(1);} to{transform:translate3d(0,-14px,0) scale(1.06);} }
.hero-content { position:relative; z-index:2; max-width:560px; }
.hero-logo { width:96px; height:96px; display:flex; align-items:center; justify-content:center;
  margin-bottom:18px; background:none; box-shadow:none; border-radius:0; padding:0;
  filter:drop-shadow(0 8px 22px rgba(0,0,0,.35)); }
.hero-logo svg { width:100%; height:100%; }
.hero-content h1 { font-size:clamp(26px,3.2vw,42px); margin:0 0 4px; letter-spacing:2px; font-weight:800; }
.hero-en { font-size:clamp(11px,1.15vw,14px); color:#8aa0d0; letter-spacing:1px; margin:0 0 18px; font-weight:600; }
.hero-sub { font-size:clamp(13px,1.3vw,17px); color:#a9bbe4; letter-spacing:1px; margin:0 0 28px; }
.hero-feats { list-style:none; padding:0; margin:0; }
.hero-feats li { position:relative; padding-left:26px; margin:12px 0; font-size:15px; color:#dbe6fb; }
.hero-feats li::before { content:"✓"; position:absolute; left:0; top:-1px; width:18px; height:18px; border-radius:50%;
  background:rgba(63,185,154,.9); color:#06243a; font-size:12px; font-weight:800; display:flex; align-items:center; justify-content:center; }
.hero-foot { position:absolute; left:6vw; bottom:28px; z-index:2; font-size:12px; color:#7e93c4; }

/* 右侧登录区：整列白色铺满，顶部品牌 / 中间表单 / 底部版权 */
.login-panel { flex:1; min-width:0; background:#fff;
  display:flex; flex-direction:column; justify-content:space-between;
  padding:40px clamp(28px,4vw,64px); }
.lp-brand { display:flex; align-items:center; gap:12px; font-weight:800; color:#1f2733; font-size:15px; }
.lp-logo { width:32px; height:32px; flex:0 0 32px; border-radius:9px; color:#fff; font-size:17px; font-weight:800;
  display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg,#3FB99A,#5b86e8); }
.lp-mark { width:46px; height:46px; flex:0 0 46px; display:flex; align-items:center; justify-content:center; }
.lp-mark svg { width:100%; height:100%; }
.lp-name { display:flex; flex-direction:column; line-height:1.25; }
.lp-name b { font-size:16px; color:#1f2733; font-weight:800; letter-spacing:.5px; }
.lp-name i { font-style:normal; font-size:10px; color:#8a94a6; letter-spacing:.2px; margin-top:1px; }
/* 表单块：水平居中、垂直由 space-between 居中；不再是带阴影的浮动小卡片 */
.login-card { width:100%; max-width:400px; margin:0 auto; background:transparent; box-shadow:none; border-radius:0; overflow:visible; }
.login-welcome { padding:0 2px 10px; }
.login-welcome b { display:block; font-size:26px; color:#1f2733; }
.login-welcome span { font-size:14px; color:#8a94a6; }
.lp-foot { text-align:center; color:#9aa3b2; font-size:12px; }
.login-tip { display:none; }

/* 表单元素稍放大，撑起空间、更耐看 */
.login-body label { margin-top:16px; }
.login-body input { padding:13px 14px; font-size:14px; }
.login-card .xlbtn.block { padding:14px; font-size:15px; margin-top:18px; }
.login-tabs { margin-top:18px; }
.ltab { padding:14px; }

/* 窄屏：隐藏左图，登录列满屏 */
@media (max-width:860px){
  .login-hero { display:none; }
  .login-panel { flex:1 0 100%; }
}

/* ---------- 首页：日历 + 日记 ---------- */
.home2 { max-width:1180px; margin:0 auto; }
.welcome-strip { background:linear-gradient(120deg,#3B6FE0,#3FB99A); color:#fff;
  border-radius:18px; padding:18px 22px; box-shadow:0 8px 24px rgba(59,111,224,.18);
  display:flex; flex-wrap:wrap; align-items:center; gap:10px 26px; margin-bottom:18px; }
.ws-hi { font-size:18px; flex:1 1 auto; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; } .ws-hi b { font-size:20px; }
.ws-quote { font-size:15px; font-weight:500; opacity:.94; }
.welcome-strip .role-pill { background:rgba(255,255,255,.22); color:#fff; }
.ws-meta { font-size:13px; opacity:.92; }
.ws-prog { margin-left:auto; display:flex; flex-direction:column; gap:4px; min-width:300px; }
.ws-prog > span { font-size:12px; opacity:.9; }
.ws-prog .pbar { background:rgba(255,255,255,.25); }
.ws-prog .pbar-fill { background:#fff; }
.ws-prog .pbar span { color:#1f2733; }
.ws-prog small { font-size:11px; opacity:.9; }
.ws-prog-head { display:flex; justify-content:space-between; align-items:baseline; gap:14px; font-size:12px; opacity:.95; }
.ws-caseno { white-space:nowrap; }
.ws-caseno b { font-weight:700; }
.ws-foot { display:flex; justify-content:space-between; align-items:baseline; gap:12px; }
.ws-dept { font-size:11px; opacity:.9; white-space:nowrap; text-align:right; }

.cal-layout { display:grid; grid-template-columns:1.5fr 1fr; gap:18px; align-items:start; }
@media (max-width:820px){ .cal-layout { grid-template-columns:1fr; } }

.cal-card, .day-card { background:#fff; border-radius:18px; box-shadow:var(--shadow); padding:18px; }
.cal-head { display:flex; align-items:center; gap:10px; margin-bottom:12px; }
.cal-title { font-size:18px; font-weight:800; color:#1f2733; }
.cal-nav { width:32px; height:32px; border:none; border-radius:9px; background:#eef2fb; color:#3B6FE0; font-size:18px; cursor:pointer; }
.cal-nav:hover { background:#e0e8fa; }
.cal-today { margin-left:auto; border:none; background:#3B6FE0; color:#fff; padding:6px 14px; border-radius:9px; cursor:pointer; font-weight:600; font-size:12px; }
.cal-today:hover { filter:brightness(1.06); }
.cal-grid { display:grid; grid-template-columns:repeat(7,1fr); gap:8px; }
.cal-wk { text-align:center; font-size:12px; font-weight:700; color:#8a94a6; padding:4px 0; }
.cal-wk.we { color:#FF6FA5; }
.cal-cell { position:relative; min-height:84px; border-radius:14px; background:#f6f8fc; cursor:pointer;
  display:flex; flex-direction:column; align-items:stretch; padding:7px 8px; overflow:hidden;
  transition:transform .08s, box-shadow .15s, background .15s; }
.cal-cell:hover { background:#eef2fb; transform:translateY(-2px); box-shadow:0 6px 16px rgba(16,24,40,.08); }
.cal-cell.empty { background:transparent; cursor:default; box-shadow:none; transform:none; }
.cal-cell .cal-d { font-size:14px; font-weight:700; color:#37414f; align-self:flex-end; line-height:1; }
.cal-cell.we { background:#fbf7fb; }
.cal-cell.we .cal-d { color:#c76591; }
.cal-cell.has { background:#fff; box-shadow:inset 0 0 0 1px #eef1f6; }
.cal-note { margin-top:6px; font-size:11px; line-height:1.35; color:#37414f; font-weight:600;
  background:color-mix(in srgb, var(--nc) 14%, #fff); color:var(--nc);
  border-left:3px solid var(--nc); border-radius:5px; padding:3px 6px;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; word-break:break-all; }
.cal-cell.today { background:#eaf0fd; box-shadow:inset 0 0 0 2px #4C6FFF; }
.cal-cell.today .cal-d { color:#4C6FFF; }
.cal-cell.sel { background:linear-gradient(135deg,#4C6FFF,#7C9BFF); box-shadow:0 8px 20px rgba(76,111,255,.32); }
.cal-cell.sel .cal-d { color:#fff; }
.cal-cell.sel .cal-note { background:rgba(255,255,255,.22); color:#fff; border-left-color:rgba(255,255,255,.7); }

.day-head { display:flex; align-items:baseline; gap:10px; margin-bottom:10px; }
.day-head b { font-size:20px; color:#1f2733; }
.day-head span { font-size:13px; color:#8a94a6; }
.day-lbl { display:block; font-weight:700; color:#55606f; margin:12px 0 6px; font-size:13px; }
.day-ta { width:100%; border:1px solid #dde3ee; border-radius:12px; padding:10px 12px; font:inherit; resize:vertical;
  min-height:70px; outline:none; background:#fbfcfe; }
.day-ta.tall { min-height:130px; }
.day-ta:focus { border-color:#3B6FE0; box-shadow:0 0 0 3px rgba(59,111,224,.12); background:#fff; }
.day-foot { display:flex; align-items:center; gap:14px; margin-top:14px; }
.day-foot .xlbtn.block { width:auto; min-width:120px; margin-top:0; }
.day-saved { color:#3FB99A; font-weight:700; font-size:13px; }

/* ---------- 季节横幅 + 主题配色 ---------- */
.season-banner { display:flex; align-items:center; gap:14px; padding:14px 20px; border-radius:16px;
  margin:0 auto 18px; max-width:1480px; box-shadow:var(--shadow-sm); }
.season-banner .sb-ico { font-size:26px; }
.season-banner .sb-tx b { font-size:17px; display:block; }
.season-banner .sb-tx i { font-style:normal; font-size:12px; opacity:.8; letter-spacing:1px; }
.season-spring { background:linear-gradient(120deg,#e7f7f0,#d2efe2); color:#1d6b53; }
.season-summer { background:linear-gradient(120deg,#fff1e3,#ffe1c6); color:#a85a1c; }
.season-autumn { background:linear-gradient(120deg,#ffe6f0,#ffd0e2); color:#a83e6e; }
.season-winter { background:linear-gradient(120deg,#e9f0fc,#d6e5fb); color:#274d99; }
/* 差旅"办公室"下拉：缩短、与文字同处一行 */
.office-sel { display:inline-block; width:auto; min-width:56px; padding:4px 8px !important;
  margin-right:6px; vertical-align:middle; }
#content[data-season] .xl select.office-sel { width:auto; padding:4px 8px; }
.season-daylight  { background:linear-gradient(120deg,#fff6df,#ffeec2); color:#8a5b12; }
.season-moonlight { background:linear-gradient(120deg,#edeff8,#dde1f1); color:#343f78; }
.season-time      { background:linear-gradient(120deg,#e3f7fa,#ccecf1); color:#0b6e78; }

/* 订单汇总中心的子表标题（小标题）：浅橙 + 深字，与主标题"年度订单汇总中心"明显区分 */
#content[data-season=summer] div.sec-title.osc-sub { background:#ffd9b8; color:#a85a1c; }
/* 业务活动管理：第 2、3 个模块为副标题——浅色底 + 深字（主模块仍是强色渐变）*/
#content[data-season=spring] .mod-title.sub { background:#d0efe0; color:#1d6b53 !important; box-shadow:none; }
/* 厂商资料维护：产品价格表单为副标题——浅蓝底 + 深字 */
#content[data-season=winter] .sec-title.big.sub { background:#cfe0f7; color:#274d99; box-shadow:none; }

/* 预测清单/高管看板纳入季节体系：表头用主题"深色"实色（无渐变、有质感），
   大标题与表标题用主题渐变，汇总/高亮行用主题浅色 —— 与春夏秋冬完全同一套规则。 */
#content[data-season] .fc-th { background:var(--season-deep); }
/* 高管看板：表标题(深)与表头(浅)互换——标题比表头深 */
#content[data-season] table.dash th { background:var(--season-accent); }
#content[data-season] .dash-cap { background:var(--season-deep);
  box-shadow:inset 0 -2px 0 rgba(0,0,0,.10), 0 4px 14px var(--season-ring); }
#content[data-season] .dash-sum { background:var(--season-tint); }
#content[data-season] table.dash tr.top td { background:var(--season-tint); }

/* 每个季节的主题变量（重点色 / 浅底 / 聚焦光圈 / 渐变） */
#content[data-season=spring] { --season-accent:#2fa985; --season-tint:#eef8f3; --season-ring:rgba(47,169,133,.16); --season-grad:linear-gradient(135deg,#37b390,#5bc9aa); --season-deep:#1d6b53; }
#content[data-season=summer] { --season-accent:#ef7d3e; --season-tint:#fff4ec; --season-ring:rgba(239,125,62,.16); --season-grad:linear-gradient(135deg,#ff944d,#ffb072); --season-deep:#a85a1c; }
/* 差旅申请改用淡粉色主题（避免与订单汇总中心的橙黄撞色，并与左侧导航的粉色一致）*/
#content[data-season=autumn] { --season-accent:#e85f97; --season-tint:#fff0f6; --season-ring:rgba(232,95,151,.18); --season-grad:linear-gradient(135deg,#ff6fa5,#ff9cc2); --season-deep:#9c2f5f; }
#content[data-season=winter] { --season-accent:#3163d4; --season-tint:#eef3fd; --season-ring:rgba(49,99,212,.16); --season-grad:linear-gradient(135deg,#3b6fe0,#6aa0e8); --season-deep:#274d99; }
/* 预测清单 = 日光色（暖阳金）；高管看板 = 月光色（清辉靛蓝）。与四季同属一套体系。 */
#content[data-season=daylight]  { --season-accent:#d99a1f; --season-tint:#fff7e0; --season-ring:rgba(217,154,31,.18); --season-grad:linear-gradient(135deg,#eea523,#f7c656); --season-deep:#8a5b12; }
#content[data-season=moonlight] { --season-accent:#5b6aa8; --season-tint:#eef0f8; --season-ring:rgba(91,106,168,.18); --season-grad:linear-gradient(135deg,#525f9e,#8794c8); --season-deep:#343f78; }
#content[data-season=time]      { --season-accent:#0fa3b1; --season-tint:#e9f8fa; --season-ring:rgba(15,163,177,.18); --season-grad:linear-gradient(135deg,#15b5c9,#5fd2de); --season-deep:#0b6e78; }

/* ============================================================
   v5 · 中间四页表格现代化（仅 data-season 页生效；不动首页/预测清单/看板）
   设计：去网格线 → 卡片化 + 柔和分隔；标签胶囊化；输入聚焦光圈；标题渐变
   ============================================================ */
/* 工具栏：浮起的卡片条 */
#content[data-season] .btnbar { background:#fff; border-radius:14px; padding:11px 14px;
  box-shadow:var(--shadow-sm); margin:0 0 16px; gap:10px; }
#content[data-season] .btnbar .xlbtn { box-shadow:none; border-radius:10px; padding:9px 15px; }
#content[data-season] .btnbar .xlbtn:not(.green):not(.amber):not(.gray) { background:var(--season-accent); }
#content[data-season] .btnbar .xlbtn.nav { background:#5b86e8; color:#fff; }
#content[data-season] .btnbar .xlbtn.nav:hover { background:#446fd0; color:#fff; }

/* 表格容器卡片化 */
#content[data-season] .scroll-x { background:#fff; border-radius:18px; box-shadow:var(--shadow);
  padding:8px 10px 12px; }
#content[data-season] table.xl { border-collapse:separate; border-spacing:0;
  width:100% !important; min-width:720px; background:transparent; }
#content[data-season] table.xl td { border:none; border-bottom:1px solid #eef1f6;
  padding:9px 12px; vertical-align:middle; font-size:13px; color:var(--ink); }

/* 标签单元格：浅季节底 + 重点色文字，像字段名而非数据格 */
#content[data-season] .xl .lbl { background:var(--season-tint); color:var(--season-deep);
  font-weight:600; font-size:12.5px; white-space:nowrap; text-align:left; letter-spacing:.3px; }
#content[data-season] .xl .lbl.lbl-r { text-align:right; }

/* 输入框：无边框柔底，聚焦时季节光圈 */
#content[data-season] .xl input,
#content[data-season] .xl textarea,
#content[data-season] .xl select { border:1px solid #e7ebf3; border-radius:9px; padding:7px 10px;
  background:#fbfcfe; font:inherit; color:var(--ink); transition:border-color .15s, box-shadow .15s, background .15s; }
#content[data-season] .xl input:hover,
#content[data-season] .xl textarea:hover,
#content[data-season] .xl select:hover { background:#f4f7fc; }
#content[data-season] .xl input:focus,
#content[data-season] .xl textarea:focus,
#content[data-season] .xl select:focus { background:#fff; border-color:var(--season-accent);
  box-shadow:0 0 0 3px var(--season-ring); outline:none; }
#content[data-season] .xl input[readonly] { background:#f4f5f8; color:#8a94a6; border-color:#eef1f6; }
/* 单选/复选保持原生外观，去掉上面输入框样式带来的边框/内边距/光圈/过渡 —— 否则悬停/聚焦会触发重绘与滚动条抖动 */
#content[data-season] .xl input[type=radio],
#content[data-season] .xl input[type=checkbox] { appearance:auto; -webkit-appearance:auto; width:13px; height:13px; min-width:0; flex:none;
  border:none; border-radius:0; padding:0; margin:0; background:none; box-shadow:none; transition:none; }
#content[data-season] .xl input[type=radio]:hover, #content[data-season] .xl input[type=radio]:focus,
#content[data-season] .xl input[type=checkbox]:hover, #content[data-season] .xl input[type=checkbox]:focus { background:none; box-shadow:none; border:none; outline:none; }

/* 预测清单子表：强制纯表格——覆盖上面季节主题给输入框加的圆角/边框/底色，让每个单元格就是干净的方格，内容整格显示不裁切 */
/* 季节主题给 td 加了 9px 12px 内边距，与输入框自身的内边距重复、白白挤窄列宽；这里去掉横向内边距（保留纵向行高），让列宽能完整放下内容 */
#content[data-season] table.fc-grid td { padding:9px 0; }
#content[data-season] table.fc-grid td input,
#content[data-season] table.fc-grid td select,
#content[data-season] table.fc-grid td textarea {
  border:none; border-radius:0; background:transparent; box-shadow:none;
  width:100%; min-width:0; padding:7px 8px; }
#content[data-season] table.fc-grid td select.statussel { -webkit-appearance:none; -moz-appearance:none; appearance:none; }
#content[data-season] table.fc-grid td input:focus,
#content[data-season] table.fc-grid td select:focus,
#content[data-season] table.fc-grid td textarea:focus {
  background:#eef4ff; border:none; border-radius:0; box-shadow:none; outline:none; }
#content[data-season] table.fc-grid td input[readonly] { background:transparent; color:#6b7280; border:none; }

/* 区块大标题：季节渐变横幅 + 白字 */
#content[data-season] .sec-title { border-left:none; }
#content[data-season] .sec-title.big { background:var(--season-grad); color:#fff; border:none;
  font-size:16px; letter-spacing:1px; padding:12px 16px; border-radius:12px;
  box-shadow:0 6px 16px rgba(16,24,40,.12); text-align:center; margin-top:6px; }
#content[data-season] .sec-title:not(.big) { background:var(--season-tint); color:var(--season-deep);
  border:none; border-radius:10px; }

/* 问题管理中心：把刺眼青色换成柔和季节面板 */
#content[data-season] .qmc-title { background:var(--season-grad); color:#fff; border:none;
  border-radius:12px; font-size:18px; letter-spacing:1px; box-shadow:0 6px 16px rgba(16,24,40,.12); }
#content[data-season] .qmc { background:var(--season-tint); }
#content[data-season] .qmc td { border-color:transparent; }
#content[data-season] .xl .qmc.lbl { background:#fff; }

/* 行内分隔更轻；区块标题行去掉下边线 */
#content[data-season] table.xl tr:last-child td { border-bottom:none; }

/* 只读横幅 / 上次编辑 行，融入卡片风格 */
#content[data-season] .lastedit { margin:0 0 14px; }

/* ---------- 按钮：统一形状 + 主操作醒目 + 工具栏分组 ---------- */
.btnbar .xlbtn { white-space:nowrap; display:inline-flex; align-items:center; gap:6px; }
.btnbar .bb-sp { flex:1 1 auto; }            /* 弹性占位：把后面的"上一条/下一条"推到最右 */
button.xlbtn.primary { background:linear-gradient(135deg,#3B6FE0,#5b86e8); color:#fff;
  box-shadow:0 4px 14px rgba(59,111,224,.32); }
button.xlbtn.primary:hover { filter:brightness(1.06); }
/* 季节页里，主操作按钮用该季节渐变；其余非彩色按钮用季节重点色 */
#content[data-season] .btnbar .xlbtn.primary { background:var(--season-grad);
  box-shadow:0 4px 14px var(--season-ring); }
#content[data-season] .btnbar .xlbtn:not(.green):not(.amber):not(.gray):not(.primary):not(.nav) {
  background:var(--season-accent); }

/* ---------- 登录：用户名 + 固定邮箱后缀 ---------- */
.input-suffix { display:flex; align-items:stretch; border:1px solid #d6deea; border-radius:10px;
  overflow:hidden; background:#fff; transition:border-color .15s, box-shadow .15s; }
.input-suffix:focus-within { border-color:#3B6FE0; box-shadow:0 0 0 3px rgba(59,111,224,.12); }
.input-suffix input { flex:1; min-width:0; border:none !important; border-radius:0 !important;
  box-shadow:none !important; }
.input-suffix input:focus { box-shadow:none !important; }
.input-suffix .suffix { display:flex; align-items:center; padding:0 12px; background:#f1f4fa;
  color:#6b7587; font-size:13px; white-space:nowrap; border-left:1px solid #e7ebf3; }

/* ---------- 厂商资料维护：分页表格 ---------- */
/* 子表统一卡片化：白底 + 圆角 + 阴影，做出与"业务活动管理"一致的立体卡片效果 */
.grid-wrap { max-height:60vh; overflow:auto; border:1px solid #eef1f6; border-radius:18px;
  background:#fff; box-shadow:var(--shadow); }
table.vendor-grid { border-collapse:separate; border-spacing:0; width:100%; min-width:760px; }
table.vendor-grid td { border:none; border-bottom:1px solid #eef1f6; border-right:1px solid #f1f4f9; padding:0; }
table.vendor-grid tr:first-child td { position:sticky; top:0; z-index:2; }
table.vendor-grid .lbl.center { background:#3B6FE0; color:#fff; font-weight:600; padding:9px 8px; font-size:12.5px; white-space:nowrap; }
table.vendor-grid input { width:100%; min-width:96px; border:none; background:transparent; padding:9px 10px; font:inherit; outline:none; }
table.vendor-grid input:focus { background:#eef4ff; }
table.vendor-grid tr:nth-child(even of :not(:first-child)) td { background:#fbfcfe; }
/* 子表（厂商资料 / 订单汇总）内容与表头一律居中显示 */
table.vendor-grid td { text-align:center; }
table.vendor-grid input { text-align:center; }
/* 季节页里 .xl .lbl 被设成了左对齐，这里用更高优先级把子表表头拉回居中 */
#content[data-season] table.vendor-grid .lbl.center,
#content[data-season] table.vendor-grid td { text-align:center; }
#content[data-season] table.vendor-grid input { text-align:center; }
/* 数据网格(vendor-grid)输入框：扁平填满整格、去掉季节圆角，避免被容器圆角/横向滚动裁成"半个框"；
   表单类输入框仍保留圆角。整洁的电子表格观感。 */
#content[data-season] table.vendor-grid td:not(.lbl) { padding:0; }   /* 只压平数据格；表头(.lbl)保留内边距，否则吸顶表头变矮、筛选行 top 偏移错位、第一行被遮成半行 */
#content[data-season] table.vendor-grid input { border:none; border-radius:0; background:transparent; padding:9px 10px; box-shadow:none; }
/* 客户资料维护页（用户要求）：子表标题、表头字体更大，表头更高。仅限本页，不影响其他子表。*/
#sheet-cust .sec-title.osc-sub { font-size:19px; padding:11px 14px; }
#sheet-cust table.vendor-grid .lbl.center { font-size:15px; padding:15px 10px; }
#content[data-season] table.vendor-grid input:hover { background:#f4f7fc; }
#content[data-season] table.vendor-grid input:focus { background:#eef4ff; border:none; border-radius:0; box-shadow:none; }
.grid-foot { display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin:10px 0 22px; }
.grid-foot .xlbtn.green { box-shadow:none; }
.pager { display:flex; align-items:center; gap:5px; flex-wrap:wrap; margin-left:auto; }
.pg-num, .pg-nav, .pg-go { min-width:30px; height:30px; border:1px solid var(--line); background:#fff; color:var(--ink);
  border-radius:8px; cursor:pointer; font:inherit; font-size:13px; padding:0 8px; }
.pg-num:hover, .pg-nav:hover:not([disabled]), .pg-go:hover { background:#eef2fb; border-color:#cdd9f0; }
.pg-num.on { background:var(--blue); color:#fff; border-color:var(--blue); font-weight:700; }
.pg-nav[disabled] { opacity:.4; cursor:default; }
.pg-dot { padding:0 4px; color:var(--muted); }
.pg-jump { display:flex; align-items:center; gap:5px; font-size:12px; color:var(--muted); margin-left:6px; }
.pg-jump input { width:54px; height:30px; border:1px solid var(--line); border-radius:8px; padding:0 8px; font:inherit; }

/* ---------- 预测清单：可读表头 + 列筛选 + 记录计数 ---------- */
/* 预测清单的滚动容器同样卡片化（白底 + 圆角 + 阴影）*/
#sheet-list .scroll-x { background:#fff; border:1px solid #eef1f6; border-radius:18px; box-shadow:var(--shadow); }
table.fc-grid { border-collapse:separate; border-spacing:0; }
table.fc-grid td, table.fc-grid th { border:1px solid #e3e8f0; }
.fc-th { background:#5f6a79; box-shadow:inset 0 -2px 0 rgba(0,0,0,.12); color:#fff; font-weight:700; font-size:12px;
  white-space:normal; word-break:break-word; line-height:1.3; padding:8px 6px; text-align:center;
  vertical-align:middle; position:sticky; top:0; z-index:3; min-width:78px; }
tr.fc-filter th { position:sticky; top:54px; z-index:2; background:#eceef2; padding:3px; }
.col-filter { width:100%; border:1px solid #d6deea; border-radius:6px; padding:3px 6px; font-size:11px;
  background:#fff; outline:none; }
.col-filter:focus { border-color:#3B6FE0; box-shadow:0 0 0 2px rgba(59,111,224,.15); }
/* 差旅·花费明细：发票文件拖放区 */
.exp-drop { display:flex; flex-direction:column; align-items:center; gap:3px; padding:4px 2px; border:1px dashed #c9d4ea; border-radius:8px; }
.exp-drop.drag { border-color:#3B6FE0; background:#eef3ff; }
.exp-drop .exp-fname { font-size:11px; color:#3a4a63; word-break:break-all; text-align:center; line-height:1.25; }
/* 预测清单列宽拖动手柄（表头右侧竖条） */
.fc-th .col-resizer { position:absolute; top:0; right:0; width:8px; height:100%; cursor:col-resize; user-select:none; touch-action:none; }
.fc-th .col-resizer:hover { background:rgba(255,255,255,.4); }
table.fc-grid td { padding:0; }
table.fc-grid td input { width:100%; min-width:78px; border:none; background:transparent; padding:7px 8px; font:inherit; outline:none; }
table.fc-grid td input:focus { background:#eef4ff; }
/* 进展阶段：纯表格风格——剥掉下拉框原生外观（否则系统会画出灰色圆角控件框＝“药丸”），
   做成与其它单元格一致的纯文字方格；只用文字颜色区分状态 */
table.fc-grid td select.statussel { width:100%; min-width:0; border:none; border-radius:0; background:transparent;
  -webkit-appearance:none; -moz-appearance:none; appearance:none;
  padding:7px 8px; font:inherit; outline:none; cursor:pointer; box-shadow:none; }
table.fc-grid td select.statussel::-ms-expand { display:none; }
table.fc-grid td select.statussel:focus { background:#eef4ff; }
table.fc-grid td .fc-status { display:block; padding:7px 8px; white-space:nowrap; }
table.fc-grid td.ro { padding:7px 8px; color:#6b7280; background:#fafbfd; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:200px; cursor:pointer; }
table.fc-grid tr.fc-row:nth-child(odd)  td { background:#ffffff; }
table.fc-grid tr.fc-row:nth-child(even) td { background:#eef3fb; }   /* 双行更明显的浅蓝灰，看着不累 */
table.fc-grid tr.fc-row:hover td { background:#e3ecfb; }
/* 选中整行：高亮底色（覆盖隔行/悬停），左右拖动滚动条时也能盯住同一行 */
table.fc-grid tr.fc-row.fc-on td { background:#fff3cf !important; box-shadow:inset 0 -1px 0 #f0d98a, inset 0 1px 0 #f0d98a; }
/* 最左"选中"列 */
table.fc-grid th.fc-sel-th { background:#5f6a79; }
table.fc-grid tr.fc-filter th.fc-sel-th { background:#eceef2; }
table.fc-grid td.fc-sel { text-align:center; padding:0; }
table.fc-grid td.fc-sel .rowsel { width:24px; height:24px; line-height:22px; padding:0; margin:0 auto; border:1px solid #c4ccda;
  border-radius:50%; background:#fff; color:#9aa3b2; font-size:13px; cursor:pointer; display:block; }
table.fc-grid td.fc-sel .rowsel:hover { border-color:#3B6FE0; color:#3B6FE0; }
table.fc-grid td.fc-sel .rowsel.on { background:#f0b429; border-color:#dd9b04; color:#fff; font-weight:700; }
.rec-count { margin:10px 2px 4px; font-size:13px; color:var(--muted); }
.rec-count b { color:var(--blue); }

/* 厂商表：列筛选行 + 计数在脚 */
table.vendor-grid tr.vg-filter td { position:sticky; top:40px; z-index:1; background:#eef2fb; padding:3px; border-bottom:1px solid #dbe3f1; }
.vg-flt { width:100%; min-width:80px; border:1px solid #d6deea; border-radius:6px; padding:3px 6px; font-size:11px; background:#fff; outline:none; }
.vg-flt:focus { border-color:#3B6FE0; box-shadow:0 0 0 2px rgba(59,111,224,.15); }
.grid-foot .rec-count { margin:0; }

/* OSC 子表：固定高度 + 右侧滚动条（约3-4行）*/
.osc-wrap { max-height:228px; overflow:auto; margin-bottom:4px; }
.osc-wrap table.vendor-grid tr:first-child td { position:sticky; top:0; z-index:2; }

/* 行操作（删除/插入）按钮 */
.row-act { white-space:nowrap; text-align:center; }
.ra-del, .ra-ins { width:24px; height:24px; border:none; border-radius:7px; cursor:pointer; font-size:15px; font-weight:700; line-height:1; margin:0 2px; }
.ra-del { background:#fde8e8; color:#d23f3f; }
.ra-del:hover { background:#f9d2d2; }
.ra-ins { background:#e6f5ee; color:#1f9d6b; }
.ra-ins:hover { background:#d2eede; }

/* 首页：日程提醒卡 */
.remind-card { background:#fff; border-radius:18px; box-shadow:var(--shadow); padding:18px 20px; margin-bottom:18px; }
.rm-head { display:flex; align-items:baseline; justify-content:space-between; margin-bottom:12px; }
.rm-head b { font-size:16px; color:var(--ink); }
.rm-head span { font-size:12px; color:var(--muted); }
.rm-list { display:flex; flex-wrap:nowrap; gap:10px; overflow-x:auto; padding-bottom:6px; }
.rm-item { display:flex; align-items:center; gap:10px; cursor:pointer; padding:9px 13px; border-radius:12px;
  background:color-mix(in srgb, var(--rc) 9%, #fff); border-left:4px solid var(--rc);
  flex:0 0 auto; min-width:210px; max-width:300px; transition:transform .08s, box-shadow .15s; }
.rm-item:hover { transform:translateY(-2px); box-shadow:0 6px 16px rgba(16,24,40,.08); }
.rm-when { font-size:12px; font-weight:800; color:var(--rc); white-space:nowrap; min-width:54px; }
.rm-when.today { background:var(--rc); color:#fff; padding:2px 9px; border-radius:20px; }
.rm-text { font-size:13px; color:#37414f; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.rm-empty { text-align:center; color:#8a94a6; font-size:14px; padding:14px; line-height:1.8; }
.rm-empty span { font-size:12px; color:#aab2c0; }

/* 差旅花费明细：固定高度可滚动 */
.exp-wrap { max-height:320px; overflow:auto; }
/* 必填项红色星号 */
.req-star { color:#e5484d; font-weight:700; margin-left:2px; }
/* 业务活动管理 — 多选（需工程部支援等）：勾选项横向排列、自动换行 */
.multi-box { display:flex; flex-wrap:wrap; gap:5px 16px; padding:5px 6px; }
.multi-chk { display:inline-flex; align-items:center; gap:4px; white-space:nowrap; cursor:pointer; font-size:13.5px; }
.multi-chk input { margin:0; }
.multi-other { display:inline-flex; align-items:center; }
.multi-other-input { font-size:13px; padding:3px 8px; border:1px solid #cfd6e4; border-radius:6px; min-width:170px; }
/* 花费明细 数值格式输入框：去掉上下小箭头，保持整格填满居中 */
.exp-wrap input[type=number]::-webkit-outer-spin-button,
.exp-wrap input[type=number]::-webkit-inner-spin-button { -webkit-appearance:none; margin:0; }
.exp-wrap input[type=number] { -moz-appearance:textfield; appearance:textfield; }
.exp-wrap tr:first-child td, .exp-sum td { position:sticky; }
.exp-wrap tr:first-child td { top:0; z-index:2; }
.exp-sum td { bottom:0; z-index:2; background:#eef7f4; font-weight:700; }

/* ============================================================
   夜间模式 (html.dark)
   ============================================================ */
.theme-btn { background:#eef2fb; border:none; color:#3B6FE0; width:36px; height:36px; border-radius:10px;
  display:inline-flex; align-items:center; justify-content:center; cursor:pointer; }
.theme-btn:hover { background:#e0e8fa; }

html.dark { --ink:#e6ecf5; --muted:#9aabc2; --line:#2c3a4f; --bg:#0f1722; --card:#1a2433;
  --shadow:0 6px 22px rgba(0,0,0,.45); --shadow-sm:0 1px 3px rgba(0,0,0,.4); --shadow-lg:0 18px 50px rgba(0,0,0,.6); }
html.dark, html.dark body { background:#0f1722; color:#e6ecf5; }
html.dark #content { background:#0f1722; }
html.dark .theme-btn { background:#243246; color:#ffd05b; }
html.dark .theme-btn:hover { background:#2c3a4f; }

/* 顶部条 / 侧栏 */
html.dark #topbar { background:#141d2a; border-bottom-color:#243246; }
html.dark .page-title b { color:#e6ecf5; }
html.dark .hamb, html.dark .back-btn { color:#bcd; }
html.dark .back-btn { background:#243246; color:#7fa8ff; }
html.dark .case-chip { background:#243246; color:#9aabc2; }
html.dark .case-chip b { color:#7fa8ff; }
html.dark .user-btn { color:#e6ecf5; }
html.dark .user-btn:hover { background:#243246; }
html.dark .menu-pop { background:#1a2433; border-color:#2c3a4f; }
html.dark .menu-pop a { color:#e6ecf5; }
html.dark .menu-pop a:hover { background:#243246; }
html.dark #sidebar { background:linear-gradient(180deg,#141d2a,#0f1722); border-right-color:#243246; }
html.dark .side-brand .brand-tx b { color:#fff; }
html.dark .nav-item { color:#b7c4d8; }
html.dark .nav-item:hover { background:rgba(255,255,255,.06); color:#fff; }
html.dark .nav-ic-wrap { background:rgba(255,255,255,.07); }
html.dark .side-foot { border-top-color:#243246; }
html.dark .side-foot .me-tx b { color:#fff; }

/* 卡片类容器 */
html.dark .cal-card, html.dark .day-card, html.dark .remind-card, html.dark .grid-wrap,
html.dark #home-wrap, html.dark .login-card, html.dark .modal, html.dark .msg,
html.dark .resultbox, html.dark .scroll-x { background:#1a2433; }
html.dark .login-panel { background:#0f1722; }
html.dark .lp-brand, html.dark .lp-foot { color:#9aabc2; }
html.dark .lp-name b { color:#e6ecf5; }
html.dark .lp-name i { color:#9aabc2; }
html.dark .login-welcome b { color:#e6ecf5; }
html.dark .hint, html.dark .lastedit, html.dark .rec-count, html.dark .day-head span { color:#8aa0bd; }

/* 通用输入 */
html.dark input, html.dark textarea, html.dark select { color:#e6ecf5; background:#222e40; border-color:#2c3a4f; }
html.dark input::placeholder, html.dark textarea::placeholder { color:#6f8198; }
html.dark .login-body input, html.dark .input-suffix, html.dark .day-ta,
html.dark .form-grid input, html.dark .form-grid select { background:#222e40; border-color:#2c3a4f; color:#e6ecf5; }
html.dark .input-suffix .suffix { background:#2a3850; color:#9aabc2; border-left-color:#34435c; }

/* excel 风表格 —— 夜间模式下子表保持"原色"（浅底深字），不做黑色穿插，
   外层卡片是深色外壳，里面的数据子表像一张张浅色卡片，字体为深色更清晰。 */
/* 子表容器恢复浅底，使浅色子表与外壳之间形成干净的卡片框 */
html.dark .grid-wrap, html.dark .scroll-x, html.dark .osc-wrap, html.dark .exp-wrap {
  background:#fff; border-color:#e3e8f0; }

html.dark table.xl { background:#fff; }
html.dark table.xl td, html.dark table.xl th { border-color:#eef1f6; color:#1f2733; }
html.dark .lbl { background:#f2f5fa; color:#1f2733; }
html.dark table.vendor-grid .lbl.center { background:#3B6FE0; color:#fff; }
html.dark .xl input, html.dark .xl textarea, html.dark .xl select { background:transparent; color:#1f2733; }
html.dark .xl input:focus, html.dark .xl textarea:focus, html.dark .xl select:focus { background:#eef4ff; }
html.dark table.vendor-grid td { border-color:#eef1f6; }
html.dark table.vendor-grid input { color:#1f2733; }
html.dark table.vendor-grid input:focus { background:#eef4ff; }
html.dark table.vendor-grid tr:nth-child(even of :not(:first-child)) td { background:#fbfcfe; }
html.dark .vg-filter td, html.dark table.vendor-grid tr.vg-filter td,
html.dark tr.fc-filter th { background:#eef2fb; border-bottom-color:#dbe3f1; }
html.dark .vg-flt, html.dark .col-filter { background:#fff; border-color:#d6deea; color:#1f2733; }

/* 预测清单网格（同样保持浅底深字） */
html.dark table.fc-grid { background:#fff; }
html.dark table.fc-grid td, html.dark table.fc-grid th { border-color:#e3e8f0; color:#1f2733; }
html.dark table.fc-grid td input { color:#1f2733; }
html.dark table.fc-grid td input:focus { background:#eef4ff; }
html.dark table.fc-grid tr.fc-row:nth-child(odd)  td { background:#ffffff; }
html.dark table.fc-grid tr.fc-row:nth-child(even) td { background:#eef3fb; }
html.dark table.fc-grid tr.fc-row:hover td { background:#e3ecfb; }
html.dark table.fc-grid tr.fc-row.fc-on td { background:#fff3cf !important; }

/* 季节页（业务活动/订单汇总/差旅/厂商均为季节页）夜间模式修正：
   季节样式把 table.xl 设成 background:transparent，且文字用 var(--ink)（夜间是浅色），
   于是在深色 #content 上整张表透出黑底、浅字。这里用更高优先级把子表强制成
   "浅底深字"，与白天一致——彻底消除黑底/黑色穿插。 */
html.dark #content[data-season] table.xl,
html.dark #content[data-season] table.dash { background:#fff !important; }
html.dark #content[data-season] table.xl td,
html.dark #content[data-season] table.xl th { color:#1f2733; border-bottom-color:#eef1f6; }
html.dark #content[data-season] .xl input,
html.dark #content[data-season] .xl textarea,
html.dark #content[data-season] .xl select { color:#1f2733; background:#fbfcfe; }
html.dark #content[data-season] .xl input:focus,
html.dark #content[data-season] .xl textarea:focus,
html.dark #content[data-season] .xl select:focus { background:#fff; }
html.dark #content[data-season] .xl input[readonly] { background:#f4f5f8; color:#8a94a6; }
/* 预测清单子表（暗色）：同样保持纯透明方格，不要填充底色/圆角/边框 */
html.dark #content[data-season] table.fc-grid td input,
html.dark #content[data-season] table.fc-grid td select,
html.dark #content[data-season] table.fc-grid td textarea { background:transparent; border:none; border-radius:0; box-shadow:none; }
html.dark #content[data-season] table.fc-grid td input:focus,
html.dark #content[data-season] table.fc-grid td select:focus { background:#eef4ff; }
/* 子表（vendor-grid）奇/偶行都保持浅色，偶行轻条纹 */
html.dark #content[data-season] table.vendor-grid tr:nth-child(even of :not(:first-child)) td { background:#fbfcfe; }
html.dark #content[data-season] .grid-wrap,
html.dark #content[data-season] .osc-wrap,
html.dark #content[data-season] .exp-wrap,
html.dark #content[data-season] .scroll-x { background:#fff; }

/* 区块标题（非季节页保持渐变；普通 sec-title 暗化） */
html.dark .sec-title:not(.big) { background:#26344a; color:#cdd9ea; }
html.dark #content:not([data-season]) .sec-title { background:#26344a; color:#cdd9ea; }

/* 首页日历 */
html.dark .cal-cell { background:#222e40; }
html.dark .cal-cell .cal-d { color:#cdd9ea; }
html.dark .cal-cell:hover { background:#2a3850; }
html.dark .cal-cell.has { background:#1f2a3b; box-shadow:inset 0 0 0 1px #2c3a4f; }
html.dark .cal-cell.we { background:#241f2b; }
html.dark .cal-wk { color:#8aa0bd; }

/* 仪表盘 —— 子表保持浅底深字，表头蓝色不变 */
html.dark table.dash { background:#fff; box-shadow:none; }
html.dark table.dash td { border-bottom-color:#eef1f6; color:#1f2733; }
html.dark table.dash tr.top td { background:#f6f2fe; }
html.dark .dash-sum { background:#f1ecfc; color:#1f2733; }
html.dark .dash-ctrl select { background:#222e40; border-color:#2c3a4f; color:#e6ecf5; }

/* 弹窗 */
html.dark .msg .mc { color:#e6ecf5; }
html.dark .msg .mf { background:#141d2a; }
html.dark .modal .mbody { color:#e6ecf5; }
html.dark .form-grid label, html.dark .login-body label, html.dark .day-lbl { color:#bcd; }

/* 分页/灰按钮 */
html.dark .pg-num, html.dark .pg-nav, html.dark .pg-go, html.dark .pg-jump input { background:#222e40; border-color:#34435c; color:#e6ecf5; }
html.dark .cal-nav { background:#26344a; color:#7fa8ff; }
html.dark button.xlbtn.gray { background:#33405680; color:#cdd9ea; }
html.dark .ra-del { background:#3a2030; color:#ff8aa3; }

/* ===== 修改清单新增样式 ===== */
/* 厂商搜索结果：两张子表分组显示 */
.res-sub { margin-bottom:14px; }
.res-sub-h { font-weight:700; color:#3B6FE0; margin:6px 0; padding-left:4px; border-left:3px solid #3B6FE0; }
html.dark .res-sub-h { color:#7fa8ff; border-left-color:#7fa8ff; }

/* 订单汇总中心：年份选择 + 标题 */
.osc-titlebar { display:flex; align-items:center; justify-content:center; gap:12px; margin:6px 0; flex-wrap:wrap; }
.osc-year-sel { padding:6px 12px; border-radius:10px; border:1px solid #c9d4ea; background:#eef3ff; font-weight:700; color:#3B6FE0; cursor:pointer; }
html.dark .osc-year-sel { background:#222e40; border-color:#34435c; color:#7fa8ff; }

/* CDA 自动同步的只读编号/案号 */
input.ro-sync { background:#f1f4f9; color:#5a6577; cursor:not-allowed; }
html.dark input.ro-sync { background:#1f2a3b; color:#8aa0bd; }

/* 差旅“查看所有”可点选行 */
.ta-pick:hover { background:#eef3ff; }
html.dark .ta-pick:hover { background:#26344a; }
