/* ============ 员工考勤表 · PT XINZHONGHUA ============ */
:root {
  --bg: #eef1f6;
  --card: #ffffff;
  --line: #dfe3ea;
  --line-2: #cbd2dd;
  --text: #1a1d21;
  --muted: #6b7280;
  --brand: #1d4ed8;
  --hdr: #f3f5f9;
  --hdr-ink: #39414d;
  --sun: #fde2e2;
  --sun-bg: #fff5f5;
  --sat-bg: #fffaf3;
  --k-P-bg: #f2fbf4; --k-P-ink: #15803d;
  --k-L-bg: #fef5d8; --k-L-ink: #92600a;
  --k-LP-bg: #ffeade; --k-LP-ink: #9a3412;
  --k-S-bg: #e5efff; --k-S-ink: #1d4ed8;
  --k-H-bg: #f3e8ff; --k-H-ink: #6d28d9;
  --radius: 12px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0; padding: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior-y: none;
}

input, button, select { font-family: inherit; font-size: 14px; color: inherit; }
button { cursor: pointer; }

/* ---------- 启动 ---------- */
#app.boot {
  display: flex; align-items: center; justify-content: center;
  min-height: 100%;
}
.boot-inner { text-align: center; }
.boot-brand { font-weight: 800; letter-spacing: .12em; color: var(--brand); font-size: 13px; margin-bottom: 14px; }
.boot-spin {
  width: 26px; height: 26px; margin: 0 auto;
  border: 3px solid #d5dbe6; border-top-color: var(--brand);
  border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 登录 ---------- */
.login-wrap {
  min-height: 100dvh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 24px 18px; background: linear-gradient(170deg, #e8eefa 0%, #eef1f6 46%, #eef1f6 100%);
}
.login-card {
  width: 100%; max-width: 380px; background: var(--card);
  border-radius: 18px; padding: 26px 22px 22px;
  box-shadow: 0 12px 34px rgba(21, 41, 82, .12);
}
.lg-brand { font-size: 12px; letter-spacing: .14em; font-weight: 800; color: var(--brand); text-align: center; }
.lg-title { font-size: 21px; font-weight: 800; text-align: center; margin-top: 8px; }
.lg-sub { font-size: 12px; color: var(--muted); text-align: center; margin-top: 3px; letter-spacing: .02em; }
.lg-form { margin-top: 22px; }
.fld { display: block; margin-bottom: 12px; }
.fld > span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.inp {
  width: 100%; height: 42px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 10px;
  background: #fbfcfe; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.inp:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(29, 78, 216, .12); }
/* 手机窄屏：输入框统一 16px（<16px 时 iOS Safari 聚焦会整页放大，放大后很难退回，输入很难受） */
@media (max-width: 559px) { .inp { font-size: 16px; } }
/* 表单里的次级输入（如自定义职位） */
.inp-sub { margin-top: 6px; }
.btn {
  height: 42px; padding: 0 18px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; font-weight: 600;
}
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:active { background: #1a43b8; }
.btn-block { width: 100%; margin-top: 6px; }
.lg-tip { text-align: center; font-size: 12px; color: var(--muted); margin-top: 12px; }
.lg-lang { margin-top: 16px; }

.langbtn {
  height: 32px; padding: 0 12px; border-radius: 9px;
  border: 1px solid var(--line-2); background: #fff;
  font-size: 12.5px; font-weight: 600; color: var(--brand);
}
.langbtn:active { background: #eff4ff; }

/* ---------- 布局 ---------- */
.app { display: flex; min-height: 100dvh; }

.topbar {
  flex: none; display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 10px 14px;
  background: #fff; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 30;
}
.tb-brand { font-size: 10.5px; font-weight: 800; letter-spacing: .14em; color: var(--brand); }
.tb-title { font-size: 16px; font-weight: 800; line-height: 1.2; margin-top: 1px; }
.tb-sub { display: block; font-size: 10.5px; font-weight: 500; color: var(--muted); letter-spacing: .02em; }
.tb-r { flex: none; }

.view { flex: 1; padding: 10px 10px 14px; }
.view-sheet { padding-top: 8px; }

.tabbar {
  flex: none; position: sticky; bottom: 0; z-index: 30;
  display: flex; background: #fff; border-top: 1px solid var(--line);
  padding-bottom: var(--safe-b);
}
.tab {
  flex: 1; border: 0; background: none; padding: 7px 0 6px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: #8b93a1;
}
.tab .ti { width: 22px; height: 22px; display: block; }
.tab .ti svg { width: 22px; height: 22px; display: block; }
.tab .tl { font-size: 11px; font-weight: 600; }
.tab.is-on { color: var(--brand); }

/* ---------- 月份栏 ---------- */
.monthbar { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.mb-nav {
  width: 36px; height: 36px; flex: none; border: 1px solid var(--line);
  background: #fff; border-radius: 10px; font-size: 19px; line-height: 1;
  color: var(--text); padding: 0 0 3px;
}
.mb-nav:active { background: #eef2f8; }
.mb-title { flex: 1; text-align: center; font-size: 16px; font-weight: 800; }
.mb-today {
  flex: none; height: 36px; padding: 0 13px; border: 1px solid var(--line);
  background: #fff; border-radius: 10px; font-size: 13px; font-weight: 600;
}
.mb-today:active { background: #eef2f8; }

/* 周/月 视图切换 */
.vseg { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 3px; margin-bottom: 8px; }
.vseg-btn { border: 0; background: none; padding: 6px 18px; border-radius: 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.vseg-btn.is-on { background: var(--brand); color: #fff; }
.vseg-btn:active { background: #eef2f8; }
.vseg-btn.is-on:active { background: var(--brand); }

/* ---------- 录入画笔 ---------- */
.brushbar {
  display: flex; align-items: stretch; gap: 6px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 7px 8px; margin-bottom: 7px;
}
.bb-lbl { align-self: center; font-size: 12px; color: var(--muted); margin-right: 1px; flex: none; }
.bb {
  flex: none; min-width: 46px; padding: 4px 6px 3px;
  border: 1px solid var(--line); border-radius: 9px; background: #fff;
  display: flex; flex-direction: column; align-items: center; line-height: 1.15;
}
.bb b { font-size: 13px; font-weight: 800; }
.bb i { font-style: normal; font-size: 9.5px; color: var(--muted); white-space: nowrap; }
.bb.k-P b { color: var(--k-P-ink); }
.bb.k-L b { color: var(--k-L-ink); }
.bb.k-LP b { color: var(--k-LP-ink); }
.bb.k-S b { color: var(--k-S-ink); }
.bb.k-H b { color: var(--k-H-ink); }
.bb.bb-clr { min-width: 40px; color: var(--muted); font-size: 13px; justify-content: center; }
.bb.is-on { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(29, 78, 216, .16); background: #f4f8ff; }
.bb.k-P.is-on { border-color: #16a34a; background: #16a34a; box-shadow: none; }
.bb.k-L.is-on { border-color: #d97706; background: #d97706; box-shadow: none; }
.bb.k-LP.is-on { border-color: #ea580c; background: #ea580c; box-shadow: none; }
.bb.k-S.is-on { border-color: #2563eb; background: #2563eb; box-shadow: none; }
.bb.k-H.is-on { border-color: #7c3aed; background: #7c3aed; box-shadow: none; }
.bb.is-on:not(.bb-clr) b, .bb.is-on:not(.bb-clr) i { color: #fff; }
.bb-undo {
  margin-left: auto; flex: none; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 9px; background: #fff;
  font-size: 12.5px; font-weight: 600; color: var(--muted);
}
.bb-undo:active { background: #eef2f8; }

.hint { font-size: 11.5px; color: var(--muted); line-height: 1.5; margin: 0 2px 8px; }

/* ---------- 表格 ---------- */
.grid-scroll {
  overflow: auto;
  max-height: calc(100dvh - 340px);
  min-height: 150px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  -webkit-overflow-scrolling: touch;
}
@supports not (height: 100dvh) {
  .grid-scroll { max-height: calc(100vh - 340px); }
}

.att {
  border-collapse: separate;
  border-spacing: 3px 0;
  font-size: 12px;
  background: #fff;
}
.att th, .att td {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
  padding: 0;
  height: 30px;
  font-weight: 500;
}
.att thead th {
  position: sticky;
  z-index: 3;
  background: var(--hdr);
  color: var(--hdr-ink);
  font-weight: 700;
}
.att thead tr:nth-child(1) th { top: 0; height: 25px; font-size: 11px; letter-spacing: .06em; }
.att thead tr:nth-child(2) th { top: 25px; height: 38px; }

/* 冻结列 */
.att .c-no {
  width: 36px; min-width: 36px; max-width: 36px;
  position: sticky; left: 0; z-index: 4;
  background: var(--hdr); color: var(--hdr-ink);
  font-size: 11px; font-weight: 700;
}
.att tbody .c-no { background: #f7f9fc; box-shadow: 3px 0 0 0 #f7f9fc; }
.att .c-name {
  width: 116px; min-width: 116px; max-width: 116px;
  position: sticky; left: 39px; z-index: 4;
  background: var(--hdr); color: var(--hdr-ink);
  text-align: left; padding: 0 8px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.att tbody .c-name {
  background: #fff; color: var(--text);
  font-weight: 400; font-size: 12px; white-space: normal;
  border-right: 2px solid var(--line-2);
}
.att tbody .c-name .enm { font-weight: 600; font-size: 12px; line-height: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att tbody .c-name .eno { font-size: 9.5px; color: var(--muted); line-height: 12px; font-weight: 500; }
.att tbody .c-name .c-view { display: block; font-size: 9.5px; color: var(--brand); margin-top: 2px; opacity: .7; font-weight: 600; }
.att tbody .c-name:active { background: #eef4ff; }
.att thead .c-no, .att thead .c-name { z-index: 6; }
.att thead .c-no { box-shadow: 3px 0 0 0 var(--hdr); }

.att .c-band { background: var(--hdr); }
.att .c-totband { border-left: 2px solid var(--line-2); }

/* 日期格 */
.att .c-day { width: 32px; min-width: 32px; max-width: 32px; padding: 3px 0 2px; }
.att .c-day .dn { display: block; font-size: 12px; font-weight: 700; line-height: 15px; }
.att .c-day .dw { display: block; font-size: 9px; font-weight: 500; line-height: 11px; color: var(--muted); }
.att .c-day:active { background: #e2e8f4; }
.att .c-day.sat .dw, .att .c-day.sun .dw { color: #dc2626; font-weight: 700; }
.att .c-day.sun { background: var(--sun); }
.att .c-day.sun .dn { color: #b91c1c; }

.att td.d {
  width: 32px; min-width: 32px; max-width: 32px;
  padding: 3px; background: transparent; user-select: none;
}
.att td.d .chip {
  display: block; height: 26px; line-height: 26px;
  border-radius: 8px; background: #f2f6fd; border: 1px dashed #c4d2ea; color: transparent;
  font-size: 12px; font-weight: 700; text-align: center;
}
.att td.d:hover .chip { border-color: #9db4dd; background: #e9f0fc; }   /* 桌面端 hover 提示可点 */
.att td.d .chip.k-P { background: #16a34a; color: #fff; }
.att td.d .chip.k-L { background: #d97706; color: #fff; }
.att td.d .chip.k-LP { background: #ea580c; color: #fff; }
.att td.d .chip.k-S { background: #2563eb; color: #fff; }
.att td.d .chip.k-H { background: #7c3aed; color: #fff; }
.att td.d .chip.k-P, .att td.d .chip.k-L, .att td.d .chip.k-LP, .att td.d .chip.k-S, .att td.d .chip.k-H { border: 0; }
.att td.d.sat { background: #fbfaf4; }   /* 周末浅暖色：区分周末但不像「禁用灰」 */
.att td.d.sun { background: #fdf6f6; }
.att td.d:active .chip { filter: brightness(.95); }
/* 未到的日期：斜纹灰底 + 灰字，不可点、不显示出勤 */
.att td.d.fut .chip { color: transparent; background: repeating-linear-gradient(45deg, #f4f6fa, #f4f6fa 4px, #e8edf5 4px, #e8edf5 8px); }
.att td.d.fut:active .chip { filter: none; }
.att td.d.pre { background: #e9eaee; }                       /* 入职前：暖灰实色块，区别于未来的斜纹灰 */
.att td.d.pre .chip { color: transparent; background: #e0e2e8; }
.att td.d.pre:active .chip { filter: none; }
.att .c-day.fut { background: #fafbfe; }
.att .c-day.fut, .att .c-day.fut .dn, .att .c-day.fut .dw { color: #b8c0cd; }
.att .c-day.fut .dn, .att .c-day.fut .dw { font-weight: 600; }
.att .c-day.fut:active { background: #fafbfe; }
/* 今天那一列：蓝底 + 下方短横线，一眼看出「今天在哪」，避免被误当成「点不了」 */
.att .c-day.today { background: #e8f0ff; box-shadow: inset 0 -2px 0 #1d4ed8; }
.att .c-day.today .dn, .att .c-day.today .dw { color: #1d4ed8; font-weight: 700; }
.att .c-day.today:active { background: #dbe7ff; }
.att td.d.today { background: #e8f0ff; }
.att td.d.today:active { background: #dbe7ff; }

/* 表头合计列保持中性 */
.att thead .k-P, .att thead .k-L, .att thead .k-LP, .att thead .k-S, .att thead .k-H { color: inherit; }

/* 合计 */
.att .c-tsub, .att td.tot {
  width: 32px; min-width: 32px; max-width: 32px;
  font-size: 11px; font-weight: 700;
}
.att .first { border-left: 2px solid var(--line-2); }
.att td.tot { background: #fff; font-size: 12px; }

.att .empty {
  height: 84px; color: var(--muted); font-size: 13px;
  background: #fff; font-weight: 400;
}

/* ---------- 周视图：撑满容器（左右不留空），右侧带「本周」汇总列 ---------- */
.att.week { width: 100%; table-layout: fixed; }
.att.week .c-day, .att.week td.d { width: auto; min-width: 0; max-width: none; }
.att.week .c-wk { width: 116px; min-width: 96px; border-left: 2px solid var(--line-2); font-size: 11px; color: var(--muted); letter-spacing: .04em; }
.att.week td.wk-tot { border-left: 2px solid var(--line-2); padding: 4px 6px; vertical-align: middle; }
.att.week td.wk-tot .wk-p { font-size: 11px; color: var(--muted); line-height: 15px; }
.att.week td.wk-tot .wk-p b { color: var(--k-P-ink); font-size: 13.5px; font-weight: 800; }
.att.week td.wk-tot .wk-l { font-size: 11px; color: var(--muted); line-height: 15px; margin-top: 2px; }
.att.week td.wk-tot .wk-l b { color: var(--k-L-ink); font-size: 13.5px; font-weight: 800; }
/* v2.8.8：「假期 H」不再出现在周视图右列（也不出现在月视图「合计」列） */
/* 跨月的周：右列按月份分组（v2.8.7） */
.att.week td.wk-tot .wkm + .wkm { margin-top: 5px; padding-top: 5px; border-top: 1px dashed var(--line-2); }
.att.week td.wk-tot .wkm-t { font-size: 10px; font-weight: 700; color: var(--muted); letter-spacing: .03em; line-height: 14px; margin-bottom: 1px; }
@media (max-width: 559px) {
  .att.week .c-wk, .att.week td.wk-tot { display: none; }
}
/* 宽屏：日期列被撑宽后，行高/状态块同比放大（点击区更大，画面不留空） */
@media (min-width: 720px) {
  .att.week tbody td { height: 38px; }
  .att.week td.d .chip { height: 32px; line-height: 32px; font-size: 13px; }
}

/* ---------- 图例 ---------- */
.legend {
  margin-top: 10px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 10px 12px 11px;
}
.lg-h { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 7px; letter-spacing: .04em; }
.lg-line { display: flex; align-items: center; gap: 8px; padding: 3px 0; font-size: 12.5px; }
.lg-k {
  flex: none; width: 30px; height: 20px; line-height: 20px; text-align: center;
  border-radius: 6px; font-size: 11px; font-weight: 800; color: #fff;
}
.lg-k.k-P { background: #16a34a; }
.lg-k.k-L { background: #d97706; }
.lg-k.k-LP { background: #ea580c; }
.lg-k.k-S { background: #2563eb; }
.lg-k.k-H { background: #7c3aed; }
.lg-t { color: #4b5563; }

/* ---------- 卡片 / 设置 / 员工 ---------- */
.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); margin-bottom: 10px; overflow: hidden;
}
.card-h {
  padding: 11px 14px 9px; font-size: 13px; font-weight: 700;
  color: var(--hdr-ink); border-bottom: 1px solid var(--line); background: #fafbfd;
}
.card-h.danger-h { color: #b91c1c; }

.addrow { display: flex; gap: 8px; padding: 12px; }
.addrow .inp { flex: 1; height: 40px; }
.addrow .btn { flex: none; }

.emp-list { list-style: none; margin: 0; padding: 0; }
.emp-list li {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 12px; border-top: 1px solid var(--line);
}
.emp-list li:first-child { border-top: 0; }
.emp-list .en {
  flex: none; width: 24px; height: 24px; line-height: 24px; text-align: center;
  background: #eef2f8; border-radius: 7px; font-size: 11px; font-weight: 700; color: var(--muted);
}
.emp-list .enm { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.emp-list li.empty { color: var(--muted); font-size: 13px; justify-content: center; padding: 22px 12px; }

.mini {
  flex: none; height: 30px; padding: 0 11px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
  font-size: 12.5px; font-weight: 600; color: var(--brand);
}
.mini:active { background: #eef2f8; }
.mini.danger { color: #b91c1c; border-color: #f0cfcf; }
.mini.danger:active { background: #fdf0f0; }

.setrow {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-top: 1px solid var(--line);
}
.setrow:first-child { border-top: 0; }
.sr-l { flex: 1; font-size: 13.5px; }
.setrow .mini { color: var(--muted); font-size: 15px; padding: 0 10px; }
.setrow .mini.danger { color: #b91c1c; }
/* 整行可点击（设置页操作行）；箭头 span 需 inline-flex 才能撑出 30px 高度 */
.setrow-act { cursor: pointer; -webkit-tap-highlight-color: rgba(37,99,235,.08); transition: background .15s; }
.setrow-act .mini { display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.setrow-act:hover { background: #f7f9fc; }
.setrow-act:active { background: #eef2f8; }
.setrow-act:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }

.passform { padding: 12px; }
.passform .fld { margin-bottom: 10px; }

.tipbox {
  font-size: 12px; color: var(--muted); line-height: 1.6;
  padding: 2px 4px 8px;
}

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(84px + var(--safe-b));
  transform: translate(-50%, 8px);
  background: rgba(24, 28, 36, .92); color: #fff;
  padding: 9px 16px; border-radius: 20px;
  font-size: 13px; font-weight: 500;
  opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s;
  z-index: 90; max-width: 84vw; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 应用内确认弹窗（居中卡片，替代浏览器原生 confirm 弹在窗口顶部） ---------- */
#askRoot .ask-mask {
  position: fixed; inset: 0; z-index: 200; padding: 24px;
  background: rgba(20, 24, 33, .45);
  display: flex; align-items: center; justify-content: center;
  animation: askFade .15s ease;
}
@keyframes askFade { from { opacity: 0; } to { opacity: 1; } }
#askRoot .ask-card {
  width: 100%; max-width: 360px; background: #fff; border-radius: 16px;
  box-shadow: 0 18px 48px rgba(16, 22, 33, .28);
  padding: 22px 20px 16px;
  animation: modalUp .18s ease;
}
#askRoot .ask-msg {
  font-size: 16px; line-height: 1.6; font-weight: 600;
  color: var(--text); text-align: center;
  margin-bottom: 18px; word-break: break-word;
}
#askRoot .ask-foot { display: flex; gap: 10px; }
#askRoot .ask-foot .btn { flex: 1; min-height: 46px; font-size: 15px; }

/* ---------- 桌面 ---------- */
@media (min-width: 720px) {
  .view { max-width: 1300px; margin: 0 auto; width: 100%; }
  .grid-scroll { max-height: calc(100dvh - 320px); }
  .att .c-name { width: 150px; min-width: 150px; max-width: 150px; }
  .att .c-day, .att td.d, .att .c-tsub, .att td.tot { width: 36px; min-width: 36px; max-width: 36px; }
}
/* 超宽屏：整月一屏放下，不出现横向滚动 */
@media (min-width: 1320px) {
  .att .c-no { width: 40px; min-width: 40px; max-width: 40px; }
  .att .c-name { width: 160px; min-width: 160px; max-width: 160px; }
  .att .c-day, .att td.d, .att .c-tsub, .att td.tot { width: 34px; min-width: 34px; max-width: 34px; }
}

/* ---------- 快捷：整月出勤 ---------- */
.quickbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.qb {
  height: 34px; padding: 0 16px;
  border: 1px solid var(--brand); background: #fff;
  border-radius: 9px; font-size: 12.5px; font-weight: 700; color: var(--brand);
}
.qb:active { background: #eef4ff; }
.qb-alt { border-style: dashed; border-color: #7c3aed; color: #6d28d9; }
.qb-alt:active { background: #f6f1ff; }

/* ---------- 快速新增姓名 ---------- */
.quickadd { display: flex; gap: 8px; margin: 10px 0 2px; }
.quickadd .inp { flex: 1; height: 40px; }
.quickadd .btn { flex: none; height: 40px; padding: 0 16px; }

/* ---------- 统计 ---------- */
.stat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 10px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 6px; text-align: center; }
.sc-v { font-size: 21px; font-weight: 800; color: var(--brand); line-height: 1.1; }
.sc-l { font-size: 11px; color: var(--muted); margin-top: 3px; }
/* 语义色：有效=绿 / 退货·退货率=红（订单统计用） */
.stat-card.sc-ok .sc-v { color: #2E9E5B; }
.stat-card.sc-ok { border-color: #cfe9d8; }
.stat-card.sc-no .sc-v { color: #D64545; }
.stat-card.sc-no { border-color: #f2d5d5; }
.today-card-stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 0 0 10px; }
.tc-h { font-size: 12px; font-weight: 700; color: var(--hdr-ink); margin-bottom: 6px; }
.tc-row { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 12.5px; color: var(--muted); }
.tc-row b { font-size: 15px; margin-left: 4px; color: var(--text); }
.tc-row .g { color: var(--k-P-ink); } .tc-row .o { color: var(--k-LP-ink); } .tc-row .r { color: #dc2626; }
.emp-stat { list-style: none; margin: 0; padding: 0; }
.emp-stat li { padding: 11px 12px; border-top: 1px solid var(--line); }
.emp-stat li:first-child { border-top: 0; }
.es-top { display: flex; justify-content: space-between; align-items: baseline; }
.es-n { font-weight: 700; font-size: 13.5px; }
.es-r { font-weight: 800; color: var(--brand); font-size: 14px; }
.es-bar { height: 7px; border-radius: 4px; background: #eef1f6; margin: 6px 0 4px; overflow: hidden; }
.es-bar i { display: block; height: 100%; background: linear-gradient(90deg, #22c55e, #16a34a); border-radius: 4px; }
.es-sub { font-size: 11.5px; color: var(--muted); }
.es-no { font-size: 11px; font-weight: 600; color: var(--muted); margin-left: 4px; }

/* ---------- 本月请假汇总 ---------- */
.leave-sum { font-size: 12.5px; color: var(--muted); padding: 9px 14px; border-bottom: 1px solid var(--line); }
.leave-list { list-style: none; margin: 0; padding: 0; }
.leave-list li { padding: 11px 14px; border-top: 1px solid var(--line); }
.leave-list li:first-child { border-top: 0; }
.lv-top { display: flex; justify-content: space-between; align-items: baseline; }
.lv-n { font-weight: 700; font-size: 13.5px; }
.lv-no { font-size: 11px; font-weight: 600; color: var(--muted); margin-left: 4px; }
.lv-r { font-weight: 800; color: var(--brand); font-size: 14px; }
.lv-bar { height: 7px; border-radius: 4px; background: #eef1f6; margin: 6px 0 4px; overflow: hidden; }
.lv-bar i { display: block; height: 100%; background: linear-gradient(90deg, #22c55e, #16a34a); border-radius: 4px; }
.lv-sub { font-size: 11.5px; color: var(--muted); }
.lv-sub .ok { color: var(--k-P-ink); font-weight: 600; }
.lv-sub .ol { color: var(--k-L-ink); font-weight: 600; }
.lv-sub .olp { color: var(--k-LP-ink); font-weight: 600; }
.lv-sub .os { color: var(--k-S-ink); font-weight: 600; }

/* ---------- 离职置灰 ---------- */
.att tr.is-resigned td { color: #abb1bd; }
.att tr.is-resigned td.d { background: #f6f7f9; }
.att tr.is-resigned td.d .chip { opacity: .4; }
.emp-list li.is-resigned { background: #fafbfc; }
.emp-list li.is-resigned .ec-main { opacity: .72; }
.emp-stat li.is-resigned { opacity: .6; }

/* ---------- 员工档案卡片 ---------- */
.emp-summary {
  display: flex; flex-wrap: wrap; gap: 3px 10px; align-items: baseline;
  font-size: 12.5px; color: var(--muted); padding: 2px 4px 12px;
}
.emp-summary b { color: var(--text); font-weight: 800; font-size: 14px; }

.emp-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 560px) { .emp-list { grid-template-columns: repeat(2, 1fr); } }

.emp-list li.emp-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 13px 14px; border: 1px solid var(--line); border-radius: 14px;
  background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}
.emp-list li.emp-card.is-resigned { background: #fafbfc; border-color: #eceef2; }
.emp-list li.emp-card.is-resigned .ec-badge { background: #9aa2af; }
.emp-list li.emp-card.is-resigned .ec-id,
.emp-list li.emp-card.is-resigned .ec-info { opacity: .72; }
.emp-list li.emp-card.is-resigned .ec-name { text-decoration: line-through; text-decoration-color: #c4cad4; }

.ec-head { display: flex; align-items: center; gap: 10px; }
.ec-badge {
  flex: none; width: 40px; height: 40px; border-radius: 11px;
  background: linear-gradient(135deg, #2a5bd7, #1d4ed8); color: #fff;
  font-weight: 800; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}
.ec-id { flex: 1; min-width: 0; }
.ec-name { font-weight: 700; font-size: 14.5px; line-height: 19px; }
.ec-meta { font-size: 11.5px; color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ec-pill {
  flex: none; align-self: flex-start;
  font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}
.ec-pill.st-regular { background: #e7f6ec; color: #15803d; }
.ec-pill.st-probation { background: #fef3d8; color: #92600a; }
.ec-pill.st-resigned { background: #eef0f3; color: #6b7280; }

.ec-info { display: flex; flex-direction: column; gap: 4px; }
.ec-line { font-size: 12.5px; color: #4b5563; line-height: 1.5; word-break: break-word; }
.ec-line .ec-k { display: inline-block; min-width: 56px; margin-right: 6px; font-size: 11px; font-weight: 600; color: var(--muted); }
.ec-line.ec-note { background: #f7f9fc; border-radius: 8px; padding: 5px 8px; color: var(--muted); }
.ec-line.ec-note .ec-k { min-width: 0; }

.ec-act { display: flex; gap: 8px; margin-top: 2px; }
.ec-act .mini { flex: 1; }

/* ---------- 档案录入弹窗 ---------- */
#modalRoot .modal-mask {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(20, 24, 33, .45);
  display: flex; align-items: flex-end; justify-content: center;
}
@media (min-width: 560px) { #modalRoot .modal-mask { align-items: center; } }
#modalRoot .modal {
  width: 100%; max-width: 460px;
  background: #fff; border-radius: 16px 16px 0 0;
  max-height: 92dvh; display: flex; flex-direction: column; overflow: hidden;
  animation: modalUp .2s ease;
}
@media (min-width: 560px) { #modalRoot .modal { border-radius: 16px; } }
@keyframes modalUp { from { transform: translateY(22px); opacity: .55; } to { transform: none; opacity: 1; } }
#modalRoot .modal-h {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px 12px 16px; font-size: 15px; font-weight: 800;
  border-bottom: 1px solid var(--line); flex: none;
}
#modalRoot .mh-t { flex: 1; min-width: 0; }
#modalRoot .modal-x {
  flex: none; width: 32px; height: 32px; border: 1px solid var(--line);
  border-radius: 9px; background: #fff; color: var(--muted);
  font-size: 14px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
#modalRoot .modal-x:active { background: #eef2f8; }
#modalRoot .modal-body { padding: 12px 16px; overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
#modalRoot .modal-body .fld { display: block; margin-bottom: 11px; }
#modalRoot .modal-body .fld > span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
/* 16px：手机聚焦输入时不会被 iOS 自动放大，输入更顺手 */
#modalRoot .modal-body .inp { height: 42px; font-size: 16px; }
#modalRoot .modal-body textarea.inp { height: auto; min-height: 52px; padding: 8px 12px; resize: vertical; line-height: 1.45; }
#modalRoot .modal-foot { display: flex; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); flex: none; }
.hire-res { font-size: 13px; line-height: 1.5; color: var(--ink); background: #f3f6fb; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
#modalRoot .modal-foot .btn { flex: 1; }
/* v2.9.58：排班弹窗底部「设为休息日」按钮——窄屏自动换行，暖橙描边突出 */
#modalRoot .modal-sched .modal-foot { flex-wrap: wrap; }
#modalRoot .modal-sched .modal-foot .btn { flex: 1 1 120px; white-space: nowrap; }
#modalRoot .modal-sched .modal-foot .btn-primary { flex: 1 1 140px; }
#modalRoot .modal-foot .btn.btn-rest { color: #c05a24; background: #fff8f2; border-color: #edc7a6; font-weight: 700; }
#modalRoot .modal-foot .btn.btn-rest:hover { background: #ffefe2; border-color: #e5a870; }
/* 弹窗打开时锁住背景滚动：避免误滑/误触把弹窗带跑 */
body.modal-open { overflow: hidden; }

/* 档案弹窗：下拉选择 + 「参与考勤」开关 */
#modalRoot select.inp { cursor: pointer; }
.chk { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text); cursor: pointer; }
.chk input { width: 20px; height: 20px; accent-color: var(--brand); flex: none; margin: 0; }
.chk-h { color: var(--muted); font-size: 12.5px; }

/* 员工卡：不考勤标记 */
.ec-tag {
  display: inline-block; margin-left: 6px; padding: 2px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 700; background: #f1f3f7; color: #8a93a3;
}

/* ---------- 员工统计详情弹窗（点姓名进入） ---------- */
#modalRoot .modal-detail .modal-body { padding: 12px 14px 14px; }
.ed-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ed-head .ec-badge {
  flex: none; width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, #2a5bd7, #1d4ed8); color: #fff;
  font-weight: 800; font-size: 17px;
  display: flex; align-items: center; justify-content: center;
}
.ed-head .ec-id { flex: 1; min-width: 0; }
.ed-head .ec-name { font-weight: 700; font-size: 15px; line-height: 20px; }
.ed-head .ec-meta { font-size: 11.5px; color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ed-mon { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .03em; margin: 0 0 8px; }
.ed-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-bottom: 9px; }
.ed-cards .stat-card { padding: 10px 3px; }
.ed-cards .sc-v { font-size: 17px; }
.ed-cards .sc-l { font-size: 10.5px; margin-top: 2px; }

.ed-sum { font-size: 12px; color: var(--muted); line-height: 1.6; margin-bottom: 10px; }
.ed-sum b { color: var(--text); font-weight: 800; }
.ed-sum b.g { color: var(--k-P-ink); }
.ed-sum b.o { color: var(--k-L-ink); }

.ed-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.ed-gw { text-align: center; font-size: 10px; font-weight: 700; color: var(--muted); padding: 1px 0 3px; }
.ed-gw.sun { color: #dc2626; }
.ed-d {
  min-height: 36px; border-radius: 7px; background: #f2f6fd;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
}
.ed-d.ed-blank { background: transparent; }
.ed-d.sun { background: var(--sun-bg); }
.ed-d .edd-n { font-size: 10px; color: var(--muted); line-height: 11px; }
.ed-d .edd-c {
  min-width: 20px; border-radius: 5px; font-size: 10px; font-weight: 800;
  line-height: 14px; text-align: center; color: transparent;
}
.ed-d .edd-none { color: #c8cfda; }
.ed-d.k-P .edd-c { background: #16a34a; color: #fff; }
.ed-d.k-L .edd-c { background: #d97706; color: #fff; }
.ed-d.k-LP .edd-c { background: #ea580c; color: #fff; }
.ed-d.k-S .edd-c { background: #2563eb; color: #fff; }
.ed-d.k-H .edd-c { background: #7c3aed; color: #fff; }
/* 员工详情迷你日历里的未到日期：斜纹灰底、灰字 */
.ed-d.fut { background: repeating-linear-gradient(45deg, #f7f9fc, #f7f9fc 4px, #eef1f6 4px, #eef1f6 8px); }
.ed-d.fut .edd-n { color: #b8c0cd; }
.ed-d.pre { background: #e9eaee; }
.ed-d.pre .edd-n { color: #b8c0cd; }

.ed-lg { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 10px; }
.ed-lg-i { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: #4b5563; }
.ed-lg-i .lg-k { width: 24px; height: 17px; line-height: 17px; font-size: 10px; border-radius: 5px; }


/* ---------- 订单登记模块（v2.9.0） ---------- */
.mod-switch { margin-top: 5px; }
.view-orders { padding-top: 10px; }
.ord-card .ord-form { padding: 12px 14px 14px; }
.ord-status { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 3px; margin: 2px 0 10px; }
.ord-status .vseg-btn { padding: 6px 16px; }
.ord-stats { width: 100%; border-collapse: collapse; }
.ord-stats th, .ord-stats td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--line); font-size: 13px; }
.ord-stats thead th { background: var(--hdr); font-size: 11px; font-weight: 700; color: var(--hdr-ink); }
.ord-stats td.num, .ord-stats th:not(:first-child) { text-align: center; }
.ord-stats tbody tr:last-child td { border-bottom: 0; }

/* ===== 订单统计（月度 + 图表可视化） ===== */
.stat-cards.osc-4 { grid-template-columns: repeat(4, 1fr); }
/* 图① 环形图：订单构成 */
.os-donut { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 4px 0 2px; }
.os-donut-w { position: relative; width: 132px; height: 132px; flex: 0 0 auto; }
.os-donut-w svg { display: block; }
.os-donut-c { position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.osd-pct { font-size: 25px; font-weight: 800; color: #D64545; line-height: 1.05; font-variant-numeric: tabular-nums; }
.osd-cap { font-size: 10px; color: var(--muted); margin-top: 2px; }
.os-donut-lg { display: flex; flex-direction: column; gap: 7px; flex: 1 1 150px; min-width: 148px; max-width: 360px; }
.osd-lg { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text); }
.osd-lg i { width: 10px; height: 10px; border-radius: 3px; flex: 0 0 auto; }
.osd-lg b { margin-left: auto; font-size: 15px; font-variant-numeric: tabular-nums; }
.osd-lg em { font-style: normal; color: var(--muted); font-size: 11.5px; min-width: 34px; text-align: right; font-variant-numeric: tabular-nums; }
.osd-lg.tot { border-top: 1px dashed var(--line); padding-top: 7px; margin-top: 1px; }
/* 图② 横向堆叠条：主播对比 */
.os-bars { display: flex; flex-direction: column; gap: 10px; padding: 3px 0; }
.osb-row { display: flex; align-items: center; gap: 10px; }
.osb-name { flex: 0 0 88px; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.osb-track { flex: 1 1 auto; height: 16px; background: var(--hdr); border-radius: 8px; overflow: hidden; }
.osb-fill { display: flex; height: 100%; min-width: 6px; border-radius: 8px; overflow: hidden; }
.osb-seg { display: block; height: 100%; }
.osb-seg.v { background: #2E9E5B; }
.osb-seg.r { background: #D64545; }
.osb-val { flex: 0 0 96px; display: flex; align-items: baseline; justify-content: flex-end; gap: 6px; }
.osb-val b { font-size: 15px; font-variant-numeric: tabular-nums; }
.osb-val span { font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
/* 图③ 柱状图：每日订单趋势 */
.os-day { padding: 2px 0 0; }
.os-day-legend { display: flex; align-items: center; gap: 12px; font-size: 11px; color: var(--muted); margin-bottom: 7px; }
.osd-max { margin-left: auto; font-variant-numeric: tabular-nums; }
.osd-plot { display: flex; align-items: flex-end; gap: 2px; height: 100px; border-bottom: 1px solid var(--line); }
.osd-col { position: relative; flex: 1 1 0; height: 100%; display: flex; align-items: flex-end; justify-content: center; }
.osd-stack { display: flex; flex-direction: column; width: 72%; min-width: 3px; border-radius: 3px 3px 0 0; overflow: hidden; }
.osd-seg { display: block; width: 100%; }
.osd-seg.v { background: #2E9E5B; }
.osd-seg.r { background: #D64545; }
.osd-ax { display: flex; gap: 2px; margin-top: 4px; }
.osd-lb { flex: 1 1 0; text-align: center; font-size: 8.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
/* 图④ 分布条：平台占比 */
.os-plat { display: flex; flex-direction: column; gap: 9px; padding: 3px 0; }
.osp-row { display: flex; align-items: center; gap: 10px; }
.osp-lb { flex: 0 0 62px; font-size: 12.5px; }
.osp-track { flex: 1 1 auto; height: 12px; background: var(--hdr); border-radius: 6px; overflow: hidden; }
.osp-fill { display: block; height: 100%; border-radius: 6px; }
.osp-val { flex: 0 0 76px; text-align: right; font-size: 13px; font-variant-numeric: tabular-nums; }
.osp-val em { font-style: normal; color: var(--muted); font-size: 10.5px; margin-left: 5px; }
@media (max-width: 640px) {
  .stat-cards.osc-4 { grid-template-columns: repeat(2, 1fr); }
  /* 窄屏：主播名单独占一行（不再截断），条 + 数值降到第二行，数值不再溢出卡片 */
  .osb-row { flex-wrap: wrap; row-gap: 5px; }
  .osb-name { flex: 0 0 100%; font-weight: 600; font-size: 12.5px; }
  .osb-val { flex: 0 0 auto; }
  .os-day-legend { flex-wrap: wrap; gap: 8px 10px; row-gap: 4px; }
  .ord-stats th, .ord-stats td { padding: 7px 6px; font-size: 12px; }
  .ord-stats thead th { font-size: 10px; }
  .osd-lb { font-size: 7.5px; }
}
@media (max-width: 400px) {
  .osd-plot { height: 84px; }
  .osd-lb { font-size: 7px; }
  .os-donut { gap: 12px; }
  .os-donut-w { width: 112px; height: 112px; }
  .os-donut-w svg { width: 112px; height: 112px; }
  .osd-pct { font-size: 21px; }
}
.ord-list { padding: 4px 0; }
.ord-row { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-bottom: 1px solid var(--line); }
.ord-row:last-child { border-bottom: 0; }
.ord-m { flex: 1; min-width: 0; }
.ord-name { font-weight: 600; font-size: 13px; }
.ord-meta { font-size: 11px; color: var(--muted); margin-top: 1px; }
.ord-badge { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.ord-badge.ok { background: #e7f7ec; color: #15803d; }
.ord-badge.ret { background: #fdeaea; color: #b91c1c; }
.ord-plat { font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 999px; white-space: nowrap; letter-spacing: .2px; }
.ord-plat.tk { background: #eef2ff; color: #4338ca; }
.ord-plat.sp { background: #fff1e6; color: #c2410c; }
.ord-plat.ot { background: #eef1f4; color: #64748b; }
.ord-plathint { font-size: 11px; color: var(--muted); margin: -4px 2px 4px; min-height: 0; }
.ord-plathint.show { color: #4338ca; font-weight: 600; }
.ord-plathint.show.sp { color: #c2410c; }
.ord-plathint.show.ot { color: #64748b; }
.ord-del { flex: none; border: 0; background: none; color: #b9c0cc; font-size: 15px; padding: 4px 6px; }
.ord-del:active { color: #dc2626; }
.ord-empty { padding: 16px; text-align: center; color: var(--muted); font-size: 13px; }
.empty-note { padding: 24px; text-align: center; color: var(--muted); font-size: 13px; }

/* 订单模块 v2.9.1：登记退货 / 日期筛选 */
.btn-warn { background:#fff4ec; color:#c2410c; border:1px solid #f3c7a8; }
.btn-warn:active { background:#ffe6d4; }
.btn-sm { padding:6px 12px; font-size:12px; margin-top:0; margin-left:8px; }
.ord-ret .card-h { color:#c2410c; }
.ord-ret .ord-form { border-top:2px dashed #f3c7a8; }
.ord-filter { display:flex; align-items:center; gap:8px; padding:10px 14px 4px; }
.ord-filter .inp { flex:1; }
.ord-hint { font-size:11px; color:var(--muted); margin:2px 0 8px; line-height:1.4; }

/* ---------- 订单查询·指定时间段（v2.9.36） ---------- */
.ord-range-field {
  flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 9px 12px; text-align: left; color: var(--text);
  font-family: inherit; font-size: 13.5px; font-variant-numeric: tabular-nums;
}
.ord-range-field:active { background: #f6f8fc; }
.ord-range-field.on { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(29,78,216,.10); }
.orf-ic { flex: none; display: inline-flex; width: 17px; height: 17px; color: var(--brand); }
.orf-ic svg { width: 100%; height: 100%; }
.orf-txt { flex: 1 1 auto; min-width: 0; font-weight: 700; letter-spacing: .2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.orf-txt.all { color: var(--muted); font-weight: 500; }
.orf-car { flex: none; font-size: 10px; color: var(--muted); transition: transform .16s ease; }
.ord-range-field.on .orf-car { transform: rotate(180deg); }

.ord-cal {
  margin: 8px 14px 10px; padding: 10px 10px 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 6px 16px rgba(15,23,42,.08);
}
.ord-cal-h { display: flex; align-items: center; justify-content: space-between; padding: 0 2px 8px; }
.orc-title { font-size: 14px; font-weight: 800; color: var(--text); }
.orc-nav {
  width: 34px; height: 34px; flex: none; border: 0; border-radius: 9px;
  background: none; color: var(--text); font-size: 20px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}
.orc-nav:active { background: var(--hdr); }
.ord-cal-wk { display: grid; grid-template-columns: repeat(7, 1fr); padding-bottom: 3px; }
.ord-cal-wk span { text-align: center; font-size: 11px; font-weight: 700; color: var(--muted); }
.ord-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.orc-d {
  position: relative; height: 40px; border: 0; background: none; padding: 0; margin: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: inherit; font-size: 13.5px; font-weight: 600; color: var(--text);
  font-variant-numeric: tabular-nums; cursor: pointer;
}
.orc-d.out { color: #c5cbd6; font-weight: 500; pointer-events: none; }
.orc-d.in { background: #e7effd; }
.orc-d.start, .orc-d.end { background: var(--brand); color: #fff; }
.orc-d.start { border-radius: 999px 0 0 999px; }
.orc-d.end { border-radius: 0 999px 999px 0; }
.orc-d.start.end { border-radius: 999px; }
.orc-d.today::after {
  content: ''; position: absolute; left: 50%; bottom: 5px; transform: translateX(-50%);
  width: 5px; height: 5px; border-radius: 50%; background: var(--brand);
}
.orc-d.start.today::after, .orc-d.end.today::after { background: #fff; }
.orc-d:active { filter: brightness(.94); }
.ord-cal-f { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; padding: 6px 2px 0; border-top: 1px solid var(--line); }
.orc-txt { border: 0; background: none; border-radius: 8px; padding: 6px 10px; font-family: inherit; font-size: 13px; font-weight: 700; color: var(--brand); }
.orc-txt:active { background: #eef3ff; }
.ord-range-sum { padding: 2px 14px 6px; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- 左侧导航布局（v2.9.2） ---------- */
.sidebar {
  flex: none; width: 234px; background: #fff; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; align-self: flex-start;
  position: sticky; top: 0; height: 100dvh;
}
.sb-brand { padding: 18px 16px 14px; border-bottom: 1px solid var(--line); }
.sb-logo { font-size: 12px; font-weight: 800; letter-spacing: .12em; color: var(--brand); line-height: 1.25; }
.sb-name { font-size: 17px; font-weight: 800; margin-top: 8px; color: var(--text); }
.sb-nav { flex: 1; overflow-y: auto; padding: 10px 8px 16px; }
.sb-group { margin-top: 8px; }
.sb-gtitle { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .08em; padding: 6px 12px 2px; }
.sb-item {
  display: flex; align-items: center; gap: 11px; width: 100%;
  border: 0; background: none; text-align: left;
  padding: 11px 12px; border-radius: 10px; color: #565d6b; font-size: 14px; font-weight: 600;
  margin-top: 2px;
}
.sb-item .sb-ic { width: 20px; height: 20px; flex: none; display: block; color: #8a92a3; }
.sb-item .sb-ic svg { width: 20px; height: 20px; display: block; }
.sb-item:active { background: #f1f4f9; }
.sb-item.is-on { background: var(--brand); color: #fff; }
.sb-item.is-on .sb-ic { color: #fff; }
.main-col { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar { flex: none; display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.tb-title2 { font-size: 16px; font-weight: 800; flex: 1; line-height: 1.2; }
.hamb { display: none; width: 38px; height: 38px; flex: none; border: 1px solid var(--line); border-radius: 9px; background: #fff; font-size: 18px; color: var(--text); }
.hamb:active { background: #eef2f8; }
/* ===== 顶栏生日提醒（距生日 ≤ 4 天） ===== */
.bday-chip { display: inline-flex; align-items: center; gap: 6px; flex: none; max-width: 44%; padding: 5px 11px; border-radius: 999px; background: #fff4e5; color: #b45309; border: 1px solid #f7d9ad; font-size: 12.5px; font-weight: 700; line-height: 1.2; white-space: nowrap; overflow: hidden; }
.bday-chip .bday-ico { font-size: 14px; flex: none; }
.bday-chip .bday-txt { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px) {
  .bday-chip { max-width: 42%; font-size: 11.5px; padding: 4px 9px; gap: 4px; }
  .bday-chip .bday-ico { display: none; }
}
.navmask { display: none; }
.empty-note { padding: 20px 16px; text-align: center; color: var(--muted); font-size: 13px; line-height: 1.5; }
@media (max-width: 859px) {
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; z-index: 60; transform: translateX(-100%); transition: transform .22s ease; box-shadow: 0 0 30px rgba(0,0,0,.18); }
  .app.sidebar-open .sidebar { transform: translateX(0); }
  .navmask { display: block; position: fixed; inset: 0; background: rgba(15,23,42,.35); z-index: 55; opacity: 0; pointer-events: none; transition: opacity .2s; }
  .app.sidebar-open .navmask { opacity: 1; pointer-events: auto; }
  .hamb { display: inline-flex; align-items: center; justify-content: center; }
}

/* ===== 工资核算 ===== */
.em-sec { margin:14px 0 6px; font-size:12px; letter-spacing:.04em; color:var(--muted); text-transform:uppercase; border-top:1px dashed var(--line); padding-top:10px; }
.modal-foot { display:flex; gap:8px; align-items:center; }
.modal-foot .mf-sp { flex:1; }
.btn-danger-outline { color:#dc2626; border:1px solid #f0a3a3; background:#fff; }
.btn-danger-outline:hover { background:#fff5f5; }
.btn-ghost { color:var(--muted); border:1px solid var(--line); background:#fff; }
.btn-ghost:hover { background:#f7f9fc; }
/* 工资表：独立数据表样式。不复用考勤网格类 .att（其 padding:0 / border-spacing:3px /
   固定 116px 粘性姓名列 / height:30px 是为 31 天密集网格设计的，套在数据表上会挤成一团）。 */
.sal-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .03);
}
.sal-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 13px;
}
.sal-table th, .sal-table td {
  padding: 11px 13px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  font-weight: 500;
}
.sal-table thead th {
  background: #f5f7fb;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .04em;
  border-bottom: 1px solid var(--line-2);
}
.sal-table tbody tr:nth-child(even) td { background: #fafbfe; }
.sal-table tbody tr:hover td { background: #f2f6ff; }
.sal-table tbody tr:last-child td { border-bottom: 0; }
.sal-table th.num, .sal-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.sal-table th.c-name, .sal-table td.c-name { min-width: 150px; }
.sal-table .eno { font-size: 10px; color: var(--muted); font-weight: 500; margin-left: 5px; }
.sal-table .ec-pill { display: inline-block; vertical-align: middle; }
.sal-table td.sal-pay { font-weight: 800; color: var(--brand); font-size: 14.5px; }

/* ===== 排班（管理月历） ===== */
.scal-w { display: grid; grid-template-columns: repeat(7, 1fr); }
.scal-wh { text-align: center; font-size: 11px; color: var(--muted); padding: 6px 0; font-weight: 700; }
.scal-wh.sun { color: #e2574c; }
.scal-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 6px; }
.scal-d { position: relative; min-height: 54px; background: #fff; border: 1px solid var(--line-2); border-radius: 10px; padding: 6px; cursor: pointer; }
.scal-d:hover { border-color: var(--brand); }
.scal-d.sun { background: #fff6f5; }
.scal-d.is-today { box-shadow: inset 0 0 0 2px var(--brand); }
.scal-d.scal-blank { background: transparent; border: none; cursor: default; }
.scal-n { font-size: 13px; font-weight: 700; }
.scal-badge { position: absolute; right: 6px; bottom: 6px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; }

/* 排班日编辑弹窗（任意起止时段，每人每天最多 2 段） */
.modal-sched .sd-room { margin-bottom: 14px; }
.sd-room-h { display: flex; align-items: center; gap: 6px; margin: 4px 0 8px; }
.sd-room-input { flex: 1; min-width: 0; font-weight: 800; color: var(--brand); font-size: 13px; border: 1px solid var(--line-2); border-radius: 8px; padding: 6px 9px; background: #fff; font-family: inherit; }
.sd-room-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(29, 78, 216, .12); }
.sd-room-x { flex: none; border: 1px solid var(--line-2); background: #fff; color: var(--muted); border-radius: 8px; width: 32px; height: 33px; cursor: pointer; font-size: 12px; line-height: 1; }
.sd-room-x:hover { border-color: #e2574c; color: #e2574c; }
.sd-room-new { display: flex; gap: 8px; margin-top: 6px; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.sd-room-new .inp { flex: 1; }
.sd-host { padding: 8px 0; border-bottom: 1px dashed var(--line-2); }
.sd-host:last-child { border-bottom: none; }
.sd-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.sd-name { font-weight: 800; font-size: 14px; color: var(--text); }
.sd-total { font-size: 11px; color: var(--muted); background: #f4f5f7; border-radius: 10px; padding: 2px 8px; }
.sd-slots { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.sd-slot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sd-type { border: 1px solid var(--line-2); border-radius: 8px; padding: 6px 6px; font-size: 13px; font-weight: 800; background: #fff; font-family: inherit; max-width: 128px; }
.sd-type:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(29, 78, 216, .12); }
.sd-time { border: 1px solid var(--line-2); border-radius: 8px; padding: 6px 8px; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; background: #fff; color: var(--text); }
.sd-time:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(29, 78, 216, .12); }
/* v2.9.52 点选式时间控件：按钮 + 时/分网格（分钟含 00 整点），不再弹 iOS 原生滚轮 */
.sd-time-wrap { display: inline-flex; }
.sd-time-btn { min-width: 76px; border: 1px solid var(--line-2); border-radius: 8px; padding: 6px 9px; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; background: #fff; color: var(--text); cursor: pointer; font-family: inherit; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.sd-time-btn:active { background: #fff3eb; border-color: #e27730; }
.time-pop { position: fixed; z-index: 4000; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(340px, calc(100vw - 32px)); max-height: min(560px, calc(100vh - 40px)); overflow: auto; background: #fffaf6; border: 1px solid #f3ddcc; border-radius: 16px; box-shadow: 0 16px 48px rgba(90, 50, 20, .22); padding: 14px; font-family: inherit; }
.tp-h { font-size: 14px; font-weight: 900; color: #7a4a26; margin-bottom: 8px; text-align: center; }
.tp-label { font-size: 11px; font-weight: 800; color: #a08a7b; margin: 9px 0 5px; }
.tp-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; }
.tp-b { height: 38px; border: 1px solid #f1e2d5; border-radius: 9px; background: #fff; color: #5b4638; font-size: 13px; font-weight: 800; cursor: pointer; font-family: inherit; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.tp-b.is-on { background: linear-gradient(160deg, #ef9a72, #d9662a); border-color: #d9662a; color: #fff; }
.tp-foot { display: flex; gap: 8px; margin-top: 12px; }
.tp-whole, .tp-done { flex: 1; height: 40px; border-radius: 10px; font-size: 13px; font-weight: 800; cursor: pointer; font-family: inherit; touch-action: manipulation; }
.tp-whole { border: 1px solid #e9a877; background: #fff3ea; color: #b8561f; }
.tp-done { border: 1px solid #d9662a; background: #d9662a; color: #fff; }
.sd-dash { color: var(--muted); }
.sd-x { border: 1px solid var(--line-2); background: #fff; color: var(--muted); border-radius: 8px; width: 32px; height: 33px; cursor: pointer; font-size: 12px; line-height: 1; }
.sd-x:hover { border-color: #e2574c; color: #e2574c; }
.sd-add { border: 1px dashed var(--brand); color: var(--brand); background: #f7f9ff; border-radius: 8px; padding: 6px 12px; font-size: 12px; font-weight: 800; cursor: pointer; }
.sd-add:hover { background: #eef3ff; }
.sd-none { font-size: 12px; color: var(--muted); padding: 4px 0; }

/* 排班预览：纵向时间轴——时间从上到下铺满整屏，色块高度=时长 */
.sched-prev-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.sched-date { border: 1px solid var(--line-2); border-radius: 8px; padding: 7px 9px; font-size: 14px; font-weight: 700; color: var(--text); background: #fff; }
/* v2.9.50 日期条：压扁卡片 + 可一直续接的横滑 + 今天微型角标 */
.date-strip { flex: 1 1 300px; min-width: 0; display: flex; gap: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px 1px 3px; }
.date-strip::-webkit-scrollbar { display: none; }
.date-cell { flex: 0 0 58px; height: 52px; scroll-snap-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; padding: 2px 0; border: 1px solid #f1e0d4; border-radius: 12px; background: rgba(255,255,255,.94); box-shadow: 0 2px 7px rgba(160,100,60,.06); cursor: pointer; font-family: inherit; touch-action: manipulation; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
.dc-wd { font-size: 9.5px; font-weight: 700; color: #a08a7b; line-height: 1.1; }
.dc-day { font-size: 14px; font-weight: 800; color: #4a372d; font-variant-numeric: tabular-nums; letter-spacing: -.02em; line-height: 1.15; }
.dc-today { display: inline-flex; align-items: center; justify-content: center; height: 11px; margin-top: 1px; padding: 0 6px; white-space: nowrap; font-size: 8px; font-weight: 800; color: #c96a30; background: #fff0e5; border-radius: 999px; line-height: 1; }
.dc-today-ph { visibility: hidden; }
.date-cell.is-today:not(.is-on) { border-color: #e9a877; }
.date-cell.is-on { background: linear-gradient(160deg, #ef9a72, #d9662a); border-color: #d9662a; box-shadow: 0 4px 12px rgba(217,102,42,.26); }
.date-cell.is-on .dc-wd { color: rgba(255,255,255,.9); }
.date-cell.is-on .dc-day { color: #fff; }
.date-cell.is-on .dc-today { background: rgba(255,255,255,.26); color: #fff; }
.date-cell:active { transform: translateY(1px); }
.prev-room-sel { border: 1px solid var(--line-2); border-radius: 8px; padding: 6px 28px 6px 9px; font-size: 13px; font-weight: 800; color: var(--brand); background: #eef2fb; font-family: inherit; max-width: 46vw; }
.room-name { display: inline-block; font-size: 13px; font-weight: 800; color: var(--brand); background: #eef2fb; padding: 6px 12px; border-radius: 999px; }
.btn-share { white-space: nowrap; }
.vtl-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 2px 2px 10px; }
.vtl-leg { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #555; }
.vtl-leg i { width: 13px; height: 13px; border-radius: 4px; flex: 0 0 auto; }
.vtl-card { --vtl-ph: 44px; --vtl-pad: 22px; display: flex; background: #fff; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; }
.vtl-scroll { overflow-y: auto; -webkit-overflow-scrolling: touch; max-height: calc(100vh - 220px); }
.vtl-axis { position: relative; width: 46px; flex: 0 0 46px; background: #fafafa; border-right: 1px solid #eee; height: calc(24 * var(--vtl-ph) + 2 * var(--vtl-pad)); }
.vtl-tick { position: absolute; left: 5px; transform: translateY(-50%); font-size: 10.5px; color: #aaa; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vtl-rooms { position: relative; flex: 1; height: calc(24 * var(--vtl-ph) + 2 * var(--vtl-pad)); }
.vtl-gl { position: absolute; left: 0; right: 0; border-top: 1px dashed #ececec; }
.vtl-room { position: absolute; top: 0; bottom: 0; border-left: 1px solid #f1f1f1; }
.vtl-room:first-child { border-left: none; }
.vtl-room-h { position: absolute; top: 3px; left: 0; right: 0; text-align: center; font-size: 11.5px; font-weight: 800; color: #888; z-index: 3; pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 顶部固定直播间名横幅：始终显示在最上面 */
.vtl-thead { display: flex; align-items: stretch; margin-bottom: 6px; }
.vtl-th-spacer { flex: 0 0 46px; }
.vtl-th { flex: 1; min-width: 0; text-align: center; font-size: 12px; font-weight: 800; color: var(--brand); padding: 6px 3px; background: #f5f7fb; border-radius: 8px; white-space: normal; overflow: visible; line-height: 1.2; word-break: break-word; display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 30px; }
.vtl-th-dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; display: inline-block; }
.vtl-rest { position: absolute; top: 50%; left: 0; right: 0; transform: translateY(-50%); text-align: center; font-size: 13px; color: #c2c2c2; font-style: italic; }
.vtl-block { position: absolute; border-radius: 7px; color: #fff; padding: 3px 6px; overflow: hidden; box-shadow: 0 1px 3px rgba(0, 0, 0, .16); text-shadow: 0 1px 2px rgba(0, 0, 0, .5); display: flex; flex-direction: column; justify-content: flex-start; }
.vtl-b-n { font-size: 12.5px; font-weight: 800; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vtl-b-t { font-style: normal; font-size: 10.5px; opacity: .94; line-height: 1.25; white-space: nowrap; font-variant-numeric: tabular-nums; }
.vtl-now { position: absolute; left: 0; right: 0; border-top: 2px solid var(--brand); z-index: 4; }
.vtl-now span { position: absolute; right: 4px; top: -9px; background: var(--brand); color: #fff; font-size: 10px; padding: 1px 6px; border-radius: 9px; white-space: nowrap; }
.tl-empty { padding: 22px 10px; text-align: center; color: var(--muted); font-size: 13px; }

/* 排班预览：按直播间分段（v2.9.41） */
.vtl-sec { background: #fff; border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 10px 12px; margin-bottom: 12px; }
.vtl-sec-h { font-size: 14px; font-weight: 800; color: var(--brand); margin: 0 2px 8px; padding-left: 8px; border-left: 3px solid var(--brand); }
.room-add { display: flex; gap: 8px; margin-top: 10px; }
.room-add .inp { flex: 1; }
.room-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 2px 2px; touch-action: manipulation; }
.room-tab { border: 1px solid var(--line-2); background: #fff; color: var(--text); border-radius: 999px; padding: 6px 13px; font-size: 12.5px; font-weight: 700; cursor: pointer; font-family: inherit; touch-action: manipulation; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
.room-tab.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }
.sd-roombar { display: flex; align-items: center; gap: 8px; margin: 2px 2px 4px; }
.sd-room-lb { font-size: 12px; color: var(--muted); font-weight: 700; white-space: nowrap; }
.sd-room-sel { border: 1px solid var(--line-2); border-radius: 8px; padding: 7px 10px; font-size: 13px; font-weight: 800; color: var(--brand); background: #eef2fb; font-family: inherit; }
.sched-room-sel { border: 1px solid var(--line-2); border-radius: 8px; padding: 6px 28px 6px 9px; font-size: 13px; font-weight: 800; color: var(--brand); background: #eef2fb; font-family: inherit; max-width: 46vw; }
.room-card { border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 12px; margin: 10px 0; background: #fff; }
.room-card-h { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.room-name { flex: 1; min-width: 0; font-weight: 800; color: var(--text); font-size: 14px; border: 1px solid var(--line-2); border-radius: 8px; padding: 7px 10px; background: #fff; font-family: inherit; }
.room-name:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(29, 78, 216, .12); }
.room-count { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.room-assign { display: flex; flex-wrap: wrap; gap: 6px; }
.assign-row { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text); border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 11px 5px 9px; cursor: pointer; background: #fff; }
.assign-row.on { background: #eef2fb; border-color: var(--brand); color: var(--brand); font-weight: 700; }
.assign-row input { width: 17px; height: 17px; accent-color: var(--brand); margin: 0; }
/* ===== 卡片式排班预览（v2.9.47）：奶油暖底 + 暖橙点缀，右侧区域自适应网格 ===== */
.pv-room { margin-bottom: 18px; }
/* v2.9.53：房间名只在上方 room-tabs 出现一次，卡片区不再有重复标题/圆圈/计数 */
.pv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.pv-card {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #fffdfb 0%, #fff8f4 100%);
  border: 1px solid #f2e4da; border-radius: 16px; padding: 13px 13px 11px;
  box-shadow: 0 6px 16px rgba(150,95,60,.07), inset 0 1px 0 rgba(255,255,255,.9);
}
.pv-card::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: linear-gradient(180deg, #f3b98f, #e27730); opacity: .75; }
.pv-card-h { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; padding-bottom: 9px; border-bottom: 1px solid #f5e9e0; }
.pv-avatar { width: 29px; height: 29px; flex: 0 0 auto; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 2px solid var(--hc, #e27730); color: var(--hc, #e27730); font-size: 12px; font-weight: 800; box-shadow: 0 2px 7px rgba(80,50,30,.08); }
.pv-name { font-size: 14px; font-weight: 800; color: #3f3129; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-count { font-size: 11px; font-weight: 800; color: #c96a30; background: #fcede2; border-radius: 999px; padding: 3px 9px; flex: 0 0 auto; }
.pv-slot { --tg: #c96a30; --tf: #f8d6bc; --sb: #fff1e7; display: flex; align-items: center; gap: 9px; padding: 8px 9px; margin-bottom: 7px; border-radius: 11px; background: var(--sb); }
.pv-slot:last-child { margin-bottom: 0; }
.pv-slot.pv-live { --tg: #27865a; --tf: #bfe7d3; --sb: #eaf7f0; }
.pv-slot.pv-video { --tg: #c96a30; --tf: #f8d6bc; --sb: #fff1e7; }
.pv-slot.pv-rest { --tg: #7c7486; --tf: #ded9e5; --sb: #f4f2f6; }
.pv-tag { display: inline-flex; align-items: center; justify-content: center; gap: 4px; flex: 0 0 98px; width: 98px; height: 26px; min-width: 0; box-sizing: border-box; padding: 0 6px; border-radius: 8px; background: #fff; border: 1px solid var(--tf); color: var(--tg); font-size: 11px; font-weight: 800; white-space: nowrap; }
.pv-tag i { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--tg); }
.pv-time { font-size: 13.5px; font-weight: 700; color: #4a3b32; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pv-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 30px 14px; background: linear-gradient(160deg, #fffdfb, #fff7f1); border: 1px dashed #f0d9c9; border-radius: 16px; }
.pv-empty-ring { width: 30px; height: 30px; border-radius: 50%; border: 3px solid #f6dfd0; box-shadow: 0 0 0 6px rgba(226,119,48,.07); }
@media (max-width: 560px) {
  .pv-grid { grid-template-columns: 1fr; }
  .pv-card { padding: 12px 12px 10px; }
  /* iOS Safari：输入框字号 <16px 聚焦时会整页放大，日期框统一 16px */
  .sched-date, .sched-prev-bar input[type="date"] { font-size: 16px; }
  .sched-prev-bar .mb-nav { width: 40px; height: 40px; }
  .date-cell { flex-basis: 54px; height: 48px; }
  .dc-day { font-size: 14px; }
  .room-tabs { gap: 8px; }
  .room-tab { min-height: 38px; padding: 10px 14px; }
}

/* ===== v2.9.56 休息日（全局整天不排班 + 关怀祝福卡） ===== */
.restd-card .card-h{color:#b8561f}
.restd-hint{font-size:12px;line-height:1.6;color:#a08474;margin:-4px 0 12px}
.restd-form{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.restd-form .inp{flex:1 1 180px;min-width:150px;min-height:40px;font-size:16px}
.restd-form .btn{min-height:40px}
.restd-empty{padding:14px;text-align:center;color:#b09a8b;font-size:12.5px;background:#fffaf6;border:1px dashed #f0ddcd;border-radius:10px}
.restd-list{list-style:none;margin:10px 0 0;padding:0;display:flex;flex-direction:column;gap:6px}
.restd-item{display:flex;align-items:center;gap:10px;padding:8px 10px;background:#fffaf6;border:1px solid #f4e2d3;border-radius:10px}
.restd-d{font-weight:800;font-size:13px;color:#6d4c37;font-variant-numeric:tabular-nums}
.restd-w{font-size:11px;color:#b08a70;background:#fdf0e6;border-radius:6px;padding:2px 7px}
.restd-item .btn{margin-left:auto;min-height:30px;padding:4px 10px;font-size:11.5px}
.scal-d.is-restd{background:repeating-linear-gradient(135deg,#fff6ee,#fff6ee 6px,#ffefe1 6px,#ffefe1 12px)}
/* v2.9.61：休息日不再用橙色实底，文字半透明、垂直水平居中压在斜纹上（日期数字留左上） */
.scal-restd-big{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;font-size:15px;font-weight:800;letter-spacing:1px;color:rgba(186,104,52,.42);pointer-events:none}
.btn-outline-danger{background:#fff;color:#d9563f;border:1px solid #f0b9ad}
.btn-outline-danger:hover{background:#fff5f2;border-color:#e88a73}
.date-cell.is-restd::after{content:"";position:absolute;left:50%;bottom:3px;transform:translateX(-50%);width:5px;height:5px;border-radius:50%;background:#e27730}
.date-cell{position:relative}
.modal-restd{max-width:440px}
.restd-hero{position:relative;overflow:hidden;padding:26px 22px 24px;text-align:center;background:linear-gradient(160deg,#fff6ec 0%,#fffaf5 55%,#fff 100%);border:1px solid #f6e0cf;border-radius:16px;margin:4px 2px 2px}
.restd-hero-page{max-width:560px;margin:2px 0 14px}
.restd-sun{width:46px;height:46px;margin:0 auto 14px;border-radius:50%;background:radial-gradient(circle at 36% 32%,#ffd79b,#f2a24e 62%,#e27730);box-shadow:0 0 0 8px rgba(226,119,48,.10),0 6px 18px rgba(226,119,48,.22)}
.restd-wish-id{font-size:15px;line-height:1.7;font-weight:700;color:#7a4a26}
.restd-wish-zh{margin-top:12px;padding-top:12px;border-top:1px dashed #f0d9c9;font-size:12.5px;line-height:1.7;color:#a08474}
@media(max-width:560px){.restd-hero{padding:22px 16px}.restd-wish-id{font-size:14px}}
