
/* ---------- v0.64.1 两级导航：父 tab 可折叠（默认折叠，当前组自动展开） ---------- */
.nav-parent { display: flex; align-items: center; gap: 10px; width: 100%; border: none; background: transparent; color: var(--side-fg); padding: 10px 12px; border-radius: 9px; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.nav-parent:hover { background: var(--side-hover); color: var(--ink-strong); }
.nav-parent .yd-icon { flex-shrink: 0; }
.nav-parent span { flex: 1; text-align: left; }
.nav-caret { transition: transform .22s ease; opacity: .7; }
.nav-parent.open .nav-caret { transform: rotate(90deg); }
.nav-kids { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .24s ease; }
.nav-kids.open { grid-template-rows: 1fr; }
.nav-kids-in { overflow: hidden; min-height: 0; display: flex; flex-direction: column; gap: 2px; }
.nav-item.kid { padding-left: 39px; font-size: 12.5px; }
.sidebar-footer { padding: 14px; border-top: 1px solid var(--side-line); display: flex; flex-direction: column; gap: 10px; }
.sidebar .btn-ghost { color: var(--side-fg-2); }
.sidebar .btn-ghost:hover { background: var(--side-hover); color: var(--ink-strong); }
.footer-btns { display: flex; gap: 8px; }
.footer-btns .btn { flex: 1; }
.user-chip { display: flex; align-items: center; gap: 10px; }
.user-meta { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.user-meta strong { color: var(--ink-strong); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-meta span { color: var(--side-fg-2); font-size: 12px; }

.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--brand);
  color: #fff; font-weight: 600; font-size: 15px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.avatar.xs { width: 28px; height: 28px; font-size: 12.5px; }
.avatar.lg { width: 46px; height: 46px; font-size: 19px; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 28px 14px;
  background: rgba(246,248,246,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.page-head { min-width: 0; }
.page-head h1 { font-size: 19px; font-weight: 700; letter-spacing: .3px; line-height: 1.3; }
.page-head p { margin: 3px 0 0; font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }
.topbar-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.topbar-actions:empty { display: none; }
.content { padding: 18px 28px 40px; flex: 1; min-width: 0; }

/* ---------- 门店切换 ---------- */
.store-chip { position: relative; }
.store-chip-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--card); cursor: default; max-width: 320px;
  color: var(--ink-3);
}
.store-chip-btn.clickable { cursor: pointer; }
.store-chip-btn.clickable:hover { border-color: var(--brand); color: var(--brand); }
.store-chip-name { font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.store-chip-role { font-size: 12px; color: var(--brand); background: var(--brand-soft); padding: 1px 8px; border-radius: 999px; white-space: nowrap; }
.store-chip-caret { flex-shrink: 0; }
.store-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 40;
  min-width: 210px; padding: 6px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-md);
}
.store-menu-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; padding: 8px 10px; border: none; background: transparent;
  border-radius: 6px; cursor: pointer; text-align: left;
}
.store-menu-item:hover { background: var(--brand-softer); }
.store-menu-item.cur { background: var(--brand-soft); }
.store-menu-item .nm { font-size: 13px; color: var(--ink); font-weight: 500; }
.store-menu-item .rl { font-size: 12px; color: var(--ink-3); white-space: nowrap; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  padding: 8px 15px; font-size: 13.5px; font-weight: 500;
  transition: background .15s, border-color .15s, color .15s, transform .05s, box-shadow .15s;
  white-space: nowrap; background: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 2px 8px rgba(26,122,88,.26); }
.btn-primary:hover { background: var(--brand-strong); }
.btn-outline { background: var(--card); border-color: var(--line-strong); color: var(--ink-2); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--brand-soft); color: var(--brand); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-danger-soft { background: var(--danger-soft); color: var(--danger); }
.btn-danger-soft:hover { background: #fbd5d5; }
.btn-sm { padding: 5px 11px; font-size: 12.5px; border-radius: 7px; }
.btn-block { width: 100%; padding: 11px; font-size: 15px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- 工具栏（筛选条统一形态） ---------- */
.toolbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 14px;
}
.toolbar-spacer { flex: 1 1 auto; min-width: 8px; }
.toolbar .ctl, .toolbar select.ctl { width: auto; min-width: 128px; }
.ctl { padding: 7px 10px; }
.search-box {
  display: flex; align-items: center; gap: 7px;
  background: var(--card); border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); padding: 0 10px; color: var(--ink-3);
  transition: border-color .15s, box-shadow .15s;
}
.search-box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(26,122,88,.14); }
.search-box input[type=search] {
  border: none; outline: none; background: none; padding: 7px 0;
  width: 210px; font-size: 13.5px; box-shadow: none;
}
.search-box input::-webkit-search-cancel-button { cursor: pointer; }
.date-box {
  display: flex; align-items: center; gap: 6px;
  background: var(--card); border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); padding: 0 8px 0 10px;
  transition: border-color .15s, box-shadow .15s;
}
.date-box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(26,122,88,.14); }
.date-box .date-label { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.date-box input[type=date], .date-box input[type=datetime-local] {
  border: none; outline: none; background: none; padding: 7px 0; width: auto; font-size: 13.5px; box-shadow: none;
}
.date-box input[type=datetime-local] { min-width: 186px; }
.date-clear {
  border: none; background: var(--neutral-soft); color: var(--ink-2);
  width: 18px; height: 18px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.date-clear:hover { background: var(--danger-soft); color: var(--danger); }
.check-inline {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--ink-2); cursor: pointer; white-space: nowrap;
  padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card);
}
.check-inline input { accent-color: var(--brand); width: 14px; height: 14px; }
.check-inline:hover { border-color: var(--brand); color: var(--brand); }

