/* Hotel WorkFlow V1.3 — 国际高端酒店集团内部运营管理系统视觉
   主色 深墨绿 #173F3A · 强调 香槟金 #B69B63 · 背景 暖米白 #F6F5F1 · 卡片 白 · 文字 深灰
   金色克制使用：仅督办、逾期/紧急、重点数据、激活态。移动端优先，长时间使用不疲劳。 */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* ---------- 主题变量 ---------- */
:root {
  color-scheme: light;
  --green: #173F3A;          /* 主色：深墨绿 */
  --green-2: #23564E;        /* 次级绿（hover、进行中、进度） */
  --green-3: #4A6B63;        /* 浅绿（弱文字） */
  --green-soft: #E8EFEC;     /* 极浅绿填充 */
  --gold: #B69B63;           /* 强调：香槟金 */
  --gold-2: #C9AC72;         /* 浅金（hover） */
  --gold-soft: #EFE7D6;      /* 金调浅填充（督办/标签底） */
  --bg: #F6F5F1;             /* 页面背景：暖米白 */
  --card: #FFFFFF;           /* 内容卡片：白 */
  --soft: #EFEDE7;           /* 弱填充 */
  --line: #E6E2DA;           /* 分隔线（暖灰） */
  --text: #2B2E2C;           /* 主文字：深灰 */
  --text2: #6E726E;          /* 次文字：灰 */
  --btn-fg: #FFFFFF;         /* 主按钮文字 */
  --done-bg: #ECEAE3;        /* 已完成标签底 */
  --done-tx: #5C5F5B;
  --overlay: rgba(23,63,58,.45);
  --shadow: 0 1px 4px rgba(23,63,58,.08);
  --login-grad: linear-gradient(160deg, #173F3A 0%, #102B27 100%);
  --radius: 12px;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --green: #173F3A;
  --green-2: #2A6258;
  --green-3: #5C7A72;
  --green-soft: #16302B;
  --gold: #C9AC72;
  --gold-2: #D8BE8A;
  --gold-soft: #2A2618;
  --bg: #0F2421;             /* 深墨绿黑 */
  --card: #163230;           /* 暗绿卡片 */
  --soft: #1C3A35;
  --line: #294A44;
  --text: #ECE7DD;           /* 暖米白文字 */
  --text2: #9AA39D;
  --btn-fg: #FFFFFF;
  --done-bg: #23423C;
  --done-tx: #B4BEB8;
  --overlay: rgba(0,0,0,.6);
  --shadow: 0 1px 4px rgba(0,0,0,.4);
  --login-grad: linear-gradient(160deg, #14302B 0%, #0A1B18 100%);
}

html, body { height: 100%; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg); color: var(--text); font-size: 15px;
  transition: background .25s, color .25s;
}
.hidden { display: none !important; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
i.fa-solid, i.fa-regular { line-height: 1; }

/* ---------- 登录页 ---------- */
.screen { min-height: 100vh; }
#login {
  display: flex; align-items: center; justify-content: center;
  background: var(--login-grad);
  padding: 24px;
}
.login-card {
  width: 100%; max-width: 380px; background: var(--card); border-radius: 18px;
  padding: 40px 28px 32px; box-shadow: 0 24px 60px rgba(0,0,0,.4); text-align: center;
  border: 1px solid rgba(182,155,99,.22);
}
.brand .logo {
  width: 66px; height: 66px; margin: 0 auto 16px; border-radius: 16px;
  background: var(--green); color: var(--gold);
  border: 1.5px solid var(--gold);
  font-size: 27px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.brand h1 { font-size: 20px; margin-bottom: 5px; letter-spacing: 1.5px; font-weight: 600; }
.brand p { color: var(--text2); font-size: 12.5px; letter-spacing: .5px; }
.login-card input {
  width: 100%; margin-top: 14px; padding: 13px 14px; border: 1px solid var(--line);
  border-radius: 10px; font-size: 15px; outline: none; background: var(--soft); color: var(--text);
}
.login-card input::placeholder { color: var(--text2); }
.login-card input:focus { border-color: var(--green); background: var(--card); }
.btn-primary {
  width: 100%; margin-top: 18px; padding: 13px; border-radius: 10px;
  background: var(--green); color: var(--btn-fg); font-size: 16px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-primary:active { opacity: .85; }
.hint { margin-top: 16px; font-size: 12px; color: var(--text2); line-height: 1.7; }

/* ---------- 主框架 ---------- */
#main { display: flex; flex-direction: column; height: 100vh; }
.topbar {
  height: 54px; background: var(--green); color: #fff;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 14px; flex-shrink: 0;
}
.topbar-title { font-size: 17px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: .5px; }
.topbar-user { display: flex; align-items: center; gap: 6px; font-size: 13px; flex-shrink: 0; }
.topbar-user #userName { max-width: 30vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: inherit; opacity: .88; }
.hotel-switch {
  max-width: 150px; padding: 6px 8px; border-radius: 8px; font-size: 12px;
  border: 1px solid var(--line); background: var(--card); color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer;
}
.icon-btn {
  position: relative; width: 36px; height: 36px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 17px; color: inherit; opacity: .9;
}
.icon-btn:active { opacity: .6; }
.logout-btn {
  font-size: 13px; padding: 6px 12px; border: 1px solid rgba(255,255,255,.5); opacity: .92;
  border-radius: 15px; color: #fff; background: transparent;
  display: inline-flex; align-items: center; gap: 6px;
}
.logout-btn:active { background: rgba(255,255,255,.12); }
.badge {
  position: absolute; top: 1px; right: 1px; background: var(--gold); color: var(--green);
  font-size: 10px; min-width: 16px; height: 16px; line-height: 16px; border-radius: 8px;
  padding: 0 4px; text-align: center; font-weight: 700; box-shadow: 0 0 0 1.5px var(--green);
}
.tabbar {
  display: flex; background: var(--card); border-bottom: 1px solid var(--line); flex-shrink: 0;
  overflow-x: auto;
}
.tab-item {
  flex: 1; min-width: 72px; padding: 9px 4px 10px; text-align: center;
  color: var(--text2); font-size: 12px; position: relative; white-space: nowrap;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.tab-item .fa-solid { font-size: 18px; }
.tab-item.active { color: var(--green); font-weight: 600; }
.tab-item.active::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  bottom: 0; width: 22px; height: 3px; border-radius: 2px; background: var(--gold);
}
.content { flex: 1; overflow-y: auto; padding: 14px 14px 90px; }

/* ---------- 悬浮按钮 ---------- */
.fab {
  position: fixed; right: 18px; bottom: 24px; width: 54px; height: 54px;
  border-radius: 50%; background: var(--green); color: #fff; font-size: 22px;
  box-shadow: 0 8px 22px rgba(23,63,58,.32); z-index: 50;
  border: 1.5px solid rgba(182,155,99,.55);
  display: flex; align-items: center; justify-content: center; line-height: 1;
}
.fab:active { transform: scale(.94); }

/* ---------- 通用组件 ---------- */
.card {
  background: var(--card); border-radius: var(--radius); padding: 14px;
  margin-bottom: 12px; box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.section-title { font-size: 15px; font-weight: 600; margin: 6px 0 10px; display: flex; align-items: center; gap: 8px; letter-spacing: .3px; }
.section-title .fa-solid { font-size: 13px; color: var(--gold); }
/* V1.4.16 房间问题统计报告表格与子标题 */
.sub-title { font-size: 13px; font-weight: 600; margin: 8px 0 6px; color: var(--text); display: flex; align-items: center; gap: 6px; }
.sub-title .fa-solid { font-size: 12px; color: var(--gold); }
.tbl { width: 100%; border-collapse: collapse; margin: 4px 0 2px; background: var(--card); border-radius: 8px; overflow: hidden; }
.tbl th, .tbl td { border: 1px solid var(--line); padding: 6px 8px; font-size: 12px; text-align: left; line-height: 1.4; }
.tbl th { background: var(--soft); color: var(--text); font-weight: 600; white-space: nowrap; }
.tbl td { color: var(--text); }
.tbl tr:nth-child(even) td { background: var(--soft); }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
/* 逾期高亮（与 .tag.overdue / .flow-item.overdue 同色系） */
.red { color: var(--danger, #C0623B); font-weight: 700; }
.muted { color: var(--text2); font-size: 12px; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.spread { justify-content: space-between; }

/* 状态标签（绿灯系统 + 金色仅用于督办/关键状态） */
.tag {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 20px;
  font-size: 11px; font-weight: 500; border: 1px solid transparent; white-space: nowrap;
}
.tag .fa-solid { font-size: 10px; }
.tag.wait    { background: var(--soft); color: var(--green-3); border-color: var(--line); }       /* 待接收 */
.tag.doing   { background: var(--green); color: #fff; }                                            /* 处理中：墨绿实底 */
.tag.verify  { background: transparent; border-color: var(--green-2); color: var(--green); }       /* 待验收：绿描边 */
.tag.done    { background: var(--done-bg); color: var(--done-tx); }                               /* 已完成：中性灰 */
.tag.rework  { background: var(--green-soft); border: 1.5px dashed var(--green-2); color: var(--green); font-weight: 600; } /* 重新整改：绿虚线 */
.tag.extend  { background: var(--soft); color: var(--text2); border-color: var(--line); }          /* 延期审批中 */
.tag.flow    { background: transparent; border: 1.5px solid var(--gold); color: var(--gold); font-weight: 600; } /* 流程中：金描边 */
.tag.urgent  { background: var(--gold-soft); border: 1.5px solid var(--gold); color: var(--gold); font-weight: 700; } /* 紧急/逾期：金描边 */
.tag.sv      { background: var(--gold); color: #fff; font-weight: 600; }                            /* 督办：金实底（招牌） */

/* 流程任务 */
.flow-flag { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; color: var(--gold); margin-right: 4px; }
.flow-flag.step { color: var(--green); }
.flow-list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.flow-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.flow-item.active { border-color: var(--green-2); background: var(--green-soft); }
.flow-item.done { opacity: .72; }
.flow-item.back { border-color: var(--gold); border-style: dashed; }
.flow-item.overdue { border-color: var(--danger, #C0623B); background: var(--danger-soft, #FBEDEA); }
.flow-item .overdue-flag { color: var(--danger, #C0623B); font-size: 11px; }
.rate-bar.warn i { background: var(--gold, #B69B63); }
.flow-step-no { width: 22px; height: 22px; border-radius: 50%; background: var(--soft); color: var(--text2); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.flow-item.active .flow-step-no { background: var(--green); color: #fff; }
.flow-step-info { flex: 1; min-width: 0; }
.flow-step-info b { font-size: 13px; }
.flow-step-info .muted { font-size: 11px; }

/* 筛选条 */
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 10px; }
.chip {
  padding: 6px 14px; border-radius: 20px; background: var(--card); color: var(--text2);
  font-size: 13px; border: 1px solid var(--line); white-space: nowrap;
}
.chip.active { background: var(--green); color: #fff; border-color: var(--green); }

/* 任务筛选栏（关键词/部门/类型/日期） */
.task-filter-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 10px 0 12px;
}
.tfb-input, .tfb-select {
  padding: 7px 10px; font-size: 13px; color: var(--text);
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  outline: none;
}
.tfb-input { flex: 1; min-width: 160px; }
.tfb-date { flex: 0 0 auto; min-width: 0; width: 138px; }
.tfb-select { flex: 0 0 auto; }
.tfb-sep { color: var(--text3); font-size: 12px; }
.tfb-btn {
  padding: 7px 16px; font-size: 13px; border-radius: 8px;
  background: var(--green); color: #fff; border: none; cursor: pointer;
}
.tfb-btn.ghost { background: transparent; color: var(--text2); border: 1px solid var(--line); }

/* 数据分析日期范围筛选（V1.4.2） */
.ana-filter {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 10px 0 12px;
}
.ana-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.ana-seg-btn {
  padding: 6px 14px; font-size: 13px; border-radius: 20px;
  background: var(--card); color: var(--text2);
  border: 1px solid var(--line); cursor: pointer; white-space: nowrap;
}
.ana-seg-btn.active {
  background: var(--green); color: #fff; border-color: var(--green); font-weight: 600;
}
.ana-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; width: 100%; }
.ana-date {
  padding: 7px 10px; font-size: 13px; color: var(--text);
  background: var(--card); border: 1px solid var(--line); border-radius: 8px; outline: none;
}
.ana-btn {
  padding: 7px 16px; font-size: 13px; border-radius: 8px;
  background: var(--green); color: #fff; border: none; cursor: pointer;
}
.ana-btn.ghost { background: transparent; color: var(--text2); border: 1px solid var(--line); }

/* 任务卡片 */
.task-card { cursor: pointer; }
.task-card:active { background: var(--soft); }
.task-title { font-size: 15px; font-weight: 600; margin-bottom: 6px; line-height: 1.45; }
.task-meta { font-size: 12px; color: var(--text2); line-height: 1.9; }
.task-meta b { color: var(--text); font-weight: 500; }
.overdue-flag { color: var(--gold); font-weight: 700; font-style: normal; }
.overdue-flag .fa-solid { font-size: 11px; }
/* V1.4.3 任务卡片高亮：逾期红 / 未接收橙 */
.card-overdue { border-left: 4px solid #D9534F; }
.card-unreceived { border-left: 4px solid #E6A23C; }
.card-overdue.card-unreceived { border-left-color: #D9534F; }
.card-overdue .overdue-flag,
.card .task-meta .overdue-flag {
  display: inline-block;
  background: #D9534F;
  color: #fff;
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 11px;
}
.unreceived-flag {
  display: inline-block;
  background: rgba(230, 162, 60, 0.14);
  color: #C77700;
  border: 1px solid #E6A23C;
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 11px;
  font-weight: 700;
  font-style: normal;
}
.unreceived-flag .fa-solid { font-size: 11px; }
.empty { text-align: center; color: var(--text2); padding: 48px 0; font-size: 14px; }

/* ---------- 驾驶舱 ---------- */
.kpi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi {
  background: var(--card); border-radius: var(--radius); padding: 14px 8px; text-align: center;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.kpi .num { font-size: 24px; font-weight: 700; }
.kpi .lbl { font-size: 12px; color: var(--text2); margin-top: 2px; }
.num.green  { color: var(--green); }                        /* 今日新增：主色 */
.num.purple { color: var(--text2); }                        /* 待验收 */
.num.orange { color: var(--green-2); }                      /* 处理中 */
.num.red    { color: var(--gold); font-weight: 800; text-decoration: underline; text-underline-offset: 4px; } /* 已逾期：金+下划线 */
.num.gold   { color: var(--gold); }                         /* 督办中：金 */

.rate-row { margin-bottom: 10px; }
.rate-row .spread { font-size: 13px; margin-bottom: 4px; }
.rate-bar { height: 8px; background: var(--soft); border-radius: 4px; overflow: hidden; border: 1px solid var(--line); }
.rate-bar i { display: block; height: 100%; background: var(--green-2); border-radius: 4px; }

/* ---------- 表单 ---------- */
.form-item { margin-bottom: 12px; }
.form-item label { display: block; font-size: 13px; color: var(--text2); margin-bottom: 6px; }
.form-item input, .form-item select, .form-item textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px;
  font-size: 14px; outline: none; background: var(--soft); font-family: inherit; color: var(--text);
}
.form-item input::placeholder, .form-item textarea::placeholder { color: var(--text2); }
.form-item input:focus, .form-item select:focus, .form-item textarea:focus {
  border-color: var(--green); background: var(--card);
}
.form-item textarea { resize: vertical; min-height: 66px; }
.form-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-block {
  width: 100%; padding: 12px; border-radius: 10px; background: var(--green);
  color: #fff; font-size: 15px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-ghost {
  padding: 10px 14px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--card); color: var(--text); font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.btn-danger {
  background: transparent; color: var(--text); border: 1.5px solid var(--text); font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.btn-warn { background: var(--green-soft); border: 1px solid var(--green-soft); color: var(--green); }
.btn-ok { background: var(--green); color: #fff; }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 8px; }
.btn-ghost.btn-sm, .btn-danger.btn-sm, .btn-warn.btn-sm, .btn-block.btn-sm { display: inline-flex; }

/* ---------- 任务详情 ---------- */
.detail-head { padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.detail-head h3 { font-size: 17px; line-height: 1.5; margin: 8px 0; }
.kv { display: flex; font-size: 13px; line-height: 2.1; }
.kv .k { width: 78px; color: var(--text2); flex-shrink: 0; }
.kv .v { flex: 1; }
.photos { display: flex; gap: 8px; flex-wrap: wrap; }
.photos img { width: 82px; height: 82px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.action-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

/* 时间线 */
.timeline { position: relative; padding-left: 18px; }
.timeline::before {
  content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px;
  width: 2px; background: var(--line);
}
.tl-item { position: relative; padding-bottom: 14px; font-size: 13px; }
.tl-item::before {
  content: ""; position: absolute; left: -17px; top: 5px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--green-2);
}
.tl-item .tl-time { color: var(--text2); font-size: 11px; }

/* 评论 */
.comment { display: flex; gap: 10px; margin-bottom: 10px; }
.comment .avatar {
  width: 32px; height: 32px; border-radius: 50%; background: var(--green-soft);
  border: 1px solid var(--line);
  color: var(--green); font-size: 13px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.comment .c-body { flex: 1; }
.comment .c-name { font-size: 12px; color: var(--text2); margin-bottom: 2px; }
.comment .c-text { font-size: 14px; line-height: 1.5; }

/* ---------- 弹层 ---------- */
.modal {
  position: fixed; inset: 0; background: var(--overlay); z-index: 100;
  display: flex; align-items: flex-end; justify-content: center;
}
.modal-box {
  background: var(--card); width: 100%; max-width: 560px; max-height: 88vh;
  border-radius: 18px 18px 0 0; padding: 18px 16px 26px; overflow-y: auto;
}
@media (min-width: 640px) {
  .modal { align-items: center; }
  .modal-box { border-radius: 16px; }
}
.modal-title { font-size: 16px; font-weight: 600; margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; letter-spacing: .3px; }
.modal-close {
  font-size: 13px; color: var(--text2); width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center; border-radius: 8px;
}
.modal-close:active { background: var(--soft); }

/* ---------- 消息 ---------- */
.msg-item {
  display: flex; gap: 10px; padding: 12px; background: var(--card); border-radius: var(--radius);
  margin-bottom: 10px; box-shadow: var(--shadow); border: 1px solid var(--line);
}
.msg-item.unread { border-left: 3px solid var(--gold); }
.msg-item .m-icon {
  width: 36px; height: 36px; border-radius: 10px; background: var(--green-soft);
  border: 1px solid var(--line); color: var(--green-2); font-size: 15px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.msg-item .m-body { flex: 1; }
.msg-item .m-text { font-size: 14px; line-height: 1.5; }
.msg-item .m-time { font-size: 11px; color: var(--text2); margin-top: 3px; }

/* ---------- 管理页 ---------- */
.admin-item {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px;
}
.admin-item:last-child { border-bottom: none; }
.group-h { font-size: 12px; color: var(--text2); margin: 12px 0 4px; font-weight: 600; letter-spacing: .5px; }

/* ---------- 数据分析统计 ---------- */
.chip-count {
  display: inline-block; margin-left: 4px; padding: 0 6px; min-width: 18px; height: 18px;
  line-height: 18px; text-align: center; border-radius: 9px; font-size: 11px; font-weight: 700;
  background: var(--gold-soft); color: var(--gold); border: 1px solid var(--gold);
}
.chip.active .chip-count { background: rgba(255,255,255,.2); color: #fff; border-color: rgba(255,255,255,.4); }

.analytics-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .analytics-2col { grid-template-columns: 1fr; } }

.analytics-row { display: flex; gap: 10px; flex-wrap: wrap; }
.analytics-cell { flex: 1; text-align: center; min-width: 80px; }
.analytics-cell .big { display: block; font-size: 24px; font-weight: 700; }
.analytics-cell .lbl { font-size: 11px; color: var(--text2); margin-top: 2px; }

/* 趋势柱状图 */
.trend-chart { display: flex; gap: 4px; align-items: flex-end; height: 120px; }
.trend-col { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; }
.trend-bars { flex: 1; display: flex; gap: 3px; align-items: flex-end; width: 100%; justify-content: center; }
.trend-bar { width: 10px; border-radius: 3px 3px 0 0; min-height: 2px; transition: height .3s; }
.trend-bar.created { background: var(--green); }
.trend-bar.closed { background: var(--gold); }
.trend-lbl { font-size: 10px; color: var(--text2); margin-top: 4px; }

/* 图例 */
.legend { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }

/* 环形饼图 */
.donut-wrap { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.donut-legend { flex: 1; min-width: 120px; }
.donut-legend .legend-item { font-size: 12px; line-height: 2; display: flex; align-items: center; gap: 5px; }
.donut-legend .legend-item i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.donut-legend .legend-item b { color: var(--text); }

/* 横向条形列表 */
.bar-list-item { margin-bottom: 8px; }

/* 部门绩效条 */
.dept-stat { margin-bottom: 12px; }

/* 员工排名行 */
.emp-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.emp-row:last-child { border-bottom: none; }
.emp-rank {
  width: 28px; height: 28px; border-radius: 50%; background: var(--soft); color: var(--text2);
  font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.emp-rank.top { background: var(--gold); color: #fff; }

/* 时段分布柱图 */
.hour-chart { display: flex; gap: 2px; align-items: flex-end; height: 80px; }
.hour-col { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; }
.hour-bar { width: 100%; max-width: 14px; background: var(--green-2); border-radius: 2px 2px 0 0; min-height: 1px; }
.hour-lbl { font-size: 8px; color: var(--text2); margin-top: 2px; }

.toast {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 96px;
  background: var(--green); color: #fff; padding: 9px 18px; border-radius: 20px;
  font-size: 13px; z-index: 200; max-width: 80vw; text-align: center;
  box-shadow: 0 6px 18px rgba(23,63,58,.3);
}

/* 权限多选（按人勾选附加权限） */
.perm-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2px 12px; margin-top: 4px;
}
.perm-item {
  display: flex; align-items: center; gap: 7px;
  padding: 6px 8px; font-size: 13px; cursor: pointer;
  border-radius: 8px; border: 1px dashed transparent;
}
.perm-item:hover { border-color: var(--line); }
.perm-item input[type="checkbox"] { accent-color: var(--green); }
