* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: #eef1f5;
  color: #1f2d3d;
}
.phone {
  max-width: 420px;
  margin: 0 auto;
  min-height: 100vh;
  background: #f4f6f9;
  padding-bottom: 24px;
}
.topbar {
  background: linear-gradient(135deg, #2f7df6, #7b61ff);
  color: #fff;
  padding: 18px 18px 22px;
}
.topbar .brand {
  font-size: 17px;
  font-weight: 600;
}
.topbar .sub {
  font-size: 12px;
  opacity: 0.9;
  margin-top: 4px;
}
.emp-pick {
  padding: 12px 16px 0;
  margin-top: -12px;
}
.emp-pick select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #dfe4ea;
  background: #fff;
  font-size: 14px;
  color: #1f2d3d;
}
.card {
  background: #fff;
  border-radius: 14px;
  margin: 14px 16px 0;
  padding: 16px;
}
.card.hero {
  background: linear-gradient(135deg, #2f7df6, #7b61ff);
  color: #fff;
}
.card.hero .label {
  font-size: 13px;
  opacity: 0.92;
}
.card.hero .big {
  font-size: 32px;
  font-weight: 700;
  margin: 4px 0 6px;
}
.card.hero .hint {
  font-size: 12px;
  opacity: 0.95;
}
.card.hero .role-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 10px;
  font-size: 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.card-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}
.row,
.ind {
  margin-bottom: 14px;
}
.row:last-child,
.ind:last-child {
  margin-bottom: 0;
}
.r-top {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 6px;
}
.r-top span:first-child {
  color: #5b6b7b;
}
.r-top span:last-child {
  color: #1f2d3d;
  font-weight: 600;
}
.r-top .note {
  font-style: normal;
  font-size: 11px;
  color: #9aa5b1;
  font-weight: 400;
  margin-left: 4px;
}
.sub-items {
  margin: 8px 0 2px 4px;
  padding-left: 10px;
  border-left: 2px dashed #e1e6ec;
}
.s-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #8a97a5;
  padding: 3px 0;
}
.bar {
  height: 8px;
  background: #eef1f5;
  border-radius: 4px;
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  background: #2f7df6;
  border-radius: 4px;
}
.ind .bar i {
  background: #1d9e75;
}
.ind-hint {
  font-size: 12px;
  color: #ba7517;
  margin-top: 6px;
}
.ind-group {
  margin-bottom: 16px;
}
.ind-group:last-child {
  margin-bottom: 0;
}
.ind-group-title {
  font-size: 14px;
  font-weight: 600;
  color: #2f7df6;
  margin-bottom: 10px;
  padding-left: 8px;
  border-left: 3px solid #2f7df6;
}
.foot {
  text-align: center;
  color: #9aa5b1;
  font-size: 11px;
  margin-top: 18px;
}