/* 看板图例：与工具栏同排，带计数 */
.legend { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; font-size: 12.5px; color: var(--ink-2); }
.legend-item { display: inline-flex; align-items: center; gap: 5px; }
.legend-item.zero { opacity: .45; }
.legend-item b { color: var(--ink); font-variant-numeric: tabular-nums; }
.legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; }
.sw-free { background: var(--surf-2); border: 1px dashed var(--line-strong); }
.sw-confirmed { background: var(--info-soft); border: 1px solid #bcd2f8; }
.sw-arrived { background: var(--cyan-soft); border: 1px solid #b3e2ee; }
.sw-completed { background: var(--ok-soft); border: 1px solid #b5e6d2; }
.sw-cancelled { background: var(--danger-soft); border: 1px solid #f3c2c2; }
.sw-no_show { background: var(--no-show-soft); border: 1px solid #e4c4b4; }

/* ---------- 分段控件（全站唯一的多选一形态） ---------- */
.seg {
  display: inline-flex; padding: 3px; gap: 2px;
  background: var(--neutral-soft); border-radius: 10px;
}
.seg button {
  border: none; background: none; padding: 6px 14px;
  border-radius: 8px; font-size: 13px; color: var(--ink-2);
  transition: background .15s, color .15s, box-shadow .15s;
  white-space: nowrap;
}
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--card); color: var(--ink-strong); font-weight: 600; box-shadow: var(--shadow-xs); }
.seg.sm button { padding: 4px 11px; font-size: 12.5px; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card + .card { margin-top: 16px; }
/* 网格内的卡片间距由 gap 控制，不吃兄弟 margin */
.stat-grid > .card, .grid-2 > .card, .podium > .card, .plan-grid > .card { margin-top: 0; }
.card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
}
.card-head h3 { font-size: 14.5px; font-weight: 600; }
.card-head .hint { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.card-act { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.card-body { padding: 18px; }
.card-body.flush, .table-wrap.no-pad { padding: 0; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; }
.sec-title { font-size: 13.5px; font-weight: 600; margin: 20px 0 10px; color: var(--ink); }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 20px 0 10px; }
.sec-head .sec-title { margin: 0; }
.hint { font-size: 12px; color: var(--ink-3); }
.hint.warn { color: var(--warn); }

/* ---------- 表单 ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.field > span { font-size: 13px; color: var(--ink-2); font-weight: 500; }
.field > span em { color: var(--danger); font-style: normal; margin-left: 2px; }
.field > span .hint { margin-left: 8px; font-weight: 400; }
.field.inline { flex-direction: row; align-items: center; gap: 8px; margin-bottom: 0; }
.field.inline > span { white-space: nowrap; }
input[type=text], input[type=password], input[type=number], input[type=date],
input[type=time], input[type=tel], input[type=datetime-local], input[type=search], select, textarea {
  width: 100%; padding: 8px 11px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(26,122,88,.14);
}
input:disabled, select:disabled, textarea:disabled { background: var(--neutral-soft); color: var(--ink-3); cursor: not-allowed; }
input[readonly] { background: var(--brand-softer); color: var(--ink-2); }
select { cursor: pointer; }
textarea { resize: vertical; min-height: 70px; line-height: 1.5; }
.form-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field.check-row { flex-direction: row; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--brand-softer); }
.field.check-row > span { margin: 0; font-size: 13px; color: var(--ink); font-weight: 400; }
.field.check-row > input { width: 15px; height: 15px; accent-color: var(--brand); flex-shrink: 0; }
.form-notice {
  font-size: 12.5px; color: var(--ink-2); background: var(--brand-softer);
  border-left: 3px solid var(--brand); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 9px 12px; margin-bottom: 14px;
}
.inline-warn, .inline-ok {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: 12.5px; padding: 8px 12px; border-radius: var(--radius-sm);
}
.inline-warn { color: var(--warn); background: var(--warn-soft); }
.inline-ok { color: var(--ink-2); background: var(--brand-softer); }
.confirm-msg { font-size: 14px; color: var(--ink-2); margin-bottom: 4px; }

/* 桌位 / 标签多选 */
.pick-box { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 10px; border: 1px dashed var(--line-strong); border-radius: 10px; background: var(--brand-softer); }
.pick-box.tall { max-height: 260px; overflow: auto; align-items: flex-start; }
.pick-group { width: 100%; font-size: 12px; color: var(--ink-2); font-weight: 600; margin-top: 4px; }
.pick-item {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--card); color: var(--ink-2); font-size: 12.5px;
  transition: background .12s, color .12s, border-color .12s;
}
.pick-item i { font-style: normal; color: var(--ink-3); font-size: 11.5px; }
.pick-item:hover { border-color: var(--brand); color: var(--brand); }
.pick-item.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.pick-item.on i { color: rgba(255,255,255,.8); }
.pick-item.disabled { opacity: .45; cursor: not-allowed; background: var(--neutral-soft); color: var(--ink-2); border-color: transparent; }

/* ---------- 表格 ---------- */
.table-wrap { overflow: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data th {
  text-align: left; padding: 9px 14px;
  color: var(--ink-3); font-weight: 500; font-size: 12.5px;
  border-bottom: 1px solid var(--line);
  background: var(--thead-bg);
  white-space: nowrap;
  position: sticky; top: 0; z-index: 1;
}
table.data th.w-num, table.data td.num { text-align: right; }
table.data th.w-act, table.data td.w-act { text-align: right; width: 1%; white-space: nowrap; }
table.data th.w-bar { width: 22%; }
/* 行高收敛：双行单元格靠 .hint 的紧凑行高控制，不靠 padding 撑 */
table.data td { padding: 9px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data td .hint { display: block; line-height: 1.35; }
table.data td .badge + .hint { display: inline-block; margin-left: 6px; }
table.data tbody tr:last-child td { border-bottom: none; }
table.data tbody tr { transition: background .12s; }
table.data tbody tr:hover { background: var(--brand-softer); }
table.data tbody tr.clickable { cursor: pointer; }
table.data tbody tr.row-open { background: var(--brand-soft); }
table.data .row-actions { display: flex; gap: 6px; justify-content: flex-end; }
table.data td.summary { max-width: 420px; }
/* 删除是破坏性低频动作：默认隐藏、行 hover 或键盘聚焦时出现 */
table.data .row-actions .btn-danger-soft { opacity: 0; pointer-events: none; transition: opacity .12s; }
table.data tbody tr:hover .row-actions .btn-danger-soft,
table.data .row-actions .btn-danger-soft:focus-visible,
table.data tbody tr:focus-within .row-actions .btn-danger-soft { opacity: 1; pointer-events: auto; }

/* 客户 / 员工单元格：头像 + 主副文本，省掉独立手机号列 */
.cust-cell { display: flex; align-items: center; gap: 9px; min-width: 0; }
.cust-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.cust-txt .hint { line-height: 1.35; }

/* 操作记录明细行 */
.ol-detail > td { background: var(--brand-softer); padding: 10px 16px; }
.changes { list-style: none; display: grid; gap: 4px; }
.changes li { font-size: 12.5px; color: var(--ink-2); }
.changes li b { color: var(--ink); margin-right: 4px; font-weight: 600; }
.changes .del { color: var(--danger); text-decoration: line-through; margin-right: 4px; }
.changes .add { color: var(--ok); }

/* ---------- 徽章 / 标签 ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 500; white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.confirmed { background: var(--info-soft); color: var(--info); }
.badge.arrived   { background: var(--cyan-soft); color: var(--cyan); }
.badge.completed { background: var(--ok-soft); color: var(--ok); }
.badge.cancelled { background: var(--danger-soft); color: var(--danger); }
.badge.no_show   { background: var(--no-show-soft); color: var(--no-show); }
.badge.free      { background: var(--neutral-soft); color: var(--neutral); }
.badge.warn      { background: var(--warn-soft); color: var(--warn); }
.badge.plain     { background: var(--neutral-soft); color: var(--ink-2); }
.badge.plain::before { display: none; }
/* 客户等级：A 金 / B 蓝 / C 灰（颜色属表现层，文案吃后端下发） */
.badge.lv::before { display: none; }
.badge.lv-A { background: var(--warn-soft); color: #a35c00; }
.badge.lv-B { background: var(--info-soft); color: var(--info); }
.badge.lv-C { background: var(--neutral-soft); color: var(--ink-2); }
.badge.lv-none { background: var(--neutral-soft); color: var(--ink-3); }

.tag {
  display: inline-block; padding: 2px 8px; border-radius: 6px;
  background: var(--brand-soft); color: var(--brand);
  font-size: 11.5px; margin: 1px 3px 1px 0;
}

/* ---------- 指标卡 ---------- */
.stat-grid { display: grid; gap: 14px; margin-bottom: 16px; }
.stat-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat-grid.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.stat-card { padding: 15px 17px; position: relative; overflow: hidden; }
.stat-card .stat-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.stat-card .label { font-size: 12.5px; color: var(--ink-3); }
.stat-card .stat-icon { color: var(--line-strong); }
.stat-card .value { font-size: 25px; font-weight: 700; letter-spacing: -.3px; margin-top: 6px; line-height: 1.2; }
.stat-card .value small { font-size: 12.5px; font-weight: 400; color: var(--ink-3); margin-left: 3px; }
.stat-card .hint { margin-top: 4px; }
.stat-card.accent { background: var(--card); }
.stat-card.accent .value { color: var(--ink-strong); }
.stat-card.accent .stat-icon { color: rgba(26,122,88,.35); }
.stat-card.ok .value { color: var(--ok); }
.stat-card.info .value { color: var(--info); }
.stat-card.cyan .value { color: var(--cyan); }
.stat-card.warn .value { color: var(--warn); }
.stat-card.danger .value { color: var(--danger); }
.stat-card.no-show .value { color: var(--no-show); }

/* ---------- 看板 ---------- */
.board-card .card-body { padding: 12px 14px 14px; }
.board-scroll { overflow-x: auto; }
/* 定宽槽位列 + 居中：时段少时不拉成半屏死区，时段多时横向滚动 */
.board {
  border-collapse: separate; border-spacing: 6px;
  width: max-content; min-width: min(100%, 780px); margin: 0 auto;
  table-layout: fixed;
}
.board th.corner { width: 172px; text-align: left; font-size: 12.5px; color: var(--ink-3); font-weight: 500; padding: 4px; }
.board th.slot-col {
  width: 212px; font-size: 12px; color: var(--ink-3); font-weight: 500;
  padding: 6px 8px; text-align: center; white-space: nowrap;
}
.board th.slot-col b { display: block; color: var(--ink); font-size: 13px; font-weight: 600; }
.board th.slot-col span { font-variant-numeric: tabular-nums; }
.board tr.zone-row th {
  text-align: left; font-size: 12.5px; color: var(--ink-2); font-weight: 600;
  padding: 12px 4px 2px; letter-spacing: .5px;
}
.board td.table-label { white-space: nowrap; padding: 0 10px 0 4px; font-size: 13.5px; vertical-align: middle; }
.board td.table-label b { font-weight: 600; }
.board td.table-label span { display: block; font-weight: 400; font-size: 11.5px; color: var(--ink-3); }
.cell {
  height: 40px; border-radius: 10px; border: 1px solid transparent;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 12px; gap: 2px; cursor: pointer; padding: 4px;
  transition: transform .1s, box-shadow .12s, filter .12s;
  user-select: none; overflow: hidden;
}
.cell:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); filter: brightness(.97); }
.cell b { font-size: 12.5px; font-weight: 600; }
.cell.free { background: var(--surf-2); color: var(--ink-3); border-style: dashed; border-color: var(--line-strong); }
.cell.confirmed { background: var(--info-soft); color: var(--info); border-color: #bcd2f8; }
.cell.arrived { background: var(--cyan-soft); color: var(--cyan); border-color: #b3e2ee; }
.cell.completed { background: var(--ok-soft); color: var(--ok); border-color: #b5e6d2; }
.cell.cancelled { background: var(--danger-soft); color: var(--danger); border-color: #f3c2c2; }
.cell.no_show { background: var(--no-show-soft); color: var(--no-show); border-color: #e4c4b4; }
.cell:not(.free) { height: auto; min-height: 54px; padding: 6px 4px; border-width: 1.5px; box-shadow: var(--shadow-xs); }
.cell-who { font-size: 10.5px; opacity: .85; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 统计图表 ---------- */
.bar-row { display: grid; grid-template-columns: 96px minmax(0,1fr) 152px; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 13px; }
.bar-row:last-child { margin-bottom: 0; }
.bar-row .bar-name { color: var(--ink-2); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { height: 12px; background: var(--brand-softer); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: var(--brand); transition: width .5s ease; }
.bar-row .bar-count { color: var(--ink-2); font-size: 12.5px; text-align: right; line-height: 1.4; }
.bar-row .bar-count b { color: var(--ink); font-variant-numeric: tabular-nums; }
.bar-row .bar-count .hint { display: block; }

.trend-chart { display: flex; align-items: flex-end; gap: 4px; height: 168px; padding-top: 8px; }
.trend-bar { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 100%; }
.trend-bar .col { width: 100%; max-width: 30px; border-radius: 5px 5px 2px 2px; background: var(--brand); transition: height .4s ease; min-height: 2px; }
.trend-bar:hover .col { filter: brightness(1.08); }
.trend-bar .num { font-size: 10.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.trend-bar .day { font-size: 10.5px; color: var(--ink-3); white-space: nowrap; height: 15px; }

/* 用量条：数字 + 比例条同格 */
.usage-bar { position: relative; display: flex; align-items: center; justify-content: flex-end; height: 22px; border-radius: 6px; background: var(--brand-softer); overflow: hidden; }
.usage-bar .fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--brand-soft); }
.usage-bar b { position: relative; padding-right: 8px; font-size: 12.5px; color: var(--ink-strong); font-variant-numeric: tabular-nums; }

/* ---------- 排行榜 ---------- */
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: stretch; margin-bottom: 16px; }
.podium-cell { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 16px 14px; text-align: center; box-shadow: var(--shadow-sm); }
.podium-cell.first { border-color: rgba(217,119,6,.45); background: var(--warn-soft); transform: translateY(-6px); box-shadow: var(--shadow-md); }
.podium-cell.empty { border-style: dashed; background: transparent; box-shadow: none; }
.podium-cell .medal { font-size: 20px; height: 24px; }
.podium-cell .avatar { margin: 6px auto; }
.podium-cell .nm { font-weight: 600; font-size: 14px; }
.podium-cell .vl { font-size: 12px; color: var(--ink-2); margin-top: 4px; font-variant-numeric: tabular-nums; }
.self-bar { margin-top: 16px; padding: 11px 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font-size: 13px; color: var(--ink-2); }
.self-bar b { color: var(--ink-strong); font-variant-numeric: tabular-nums; }

/* ---------- 详情 / 档案 ---------- */
.detail-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.detail-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px 20px; }
.detail-item .k { font-size: 12px; color: var(--ink-3); margin-bottom: 2px; }
.detail-item .v { font-size: 13.5px; font-weight: 500; word-break: break-word; }
.detail-item.full { grid-column: 1 / -1; }
.action-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }

.cust-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.cust-id { min-width: 0; flex: 1; }
.cust-name { font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cust-act { display: flex; gap: 8px; flex-shrink: 0; }
.mini-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; margin-bottom: 14px; }
.mini-grid.tight { margin-bottom: 12px; }
.mini-stat { background: var(--brand-softer); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; text-align: center; }
.mini-stat .n { font-size: 19px; font-weight: 700; color: var(--ink-strong); font-variant-numeric: tabular-nums; line-height: 1.3; }
.mini-stat .n.small { font-size: 14px; line-height: 26px; }
.mini-stat .t { font-size: 11.5px; color: var(--ink-3); }
.note-line { font-size: 12.5px; color: var(--ink-2); background: var(--brand-softer); padding: 8px 12px; border-radius: 8px; margin-bottom: 8px; }
.note-line.muted { background: var(--neutral-soft); }
.note-line b { color: var(--ink); margin-right: 6px; font-weight: 600; }

.detail-sections { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin: 14px 0; }
.detail-sections section { border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: var(--card); min-width: 0; }
.detail-sections section h4 { font-size: 13px; margin-bottom: 10px; color: var(--ink-2); }

.wd-chart { display: flex; gap: 6px; align-items: flex-end; height: 88px; }
.wd-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; min-width: 0; height: 100%; }
.wd-col .wd-stack { width: 62%; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; border-radius: 4px 4px 0 0; background: var(--neutral-soft); }
.wd-col .wd-stack i { display: block; width: 100%; }
.wd-col .wd-stack i.l { background: var(--brand); }
.wd-col .wd-stack i.d { background: var(--cyan); }
.wd-col span { font-size: 11px; color: var(--ink-2); }

.timeline { list-style: none; display: grid; gap: 8px; }
.timeline > li {
  position: relative; display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card);
}
.timeline > li .t { font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.timeline > li .c { font-size: 12.5px; flex: 1; min-width: 120px; color: var(--ink-2); }
.timeline > li .row-actions { margin-left: auto; }

/* ---------- 空态 / 骨架屏 ---------- */
.empty { text-align: center; padding: 46px 16px; color: var(--ink-3); }
.empty .icon { font-size: 32px; margin-bottom: 8px; opacity: .75; }
.empty .text { font-size: 13.5px; color: var(--ink-2); }
/* AUD-S43/D07：错误态三态契约配色（语义令牌） */
.empty.err .icon { filter: grayscale(.2); }
.empty.err .text { color: var(--danger); }
.empty .hint { margin-top: 4px; }
.empty-act { margin-top: 14px; display: flex; gap: 8px; justify-content: center; }

.sk { padding: 14px 16px; display: grid; gap: 10px; }
.sk-row { display: flex; gap: 14px; align-items: center; }
.sk-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 15px 17px; display: grid; gap: 10px; }
.sk-bars { display: flex; align-items: flex-end; gap: 6px; height: 120px; }
.sk-bars span { flex: 1; border-radius: 5px 5px 2px 2px; background: linear-gradient(90deg, var(--line) 25%, var(--brand-softer) 37%, var(--line) 63%); background-size: 400% 100%; animation: yd-shimmer 1.3s var(--ease-out) infinite; }

/* ---------- 分页 ---------- */
.pager { display: flex; align-items: center; justify-content: flex-end; gap: 6px; padding: 12px 16px; font-size: 13px; color: var(--ink-2); border-top: 1px solid var(--line); }
.pager-total { margin-right: auto; color: var(--ink-3); font-size: 12.5px; }
.pager-total b { color: var(--ink-2); }
.pager button { min-width: 30px; height: 30px; padding: 0 6px; border-radius: 7px; border: 1px solid var(--line-strong); background: #fff; color: var(--ink-2); font-size: 13px; }
.pager button:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.pager button.cur { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.pager button:disabled { opacity: .4; cursor: default; }

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 100;
  /* 不用 backdrop-filter：全屏模糊层在本机软件光栅下每次真滚轮帧都重跑 blur，
     实测弹窗内滚动平均帧 45ms、掉帧(>32ms) 35 个；去掉后 17ms、0 掉帧。
     分离感靠加深遮罩色保持 */
  background: rgba(31,36,33,.52);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 6vh 16px 16px; overflow-y: auto;
  animation: yd-fade-in var(--dur-fast) var(--ease-out);
}

.modal.wide { max-width: 720px; }
.modal-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
}
.modal-title h3 { font-size: 16px; }
.modal-title p { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.modal-close {
  border: none; background: none; color: var(--ink-3); line-height: 1;
  padding: 6px; border-radius: 7px; display: inline-flex;
}
.modal-close:hover { background: var(--neutral-soft); color: var(--ink); }
.modal-body { padding: 18px 20px; max-height: 66vh; overflow-y: auto; }
.modal-body .form-grid .field:last-child { margin-bottom: 0; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 13px 20px; border-top: 1px solid var(--line); background: var(--brand-softer); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }

/* ---------- Toast ---------- */
.toast-root {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 200;
  display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none;
}
.toast {
  padding: 10px 18px; border-radius: 10px;
  background: var(--toast-bg); color: #fff; font-size: 13.5px;
  box-shadow: var(--shadow-md);
  max-width: 80vw; pointer-events: auto; cursor: pointer;
}
.toast.error { background: var(--danger); }
.toast.success { background: var(--ok); }
.toast-enter-active, .toast-leave-active { transition: opacity .24s, transform .24s; }
.toast-enter-from, .toast-leave-to { opacity: 0; transform: translateY(-8px); }

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
  .stat-grid.cols-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .app { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; flex-direction: row; align-items: center; padding: 8px 12px; gap: 8px; overflow-x: auto; }
  .sidebar-brand { padding: 0 8px 0 0; font-size: 14px; }
  .sidebar nav { flex-direction: row; padding: 0; overflow: visible; }
  .nav-item { padding: 8px 12px; white-space: nowrap; width: auto; }
  .nav-item.active::before { display: none; }
  .nav-group-label { display: none; }
  .nav-sec { display: contents; }
  .nav-parent { display: none; }
  .nav-kids { display: block; grid-template-rows: none; }
  .nav-kids-in { overflow: visible; flex-direction: row; }
  .nav-item.kid { padding: 8px 12px; white-space: nowrap; width: auto; }
  .sidebar-footer { border: none; padding: 0 0 0 auto; flex-direction: row; align-items: center; margin-left: auto; }
  .user-meta { display: none; }
  .topbar { padding: 12px 16px 10px; flex-wrap: wrap; }
  .content { padding: 14px 16px 30px; }
  .form-grid, .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .search-box input { width: 150px; }
}
@media (max-width: 720px) {
  .podium { grid-template-columns: minmax(0, 1fr); }
  .podium-cell.first { transform: none; }
  .stat-grid.cols-3, .stat-grid.cols-4, .stat-grid.cols-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-btns { flex-direction: column; }
  .bar-row { grid-template-columns: 72px minmax(0,1fr); }
  .bar-row .bar-count { grid-column: 2; text-align: left; }
  .toolbar .ctl { min-width: 0; flex: 1 1 130px; }
}

/* ============================================================
   v0.63 面包屑页头 + 数据大厅
   ============================================================ */
.crumb { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-3); }
.crumb-home {
  width: 24px; height: 24px; border-radius: 7px; background: var(--brand-soft);
  color: var(--brand); display: inline-flex; align-items: center; justify-content: center;
}
.crumb .crumb-sep { color: var(--line-strong); }
.crumb b { color: var(--ink); font-weight: 600; }

.home-wrap { display: flex; flex-direction: column; gap: 12px; }
.home-kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.kpi-lb { font-size: 12px; color: var(--ink-3); }
.kpi-v { font-size: 24px; font-weight: 700; margin-top: 6px; color: var(--ink-strong); font-variant-numeric: tabular-nums; }
.kpi-d { font-size: 11px; margin-top: 7px; display: inline-block; border-radius: 6px; padding: 2px 7px; font-weight: 600; }
.kpi-d.up { background: var(--ok-soft); color: var(--ok); }
.kpi-d.dn { background: var(--danger-soft); color: var(--danger); }
.kpi-d.nt { background: var(--neutral-soft); color: var(--ink-2); }

.home-row2 { display: grid; grid-template-columns: 1.55fr 1fr; gap: 12px; }
.home-row3 { display: grid; grid-template-columns: 1fr 1.35fr; gap: 12px; }
.trend-box { position: relative; }
.trend-svg { display: block; width: 100%; }
/* AUD-O12：趋势图色值统一走 :root 令牌（原 JS 内 hex 已清除） */
.tr-grid { stroke: var(--line); }
.tr-axis { fill: var(--ink-3); }
.tr-axis2 { fill: var(--ok); }
.tr-area { fill: var(--brand-soft); }
.tr-line { stroke: var(--brand); }
.tr-line2 { stroke: var(--ok); }
.trend-pt { cursor: pointer; fill: var(--card); stroke: var(--brand); }
/* 客户分级状态条：语义色令牌 */
.sb-intent { background: var(--brand); }
.sb-active { background: var(--ok); }
.sb-dormant { background: var(--warn); }
.sb-lost { background: var(--line-strong); }
.trend-hit { cursor: pointer; }
.trend-tip {
  position: absolute; transform: translate(12px, -100%);
  background: var(--toast-bg); color: #fff; border-radius: 9px; padding: 8px 11px;
  font-size: 12px; line-height: 1.7; white-space: nowrap; pointer-events: none;
  box-shadow: 0 6px 18px rgba(31, 36, 33, .25);
}
.trend-tip b { font-weight: 600; }
.occ-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.occ-zn { width: 44px; font-size: 13px; font-weight: 600; }
.occ-bars { flex: 1; }
.occ-bar { height: 9px; border-radius: 999px; background: var(--surf-3); position: relative; margin-top: 5px; }
.occ-bar.single { margin-top: 0; }
.occ-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; }
.occ-bar i.lunch { background: #f0b429; }
.occ-bar i.dinner { background: var(--brand); }
.occ-num { width: 104px; white-space: nowrap; font-size: 11.5px; color: var(--ink-3); text-align: right; font-variant-numeric: tabular-nums; }
.occ-legend { display: flex; gap: 14px; font-size: 11px; color: var(--ink-3); margin-top: 12px; }
.occ-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; }
.occ-legend i.lunch { background: #f0b429; }
.occ-legend i.dinner { background: var(--brand); }
.ch-row { display: flex; align-items: center; gap: 10px; margin-top: 11px; font-size: 12.5px; }
.ch-nm { width: 52px; color: var(--ink-3); }
.ch-row .occ-bar { flex: 1; }
.ch-pc { width: 40px; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.top-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.top-table th { color: var(--ink-3); font-weight: 500; text-align: left; padding: 6px 4px; border-bottom: 1px solid var(--line); font-size: 11.5px; }
.top-table td { padding: 8px 4px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.top-table .rk {
  display: inline-flex; width: 20px; height: 20px; border-radius: 6px;
  align-items: center; justify-content: center; font-size: 11px; font-weight: 700;
  background: var(--neutral-soft); color: var(--ink-3);
}
.top-table .rk.r1 { background: #fdf3d7; color: #b0794b; }
.top-table .rk.r2 { background: #eef0f2; color: #7d8590; }
.top-table .rk.r3 { background: #fbeee2; color: #b0794b; }
@media (max-width: 1180px) {
  .home-kpis { grid-template-columns: repeat(3, 1fr); }
  .home-row2, .home-row3 { grid-template-columns: 1fr; }
}

/* ---------- 角色权限页（左列角色 + 右侧权限矩阵） ---------- */
.role-page { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 16px; align-items: start; }
.role-page .card + .card { margin-top: 0; }
.role-list { list-style: none; display: flex; flex-direction: column; gap: 2px; padding: 8px; }
.role-item {
  width: 100%; display: flex; align-items: center; gap: 8px;
  padding: 9px 10px; border: none; background: none; cursor: pointer; text-align: left;
  border-radius: var(--radius-sm); font-size: 13.5px; color: var(--ink-2); font-family: inherit;
}
.role-item:hover { background: var(--brand-softer); color: var(--ink); }
.role-item.on { background: var(--side-active-bg); color: var(--side-active-fg); font-weight: 600; }
.role-item .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.role-item .cnt { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; flex-shrink: 0; }
.role-item.on .cnt { color: var(--side-active-fg); }
.role-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.role-name { font-size: 15px; font-weight: 600; }
.role-name-input {
  font-size: 14.5px; font-weight: 600; font-family: inherit; color: var(--ink);
  padding: 5px 9px; min-width: 190px; background: var(--card);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
}
.role-name-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(26,122,88,.14); }
.perm-group + .perm-group { margin-top: 20px; }
.perm-group > h4 {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 12.5px; font-weight: 600; color: var(--ink-3); letter-spacing: .4px;
  padding-bottom: 6px; border-bottom: 1px solid var(--line);
}
.perm-group > h4 span { margin-left: auto; font-weight: 400; font-variant-numeric: tabular-nums; }
.perm-row {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 8px 6px; border-bottom: 1px solid var(--line); cursor: pointer;
}
.perm-row:last-child { border-bottom: none; }
.perm-row:hover { background: var(--brand-softer); }
.perm-txt { flex: 1; min-width: 0; }
.perm-txt b { display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 500; color: var(--ink); }
.perm-txt small { display: block; margin-top: 1px; font-size: 12px; line-height: 1.45; color: var(--ink-3); }
.perm-row.off .perm-txt b { color: var(--ink-2); }
.perm-flag {
  font-style: normal; font-size: 11px; line-height: 17px; padding: 0 5px; border-radius: 4px;
  color: var(--warn); background: var(--warn-soft);
}
.perm-flag.derived { color: var(--ink-3); background: var(--neutral-soft); }
.perm-sw { flex-shrink: 0; padding-top: 2px; }
.perm-sw input { width: 16px; height: 16px; accent-color: var(--brand); cursor: pointer; }
.perm-sw input:disabled { cursor: not-allowed; opacity: .5; }
.role-foot {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px; border-top: 1px solid var(--line);
  background: var(--brand-softer); border-radius: 0 0 var(--radius) var(--radius);
}
@media (max-width: 1100px) { .role-page { grid-template-columns: minmax(0, 1fr); } }

/* ---------- v0.64 客户运营模块：胶囊快筛 / 批量条 / 规则页 / 标签页 ---------- */
.facets { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; }
.facet-row { display: flex; align-items: center; gap: 8px; padding: 4px 0; flex-wrap: wrap; }
.facet-row .fl { width: 62px; flex-shrink: 0; color: var(--ink-3); font-size: 12px; }
.fchip { border: none; background: var(--surf-2); color: var(--ink-2); border-radius: 999px; padding: 5px 13px; font-size: 12px; cursor: pointer; }
.fchip:hover { background: var(--surf-3); }
.fchip.on { background: var(--side-active-bg); color: var(--side-active-fg); font-weight: 600; }
.fchip .cnt { margin-left: 5px; font-size: 10.5px; opacity: .65; }
.bulkbar { display: flex; align-items: center; gap: 10px; background: var(--brand-soft); border: 1px solid #C6E3D4; border-radius: 10px; padding: 8px 14px; margin-bottom: 12px; font-size: 12.5px; color: var(--ink-2); }
.bulkbar b { color: var(--ink-strong); }
.w-chk { width: 34px; text-align: center; }
.tagpick { display: flex; flex-wrap: wrap; gap: 8px; }
.tags-wrap { display: grid; grid-template-columns: 1fr 1.45fr; gap: 14px; align-items: start; }
.tags-wrap .card { margin-top: 0; }
.tag-new { display: flex; gap: 8px; margin: 10px 4px 4px; }
tr.on { background: var(--brand-softer); }
.grade-wrap { display: grid; grid-template-columns: 1.5fr 1fr; gap: 14px; align-items: start; }
.grade-wrap .card { margin-top: 0; }
.rule-block { background: var(--surf-2); border-radius: 10px; padding: 12px 16px; margin-bottom: 12px; }
.rule-block h4 { font-size: 13px; color: var(--ink-strong); margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.rule-line { line-height: 2.2; color: var(--ink-2); }
.rule-line input.rule-num { width: 74px; text-align: center; border: 1px solid var(--line); border-radius: 8px; padding: 4px 6px; font-weight: 600; color: var(--ink-1); background: #fff; }
.rule-line input.rule-num.wide { width: 96px; }
.switch-line { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); font-weight: 400; }
.rule-actions { display: flex; gap: 10px; margin: 4px 0 10px; }
.barline { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--surf-3); }
.barline i { display: block; height: 100%; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 9px; font-size: 11.5px; color: var(--ink-3); }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; }
.num.hot { color: #bf1e2e; font-weight: 700; }
.seg { display: inline-flex; background: var(--surf-3); border-radius: 9px; padding: 3px; }
.seg button { border: none; background: transparent; color: var(--ink-2); border-radius: 7px; padding: 6px 14px; font-size: 12.5px; cursor: pointer; }
.seg button.on { background: #fff; color: var(--ink-strong); font-weight: 600; box-shadow: 0 1px 4px rgba(31, 36, 33, .12); }
.tpl-list { display: grid; gap: 8px; }
.tpl { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; }
.tpl.on { border-color: var(--brand); background: var(--brand-softer); }
.tpl-nm { font-weight: 600; white-space: nowrap; }
.tpl-ct { color: var(--ink-3); font-size: 12px; line-height: 1.7; }
@media (max-width: 1180px) {
  .tags-wrap, .grade-wrap { grid-template-columns: 1fr; }
}

/* ---------- 角色权限 v0.64：开关 / 数据限制面板 / 弹窗内权限矩阵 ---------- */
.yd-switch {
  position: relative; width: 40px; height: 22px; flex-shrink: 0;
  border: none; border-radius: 999px; background: var(--line-strong);
  cursor: pointer; transition: background .15s;
}
.yd-switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px;
  border-radius: 50%; background: #fff; box-shadow: var(--shadow-xs); transition: left .15s;
}
.yd-switch.on { background: var(--brand); }
.yd-switch.on::after { left: 21px; }
.yd-switch:disabled { opacity: .5; cursor: not-allowed; }
.switch-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.switch-row > b { font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.switch-row .hint { min-width: 0; }
.scope-panel {
  margin: 2px 0 14px; padding: 14px 16px;
  background: var(--brand-softer); border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
}
.scope-panel > p { font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.scope-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 28px; }
.scope-row > b { font-size: 13px; font-weight: 600; }
.scope-opts { display: flex; flex-direction: column; gap: 3px; margin-top: 4px; }
.scope-opts label { display: flex; align-items: baseline; gap: 6px; font-size: 12.5px; color: var(--ink-2); cursor: pointer; }
.scope-opts input { accent-color: var(--brand); flex-shrink: 0; translate: 0 2px; }
.scope-opts .hint { font-size: 11.5px; color: var(--ink-3); }
.privacy-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.perm-group-head {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 4px; border-bottom: 1px solid var(--line);
}
.perm-group-head .grow { flex: 1; }
.perm-group-head b { font-size: 13px; font-weight: 600; }
.perm-group-head .cnt { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.perm-caret { border: none; background: none; cursor: pointer; color: var(--ink-3); padding: 2px; }
.perm-caret svg { transition: transform .15s; }
.perm-caret.closed svg { transform: rotate(-90deg); }
.perm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px 18px; padding: 8px 4px 12px; }
.perm-cell { display: flex; flex-direction: column; gap: 2px; padding: 6px 8px; border-radius: var(--radius-sm); cursor: pointer; }
.perm-cell:hover { background: var(--brand-softer); }
.perm-cell .t { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink); }
.perm-cell .t input { accent-color: var(--brand); width: 15px; height: 15px; flex-shrink: 0; }
.perm-cell .h { font-size: 11.5px; color: var(--ink-3); line-height: 1.4; padding-left: 22px; }
.perm-cell.off .t { color: var(--ink-2); }
@media (max-width: 1100px) {
  .perm-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .scope-grid { grid-template-columns: minmax(0, 1fr); }
}

/* v0.65 波 1 J：数据口径标注 */
.data-note { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--ink-3); background: var(--surf-2); border-radius: 999px; padding: 3px 10px; }

/* v0.70 波 2：客户分析漏斗矩阵 + 首页健康值卡 */
.cell-btn { min-width: 44px; padding: 4px 10px; border: 0; border-radius: 8px; background: var(--brand-soft);
  color: var(--brand-strong); font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer; }
.cell-btn:hover { background: #D5EADC; }
.cell-btn.zero { background: transparent; color: var(--ink-3); font-weight: 400; cursor: default; }
}

/* v0.71 波 3：任务矩阵双层表头 */
.matrix thead th[colspan] { text-align: center; background: var(--thead-bg); border-bottom: 1px solid var(--line, #E4E7E4); }
.matrix thead th[rowspan] { vertical-align: bottom; }
.matrix tbody td.num { font-variant-numeric: tabular-nums; }

/* ============================================================
   今日看板 v0.78 重做：D 平面桌台阵 + F 营业时段时间轴
   令牌沿用 :root；状态语义色与 sw-* 图例同源
   ============================================================ */
.bv-seg { margin-left: 4px; }
.bv-kpis { display: flex; align-items: center; gap: 0; }
.bv-kpi { padding: 0 16px; border-left: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.bv-kpi:first-child { border-left: 0; }
.bv-kpi b { font-size: 17px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; margin-right: 4px; }
.bv-kpi.hl b { color: var(--ink-strong); }
.bv-main { display: grid; grid-template-columns: minmax(0, 1fr) 316px; gap: 16px; align-items: start; }
@media (max-width: 1180px) { .bv-main { grid-template-columns: 1fr; } }
.bv-left { min-width: 0; display: flex; flex-direction: column; gap: 14px; }

/* ── D 平面桌台阵 ── */
.bv-rooms { display: flex; flex-direction: column; gap: 14px; }
.bv-room { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); padding: 14px 16px 16px; }
.bv-rhead { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.bv-rhead b { font-size: 15px; }
.bv-rhead span { color: var(--ink-3); font-size: 12px; }
.bv-rhead .occ { margin-left: auto; font-size: 12px; color: var(--ink-3); }
.bv-rhead .occ i { font-style: normal; font-weight: 700; color: var(--ink-strong); font-variant-numeric: tabular-nums; }
.bv-tiles { display: flex; flex-wrap: wrap; gap: 12px; }
.bv-tile { width: 118px; height: 98px; border-radius: 16px; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow-xs); cursor: pointer; transition: transform .12s, box-shadow .12s; }
.bv-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.bv-tile:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.bv-tile .no { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.bv-tile .cap { font-size: 11px; color: var(--ink-3); }
.bv-tile .plus { position: absolute; right: 9px; top: 6px; color: var(--brand); font-size: 15px; font-weight: 700; opacity: .55; }
.bv-tile .mgr { position: absolute; right: -6px; top: -7px; background: var(--card); color: var(--ink-2); border: 1px solid var(--line); border-radius: 999px; padding: 0 7px; font-size: 10px; font-weight: 600; box-shadow: var(--shadow-xs); }
.bv-tile .slottag { position: absolute; left: -5px; top: -7px; background: var(--card); color: var(--ink-3); border: 1px solid var(--line); border-radius: 999px; padding: 0 6px; font-size: 10px; }
.bv-tile .who { position: absolute; left: 6px; right: 6px; bottom: 7px; text-align: center; font-size: 10.5px; color: rgba(255, 255, 255, .92); }

/* 全天视图：中性主体 + 锚定午/晚 chip（参考 SevenRooms/Toast 的堆叠时段 chip 模式） */
.bv-tile.neutral { width: 126px; height: 104px; padding: 8px 9px 7px; justify-content: flex-start; gap: 0; }
.bv-tile.neutral .hd { display: flex; align-items: baseline; gap: 6px; justify-content: center; width: 100%; }
.bv-tile.neutral .hd .no { font-size: 16px; }
.bv-tile.neutral .hd .cap { font-size: 10.5px; color: var(--ink-3); }
.bv-tile .segs { width: 100%; margin-top: 6px; display: flex; flex-direction: column; gap: 4px; }
.bv-tile .seg { height: 17px; border-radius: 6px; display: flex; align-items: center; gap: 5px; padding: 0 7px; font-size: 10px; font-weight: 600; letter-spacing: .2px; white-space: nowrap; overflow: hidden; }
.bv-tile .seg b { font-weight: 700; }
.bv-tile .seg.off { background: transparent; border: 1px dashed var(--line-strong); color: var(--ink-3); font-weight: 500; }
.bv-tile.neutral .who2 { margin-top: 5px; font-size: 10px; color: var(--ink-2); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bv-tile.neutral.full.s-info { border-color: var(--info); box-shadow: 0 4px 12px rgba(37, 99, 235, .14); }
.bv-tile.neutral.full.s-cyan { border-color: var(--cyan); box-shadow: 0 4px 12px rgba(8, 145, 178, .14); }
.bv-tile.neutral.full.s-ok { border-color: var(--ok); box-shadow: 0 4px 12px rgba(14, 159, 110, .14); }
.bv-tile.neutral.full.s-neutral { border-color: #6b7280; box-shadow: 0 4px 12px rgba(107, 114, 128, .14); }
.bv-tile.neutral.full.s-noshow { border-color: #7c2d12; box-shadow: 0 4px 12px rgba(124, 45, 18, .14); }
.c-info { background: var(--info-soft); color: var(--info); }
.c-cyan { background: var(--cyan-soft); color: var(--cyan); }
.c-ok { background: var(--ok-soft); color: var(--ok); }
.c-neutral { background: #eef0f2; color: var(--ink-2); }
.c-noshow { background: #f6e9e3; color: #7c2d12; }
/* s-* 类自带实心渐变（单时段视图用）；全天中性瓷砖只借它做描边色，背景必须回白 */
.bv-tile.neutral:not(.free).s-info,
.bv-tile.neutral:not(.free).s-cyan,
.bv-tile.neutral:not(.free).s-ok,
.bv-tile.neutral:not(.free).s-neutral,
.bv-tile.neutral:not(.free).s-noshow { background: var(--card); }
.bv-tile.free { border-style: dashed; border-color: var(--line-strong); background: var(--brand-softer); }
.bv-tile.occ { color: #fff; border-color: transparent; box-shadow: 0 6px 16px rgba(31, 36, 33, .16); }
.bv-tile.occ .cap { color: rgba(255, 255, 255, .82); }
.s-info { background: #2563eb; }
.s-cyan { background: #0891b2; }
.s-ok { background: #0e9f6e; }
.s-neutral { background: #6b7280; }
.s-noshow { background: #7c2d12; }

/* ── F 营业时段时间轴 ── */
.bv-tl { overflow: hidden; }
.bv-tl-head { display: grid; grid-template-columns: 132px repeat(11, 1fr); background: var(--brand-softer); border-bottom: 1px solid var(--line); }
.bv-tl-head .corner { display: flex; align-items: center; padding: 0 14px; color: var(--ink-3); font-size: 12px; border-right: 1px solid var(--line); min-height: 38px; }
.bv-tl-head .h { font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; border-left: 1px dashed var(--line); padding: 10px 0 10px 6px; }
.bv-tl-zone { display: flex; gap: 10px; align-items: center; padding: 7px 14px; background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }
.bv-tl-zone b { color: var(--ink); font-size: 13px; }
.bv-tl-lane { display: grid; grid-template-columns: 132px 1fr; border-bottom: 1px solid var(--line); min-height: 62px; }
.bv-tl-lane:last-of-type { border-bottom: 0; }
.bv-tl-t { padding: 0 14px; border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; }
.bv-tl-t b { font-variant-numeric: tabular-nums; font-size: 14px; }
.bv-tl-t small { color: var(--ink-3); font-size: 11px; }
.bv-tl-track { position: relative; background: repeating-linear-gradient(90deg, transparent 0, transparent calc(100% / 22 - 1px), var(--line) calc(100% / 22 - 1px), var(--line) calc(100% / 22)); }
.bv-bar { position: absolute; top: 10px; bottom: 10px; border-radius: 10px; display: flex; flex-direction: column; justify-content: center; padding: 2px 12px; cursor: pointer; overflow: hidden; }
.bv-bar:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.bv-bar .l1 { font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.bv-bar .l2 { font-size: 11px; white-space: nowrap; }
.bv-bar.occ { color: #fff; box-shadow: 0 4px 12px rgba(31, 36, 33, .18); }
.bv-bar.occ .l2 { color: rgba(255, 255, 255, .85); }
.bv-bar.occ .chip { position: absolute; right: 8px; top: 7px; font-size: 10px; background: rgba(255, 255, 255, .22); border-radius: 5px; padding: 0 6px; }
.bv-bar.free { border: 1.5px dashed var(--line-strong); background: var(--brand-softer); color: var(--ink-3); font-size: 11.5px; align-items: center; }
.bv-bar.cancel { border: 1px solid var(--line); background: var(--neutral-soft); color: var(--neutral); font-size: 11.5px; align-items: center; }
.bv-now { position: absolute; top: 0; bottom: 0; width: 0; border-left: 2px solid var(--brand); opacity: .6; pointer-events: none; }
.bv-now i { position: absolute; top: 2px; left: 5px; width: 74px; font-size: 10px; color: var(--brand); background: var(--brand-soft); border-radius: 5px; padding: 0 6px; font-style: normal; }
.bv-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 10px 16px; border-top: 1px solid var(--line); background: var(--brand-softer); font-size: 12px; color: var(--ink-2); }
.bv-legend span { display: inline-flex; align-items: center; gap: 6px; }
.bv-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.bv-legend.col { flex-direction: column; gap: 7px; }
.sw-now { background: var(--brand); width: 2px !important; height: 12px !important; border-radius: 0 !important; }

/* ── 右栏 ── */
.bv-rail { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 12px; }
.bv-panel { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); padding: 14px 16px; }
.bv-panel h3 { font-size: 12.5px; color: var(--ink-3); font-weight: 600; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.bv-panel h3 i { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.bv-panel h3 i.warn { background: var(--noshow, #7c2d12); }
.bv-panel h3 i.dim { background: var(--ink-3); }
.bv-arr .row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); cursor: pointer; }
.bv-arr .row:last-child { border-bottom: 0; }
.bv-arr .t { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink-strong); font-size: 13px; width: 44px; }
.bv-arr .mid { min-width: 0; }
.bv-arr .mid b { font-size: 13px; display: block; }
.bv-arr .mid small { color: var(--ink-3); font-size: 11.5px; }
.bv-arr .st { margin-left: auto; font-size: 11px; border-radius: 6px; padding: 1px 8px; background: var(--info-soft); color: var(--info); white-space: nowrap; }
.bv-arr .st-arrived { background: var(--cyan-soft); color: var(--cyan); }
.bv-muted { color: var(--ink-3); font-size: 12.5px; }
.bv-alert { background: #f6e8e0; border: 1px solid #e5cdbd; border-radius: 12px; padding: 9px 12px; font-size: 12.5px; color: #7c2d12; display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.bv-alert + .bv-alert { margin-top: 8px; }

.bv-bar.occ.narrow .l1, .bv-bar.occ.narrow .l2 { position: absolute; left: calc(100% + 8px); color: var(--ink-2); font-weight: 600; }
.bv-bar.occ.narrow .l1 { top: 9px; }
.bv-bar.occ.narrow .l2 { top: 27px; font-weight: 400; }
.bv-bar.occ.narrow.left .l1, .bv-bar.occ.narrow.left .l2 { left: auto; right: calc(100% + 8px); text-align: right; }
.bv-bar.occ.narrow .l2 { font-weight: 400; color: var(--ink-3); }
.bv-bar.occ.narrow { overflow: visible; }
.bv-tile .slottag { left: 6px; top: 6px; background: rgba(255, 255, 255, .22); color: #fff; border: 0; }

/* ============================================================
   布局与时段（区域/桌位/时段三合一，v0.82 方案1 布局编辑器）
   ============================================================ */
.ly-wrap { display: flex; flex-direction: column; gap: 16px; padding: 16px 18px 20px; }
.ly-slotbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-xs); padding: 10px 14px; }
.ly-t { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.ly-chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--brand-softer); border-radius: 999px; padding: 5px 8px 5px 14px; font-size: 13px; }
.ly-chip .tm { color: var(--ink-3); font-family: var(--mono); font-size: 12px; }
.ly-chip button { width: 22px; height: 22px; border-radius: 50%; background: var(--card); border: 1px solid var(--line); font-size: 11px; color: var(--ink-2); }
.ly-chip button:hover { color: var(--brand); border-color: var(--brand-soft); }
.ly-chip button.x:hover { color: var(--danger); border-color: #f3c9c9; }
.ly-chip.add { border-style: dashed; background: var(--card); color: var(--brand); font-weight: 600; padding: 5px 14px; }
.ly-hint { font-size: 12px; color: var(--ink-3); }
.ly-zone { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); overflow: hidden; }
.ly-zhead { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--brand-softer); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ly-name { display: inline-flex; align-items: center; gap: 7px; }
.ly-name b { font-size: 15px; }
.ly-pen { font-size: 11px; color: var(--ink-3); border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; background: var(--card); white-space: nowrap; }
.ly-pen:hover { color: var(--brand); border-color: var(--brand-soft); }
.ly-meta { color: var(--ink-3); font-size: 12px; }
.ly-stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 9px; background: var(--card); overflow: hidden; }
.ly-stepper button { width: 26px; height: 26px; font-size: 14px; color: var(--ink-2); }
.ly-stepper button:hover { background: var(--brand-softer); color: var(--brand); }
.ly-stepper .v { min-width: 32px; text-align: center; font-family: var(--mono); font-weight: 600; font-size: 13px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); line-height: 26px; }
.ly-zright { margin-left: auto; display: inline-flex; gap: 8px; align-items: center; }
.ly-sort { border: 1px solid var(--line); background: var(--card); border-radius: 8px; padding: 3px 9px; font-size: 12px; color: var(--ink-2); }
.ly-sort:disabled { opacity: .4; cursor: not-allowed; }
.ly-tables { display: flex; flex-wrap: wrap; gap: 12px; padding: 14px 16px 16px; }
.ly-tcard { width: 196px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); box-shadow: var(--shadow-xs); padding: 10px 12px; display: flex; flex-direction: column; gap: 7px; position: relative; }
.ly-tcard.off { background: var(--neutral-soft); border-style: dashed; }
.ly-tcard .l1 { display: flex; align-items: center; gap: 6px; }
.ly-tcard .no { font-size: 16px; font-weight: 700; font-family: var(--mono); white-space: nowrap; }
.ly-tcard .st { margin-left: auto; font-size: 11px; border-radius: 6px; padding: 1px 8px; background: var(--ok-soft); color: var(--ok); font-weight: 600; white-space: nowrap; }
.ly-tcard .st.off { background: var(--neutral-soft); color: var(--neutral); }
.ly-tcard .l2 { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-2); }
.ly-tcard .unit { color: var(--ink-3); }
.ly-tcard .cap-plain { font-family: var(--mono); font-weight: 600; }
.ly-toggle { font-size: 11px; border: 1px solid var(--line); border-radius: 7px; padding: 1px 10px; background: var(--card); color: var(--ink-2); white-space: nowrap; }
.ly-input { border: 1.5px solid var(--brand); border-radius: 8px; padding: 2px 8px; font-size: 14px; font-weight: 700; font-family: var(--mono); color: var(--brand); background: var(--brand-softer); width: 96px; }
.ly-input.sm { font-size: 14px; width: 84px; }
.ly-save { font-size: 11px; color: var(--brand); border: 1px solid var(--brand-soft); border-radius: 6px; padding: 0 6px; background: var(--card); white-space: nowrap; }
.ly-input-wrap { display: inline-flex; align-items: center; gap: 6px; }
.ly-tcard .l3 { display: flex; gap: 6px; justify-content: flex-end; }
.ly-tcard .dots { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 11px; color: var(--ink-3); }
.ly-tcard .dot-item { display: inline-flex; align-items: center; gap: 5px; }
.ly-tcard .dot-item i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.ly-tcard .dot-item.muted { color: var(--ink-3); }
.d-free { background: #fff; border: 1.5px dashed var(--line-strong); }
.d-occ { background: var(--info); }
.d-arr { background: var(--cyan); }
.d-ok { background: var(--ok); }
.d-bad { background: var(--neutral); }
.ly-del { font-size: 11px; white-space: nowrap; color: var(--danger); border: 1px solid #f3c9c9; background: var(--danger-soft); border-radius: 7px; padding: 1px 8px; }
.ly-addtable { width: 196px; min-height: 118px; border: 1.5px dashed var(--line-strong); border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--ink-3); font-size: 12px; background: var(--brand-softer); }
.ly-addtable b { font-size: 18px; color: var(--ink-strong); }
.ly-addtable:hover { border-color: var(--brand); color: var(--brand); }

/* ════════════════════════════════════════════════════════════
   值台业绩增值模块（views/performance.js · payslip.js · daily.js）
   格子五态配色沿用既有语义色令牌，不新增色板（用户口径：整盘换色禁止）
   ════════════════════════════════════════════════════════════ */
.month-label { font-size: 15px; font-weight: 600; color: var(--ink); padding: 0 4px; font-variant-numeric: tabular-nums; }

/* 值台看板：区域 → 桌台行 → 时段格 */
.perf-board { display: flex; flex-direction: column; gap: 16px; }
.perf-zone-name { font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
table.perf-grid { table-layout: fixed; }
table.perf-grid th { font-size: 12px; color: var(--ink-3); font-weight: 500; text-align: center; }
table.perf-grid th:first-child { text-align: left; width: 132px; }
.perf-table-no { font-weight: 600; color: var(--ink); }
.perf-table-no .hint { font-weight: 400; margin-left: 4px; }
.perf-cell { text-align: center; vertical-align: middle; padding: 6px 4px; }
.perf-cell-label { display: block; font-size: 12px; line-height: 1.35; }
.perf-cell-amt { display: block; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.perf-cell-who { display: block; font-size: 11px; color: var(--ink-3); overflow-wrap: anywhere; }
/* 五态：空闲 / 已预订未结账 / 已结账待认领 / 我已认领 / 他人已认领 */
.perf-cell.st-free      { background: var(--bg);            color: var(--ink-3); }
.perf-cell.st-reserved  { background: var(--info-soft);      color: var(--info); }
.perf-cell.st-unclaimed { background: var(--warn-soft);      color: var(--warn); font-weight: 600; }
.perf-cell.st-mine      { background: var(--ok-soft);        color: var(--ok); }
.perf-cell.st-others    { background: var(--brand-soft);     color: var(--brand); }

/* 值台分账弹窗的动态行 */
.share-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.share-row select { flex: 1; min-width: 0; }

/* 业绩明细里的值台人胶囊：多值台人时必须自带间隔，否则会连成「¥2.68小周 50.0%」
   （.chip 只在 .bv-bar.occ 下有定义，此处不能复用） */
.share-chip { display: inline-flex; align-items: baseline; gap: 4px; margin: 2px 6px 2px 0;
              padding: 2px 9px; border: 1px solid var(--line); border-radius: 999px;
              background: var(--brand-softer); font-size: 12.5px; white-space: nowrap; }
.share-chip em { font-style: normal; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.share-chip em.hint { font-weight: 400; color: var(--ink-3); }

/* 通用警示条：目前用于工资单页「N 个历史月份尚未封账」催办（P3-1 手动封账的兜底提示） */
.alert { padding: 10px 14px; border-radius: var(--radius-sm); margin-bottom: 14px;
         font-size: 13px; line-height: 1.6; border: 1px solid transparent; }
.alert b { font-weight: 600; }
.alert.warn { background: var(--warn-soft); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 25%, transparent); }

/* v0.95 业绩域融入：员工档案抽屉三栏（2026-11-02） */
.dossier-grid { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 12px; align-items: start; }
.dossier-side { margin: 0; }
.dossier-kv { margin: 0; }
.dossier-kv > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 2px; border-bottom: 1px solid var(--line); }
.dossier-kv > div:last-child { border-bottom: none; }
.dossier-kv dt { color: var(--ink-3); font-size: 12px; flex-shrink: 0; }
.dossier-kv dd { margin: 0; font-size: 13px; text-align: right; word-break: break-all; }
.dossier-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.dossier-main .card { margin: 0; }
@media (max-width: 900px) { .dossier-grid { grid-template-columns: 1fr; } }

/* 提成方案卡片化 + 工资单主表瘦身（2026-11-03 用户整改） */
.plan-explain { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; padding: 12px 16px; }
.plan-explain-sep { margin-left: 14px; }
.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1100px) { .plan-grid { grid-template-columns: 1fr; } }
.plan-card { margin: 0; }
.plan-desc { margin: 2px 0 10px; }
.plan-methods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.plan-method { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px; background: var(--surf-2); }
.plan-method.on { background: var(--brand-softer); border-color: #C6E3D4; }
.plan-method .hint { margin: 4px 0 8px; min-height: 32px; }
.plan-method .input { width: 100%; }
.plan-effective { margin: 10px 0 0; font-size: 12.5px; color: var(--ink-2); }
.plan-custom { padding: 10px 16px; }
.pay-subline { margin-left: 10px; }
.pay-total { font-size: 15px; }
.pay-more { margin-top: 12px; }
.pay-more summary { cursor: pointer; padding: 6px 0; }

/* 提成方案·方案甲：浏览行 + 编辑面板（2026-11-03） */
.role-row { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line); }
.role-row:last-of-type { border-bottom: none; }
.role-nm { width: 96px; font-weight: 600; flex-shrink: 0; }
.role-cnt { width: 72px; color: var(--ink-3); font-size: 12px; flex-shrink: 0; }
.role-chips { flex: 1; display: flex; gap: 8px; flex-wrap: wrap; min-width: 0; }
.chip { background: var(--brand-soft); color: var(--brand-strong); border-radius: 6px; padding: 2px 9px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.chip.off { background: var(--surf-2); color: var(--ink-3); font-weight: 400; }
.role-src { width: 64px; text-align: right; flex-shrink: 0; }
.edit-panel { background: var(--surf-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px 16px 14px; }
.edit-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.edit-row { display: grid; grid-template-columns: 110px 150px 1fr; gap: 12px; align-items: center; padding: 5px 0; }
.edit-rate { width: 150px; }
.edit-actions { display: flex; gap: 8px; margin-top: 10px; }

/* v0.96 储值/供应链声明条（记账型资金口径常驻提示） */
.notice-bar { background: var(--brand-softer); border: 1px solid #C6E3D4; border-radius: 10px; padding: 8px 14px; font-size: 12.5px; color: var(--ink-2); margin-bottom: 12px; }

/* 工具条内可搜索下拉的定宽（2026-11-03） */
.yss-ctl { width: 190px; display: inline-block; vertical-align: middle; }

/* 储值规则卡（整改 A，2026-11-04） */
.wallet-rule { padding: 12px 16px; margin-bottom: 12px; }
.wr-line { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.wr-val { font-size: 14.5px; font-weight: 700; color: var(--ink-strong); }
.wr-meta { color: var(--ink-3); font-size: 12px; }

/* 工信部备案悬挂（GOLIVE_RUNBOOK）：首页底部可见、可点跳 beian.miit.gov.cn */
.icp-footer { padding: 10px 24px 18px; text-align: center; color: var(--ink-3); font-size: 12px; }
.icp-footer a { color: inherit; text-decoration: none; }
.icp-footer a:hover { text-decoration: underline; }
