/* ======================================================================
 * 全站日历组件样式（2026-10-09 九项反馈第 6 条），配合 public/js/calendar.js（Core.calendar）
 * 沿用 app.css 的变量（--brand / --border / --text-*）和卡片语言（圆角 14–18px、淡投影）。
 * 节假日配色和日期组件一致：中国偏红、哈国偏蓝、调休上班琥珀色「班」。
 * ====================================================================== */
/* 批 R R1-6（2026-10-19）：格线、月外日期、周末、表头加深，Mac 屏上一眼分得清格子（共用：工作台 / 人事 / 年视图一起变深） */
:root {
  --vc-line: #dde3ec;
  --vc-line-2: #e6ebf2;
  --vc-we: #f3f6fa;
  --vc-out-tx: #a3aec0;
  --vc-hd-bg: #f5f7fb;
  --vc-cn: #e11d48; --vc-cn-bg: #fff1f3; --vc-cn-bd: #fecdd3; --vc-cn-strong: #ffd9df;
  --vc-kz: #0284c7; --vc-kz-bg: #eaf5fd; --vc-kz-bd: #bae6fd; --vc-kz-strong: #cfeafc;
  --vc-ban: #b45309; --vc-ban-bg: #fdf0c8;
}
.vc {
  --vc-hd-h: 30px; --vc-lane-h: 21px; --vc-more-h: 19px; --vc-week-h: 106px;
  --vc-spad: 5px; --vc-slane-h: 26px;
  position: relative; background: #fff; color: var(--text); font-size: 13px;
  border: 1px solid #e6ebf2; border-radius: 16px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 28px -18px rgba(15, 23, 42, .22);
}
.vc.vc-bare { border: 0; border-radius: 0; box-shadow: none; background: transparent; }
/* fill：撑满父容器（父容器需有确定高度或是 flex 子项），周行平分剩余高度 */
.vc.vc-fill { height: 100%; flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
.vc-fill > .vc-bd { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; overflow: auto; }   /* 容器比 6 行最小高度还矮时，主体滚动、图例不被裁掉 */
.vc-fill > .vc-bd > .vc-main { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
.vc-fill .vc-weeks { flex: 1 1 auto; }
.vc-fill .vc-sscroll, .vc-fill .vc-ygrid { flex: 1 1 auto; overflow: auto; }
.vc button { font: inherit; }

/* ---------- 头部 ---------- */
.vc-hd { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--vc-line); flex-wrap: wrap; background: #fff; }
.vc-navs { display: inline-flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: #fff; flex: none; }
.vc-nav { width: 32px; height: 30px; display: grid; place-items: center; border: 0; background: transparent; cursor: pointer; color: var(--text-2); padding: 0; transition: background .12s, color .12s; }
.vc-nav + .vc-nav { border-left: 1px solid var(--border); }
.vc-nav:hover { background: var(--blue-bg); color: var(--brand); }
.vc-nav:focus-visible, .vc-btn:focus-visible, .vc-title:focus-visible, .vc-seg button:focus-visible { outline: 2px solid var(--brand-light); outline-offset: 1px; }
.vc-nav svg { width: 16px; height: 16px; }
.vc-title {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 0; border-radius: 9px; background: transparent; cursor: pointer;
  font-size: 17px !important; font-weight: 650; color: var(--text); letter-spacing: .2px; font-variant-numeric: tabular-nums; white-space: nowrap;
  transition: background .12s;
}
.vc-title:hover, .vc-title.dp-open { background: #f1f5f9; }
.vc-title .vc-caret { display: inline-grid; place-items: center; width: 16px; height: 16px; color: var(--text-3); transition: transform .15s; }
.vc-title .vc-caret svg { width: 14px; height: 14px; }
.vc-title.dp-open .vc-caret { transform: rotate(180deg); }
.vc-title.static { cursor: default; }
.vc-title.static:hover { background: transparent; }
.vc-btn {
  height: 30px; padding: 0 14px; border-radius: 15px; border: 1px solid var(--border); background: #fff; cursor: pointer;
  font-size: 12.5px !important; color: var(--text-2); white-space: nowrap; transition: border-color .12s, color .12s, background .12s;
}
.vc-btn:hover { border-color: var(--brand); color: var(--brand); background: var(--blue-bg); }
.vc-sp { flex: 1; min-width: 8px; }
.vc-seg { display: inline-flex; gap: 2px; padding: 2px; background: #eef2f7; border-radius: 10px; flex: none; }
.vc-seg button { border: 0; background: transparent; font-size: 12.5px !important; color: var(--text-2); padding: 4px 12px; border-radius: 8px; cursor: pointer; white-space: nowrap; transition: background .12s, color .12s; }
.vc-seg button:hover { color: var(--text); }
.vc-seg button.on { background: #fff; color: var(--brand); font-weight: 600; box-shadow: 0 1px 2px rgba(15, 23, 42, .14); }
.vc-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vc-tools:empty { display: none; }

/* ---------- 加载进度（顶部细条） ---------- */
.vc-bd { position: relative; }
.vc-busy { position: absolute; left: 0; right: 0; top: 0; height: 2px; overflow: hidden; z-index: 8; opacity: 0; pointer-events: none; transition: opacity .2s; }
.vc.vc-loading .vc-busy { opacity: 1; transition-delay: .15s; }
.vc-busy::after { content: ''; position: absolute; top: 0; bottom: 0; left: -30%; width: 30%; background: linear-gradient(90deg, transparent, var(--brand), transparent); animation: vc-busy 1.1s linear infinite; }
@keyframes vc-busy { from { left: -30%; } to { left: 100%; } }

/* ---------- 月格 ---------- */
/* 容器比 560px 还窄（抽屉里、小屏）时月格横向滚动，不把周六周日裁掉 */
.vc-month > .vc-bd { overflow-x: auto; scrollbar-width: thin; scrollbar-color: #cbd5e1 transparent; }
.vc-month .vc-main { min-width: 560px; }
.vc-wds { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--vc-hd-bg); border-bottom: 1px solid var(--vc-line); }
.vc-wd { padding: 8px 12px; font-size: 12px; font-weight: 600; color: var(--text-2); letter-spacing: .3px; }
.vc-wd.we { color: var(--text-3); }
.vc-weeks { display: grid; grid-auto-rows: minmax(var(--vc-week-h), 1fr); }
.vc-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); position: relative; border-bottom: 1px solid var(--vc-line); }
.vc-week:last-child { border-bottom: 0; }
.vc-cell { container: vc-cell / inline-size; grid-row: 1 / -1; position: relative; min-width: 0; padding: 4px 8px 0 6px; border-right: 1px solid var(--vc-line); cursor: pointer; background: #fff; transition: background-color .12s; }
.vc-cell.c7 { border-right: 0; }
.vc-cell.we { background: var(--vc-we); }
.vc-cell.out { background: #f4f6f9; }
.vc-cell.out.we { background: #f4f6f9; }
.vc-cell.hcn { background: var(--vc-cn-bg); }
.vc-cell.hkz { background: var(--vc-kz-bg); }
.vc-cell.hcn.hkz { background: linear-gradient(135deg, var(--vc-cn-bg) 0 50%, var(--vc-kz-bg) 50% 100%); }
.vc-cell::after { content: ''; position: absolute; inset: 0; background: rgba(30, 64, 175, .035); opacity: 0; pointer-events: none; transition: opacity .12s; }
.vc-cell:hover::after { opacity: 1; }
.vc-ch { display: flex; align-items: center; gap: 4px; height: calc(var(--vc-hd-h) - 4px); min-width: 0; }
.vc-num { display: inline-flex; align-items: center; gap: 2px; flex: none; font-size: 13px; font-weight: 600; color: #334155; font-variant-numeric: tabular-nums; }
.vc-num b { min-width: 24px; height: 24px; padding: 0 3px; box-sizing: border-box; border-radius: 12px; display: inline-grid; place-items: center; font-weight: 600; }
.vc-num em { font-style: normal; font-size: 11.5px; font-weight: 500; color: var(--text-3); padding: 0 1px; }
.vc-cell.we .vc-num { color: #64748b; }
.vc-cell.out .vc-num, .vc-cell.out .vc-num em { color: var(--vc-out-tx); }
.vc-cell.hcn .vc-num { color: #be123c; }
.vc-cell.hkz .vc-num { color: #0369a1; }
.vc-cell.out.hcn .vc-num, .vc-cell.out.hkz .vc-num { opacity: .55; }
.vc-cell.today .vc-num b { background: var(--brand); color: #fff; box-shadow: 0 3px 8px rgba(30, 64, 175, .32); }
.vc-ban { flex: none; font-size: 10px; line-height: 16px; padding: 0 5px; border-radius: 5px; background: var(--vc-ban-bg); color: var(--vc-ban); font-weight: 700; font-style: normal; }
/* 页面徽章（计划日历的 ✓2 / !1）不缩；只有比整格还宽时才截 */
.vc-dx { display: inline-flex; align-items: center; gap: 3px; flex: none; max-width: calc(100% - 30px); overflow: hidden; }
.vc-dx > * { flex: none; }
.vc-hn { margin-left: auto; min-width: 0; max-width: 64%; display: flex; flex-direction: column; align-items: flex-end; font-size: 11px; line-height: 13px; font-weight: 600; cursor: help; }
.vc-hn > span { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vc-hn .r-cn { color: var(--vc-cn); }
.vc-hn .r-kz { color: var(--vc-kz); }
.vc-cell.out .vc-hn { opacity: .6; }
/* 窄格子（≤140px：计划日历两栏布局 1366 屏约 108px、1920 屏约 139px）——2026-10-09 评审 mike-9：
 *   · 不写「10 月」月份前缀（标题栏已有月份），给徽章让位；徽章（✓11 逾16）不再被截；
 *   · 头部可换行：既有节日名又有徽章的格子 → 第一行「日期 … 节日名」，第二行徽章；节日名放不下时省略号收尾（悬停看全名）；
 *   · 头部换成两行的那一周，头部行加高（见下方 vc-weeks 容器查询），事件条整体下移，不会压住第二行。 */
@container vc-cell (max-width: 140px) {
  .vc-ch { margin: 0 -4px 0 -2px; gap: 3px; flex-wrap: wrap; align-content: flex-start; row-gap: 2px; }   /* 窄格子收一点内边距（容器查询改不了格子本身，只能改里面的头部） */
  .vc-num em { display: none; }
  .vc-dx { max-width: calc(100% - 27px); }
  .vc-dx:has(> :nth-child(3)) { max-width: 100%; }   /* 三个徽章放不下就整组换到第二行，不截 */
  .vc-dx:has(+ .vc-hn) { order: 2; flex-basis: 100%; max-width: 100%; }   /* 有节日名：徽章单独占第二行 */
  .vc-hn { flex: 1 1 auto; min-width: 0; max-width: calc(100% - 27px); overflow: hidden; }
  .vc-ch:has(.vc-dx) .vc-hn { flex-direction: row; align-items: center; justify-content: flex-end; gap: 4px; }
  .vc-hn > span { flex: 0 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
/* 特别窄的格子（≤84px，抽屉 / 小窗）：不换行，节日名一律缩成彩色圆点（悬停看全名） */
@container vc-cell (max-width: 84px) {
  .vc-ch { flex-wrap: nowrap; }
  .vc-dx, .vc-dx:has(> :nth-child(3)) { max-width: calc(100% - 30px); }
  .vc-dx:has(+ .vc-hn) { order: 0; flex-basis: auto; max-width: calc(100% - 30px); }
  .vc-ch .vc-hn, .vc-ch:has(.vc-dx) .vc-hn { flex: none; flex-direction: row; align-items: center; gap: 3px; }
  .vc-hn > span { width: 7px; height: 7px; border-radius: 50%; font-size: 0; background: currentColor; }
}
/* 头部换两行的周（格子 84–140px，对应月格总宽约 694–1085px）：这一周的日期头部行从 30px 加高到 48px。
 * 只在「一定要两行」时加高（复核：1920 屏三个徽章一行放得下，那一周也被加高、留出一条空白）——
 * 按月格宽度分档，档内把徽章固定放到第二行，加高的那一行总有内容；档外徽章留在第一行，不加高。
 * 档位按两位数徽章量出来（✓88 逾88 88 最宽）：一行需要的宽度 = 日期 24 + 间距 3 +（「班」20 + 3）+ 徽章组宽；头部宽 ≈ 月格总宽 / 7 − 9，档位再留 1–2px 余量 */
.vc-month .vc-weeks { container: vc-weeks / inline-size; }
@container vc-weeks (min-width: 694px) and (max-width: 1085px) {
  /* 节日名 + 徽章（徽章本来就单独占第二行）；「班」+ 三个徽章（两位数时整档都放不下） */
  .vc-week:has(.vc-dx + .vc-hn), .vc-week:has(.vc-ban + .vc-dx > :nth-child(3)) { --vc-hd-h: 48px; }
  .vc-ban + .vc-dx:has(> :nth-child(3)) { order: 2; flex-basis: 100%; max-width: 100%; }
}
@container vc-weeks (min-width: 694px) and (max-width: 940px) {
  /* 三个徽章（一行最多要 123px）、「班」+ 两个徽章（最多要 120px）：月格 ≤ 940px（1366 屏约 755px）时放第二行；更宽（1920 屏约 1070px）一行放得下，不加高 */
  .vc-week:has(.vc-dx > :nth-child(3)), .vc-week:has(.vc-ban + .vc-dx > :nth-child(2)) { --vc-hd-h: 48px; }
  .vc-dx:has(> :nth-child(3)), .vc-ban + .vc-dx:has(> :nth-child(2)) { order: 2; flex-basis: 100%; max-width: 100%; }
}
@container vc-weeks (min-width: 694px) and (max-width: 750px) {
  /* 两个两位数徽章（最多要 97px）：只有月格比 1366 屏还窄（≤ 750px）时才放第二行，免得被截（主区最小 1200px，计划日历目前到不了这一档，留作保险） */
  .vc-week:has(.vc-dx > :nth-child(2)) { --vc-hd-h: 48px; }
  .vc-dx:has(> :nth-child(2)) { order: 2; flex-basis: 100%; max-width: 100%; }
}

/* 事件条：左 3px 色条 + 浅底；跨天 = 连续横条（首段左圆角、末段右圆角、中间平接） */
:where(.vc-ev, .vc-di, .vc-sw.ev) { --vc-ev: #3b82f6; --vc-ev-bg: #eef4ff; --vc-ev-tx: #1e40af; }   /* 默认色（零优先级，色调类 / 行内颜色可覆盖） */
.vc-t-plan { --vc-ev: #3b82f6; --vc-ev-bg: #eef4ff; --vc-ev-tx: #1e40af; }
.vc-t-done { --vc-ev: #cbd5e1; --vc-ev-bg: #f3f5f8; --vc-ev-tx: #94a3b8; }
.vc-t-overdue { --vc-ev: #ef4444; --vc-ev-bg: #fef1f1; --vc-ev-tx: #b91c1c; }
.vc-t-leave { --vc-ev: #f59e0b; --vc-ev-bg: #fff6e5; --vc-ev-tx: #92400e; }
.vc-t-field { --vc-ev: #14b8a6; --vc-ev-bg: #eafbf7; --vc-ev-tx: #0f766e; }
.vc-t-legal { --vc-ev: #8b5cf6; --vc-ev-bg: #f4f1ff; --vc-ev-tx: #6d28d9; }
.vc-ev {
  position: relative; z-index: 2; align-self: center; min-width: 0; height: calc(var(--vc-lane-h) - 3px); margin: 0 5px; padding: 0 7px 0 6px;
  display: flex; align-items: center; gap: 4px; overflow: hidden; white-space: nowrap; cursor: pointer;
  font-size: 11.5px; line-height: 1; border-radius: 5px; border-left: 3px solid var(--vc-ev);
  background: var(--vc-ev-bg); color: var(--vc-ev-tx); transition: box-shadow .12s, filter .12s;
}
.vc-ev:hover { box-shadow: 0 2px 8px rgba(15, 23, 42, .14); filter: saturate(1.2) brightness(.98); z-index: 3; }
.vc-ev .vc-et { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.vc-ev .vc-tm { flex: none; opacity: .72; font-variant-numeric: tabular-nums; font-weight: 600; }
.vc-ev .vc-cont { opacity: .55; margin-right: 3px; }
.vc-t-done .vc-et { text-decoration: line-through; }
.vc-ev.vc-span { background: var(--vc-ev-bg); box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .02); }
.vc-ev.vc-span:not(.h) { margin-left: 0; border-left-width: 0; padding-left: 8px; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.vc-ev.vc-span:not(.t) { margin-right: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.vc-ev.dim { opacity: .5; }
.vc-more {
  z-index: 2; align-self: center; justify-self: start; max-width: calc(100% - 10px); margin: 0 5px; padding: 0 7px; border-radius: 5px;
  font-size: 11px; line-height: 17px; font-weight: 600; color: var(--text-2); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: background .12s, color .12s;
}
.vc-more:hover { background: #e8eef7; color: var(--brand); }
.vc-selbox { grid-row: 1 / -1; z-index: 4; pointer-events: none; margin: 1px 2px 1px 1px; border: 2px solid var(--brand); border-radius: 7px; box-shadow: 0 0 0 3px rgba(30, 64, 175, .1); }

/* ---------- 图例（底栏） ---------- */
.vc-ft { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; padding: 9px 16px; border-top: 1px solid var(--vc-line); background: var(--vc-hd-bg); font-size: 12px; color: var(--text-2); }
.vc-ft:empty { display: none; }
.vc-lg { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.vc-lg b { color: var(--text); font-weight: 600; }
.vc-sw { display: inline-block; width: 16px; height: 11px; border-radius: 3px; flex: none; }
.vc-sw.hcn { background: var(--vc-cn-bg); box-shadow: inset 0 0 0 1px var(--vc-cn-bd); }
.vc-sw.hkz { background: var(--vc-kz-bg); box-shadow: inset 0 0 0 1px var(--vc-kz-bd); }
.vc-sw.we { background: var(--vc-we); box-shadow: inset 0 0 0 1px var(--vc-line); }
.vc-sw.today { width: 11px; height: 11px; border-radius: 50%; background: var(--brand); }
.vc-sw.ev { background: var(--vc-ev-bg); border-left: 3px solid var(--vc-ev); border-radius: 2px 3px 3px 2px; }
.vc-ft-r { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; }

/* ---------- 「当天」抽屉（Core.drawer 里，经 modularize 分卡） ---------- */
.vc-dhero { display: flex; align-items: center; gap: 14px; }
.vc-dbig { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; font-weight: 700; color: var(--brand); background: var(--blue-bg); box-shadow: inset 0 0 0 1px #dbe7fb; font-variant-numeric: tabular-nums; }
.vc-dbig.today { background: var(--brand); color: #fff; box-shadow: 0 6px 14px rgba(30, 64, 175, .3); }
.vc-dmeta { min-width: 0; }
.vc-dmeta b { display: block; font-size: 15px; font-weight: 600; }
.vc-dmeta small { display: block; font-size: 12px; color: var(--text-3); margin-top: 1px; }
.vc-hpills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.vc-hpill { font-size: 12px; line-height: 20px; padding: 0 10px; border-radius: 11px; font-weight: 500; }
.vc-hpill.cn { background: var(--vc-cn-bg); color: var(--vc-cn); box-shadow: inset 0 0 0 1px var(--vc-cn-bd); }
.vc-hpill.kz { background: var(--vc-kz-bg); color: var(--vc-kz); box-shadow: inset 0 0 0 1px var(--vc-kz-bd); }
.vc-hpill.work { background: var(--vc-ban-bg); color: var(--vc-ban); }
.vc-dlist { display: flex; flex-direction: column; gap: 6px; }
.vc-di { display: flex; gap: 10px; align-items: flex-start; padding: 9px 12px; border-radius: 10px; background: var(--vc-ev-bg); border-left: 3px solid var(--vc-ev); cursor: pointer; transition: box-shadow .12s, transform .12s; }
.vc-di:hover { box-shadow: 0 3px 10px rgba(15, 23, 42, .1); transform: translateX(1px); }
.vc-di-b { min-width: 0; }
.vc-di b { display: block; font-size: 13px; font-weight: 600; color: var(--vc-ev-tx); line-height: 1.45; word-break: break-word; }
.vc-di small { display: block; font-size: 12px; color: var(--text-2); margin-top: 1px; line-height: 1.5; white-space: pre-line; }
.vc-di.vc-t-done b { text-decoration: line-through; }
.mod-bd > .vc-dempty { padding: 18px 0; }

/* ---------- 按人横排（strip） ---------- */
.vc-sscroll { overflow-x: auto; scrollbar-width: thin; scrollbar-color: #cbd5e1 transparent; }
.vc-shd, .vc-srow { display: grid; grid-template-columns: var(--vc-cols); }
.vc-shd { grid-template-rows: 26px 42px; background: var(--vc-hd-bg); border-bottom: 1px solid var(--vc-line); }
.vc-scorner { grid-column: 1; grid-row: 1 / span 2; position: sticky; left: 0; z-index: 5; display: flex; align-items: flex-end; padding: 0 14px 9px; background: var(--vc-hd-bg); border-right: 1px solid var(--vc-line); font-size: 12px; font-weight: 600; color: var(--text-3); }
.vc-smo { grid-row: 1; min-width: 0; padding: 6px 8px 0; font-size: 12px; font-weight: 600; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vc-smo.ms { border-left: 2px solid #d3dbe7; }
.vc-sday { grid-row: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-width: 0; border-right: 1px solid var(--vc-line-2); font-size: 12px; }
.vc-sday i { font-style: normal; font-size: 10.5px; color: var(--text-3); line-height: 1.2; }
.vc-sday b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; color: #334155; font-variant-numeric: tabular-nums; }
.vc-sday.we, .vc-scell.we { background: var(--vc-we); }
.vc-sday.we b { color: #64748b; }
/* 批 R R1-6：今天那一列浅蓝底（周末也是；节日底色照旧优先），原来的 2px 竖线保留 */
.vc-sday.today, .vc-scell.today { background: #eef5ff; }
.vc-sday.hcn, .vc-scell.hcn { background: var(--vc-cn-bg); }
.vc-sday.hkz, .vc-scell.hkz { background: var(--vc-kz-bg); }
.vc-sday.hcn.hkz, .vc-scell.hcn.hkz { background: linear-gradient(135deg, var(--vc-cn-bg) 0 50%, var(--vc-kz-bg) 50% 100%); }
.vc-sday.hcn b { color: var(--vc-cn); }
.vc-sday.hkz b { color: var(--vc-kz); }
.vc-sday .vc-sban { font-style: normal; color: var(--vc-ban); font-weight: 700; }   /* 「班」/「Р」由 JS 按语言输出 */
.vc-sday.today b { background: var(--brand); color: #fff; box-shadow: 0 3px 8px rgba(30, 64, 175, .3); }
.vc-sday.ms, .vc-scell.ms { border-left: 2px solid #d3dbe7; }
.vc-srow { position: relative; min-height: 48px; }
/* 批 R R1-6：按人横排隔行（calendar.js 按画出来的行序给偶数行加 zb，不用 nth-child——表头和行是同级兄弟、空行会跳过）；悬停加深到 #eef3fc，和隔行色分得开 */
.vc-srow.zb .vc-sname, .vc-srow.zb .vc-scell:not(.we):not(.hcn):not(.hkz):not(.today) { background-color: #fafbfd; }
.vc-srow:hover .vc-sname, .vc-srow:hover .vc-scell:not(.we):not(.hcn):not(.hkz) { background-color: #eef3fc; }
.vc-sname {
  grid-column: 1; grid-row: 1 / -1; position: sticky; left: 0; z-index: 5; min-width: 0; display: flex; flex-direction: column; justify-content: center;
  padding: 4px 14px; gap: 1px; background: #fff; border-right: 1px solid var(--vc-line); border-bottom: 1px solid var(--vc-line-2); box-shadow: 4px 0 10px -8px rgba(15, 23, 42, .18);
}
.vc-sname b { font-size: 13px; font-weight: 600; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vc-sname small { font-size: 11.5px; line-height: 1.35; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vc-scell { grid-row: 1 / -1; position: relative; min-width: 0; border-right: 1px solid var(--vc-line-2); border-bottom: 1px solid var(--vc-line-2); cursor: pointer; }
.vc-scell:hover { box-shadow: inset 0 0 0 999px rgba(30, 64, 175, .04); }
.vc-scell.today::after { content: ''; position: absolute; top: 0; bottom: -1px; left: 50%; width: 2px; margin-left: -1px; background: var(--brand); opacity: .3; pointer-events: none; }
.vc-srow .vc-ev { height: calc(var(--vc-slane-h) - 4px); margin: 0 3px; font-size: 12px; border-radius: 6px; }
.vc-srow .vc-ev.vc-span:not(.h) { margin-left: 0; }
.vc-srow .vc-ev.vc-span:not(.t) { margin-right: 0; }
.vc-sempty { padding: 34px; text-align: center; color: var(--text-3); font-size: 13px; }

/* ---------- 年视图（12 个小月，HR 维护节假日） ---------- */
.vc-ygrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding: 16px; background: #fbfcfe; }
@media (max-width: 1180px) { .vc-ygrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.vc-ymon { background: #fff; border: 1px solid var(--vc-line); border-radius: 14px; padding: 10px 12px 12px; box-shadow: 0 1px 2px rgba(15, 23, 42, .03); }
.vc-ymon.cur { border-color: #c7d7f5; box-shadow: 0 0 0 3px rgba(30, 64, 175, .06); }
.vc-ymt { display: flex; align-items: baseline; gap: 8px; margin: 0 2px 6px; }
.vc-ymt b { font-size: 13.5px; font-weight: 650; }
.vc-ymon.cur .vc-ymt b { color: var(--brand); }
.vc-ymt small { margin-left: auto; font-size: 11.5px; color: var(--text-3); }
.vc-ywds, .vc-ydays { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.vc-ywds span { text-align: center; font-size: 10.5px; color: var(--text-3); padding: 1px 0 4px; }
.vc-ywds span.we { color: #b6c0ce; }
.vc-yd { position: relative; height: 26px; border-radius: 7px; display: grid; place-items: center; font-size: 12px; color: #334155; font-variant-numeric: tabular-nums; transition: box-shadow .1s, background .1s; }
.vc-yd[data-day] { cursor: pointer; }
.vc-yd[data-day]:hover { box-shadow: inset 0 0 0 1.5px #93c5fd; }
.vc-yd.we { color: #9aa6b8; }
.vc-yd.t-holiday.r-cn, .vc-yd-sw.t-holiday.r-cn { background: var(--vc-cn-strong); color: #be123c; font-weight: 600; }
.vc-yd.t-rest.r-cn, .vc-yd-sw.t-rest.r-cn { background: var(--vc-cn-bg); color: var(--vc-cn); box-shadow: inset 0 0 0 1px var(--vc-cn-bd); }
.vc-yd.t-holiday.r-kz, .vc-yd-sw.t-holiday.r-kz { background: var(--vc-kz-strong); color: #075985; font-weight: 600; }
.vc-yd.t-rest.r-kz, .vc-yd-sw.t-rest.r-kz { background: var(--vc-kz-bg); color: var(--vc-kz); box-shadow: inset 0 0 0 1px var(--vc-kz-bd); }
.vc-yd.t-both, .vc-yd-sw.t-both { background: linear-gradient(135deg, var(--vc-cn-strong) 0 50%, var(--vc-kz-strong) 50% 100%); color: #4c1d95; font-weight: 600; }
.vc-yd.t-work, .vc-yd-sw.t-work { background: var(--vc-ban-bg); color: var(--vc-ban); font-weight: 600; }
.vc-yban { position: absolute; top: 1px; right: 2px; font-size: 8.5px; line-height: 1; font-style: normal; font-weight: 700; color: var(--vc-ban); }
.vc-yd.today { box-shadow: inset 0 0 0 2px var(--brand); color: var(--brand); font-weight: 700; }
.vc-yd.sel { outline: 2px solid var(--brand); outline-offset: 1px; z-index: 1; }
.vc-yd-sw { display: inline-block; width: 16px; height: 12px; border-radius: 3px; flex: none; }
.vc-yd-sw.we { background: var(--vc-we); box-shadow: inset 0 0 0 1px var(--vc-line); }
.vc-yd-sw.today { background: #fff; box-shadow: inset 0 0 0 2px var(--brand); }
/* 批 R（2026-10-19）R2-5：按人横排超过 31 天 → 一周一列（.vc-wk）：只画色块（标题不写，悬停看）和节点里程碑（菱形，截止那一周） */
.vc-wk .vc-srow { --vc-slane-h: 14px; }
.vc-wk .vc-srow .vc-ev { height: 8px; padding: 0; margin: 0 2px; border-left: 0; border-radius: 4px; background: var(--vc-ev, #2a78d6); align-self: center; min-width: 0; }
.vc-wk .vc-srow .vc-ev .vc-et, .vc-wk .vc-srow .vc-ev .vc-ei { display: none; }
.vc-wk .vc-srow .vc-ev.vc-span:not(.h) { margin-left: 0; }
.vc-wk .vc-srow .vc-ev.vc-span:not(.t) { margin-right: 0; }
.vc-wk .vc-srow .vc-ev.vc-mstone { width: 10px; height: 10px; margin: 0; padding: 0; justify-self: center; border-radius: 1px; transform: rotate(45deg); background: var(--vc-ev, #eda100); box-shadow: 0 0 0 1px #fff; }
.vc-wk .vc-srow .vc-ev.vc-leave { background: repeating-linear-gradient(135deg, #cbd5e1 0 3px, #94a3b8 3px 6px); }
.vc-wk .vc-srow .vc-ev.vc-od { box-shadow: 0 0 0 2px #fde2e2, 0 0 0 3px #e34948; }
.vc-wk .vc-srow .vc-ev.vc-mstone.vc-od { box-shadow: 0 0 0 2px #e34948; }
.vc-wk .vc-sday.vc-swk i { font-size: 10px; }
.vc-wk .vc-sday.vc-swk b { font-size: 11.5px; }
.vc-wk .vc-sday.vc-swk.ms, .vc-wk .vc-scell.vc-swk.ms { border-left: 2px solid #d3dbe7; }