/* 管理后台 */
.admin-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 18px 16px 40px;
}
.admin-wrap h1 {
  font-size: 18px;
  margin-bottom: 4px;
}
.admin-wrap .desc {
  color: #5b6b7b;
  font-size: 13px;
  margin-bottom: 18px;
}
.panel {
  background: #fff;
  border: 1px solid #e6eaef;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}
.panel h2 {
  font-size: 15px;
  margin-bottom: 12px;
}
textarea {
  width: 100%;
  min-height: 120px;
  border: 1px solid #dfe4ea;
  border-radius: 8px;
  padding: 10px;
  font-size: 13px;
  font-family: monospace;
  resize: vertical;
}
button {
  background: #2f7df6;
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 14px;
  cursor: pointer;
  margin-right: 8px;
  margin-top: 8px;
}
button.ghost {
  background: #eef1f5;
  color: #1f2d3d;
}
pre {
  background: #f6f8fa;
  border-radius: 8px;
  padding: 12px;
  font-size: 12px;
  overflow: auto;
  max-height: 320px;
}
.msg {
  font-size: 13px;
  color: #1d9e75;
  margin-top: 10px;
}
.msg.err, .msg-err {
  background: rgba(231,76,60,0.06);
  border-radius: 6px;
  padding: 6px 10px;
  color: #e24b4a;
}
.msg-ok {
  background: #e8f5e9;
  border-radius: 6px;
  padding: 6px 10px;
  color: #1d9e75;
}

/* ===== 指标进度丰富化 ===== */
.ind .ind-detail {
  font-size: 11px;
  color: #7a8794;
  margin-top: 4px;
  line-height: 1.5;
}
.ind .bar {
  position: relative;
}
.tier-marks {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.tier-marks .tmark {
  position: absolute;
  top: -2px;
  width: 2px;
  height: 14px;
  background: #c8d2dc;
  transform: translateX(-1px);
}
/* 底薪档位双条件表 */
.ind.base-tier {
  background: #f8fafc;
  border-radius: 8px;
  padding: 10px;
}
.cond-row {
  margin: 6px 0 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cond-chip {
  font-size: 11px;
  background: #eaf2ff;
  color: #2b6cb0;
  border-radius: 10px;
  padding: 2px 8px;
}
table.tier-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  margin-top: 4px;
}
table.tier-table th {
  text-align: left;
  color: #7a8794;
  font-weight: 500;
  padding: 4px 6px;
  border-bottom: 1px solid #e3e8ee;
}
table.tier-table td {
  padding: 4px 6px;
  border-bottom: 1px solid #eef1f5;
  color: #3a4a5a;
}
table.tier-table tr.cur td {
  background: #fff4e6;
  color: #b9700a;
  font-weight: 600;
}
/* 管理端员工搜索 */
.emp-search {
  position: relative;
  max-width: 360px;
}
.emp-search input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #d4dbe2;
  border-radius: 8px;
  font-size: 14px;
}
.emp-search-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 260px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #d4dbe2;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 6px 18px rgba(31,45,61,.12);
  z-index: 20;
  display: none;
}
.emp-search-list .opt {
  padding: 8px 10px;
  font-size: 13px;
  cursor: pointer;
  border-bottom: 1px solid #f0f3f6;
}
.emp-search-list .opt:hover, .emp-search-list .opt.active {
  background: #eef4ff;
}
.emp-search-list .opt .sub {
  color: #8a97a3;
  font-size: 11px;
  margin-left: 6px;
}
/* 院长门店汇总表 */
.mgr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 10px;
}
.mgr-table th, .mgr-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #eef1f5;
  text-align: left;
}
.mgr-table th {
  background: #f6f8fa;
  color: #5b6b7b;
  font-weight: 600;
  position: sticky;
  top: 0;
}
.mgr-table td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.mgr-summary {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 10px 0;
}
.mgr-summary .chip {
  background: #eef4ff;
  color: #2b6cb0;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
}

/* ===== 角色选择条 ===== */
.role-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 12px;
  background: #f6f8fa;
  border-radius: 8px;
  margin-bottom: 6px;
  font-size: 13px;
}
.role-bar label {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 3px;
  color: #5b6b7b;
}
.role-bar label:has(input:checked) {
  color: #2b6cb0;
  font-weight: 600;
}
.role-scope-hint {
  margin-left: auto;
  font-size: 11px;
  color: #9aa6b2;
}
.role-badge-text {
  font-weight: 600;
  color: #2b6cb0;
  padding: 2px 8px;
  background: #e8f0fe;
  border-radius: 4px;
  font-size: 12px;
}
/* 管理导航入口 */
.admin-nav {
  margin-left: 8px;
  font-size: 11px;
}
/* 核算过程说明 */
.calc-note {
  font-size: 11px;
  color: #7a8794;
  margin-top: 2px;
  line-height: 1.4;
}
.ind-task {
  font-size: 11px;
  color: #5b6b7b;
  margin-top: 3px;
}
.ind-extra {
  font-size: 11px;
  color: #8a97a3;
  margin-top: 2px;
  line-height: 1.4;
}
.btn-edit{background:#f0f4ff;border:1px solid #b8c8e8;border-radius:4px;cursor:pointer;font-size:11px;padding:1px 6px;margin-left:4px;color:#2563eb}.btn-edit:hover{background:#dbe4ff}
