:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --green: #16a34a;
  --red: #dc2626;
  --orange: #ea580c;
  --purple: #9333ea;
  --bg: #f1f5f9;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ===== 登录页 ===== */
.login-body {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  padding: 20px;
}
.login-card {
  background: var(--card); border-radius: 16px; padding: 36px 28px;
  width: 100%; max-width: 380px; box-shadow: 0 20px 50px rgba(0,0,0,.25);
  text-align: center;
}
.logo { font-size: 48px; }
.login-card h1 { font-size: 22px; margin: 8px 0 4px; }
.sub { color: var(--muted); font-size: 13px; margin-bottom: 24px; }
.field input {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border);
  border-radius: 10px; font-size: 15px; margin-bottom: 12px;
}
.field input:focus { outline: none; border-color: var(--primary); }
.btn-primary {
  background: var(--primary); color: #fff; border: none; padding: 12px;
  border-radius: 10px; font-size: 16px; cursor: pointer; font-weight: 600;
}
.btn-primary:active { background: var(--primary-dark); }
.btn-block { width: 100%; }
.err { color: var(--red); font-size: 13px; margin-top: 10px; min-height: 18px; }

/* ===== 顶部栏 ===== */
.topbar {
  background: #fff; padding: 12px 16px; display: flex; justify-content: space-between;
  align-items: center; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10;
}
.brand { font-weight: 700; font-size: 16px; }
.user-box { display: flex; align-items: center; gap: 8px; }
.uname { font-weight: 600; font-size: 14px; }
.role-tag {
  font-size: 11px; padding: 2px 8px; border-radius: 20px; background: #eef2ff; color: var(--primary);
}
.btn-ghost { background: none; border: 1px solid var(--border); border-radius: 8px;
  padding: 5px 12px; font-size: 13px; cursor: pointer; color: var(--muted); }

/* ===== 周期栏 ===== */
.period-bar {
  background: #fff; padding: 10px 16px; border-bottom: 1px solid var(--border);
  font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 12px;
}
.period-bar .hl { color: var(--primary); font-weight: 600; }

/* ===== 标签页 ===== */
.tabs { display: flex; background: #fff; border-bottom: 1px solid var(--border); overflow-x: auto; }
.tabs button {
  flex: 1; min-width: 90px; padding: 12px 8px; background: none; border: none;
  font-size: 14px; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent;
  white-space: nowrap;
}
.tabs button.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }

/* ===== 内容 ===== */
.content { max-width: 960px; margin: 16px auto; padding: 0 12px 40px; }

.card {
  background: var(--card); border-radius: 14px; padding: 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06); margin-bottom: 14px;
}
.card h2 { font-size: 16px; margin-bottom: 14px; display: flex; align-items: center; gap: 6px; }
.card h2 .tag { font-size: 11px; color: var(--muted); font-weight: 400; margin-left: auto; }

/* ===== 指标卡 ===== */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.kpi { background: #f8fafc; border-radius: 12px; padding: 14px; text-align: center; }
.kpi .v { font-size: 24px; font-weight: 700; color: var(--primary); }
.kpi .l { font-size: 12px; color: var(--muted); margin-top: 2px; }
.kpi.big .v { color: var(--green); }

/* ===== 进度条 ===== */
.progress-wrap { margin: 10px 0; }
.progress-label { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 4px; }
.progress { height: 10px; background: #e2e8f0; border-radius: 10px; overflow: hidden; }
.progress .bar { height: 100%; background: var(--primary); border-radius: 10px; transition: width .3s; }
.progress .bar.green { background: var(--green); }
.progress .bar.orange { background: var(--orange); }

/* ===== 漏斗对比 ===== */
.funnel-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f1f5f9; }
.funnel-row:last-child { border-bottom: none; }
.funnel-name { width: 90px; font-size: 13px; flex-shrink: 0; }
.funnel-bars { flex: 1; }
.funnel-bar { height: 8px; border-radius: 6px; margin: 3px 0; background: #e2e8f0; overflow: hidden; }
.funnel-bar .fill { height: 100%; }
.fill.me { background: var(--primary); }
.fill.champ { background: var(--orange); }
.funnel-val { width: 70px; text-align: right; font-size: 12px; flex-shrink: 0; }
.funnel-legend { display: flex; gap: 16px; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: middle; }
.dot.me { background: var(--primary); }
.dot.champ { background: var(--orange); }

/* ===== 表格 ===== */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 10px 8px; text-align: center; border-bottom: 1px solid #f1f5f9; white-space: nowrap; }
th { color: var(--muted); font-weight: 600; background: #f8fafc; position: sticky; top: 0; }
tr.champ-row { background: #fff7ed; }
.badge-champ { background: #f59e0b; color: #fff; font-size: 10px; padding: 1px 6px; border-radius: 10px; margin-left: 4px; }
.pos { font-weight: 700; }
.pos.top1 { color: #f59e0b; }
.pos.top2 { color: #94a3b8; }
.pos.top3 { color: #d97706; }

/* ===== 表单 ===== */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.fitem label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.fitem input, .fitem textarea, .fitem select {
  width: 100%; padding: 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px;
  box-sizing: border-box; background: #fff;
}
.fitem input:focus, .fitem textarea:focus, .fitem select:focus { outline: none; border-color: var(--primary); }
.fitem textarea { resize: vertical; min-height: 60px; font-family: inherit; }
.fitem.full { grid-column: 1 / -1; }

.small-order-attribution-item { grid-column: 1 / -1; padding: 12px; border: 1px solid #bfdbfe;
  border-radius: 12px; background: #f8fbff; }
.small-order-head { display: flex; justify-content: space-between; align-items: center; gap: 10px;
  margin-bottom: 8px; color: var(--muted); font-size: 13px; }
.small-order-head label { color: var(--text); font-weight: 700; }
.small-order-head b { color: var(--primary); font-size: 16px; }
.small-order-row { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(100px, 150px) 34px;
  gap: 8px; align-items: center; margin-top: 8px; }
.small-order-row select, .small-order-count { min-height: 44px; border: 1px solid var(--border);
  border-radius: 9px; background: #fff; }
.small-order-row select { width: 100%; padding: 8px 10px; color: var(--text); font: inherit; }
.small-order-count { display: flex; align-items: center; }
.small-order-count input { min-width: 0; border: 0; box-shadow: none; text-align: right; padding: 8px; }
.small-order-count span { padding-right: 10px; color: var(--muted); font-size: 13px; }
.small-order-remove { width: 34px; height: 34px; border: 0; border-radius: 50%; background: #fee2e2;
  color: #b91c1c; font-size: 20px; line-height: 1; cursor: pointer; }
.small-order-add { margin-top: 10px; color: var(--primary); border-color: #bfdbfe; background: #fff; }
.small-order-history { display: grid; gap: 7px; }
.small-order-history-row, .small-order-total-line { display: flex; justify-content: space-between; align-items: center;
  padding: 8px 10px; border-radius: 8px; background: #fff; border: 1px solid var(--border); }
.small-order-history-row b { color: var(--primary); }
.small-order-total-line { background: #eff6ff; border-color: #bfdbfe; }
@media (max-width: 520px) {
  .small-order-row { grid-template-columns: minmax(0, 1fr) 105px 30px; gap: 6px; }
  .small-order-remove { width: 30px; height: 30px; }
}
.form-actions { margin-top: 16px; display: flex; gap: 10px; }
.btn-secondary { background: #fff; border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 20px; font-size: 15px; cursor: pointer; }
.saved-hint { color: var(--green); font-size: 14px; align-self: center; }

/* ===== 通用 ===== */
.muted { color: var(--muted); }
.green { color: var(--green); }
.red { color: var(--red); }
.orange { color: var(--orange); }
.section-title { font-size: 13px; color: var(--muted); margin: 16px 0 8px; font-weight: 600; }
.empty { text-align: center; color: var(--muted); padding: 30px; font-size: 14px; }
.rest-day { text-align: center; padding: 30px; color: var(--muted); }
/* 休息日（周一）开放填报：整体灰色视觉，但输入框可正常编辑 */
.rest-banner { background: #f1f5f9; border: 1px dashed #cbd5e1; color: #64748b;
  border-radius: 8px; padding: 8px 12px; margin-bottom: 14px; font-size: 13px; }
.card.rest-mode { background: #f8fafc; }
.card.rest-mode .fitem label { color: #94a3b8; }
.card.rest-mode .fitem input, .card.rest-mode .fitem textarea { background: #f1f5f9; color: #64748b; }
.wow-badge { font-size: 12px; padding: 2px 8px; border-radius: 10px; }
.wow-up { background: #dcfce7; color: var(--green); }
.wow-down { background: #fee2e2; color: var(--red); }

/* ===== 名单库 ===== */
.lead-card { background: var(--card); border-radius: 14px; margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06); overflow: hidden; }
.lead-head { padding: 14px 16px; cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 6px; }
.lead-head:hover { background: #f8fafc; }
.lead-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lead-name { font-weight: 600; font-size: 15px; }
.lead-status { font-size: 11px; padding: 2px 8px; border-radius: 20px; background: #eef2ff; color: var(--primary); }
.lead-owner { font-size: 11px; color: var(--muted); }
.lead-traffic { font-size: 11px; color: var(--primary); background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 6px; padding: 1px 6px; }
.lead-meta { font-size: 12px; color: var(--muted); }
.lead-edit-btn { white-space: nowrap; }
.lead-body { padding: 0 16px 16px; border-top: 1px dashed var(--border); }
.lead-body .form-grid { padding-top: 14px; }
.lead-edit-state { margin: 12px 0 0; padding: 8px 10px; border-radius: 8px; background: #eff6ff;
  color: #1d4ed8; font-size: 12px; }
.lead-readonly .lead-edit-state { background: #f8fafc; color: var(--muted); }
.lead-readonly input, .lead-readonly select, .lead-readonly textarea { background: #f8fafc; color: var(--text); }

.c-red { color: var(--red); }
.c-green { color: var(--green); }
.c-blue { color: #2563eb; }
.fitem textarea.c-red, .fitem textarea.c-green, .fitem textarea.c-blue { border-left: 3px solid; }
.fitem label.c-red + textarea { border-left-color: var(--red); }
.fitem label.c-green + textarea { border-left-color: var(--green); }
.fitem label.c-blue + textarea { border-left-color: #2563eb; }

.att-area { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border); }
.att-title { font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.att-list { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.att-item { display: flex; flex-direction: column; gap: 4px; max-width: 160px; }
.att-img { width: 100%; max-width: 120px; border-radius: 8px; border: 1px solid var(--border); cursor: pointer; }
.att-name { font-size: 11px; color: var(--muted); word-break: break-all; }
.att-btns { display: flex; gap: 10px; }
.att-btn { padding: 8px 14px; font-size: 13px; }
.att-group { margin-bottom: 8px; }
.att-sub { font-size: 12px; color: var(--muted); margin-bottom: 6px; }

.level-badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 20px; white-space: nowrap; }
.lead-contact { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.contact-chip { font-size: 12px; font-weight: 600; color: var(--primary); background: #eef2ff; padding: 2px 9px; border-radius: 6px; }
.level-filter { display: flex; gap: 8px; margin: 10px 0; flex-wrap: wrap; }
.level-btn { padding: 5px 14px; }
.level-btn.active { background: var(--primary); color: #fff; }
.lead-section { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--border); }
.lead-section:first-of-type { margin-top: 0; padding-top: 0; border-top: none; }
.sec-head { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.profile-top { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.profile-top .fitem { margin-bottom: 0; }
.lead-section > textarea { width: 100%; min-height: 64px; }
.att-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0; }
.att-thumb { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); cursor: pointer; }
.lead-section .att-btn { margin-top: 6px; }
.follow-area { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border); }
.fu-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.fu-item { background: var(--bg, #f8fafc); border-left: 3px solid var(--border); border-radius: 6px; padding: 8px 10px; }
.fu-time { font-size: 12px; color: var(--accent, #2563eb); font-weight: 600; margin-bottom: 4px; }
.fu-content { font-size: 13px; color: var(--text); white-space: pre-wrap; }
.fu-add { display: flex; flex-direction: column; gap: 8px; }
.fu-add textarea { width: 100%; min-height: 60px; }
.fu-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.fu-file-name { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--muted); font-size: 12px; }
.fu-file-help { color: var(--muted); font-size: 12px; line-height: 1.5; }
.case-search { display: flex; gap: 10px; align-items: center; margin-top: 10px; }
.case-search input { flex: 1; }
.pick-check { width: 17px; height: 17px; flex-shrink: 0; cursor: pointer; accent-color: var(--blue, #3b82f6);
  margin: 0 8px 0 0; vertical-align: middle; display: inline-block; }
.case-card { background: var(--bg, #f8fafc); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; margin-bottom: 14px; }
.case-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.case-name { font-size: 16px; font-weight: 700; color: var(--text); }
.case-time { font-size: 12px; color: var(--muted); margin-left: auto; }
.case-owner { font-size: 12px; color: var(--muted); }
.case-body { display: flex; flex-direction: column; gap: 8px; }
.case-field label { display: block; font-size: 12px; font-weight: 600; color: var(--accent, #2563eb); margin-bottom: 2px; }
.case-field div { font-size: 13px; color: var(--text); white-space: pre-wrap; }
.case-fu { background: #fff; border-left: 3px solid var(--border); border-radius: 6px; padding: 8px 10px; font-size: 13px; }
.case-categories { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.case-categories .active { color: var(--primary); border-color: var(--primary); background: #eff6ff; }
.case-profile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; padding-top: 10px; }
.case-attachments { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.case-attachment { display: flex; flex-direction: column; gap: 4px; max-width: 100%; }
.case-attachment img { max-width: 200px; max-height: 180px; object-fit: contain; border-radius: 6px; }
.case-card audio { max-width: 100%; }
.bar.purple { background: var(--purple); }
.kpi.over { background: #faf5ff; border: 1px solid var(--purple); }
.kpi.over .v { color: var(--purple); }
.over-tag { font-size: 11px; color: var(--purple); font-weight: 600; }
.funnel-row.weak { background: #fdf4ff; border-radius: 8px; padding: 8px 10px; }
.weak-tag { font-size: 10px; background: var(--purple); color: #fff; padding: 1px 6px; border-radius: 10px; margin-left: 4px; }
.weakest-tip { margin-top: 12px; padding: 10px 12px; background: #fdf4ff; border-left: 3px solid var(--purple); border-radius: 6px; font-size: 13px; }
.weakest-tip.ok { background: #f0fdf4; border-left-color: var(--green); }
.stage-head { font-size: 14px; margin-bottom: 14px; color: var(--text); }
.stage-head b { color: var(--primary); }
.stage-track { position: relative; height: 18px; background: #e2e8f0; border-radius: 10px; margin: 8px 0 6px; }
.stage-fill { height: 100%; background: linear-gradient(90deg, #2563eb, #9333ea); border-radius: 10px; transition: width .3s; }
.stage-mark { position: absolute; top: -3px; width: 3px; height: 24px; background: #94a3b8; transform: translateX(-1px); border-radius: 2px; }
.stage-mark.reached { background: var(--green); }
.stage-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.stage-labels .on { color: var(--purple); font-weight: 700; }
.btn-danger { background: #fee2e2; color: var(--red); border: 1px solid #fecaca;
  border-radius: 10px; padding: 12px 18px; font-size: 14px; cursor: pointer; }

/* ===== 图表 ===== */
.chart-area { margin-top: 8px; }
.chart-title { font-size: 13px; color: var(--muted); margin: 6px 0 2px; font-weight: 600; }
.grouped-bar-chart-scroll { overflow-x: auto; padding-bottom: 4px; }
.pie-chart { width: 100%; max-width: 420px; margin: 0 auto; }
.pie-chart > svg { display: block; width: 100%; height: auto; }
.pie-empty { min-height: 210px; display: grid; place-items: center; color: var(--muted); }
.pie-legend { display: grid; gap: 6px; padding: 0 16px 12px; font-size: 13px; }
.pie-legend-item { display: flex; align-items: baseline; gap: 6px; overflow-wrap: anywhere; }

/* ===== 团队映射 ===== */
.team-map-group { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0;
  border-bottom: 1px solid #f1f5f9; }
.team-map-group:last-child { border-bottom: none; }
.tm-name { font-weight: 600; font-size: 14px; min-width: 60px; color: var(--primary); }
.tm-members { display: flex; flex-wrap: wrap; gap: 8px; }
.tm-chip { background: #f1f5f9; padding: 3px 10px; border-radius: 14px; font-size: 13px; }

/* ===== 团队长映射（负责人看板） ===== */
.leader-map { display: flex; flex-wrap: wrap; gap: 10px; }
.leader-map-row { display: flex; align-items: center; gap: 8px; padding: 8px 14px;
  background: #f8fafc; border: 1px solid var(--border); border-radius: 10px; }
.leader-map-row .tm-name { min-width: 0; }
.leader-map-arrow { color: var(--muted); font-size: 13px; }
.leader-map-name { font-weight: 600; font-size: 14px; white-space: nowrap; }

/* ===== 目标环形图 ===== */
.goal-row { display: flex; justify-content: space-around; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.goal-item { text-align: center; }
.goal-cap { font-size: 13px; color: var(--muted); margin-top: 2px; }

@media (max-width: 600px) {
  .funnel-name { width: 72px; font-size: 12px; }
  .funnel-val { width: 56px; font-size: 11px; }
}

/* ===== 复盘 ===== */
.review-loading { padding: 12px 4px; }
.review-block { border: 1px solid var(--border); border-radius: 12px; padding: 14px;
  margin-bottom: 12px; background: #f8fafc; }
.review-block:last-child { margin-bottom: 0; }
.review-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.review-title { font-weight: 700; font-size: 14px; color: var(--text); }
.review-head .muted { font-size: 12px; }
.review-content { font-size: 14px; color: var(--text); white-space: pre-wrap; line-height: 1.6; margin-bottom: 10px; }
.review-input { width: 100%; min-height: 80px; padding: 10px; border: 1px solid var(--border);
  border-radius: 8px; font-size: 14px; font-family: inherit; resize: vertical; margin-bottom: 8px; box-sizing: border-box; }
.review-input:focus { outline: none; border-color: var(--primary); }
.note-box { border-radius: 10px; padding: 10px 12px; margin-top: 10px; border-left: 3px solid; }
.note-box.leader { background: #eff6ff; border-left-color: #2563eb; }
.note-box.manager { background: #faf5ff; border-left-color: var(--purple); }
.note-label { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.note-box.leader .note-label { color: #2563eb; }
.note-box.manager .note-label { color: var(--purple); }
.note-value { font-size: 14px; color: var(--text); white-space: pre-wrap; line-height: 1.6; }
.note-input { width: 100%; min-height: 60px; padding: 8px; border: 1px solid var(--border);
  border-radius: 8px; font-size: 13px; font-family: inherit; resize: vertical; margin-bottom: 6px; box-sizing: border-box; background: #fff; }
.note-input:focus { outline: none; border-color: var(--primary); }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.member-review { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 12px; background: #fff; overflow: hidden; }
.member-review:last-child { margin-bottom: 0; }
.member-review > summary { cursor: pointer; padding: 12px 14px; list-style: none; display: flex; align-items: center; gap: 8px; background: #f8fafc; }
.member-review > summary::-webkit-details-marker { display: none; }
.member-review > summary::before { content: '▸'; font-size: 13px; color: var(--muted); transition: transform .2s; }
.member-review[open] > summary::before { transform: rotate(90deg); }
.member-review[open] > summary { background: #eef2ff; }
.member-name { font-weight: 700; font-size: 15px; color: var(--primary); }
.member-team { font-weight: 400; font-size: 12px; color: var(--muted); }
.member-body { padding: 12px 14px 14px; }

/* 周期复盘：图表 + 达标分析 + 日复盘 8 板块 */
.review-stats { background: #f8fafc; border-radius: 10px; padding: 12px; margin-bottom: 12px; }
.stat-summary { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 6px; font-size: 14px; }
.stat-summary b { color: var(--text); }
.rate-over { color: var(--purple); font-weight: 700; }
.rate-under { color: var(--red); font-weight: 700; }
.review-reasons { display: grid; grid-template-columns: 1fr; gap: 6px; }
.review-reasons .fitem.full { margin-bottom: 0; }
.note-box.plain { background: #f1f5f9; border-left-color: #94a3b8; }
.review-day { display: grid; grid-template-columns: 1fr; gap: 8px; }
.day-item { background: #f8fafc; border-left: 3px solid var(--primary); border-radius: 8px; padding: 8px 12px; }
.day-item .day-lbl { display: block; font-size: 12px; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.day-item div { font-size: 14px; color: var(--text); white-space: pre-wrap; line-height: 1.6; }
.linked-review-section { margin: 12px 0; }
.linked-review-list { display: grid; gap: 7px; margin-top: 7px; }
.linked-review-day { border: 1px solid var(--border); border-radius: 9px; background: #fff; overflow: hidden; }
.linked-review-day > summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between;
  align-items: center; gap: 8px; padding: 9px 11px; color: var(--text); font-weight: 700; font-size: 13px; }
.linked-review-day > summary::-webkit-details-marker { display: none; }
.linked-review-day > summary::before { content: '▸'; color: var(--muted); margin-right: 4px; }
.linked-review-day[open] > summary::before { content: '▾'; }
.linked-review-day > summary span:first-child { margin-right: auto; }
.linked-review-body { padding: 2px 10px 10px; border-top: 1px solid var(--border); }
.reference-badge { flex: none; font-size: 11px; color: #166534; background: #dcfce7;
  border-radius: 10px; padding: 2px 7px; font-weight: 700; }
.linked-review-empty { margin-top: 7px; padding: 12px; border-radius: 8px; background: #f8fafc;
  color: var(--muted); text-align: center; font-size: 13px; }

/* 每日填报：历史只读、分项追加、触达附件 */
.record-date-picker { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 12px 0 16px;
  padding: 10px 12px; background: #f8fafc; border: 1px solid var(--border); border-radius: 10px; }
.record-date-picker input[type="date"] { border: 1px solid var(--border); border-radius: 8px; padding: 7px 10px;
  background: #fff; color: var(--text); font: inherit; }
.record-date-picker button:disabled { opacity: .4; cursor: not-allowed; }
.record-mode { font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 12px; }
.record-mode.today { color: #15803d; background: #dcfce7; }
.record-mode.history { color: #92400e; background: #fef3c7; }
.empty-history { padding: 30px 12px; text-align: center; color: var(--muted); background: #f8fafc; border-radius: 10px; }
.history-review-field { margin: 12px 0; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: #fbfdff; }
.history-review-field > label { display: block; font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.original-review, .added-review { padding: 10px 12px; margin: 7px 0; border-radius: 8px; white-space: pre-wrap; line-height: 1.6; }
.original-review { background: #eff6ff; border-left: 4px solid #2563eb; }
.added-review { background: #fff7ed; border-left: 4px solid #f59e0b; }
.review-source { display: block; width: max-content; max-width: 100%; font-size: 11px; font-weight: 800;
  padding: 2px 7px; border-radius: 9px; margin-bottom: 5px; }
.review-source.original { color: #1d4ed8; background: #dbeafe; }
.review-source.added { color: #9a3412; background: #ffedd5; }
.add-review-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; margin-top: 9px; }
.add-review-row textarea { min-height: 62px; padding: 9px 10px; border: 1px solid #f59e0b; border-radius: 8px;
  font: inherit; resize: vertical; box-sizing: border-box; }
.daily-attachments { margin: 8px 0 18px; padding: 12px; background: #f8fafc; border: 1px dashed #94a3b8; border-radius: 10px; }
.daily-file-list { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.daily-file { width: min(260px, 100%); padding: 8px; background: #fff; border: 1px solid var(--border); border-radius: 8px; }
.daily-file img, .daily-file video { display: block; max-width: 100%; max-height: 180px; border-radius: 6px; margin-bottom: 5px; }
.daily-file audio { width: 100%; display: block; margin-bottom: 5px; }
.daily-file span { display: block; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.daily-file-help { margin-left: 8px; font-size: 12px; }
.pending-files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pending-file { font-size: 12px; color: #1d4ed8; background: #dbeafe; border-radius: 10px; padding: 3px 8px; }
.account-security-note { margin: 10px 0 14px; padding: 10px 12px; background: #fff7ed; border-left: 4px solid #f59e0b;
  border-radius: 8px; color: #7c2d12; font-size: 13px; line-height: 1.6; }
.member-review-date { display: flex; align-items: center; gap: 10px; margin: 12px 0;
  color: var(--muted); font-size: 13px; }
.member-review-date input { width: auto; min-width: 150px; }
.history-review-field.compact { margin: 10px 0; padding: 10px; }

@media (max-width: 600px) {
  .add-review-row { grid-template-columns: 1fr; }
  .add-review-row button { justify-self: start; }
  .daily-file-help { display: block; margin: 7px 0 0; }
}
.operation-json { max-width: 520px; max-height: 260px; overflow: auto; white-space: pre-wrap; word-break: break-word; font-size: 11px; }
.merge-summary { margin: 12px 0; padding: 10px 12px; background: #f8fafc; border-radius: 10px; line-height: 1.7; }
.merge-field { display: grid; grid-template-columns: 160px 1fr 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); align-items: start; }
.merge-field label { display: block; line-height: 1.5; word-break: break-word; }
.merge-label { font-weight: 700; }
@media (max-width: 700px) { .merge-field { grid-template-columns: 1fr; gap: 6px; } }

/* 复盘二级栏 */
.sub-tabs { display: flex; gap: 6px; margin-bottom: 12px; border-bottom: 1px solid var(--border); padding-bottom: 8px; overflow-x: auto; }
.sub-tab { padding: 6px 14px; border: none; background: transparent; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; }
.sub-tab.active { background: var(--primary); color: #fff; }
.sub-panel[hidden] { display: none; }
.period-picker { display: flex; gap: 6px; margin-bottom: 12px; overflow-x: auto; padding-bottom: 4px; }
.period-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--border); background: #fff; border-radius: 16px; font-size: 13px; color: var(--text); cursor: pointer; white-space: nowrap; }
.period-chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.period-chip.active .chip-rate { background: rgba(255,255,255,.28); color: #fff; }
.period-chip.active .chip-dot { background: #fff; }
.chip-label { font-weight: 600; }
.chip-rate { font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 8px; line-height: 1.4; }
.chip-rate.over { background: #f3e8ff; color: var(--purple); }
.chip-rate.partial { background: #dcfce7; color: var(--green); }
.chip-rate.none { background: #f1f5f9; color: var(--muted); }
.chip-dot { width: 7px; height: 7px; border-radius: 50%; background: #cbd5e1; flex: none; }
.chip-dot.done { background: var(--green); }

/* 渠道 chip */
.lead-channel { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 20px; background: #fff7ed; color: #ea580c; }

/* 团队日复盘：自动汇总 */
.mini-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 8px; }
.mini-table th, .mini-table td { padding: 6px 8px; text-align: center; border-bottom: 1px solid var(--border); }
.mini-table th { background: #f1f5f9; color: var(--muted); font-weight: 600; font-size: 12px; }
.mini-table td:first-child { text-align: left; font-weight: 600; }
.mini-table td.big { color: var(--green); font-weight: 700; }
.day-lbl { display: block; font-size: 12px; font-weight: 700; color: var(--primary); margin-bottom: 4px; }

/* 伙伴分类多选 */
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.check-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; padding: 4px 10px; border: 1px solid var(--border); border-radius: 20px; cursor: pointer; user-select: none; background: #fff; }
.check-chip input { margin: 0; }
.check-chip:has(input:checked) { background: #eef2ff; border-color: var(--primary); color: var(--primary); font-weight: 600; }
.chip-on { background: #eef2ff; border-color: var(--primary); color: var(--primary); font-weight: 600; }

/* 开会思路 */
.meeting-audio { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.meeting-audio audio { width: 100%; }

/* 荣誉墙：月份倒序，月内月/周/循环；领奖台只展示已发布名次。 */
.honor-wall { display: grid; gap: 20px; }
.honor-period { margin-top: 14px; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.honor-period > summary { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px; cursor: pointer; background: #f3f5ef; }
.honor-period > summary::before { content: '▸'; }
.honor-period[open] > summary::before { content: '▾'; }
.honor-period > summary span { font-size: 12px; color: #657566; }
.honor-period-body { padding: 14px; }
.honor-podium { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; align-items: end; margin-bottom: 16px; }
.podium-place { min-width: 0; text-align: center; }
.podium-awards { display: grid; gap: 8px; }
.podium-awards .honor-card { min-width: 0; padding: 12px; border-radius: 14px 14px 0 0; overflow-wrap: anywhere; }
.podium-awards .honor-imgs { display: grid; grid-template-columns: 1fr; }
.podium-awards .honor-img { width: 100%; height: auto; max-height: 240px; object-fit: contain; }
.podium-awards .honor-title { font-size: 13px; }
.honor-winner { margin: 8px 0; font-size: 18px; }
.podium-empty { color: #768071; padding: 20px 4px; font-size: 12px; }
.podium-step { display: flex; flex-direction: column; justify-content: center; gap: 6px; border-radius: 0 0 10px 10px; color: #39483b; }
.podium-step strong { font-size: 14px; line-height: 1.2; }
.podium-step span { font-size: 28px; font-weight: 800; line-height: 1; }
.honor-wall .honor-del { position: static; align-self: flex-end; }
.podium-1 .podium-step { height: 110px; background: #e6d5a3; }
.podium-2 .podium-step { height: 80px; background: #dce2e3; }
.podium-3 .podium-step { height: 55px; background: #dfbda4; }
.honor-form [hidden] { display: none !important; }
@media (max-width: 600px) {
  .honor-period-body { padding: 8px; }
  .honor-podium { gap: 6px; }
  .podium-awards .honor-card { padding: 6px; }
  .podium-awards .honor-badge { padding: 2px 4px; font-size: 11px; }
  .honor-winner { font-size: 14px; }
  .podium-awards .honor-del { font-size: 12px; padding: 6px; }
  .podium-awards .honor-title, .podium-awards .honor-meta, .podium-awards .honor-reward { font-size: 11px; }
}

/* 团队月历 */
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-head { text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); padding: 4px 0; }
.cal-cell { position: relative; min-height: 58px; border-radius: 8px; padding: 6px; background: #fff; border: 1px solid var(--border); display: flex; flex-direction: column; justify-content: space-between; }
.cal-cell.empty { background: transparent; border: none; padding: 0; min-height: 0; }
.cal-cell .cal-day { font-size: 14px; font-weight: 700; color: var(--text); display: flex; align-items: center; justify-content: space-between; }
.cal-cell.c1 { background: #eff6ff; border-color: #bfdbfe; }
.cal-cell.c2 { background: #f5f3ff; border-color: #ddd6fe; }
.cal-cell.rest { background: #f1f5f9; border-color: #e2e8f0; }
.cal-cell.rest .cal-day { color: #94a3b8; }
.cal-cell.past { background: #f0f0ec; border-color: #ddded7; }
.cal-cell.past .cal-day { color: #72796f; }
.cal-cell.today { background: #e7efe2; border-color: #78907a; outline: 2px solid #4d6a5e; outline-offset: -1px; }
.cal-cell.today .cal-day { color: #304f41; }
.cal-today-label { display: block; font-size: 11px; font-weight: 700; color: #304f41; }
#team-calendar { scroll-margin-top: 90px; }
.cal-cell .cal-day { flex-wrap: wrap; gap: 2px; }
.cal-cycle { font-size: 10px; font-weight: 600; color: var(--primary); background: #fff; padding: 1px 5px; border-radius: 10px; }
.cal-cell.c2 .cal-cycle { color: var(--purple); }
.cal-rest { font-size: 10px; font-weight: 700; color: #94a3b8; background: #fff; padding: 1px 5px; border-radius: 10px; }
.cal-big { font-size: 11px; font-weight: 700; color: var(--green); text-align: right; }
@media (max-width: 600px) {
  .cal-cell { padding: 4px; min-height: 70px; }
  .cal-cell .cal-day { flex-direction: column; align-items: flex-start; }
  .cal-cycle, .cal-rest { font-size: 10px; padding: 1px; white-space: nowrap; }
}

/* 日历备注 */
.cal-cell[data-date] { cursor: pointer; }
.cal-cell[data-date]:hover { box-shadow: 0 0 0 1px var(--primary); }
.cal-note-dot { position: absolute; top: 2px; right: 5px; font-size: 12px; color: #94a3b8; line-height: 1; }
.cal-note-dot.imp { color: #dc2626; font-weight: 700; }
.note-modal-mask { position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 999; display: flex; align-items: center; justify-content: center; }
.note-modal { background: #fff; border-radius: 12px; padding: 18px 20px; width: 460px; max-width: 92vw; max-height: 82vh; overflow: auto; box-shadow: 0 20px 50px rgba(0,0,0,.2); }
.note-modal-title { font-size: 16px; font-weight: 700; margin-bottom: 12px; }

/* Shared page dialogs: application controls, not browser JavaScript prompts. */
dialog.app-dialog { box-sizing: border-box; border: 1px solid var(--line, #dce3db); border-radius: 18px; width: min(480px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 24px; color: var(--ink, #253c2f); background: var(--card, #fff); box-shadow: 0 24px 90px #14251c35; overflow: auto; }
dialog.app-dialog-wide { width: min(880px, calc(100% - 32px)); }
dialog.app-dialog::backdrop { background: #1d2c2466; backdrop-filter: blur(3px); }
dialog.app-dialog h2.app-dialog-title { margin: 0 0 12px; font-size: 20px; line-height: 1.45; }
dialog.app-dialog p.app-dialog-description { margin: 0 0 20px; font-size: 14px; line-height: 1.7; color: var(--muted, #64748b); white-space: pre-wrap; overflow-wrap: anywhere; }
.app-dialog-form { display: grid; gap: 16px; }
.app-dialog-field { display: grid; gap: 7px; }
.app-dialog-field[hidden] { display: none; }
.app-dialog-field label { font-size: 14px; font-weight: 600; }
.app-dialog-field input,.app-dialog-field select,.app-dialog-field textarea { box-sizing: border-box; width: 100%; min-height: 44px; border: 1px solid var(--line, #dce3db); border-radius: 10px; padding: 10px 12px; font: inherit; color: inherit; background: #fff; }
.app-dialog-field textarea { min-height: 100px; resize: vertical; margin: 0; }
.app-dialog-field [aria-invalid="true"] { border-color: #ab4740; }
.app-field-error,.app-field-help { font-size: 13px; line-height: 1.5; }
.app-field-error { color: #a43832; }
.app-field-help { color: var(--muted, #64748b); }
dialog.app-dialog p.app-dialog-message { margin: 0; color: #a43832; font-size: 14px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.app-field-error:empty,.app-dialog-message:empty { display: none; }
.app-dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.app-dialog-actions button { min-height: 44px; }
.app-dialog button:disabled { cursor: wait; opacity: .6; }
.app-dialog :focus-visible,.app-notice button:focus-visible { outline: 3px solid #819980; outline-offset: 3px; }
.app-notice { position: fixed; z-index: 10010; bottom: 24px; left: 50%; transform: translateX(-50%); box-sizing: border-box; width: max-content; max-width: min(560px, calc(100% - 32px)); display: flex; align-items: flex-start; gap: 18px; padding: 14px 18px; border: 1px solid #b9cabb; border-radius: 12px; box-shadow: 0 8px 35px #19312022; background: #eff6ee; color: #2d5639; line-height: 1.65; }
.app-notice[data-tone="error"] { background: #fff3f1; color: #963b35; border-color: #e4b9b2; }
.app-notice span { white-space: pre-wrap; overflow-wrap: anywhere; min-width: 0; }
.app-notice-close { flex-shrink: 0; border: 0; padding: 0 4px; min-height: 30px; background: transparent; color: inherit; cursor: pointer; font: inherit; }
@media (max-width: 600px) {
  dialog.app-dialog { padding: 20px 16px; }
  .app-dialog-field input,.app-dialog-field select,.app-dialog-field textarea { font-size: 16px; }
  .app-notice { bottom: 84px; }
}
.note-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.note-item { display: flex; align-items: center; gap: 8px; background: #f8fafc; border: 1px solid var(--border); border-radius: 8px; padding: 7px 10px; font-size: 13px; }
.note-item.imp { background: #fef2f2; border-color: #fecaca; }
.note-tag { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 10px; background: #e2e8f0; color: #475569; white-space: nowrap; }
.note-tag.company { background: #fef3c7; color: #92400e; }
.note-tag.team { background: #ede9fe; color: #5b21b6; }
.note-tag.personal { background: #dbeafe; color: #1e40af; }
.note-author { color: #64748b; font-size: 12px; white-space: nowrap; }
.note-text { flex: 1; word-break: break-all; }
.note-edit { border-top: 1px dashed var(--border); padding-top: 10px; }
.note-edit-head { font-size: 13px; color: #475569; margin-bottom: 6px; }
.note-edit-head select { padding: 3px 6px; border: 1px solid var(--border); border-radius: 6px; font-size: 13px; }
.note-edit textarea { width: 100%; box-sizing: border-box; min-height: 64px; border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; font-size: 13px; font-family: inherit; resize: vertical; }
.note-edit textarea:focus { outline: 2px solid var(--primary); border-color: transparent; }
.note-edit-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.note-imp-check { font-size: 13px; color: #64748b; display: flex; align-items: center; gap: 4px; }

/* 伙伴搜索与详情 */
.member-search { margin-top: 14px; position: relative; max-width: 420px; }
.search-input { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px; font-size: 14px; box-sizing: border-box; }
.search-input:focus { outline: 2px solid var(--primary); border-color: transparent; }
.search-suggest { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.08); z-index: 20; max-height: 240px; overflow-y: auto; display: none; }
.sug-item { padding: 10px 14px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.sug-item:hover { background: #f5f7fa; }
.sug-team { font-size: 12px; color: var(--muted); font-weight: 400; }
.sug-empty { padding: 12px 14px; color: var(--muted); font-size: 13px; }

.member-detail { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 14px; }
.member-detail h4 { margin: 16px 0 8px; font-size: 14px; color: var(--muted); }
.md-head { display: flex; align-items: center; gap: 10px; }
.md-head h3 { margin: 0; font-size: 20px; }
.md-head .tag { margin-right: auto; }
.btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--text); cursor: pointer; border-radius: 8px; padding: 6px 12px; }
.btn-ghost:hover { background: #f5f7fa; }

.funnel-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.funnel-step { background: #f8fafc; border: 1px solid var(--border); border-radius: 8px; padding: 8px; text-align: center; }
.funnel-step span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.funnel-step b { font-size: 18px; color: var(--primary); }
.conv-row { margin-top: 8px; display: flex; gap: 8px; align-items: center; font-size: 13px; }
.conv-row b { color: var(--purple); margin-right: 12px; }

.table-sm { width: 100%; border-collapse: collapse; font-size: 13px; }
.table-sm th, .table-sm td { padding: 7px 8px; border-bottom: 1px solid var(--border); text-align: left; }
.table-sm th { color: var(--muted); font-weight: 600; }

.rev-block { background: #f8fafc; border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; }
.rev-block b { font-size: 13px; color: var(--primary); }
.rev-text { margin-top: 6px; font-size: 13px; white-space: pre-wrap; line-height: 1.6; }
.rev-note { margin-top: 6px; font-size: 12px; color: #b45309; background: #fef3c7; padding: 6px 8px; border-radius: 6px; }

@media (max-width: 640px) {
  .funnel-row { grid-template-columns: repeat(3, 1fr); }
}

/* 组织映射 */
.org-form { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.mini-input { padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; box-sizing: border-box; }
.chip-select { margin-left: 6px; padding: 2px 4px; font-size: 12px; border: 1px solid var(--border); border-radius: 6px; background: #fff; }
.chip-x { margin-left: 6px; padding: 1px 7px; font-size: 11px; border: none; border-radius: 6px; background: #fee2e2; color: #b91c1c; cursor: pointer; }
.chip-x:hover { background: #fecaca; }
.leader-select { margin-left: 4px; padding: 2px 6px; font-size: 12px; border: 1px solid var(--border); border-radius: 6px; background: #fff; }

/* 学习中心 */
.learn-cats { display: flex; gap: 8px; margin-bottom: 14px; }
.learn-cat { flex: 1; padding: 10px 12px; font-size: 15px; font-weight: 600; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--text); cursor: pointer; }
.learn-cat.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.learn-upload { border: 1px dashed var(--border); border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; background: #fafbff; }
.learn-upload-title { font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.learn-upload-row { display: flex; flex-wrap: wrap; gap: 8px; }
.learn-upload-row input[type="text"], .learn-upload-row input:not([type]) { flex: 1; min-width: 160px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; box-sizing: border-box; }
.learn-upload-row input[type="file"] { flex: 1.4; min-width: 200px; font-size: 13px; }
.learn-module { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; background: #fff; overflow: hidden; }
.learn-module > summary { cursor: pointer; padding: 10px 14px; list-style: none; display: flex; align-items: center; gap: 8px; background: #f8fafc; }
.learn-module > summary::-webkit-details-marker { display: none; }
.learn-module > summary::before { content: '▸'; font-size: 13px; color: var(--muted); transition: transform .2s; }
.learn-module[open] > summary::before { transform: rotate(90deg); }
.learn-module-name { font-weight: 700; font-size: 15px; color: var(--text); }
.learn-module-count { font-size: 12px; color: var(--muted); background: #eef2ff; padding: 1px 8px; border-radius: 10px; }
.learn-module-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 12px; }
.learn-item { border: 1px solid #f0f2f5; border-radius: 10px; padding: 10px 12px; background: #fcfdff; }
.learn-item-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.learn-type { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: #eef2ff; color: var(--primary); }
.learn-type.ppt { background: #ffe8e0; color: #d9480f; }
.learn-type.doc { background: #e3f2fd; color: #1565c0; }
.learn-type.video { background: #f3e5f5; color: #7b1fa2; }
.learn-type.audio { background: #e8f5e9; color: #2e7d32; }
.learn-type.image { background: #fff3e0; color: #e65100; }
.learn-title { font-weight: 600; font-size: 14px; flex: 1; color: var(--text); }
.learn-del { margin-left: auto; padding: 4px 10px; font-size: 12px; border: 1px solid #fecaca; border-radius: 8px; background: #fee2e2; color: #b91c1c; cursor: pointer; }
.learn-del:hover { background: #fecaca; }
.learn-item-meta { font-size: 12px; margin: 4px 0 8px; }
.learn-img { max-width: 100%; max-height: 360px; border-radius: 8px; cursor: pointer; display: block; }
.learn-media { max-width: 100%; border-radius: 8px; display: block; }
.learn-audio { width: 100%; margin-top: 4px; }
.learn-file { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; color: var(--primary); text-decoration: none; font-size: 14px; }
.learn-file:hover { background: #f5f7fa; }
.learn-empty { text-align: center; padding: 24px; }
.learn-upload-row textarea { flex: 2; min-width: 240px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; font-family: inherit; resize: vertical; box-sizing: border-box; }
.learn-type.text { background: #f1f8e9; color: #33691e; }
.learn-text { white-space: pre-wrap; line-height: 1.7; font-size: 14px; color: #333; background: #f8fafc; border-radius: 8px; padding: 10px 12px; }

/* ===== 荣誉墙 ===== */
.honor-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.honor-form label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--muted); font-weight: 600; }
.honor-form input, .honor-form select {
  padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 14px; box-sizing: border-box; background: #fff;
}
.honor-form input:focus, .honor-form select:focus { outline: none; border-color: var(--primary); }
.honor-form input[type="file"] { font-size: 13px; }
.upload-file-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 6px 0; }
.upload-file-row > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.honor-form .btn-primary { grid-column: 1 / -1; }
.honor-previews { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.honor-preview { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
.honor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.honor-card { border: 1px solid var(--border); border-radius: 12px; padding: 14px; background: #fafbfc; position: relative; display: flex; flex-direction: column; gap: 8px; }
.honor-badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 20px; align-self: flex-start; }
.honor-badge.xg { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #fff; }
.honor-badge.zg { background: linear-gradient(135deg, #60a5fa, #2563eb); color: #fff; }
.honor-badge.yg { background: linear-gradient(135deg, #a78bfa, #7c3aed); color: #fff; }
.honor-badge.other { background: #e2e8f0; color: #475569; }
.honor-title { font-size: 15px; font-weight: 700; color: var(--text); }
.honor-imgs { display: flex; flex-wrap: wrap; gap: 6px; }
.honor-imgs a { display: block; }
.honor-img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); cursor: pointer; }
.honor-reward { font-size: 13px; color: #b45309; background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 6px 10px; }
.honor-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--muted); }
.honor-del { position: absolute; top: 10px; right: 10px; }

/* ===== 销冠榜 ===== */
/* Each nested list fits its own available width, not the viewport width. */
.rank-grid, .team-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.rank-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.rank-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 10px; background: #f8fafc; border: 1px solid var(--border); }
.rank-row.is-me { background: #fff7e6; border-color: #fbbf24; }
.rank-no { flex: 0 0 32px; font-size: 22px; text-align: center; }
.rank-name { flex: 1 1 5em; min-width: 0; overflow-wrap: anywhere; font-size: 15px; font-weight: 700; color: var(--text); }
.rank-me { display: inline-block; margin-left: 8px; font-size: 11px; font-weight: 700; color: #b45309; background: #fde68a; border-radius: 10px; padding: 1px 7px; vertical-align: middle; }
.rank-rev { margin-left: auto; max-width: 100%; overflow-wrap: anywhere; font-size: 16px; font-weight: 800; color: var(--primary); }
.rank-mine { margin-top: 4px; padding: 10px 14px; border-radius: 10px; background: #fffbeb; border: 1px dashed #f59e0b; font-size: 13px; color: #92400e; }
.rank-mine b { color: #b45309; }

/* 团队战绩榜（团队长视角） */
.team-rank-cards { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.team-rank-card { flex: 1; min-width: 140px; padding: 10px 14px; border-radius: 10px; background: #f0fdf4; border: 1px solid #bbf7d0; }
.team-rank-card .trc-label { font-size: 12px; color: #15803d; font-weight: 700; }
.team-rank-card .trc-name { font-size: 15px; font-weight: 800; color: var(--text); margin: 2px 0; }
.team-rank-card .trc-val { font-size: 14px; font-weight: 700; color: var(--primary); }
.team-rank-card:nth-child(2) { background: #eff6ff; border-color: #bfdbfe; }
.team-rank-card:nth-child(2) .trc-label { color: #1d4ed8; }

/* 本队与第一的差距卡 */
.team-rank-card.gap { background: #fefce8; border-color: #fde047; }
.team-rank-card.gap .trc-label { color: #a16207; }
.team-rank-card.gap .trc-val { color: #b45309; }

/* 小组完整排名榜（负责人视角：总业绩榜 + 人均榜） */
.team-lists h3 { font-size: 13px; color: var(--text2); margin: 0 0 8px; }

/* 区间数据查询 */
.day-picker { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.day-input { border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; font-size: 14px; color: var(--text); background: #fff; }
.range-picker { display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap; margin: 12px 0 8px; }
.range-field { display: flex; flex-direction: column; gap: 3px; }
.range-field label { font-size: 11px; color: var(--muted); font-weight: 600; }
.quick-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.quick-chips .chip { border: 1px solid var(--border); background: #f8fafc; color: var(--text); border-radius: 16px; padding: 4px 12px; font-size: 12px; cursor: pointer; transition: all .15s; }
.quick-chips .chip:hover { border-color: var(--primary); color: var(--primary); background: #eef2ff; }
.quick-chips .chip:active { transform: scale(.96); }
.pos { font-weight: 700; color: var(--muted); }
.pos.top1 { color: #d97706; }
.pos.top2 { color: #64748b; }
.pos.top3 { color: #b45309; }
.day-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.no-record td { color: var(--muted); background: #fafbfc; }
.day-notes { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.day-note { font-size: 13px; color: var(--text); background: #f8fafc; border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; line-height: 1.6; }
.day-note .tag { margin-right: 4px; }
.day-reviews { margin-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.day-review-block { background: #f8fafc; border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.day-review-block.team { background: #f0fdf4; border-color: #bbf7d0; }
.day-review-head { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px dashed var(--border); }

/* ============ 流量部 ============ */
.traffic-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-bottom: 12px; }
.traffic-form .fitem.full { grid-column: 1 / -1; }
.traffic-form textarea, .traffic-form input, .traffic-form select { width: 100%; box-sizing: border-box; }
.chip-active { background: var(--primary); color: #fff; border-color: var(--primary) !important; }
.traffic-record-groups { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.traffic-record-group { border: 1px solid var(--border); border-radius: 10px; background: #fff; overflow: hidden; }
.traffic-record-group > summary { display: grid; grid-template-columns: minmax(110px, 1.5fr) repeat(3, minmax(76px, .75fr)) auto;
  align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; list-style: none; background: #f8fafc; }
.traffic-record-group > summary::-webkit-details-marker { display: none; }
.traffic-record-group[open] > summary { background: #eff6ff; border-bottom: 1px solid var(--border); }
.traffic-record-partner { font-weight: 800; font-size: 15px; }
.traffic-record-metric { text-align: center; line-height: 1.25; }
.traffic-record-metric b { display: block; color: var(--primary); font-size: 17px; }
.traffic-record-metric small { color: var(--muted); font-size: 11px; }
.traffic-record-toggle { min-width: 78px; text-align: right; color: var(--primary); font-size: 12px; font-weight: 700; }
.traffic-record-toggle::after { content: '展开详情 ▾'; }
.traffic-record-group[open] .traffic-record-toggle::after { content: '收起详情 ▴'; }
.traffic-record-detail { padding: 4px 12px 12px; overflow-x: auto; }
.traffic-record-detail .table-sm { min-width: 520px; }
.traffic-record-remark { max-width: 240px; white-space: pre-wrap; overflow-wrap: anywhere; }
.traffic-record-empty { padding: 14px; color: var(--muted); font-size: 13px; }
.stat-grid { display: flex; gap: 12px; flex-wrap: wrap; }
.stat-card { flex: 1; min-width: 140px; background: #f8fafc; border: 1px solid var(--border); border-radius: 10px; padding: 14px; text-align: center; }
.stat-value { font-size: 26px; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 12px; color: var(--muted); margin-top: 4px; }
.traffic-lead-card { border: 1px solid var(--border); border-radius: 10px; margin: 9px 0; background: #fff; overflow: hidden; }
.traffic-lead-card > summary { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 11px 12px;
  cursor: pointer; list-style: none; background: #fbfdff; }
.traffic-lead-card > summary::-webkit-details-marker { display: none; }
.traffic-lead-card > summary::before { content: '▸'; color: var(--muted); }
.traffic-lead-card[open] > summary::before { transform: rotate(90deg); }
.traffic-lead-name { min-width: 74px; font-weight: 800; }
.traffic-lead-owner, .traffic-lead-update { font-size: 12px; color: var(--muted); }
.traffic-lead-update { margin-left: auto; }
.traffic-lead-body { padding: 12px 14px 16px; border-top: 1px solid var(--border); }
.traffic-lead-body h3 { font-size: 14px; margin: 14px 0 8px; color: var(--text); }
.traffic-lead-body h3:first-child { margin-top: 0; }
.traffic-lead-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; }
.traffic-lead-field { padding: 8px 10px; background: #f8fafc; border-radius: 8px; min-width: 0; }
.traffic-lead-field > span { display: block; font-size: 11px; font-weight: 700; color: var(--primary); margin-bottom: 3px; }
.traffic-lead-field > div { font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }
.traffic-lead-files { display: flex; flex-wrap: wrap; gap: 8px; }
.traffic-lead-file { width: min(230px, 100%); padding: 7px; border: 1px solid var(--border); border-radius: 8px; }
.traffic-lead-file img { display: block; max-width: 100%; max-height: 160px; border-radius: 6px; cursor: pointer; }
.traffic-lead-file audio { width: 100%; }
.traffic-lead-file span, .traffic-lead-download { display: block; font-size: 12px; margin-top: 4px; overflow-wrap: anywhere; }
.traffic-followup { padding: 9px 10px; margin: 7px 0; border-left: 3px solid #2563eb; border-radius: 7px;
  background: #eff6ff; font-size: 13px; white-space: pre-wrap; line-height: 1.55; }
.traffic-followup-time { font-size: 11px; font-weight: 700; color: #1d4ed8; margin-bottom: 4px; }
.traffic-followup audio { display: block; width: 100%; margin-top: 7px; }
.reference-note { margin-top: 14px; padding: 8px 10px; font-size: 12px; color: #166534; background: #f0fdf4;
  border-left: 3px solid #22c55e; border-radius: 7px; }

@media (max-width: 640px) {
  .traffic-record-group > summary { grid-template-columns: 1fr repeat(3, minmax(58px, auto)); gap: 8px; padding: 11px 12px; }
  .traffic-record-partner { grid-column: 1 / -1; }
  .traffic-record-toggle { grid-column: 1 / -1; text-align: right; min-width: 0; }
  .traffic-record-detail { padding: 3px 10px 10px; }
}

/* ===== 目标体系 & 奖励计划（v1.13.0） ===== */
.goal-gap { font-size: 11px; color: var(--muted); margin-top: 2px; }
.gap-red { color: var(--red); font-weight: 700; }
.over-tag.gold { color: #d97706; }
.reward-list { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.reward-item { border: 1px solid var(--border); border-left: 4px solid var(--primary); border-radius: 10px; padding: 10px 12px; background: #fbfdff; }
.reward-item.done-item { border-left-color: var(--green); background: #f6fdf8; }
.reward-head { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.reward-badge { background: #eef2ff; color: var(--primary); font-weight: 700; padding: 2px 8px; border-radius: 10px; font-size: 11px; }
.reward-obj { font-size: 11px; color: var(--muted); }
.reward-text { font-size: 15px; font-weight: 600; margin: 6px 0 4px; }
.reward-foot { display: flex; align-items: center; gap: 10px; font-size: 12px; flex-wrap: wrap; }
.admin-form select, .admin-form input { width: 100%; box-sizing: border-box; padding: 8px; border: 1px solid var(--border); border-radius: 8px; font-family: inherit; }
.admin-form select:focus, .admin-form input:focus { outline: none; border-color: var(--primary); }

/* ============ 彩色环节漏斗 ============ */
.f8-wrap { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.f8-stage { display: grid; grid-template-columns: minmax(70px, 26%) minmax(0, 1fr); gap: 14px; align-items: center; }
.f8-stage > svg { width: 100%; height: 46px; }
.f8-row { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: center; gap: 6px; min-height: 46px; font-size: 13px; }
.f8-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.f8-name { overflow-wrap: anywhere; }
.f8-val { text-align: right; font-variant-numeric: tabular-nums; }
.f8-between { margin-left: calc(26% + 14px); display: flex; gap: 8px; color: var(--green); font-size: 12px; }
.f8-explain summary { cursor: pointer; list-style: none; padding: 4px 0; }
.f8-explain summary::-webkit-details-marker { display: none; }
.f8-explain > div { color: var(--text); font-size: 12px; line-height: 1.7; padding: 8px; background: var(--bg-soft, #f8fafc); border-radius: 8px; overflow-wrap: anywhere; }
.f8-total { grid-column: 2 / -1; color: var(--muted); font-size: 11px; }
.f8-touch-stat { display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; margin-top: 12px; font-size: 12px; }
.f8-head { margin: 8px 0 2px; font-size: 13px; }
.live-cycle-metrics { margin-top: 12px; }
.live-cycle-title { margin-bottom: 6px; font-size: 13px; font-weight: 700; color: var(--text); }
.live-cycle-title .muted { margin-left: 6px; font-size: 11px; font-weight: 400; }
.live-cycle-table { width: 100%; min-width: 310px; border-collapse: collapse; font-size: 12px; }
.live-count-pair { display: block; white-space: nowrap; line-height: 1.8; }
.live-cycle-table th, .live-cycle-table td { padding: 7px 9px; text-align: center; border: 1px solid var(--border); }
.live-cycle-table thead th { background: #f1f5f9; color: var(--muted); font-weight: 700; }
.live-cycle-table tbody th { max-width: 170px; text-align: left; background: #f8fafc; color: var(--text); }
.live-cycle-table td small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; }
.live-cycle-table .live-day-out { background: #f8fafc; }
.live-non-cycle { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 7px; font-size: 12px; }
.live-non-cycle > span { padding: 4px 7px; border-radius: 7px; background: #f8fafc; }
.live-non-cycle .live-non-cycle-label { padding-left: 0; background: transparent; color: var(--muted); font-weight: 700; }
.range-live-cell { min-width: 220px; vertical-align: top; }
.range-live-cell .live-cycle-metrics { margin-top: 0; }
.range-live-cell .live-cycle-title { font-size: 11px; }
.range-live-cell .live-cycle-table { min-width: 360px; }
@media (max-width: 520px) {
  .f8-stage { gap: 8px; grid-template-columns: 22% minmax(0, 1fr); }
  .f8-between { margin-left: calc(22% + 8px); }
  .f8-row { font-size: 12px; }
}

.daily-sale-group { border: 1px solid var(--border); border-radius: 12px; padding: 14px; margin-bottom: 12px; }
.daily-sale-draft { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 32px; gap: 10px; align-items: end; margin: 12px 0; }
.daily-sale-draft label { display: block; font-size: 12px; color: var(--muted); }
.daily-sale-draft input, .daily-sale-draft select { width: 100%; min-width: 0; padding: 10px; box-sizing: border-box; }
.sale-customer-combobox { position: relative; min-width: 0; }
.sale-customer-results { position: absolute; z-index: 20; top: 100%; left: 0; width: max(100%, 240px); max-width: min(360px, 80vw); max-height: 240px; overflow: auto; background: var(--card, white); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 8px 24px #0002; }
.sale-customer-results button { display: block; width: 100%; text-align: left; border: 0; border-radius: 0; background: transparent; padding: 10px; color: var(--text); }
.sale-customer-results button:hover, .sale-customer-results button[aria-selected="true"] { background: #eaf4ff; }
.sale-customer-results small { display: block; color: var(--muted); margin-top: 4px; }
.sale-customer-results > .muted { padding: 10px; font-size: 12px; }
.saved-daily-sale { display: flex; flex-direction: column; gap: 4px; border-bottom: 1px solid var(--border); padding: 10px 0; font-size: 13px; }
.saved-daily-sale.is-void { opacity: .65; }
.daily-legacy-sales { padding: 10px; font-size: 12px; background: var(--bg-soft, #f8fafc); border-radius: 8px; }
.daily-legacy-sales > span { display: block; margin: 5px 0; }
@media (max-width: 420px) {
  .daily-sale-group { padding: 10px; }
  .daily-sale-draft { grid-template-columns: minmax(0, 1fr) 30px; gap: 6px; }
  .sale-customer-combobox { grid-column: 1; }
  .sale-option-field { grid-column: 1; }
  .daily-sale-draft > button { grid-column: 2; grid-row: 1 / 3; }
}

/* 团队/公司汇总漏斗（v1.15.0） */
.f8-block { margin-top: 12px; padding: 12px 14px; background: var(--bg-soft, #f8f9fb); border: 1px solid var(--border, #e5e7eb); border-radius: 12px; }
.f8-block.f8-company { background: linear-gradient(135deg, #fff7ed, #fffbeb); border-color: #fcd34d; }
.f8-block-title { font-size: 14px; font-weight: 600; margin-bottom: 2px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.f8-block-title .tag { margin-left: auto; }
.f8-block-body .f8-wrap { margin-top: 6px; }
.tf-head { margin: 8px 0 2px; font-size: 13px; }
.sale-facts { border-color: #f3d28c; background: #fffdf7; }
.sale-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.student-orders { display: grid; gap: 8px; }
.student-order { padding: 10px 12px; border: 1px solid #e5e7eb; border-radius: 10px; background: #fff; }
.student-order.is-void { opacity: .62; background: #f8fafc; }
.student-order-actions { display: flex; gap: 8px; margin-top: 8px; }
.order-void { color: #991b1b; border-color: #fecaca; }
/* Installments reuse the sale card; the prominent native select stays keyboard/touch accessible. */
.payment-heading {display:flex;align-items:center;gap:8px;font-weight:700;flex-wrap:wrap}
.payment-heading .payment-kind-switch {width:auto;min-width:100px;padding:9px 30px 9px 12px;border:2px solid #657b4d;border-radius:10px;background:#eef3e8;color:#344a27;font:inherit;cursor:pointer;appearance:auto}
.daily-payment-card [hidden] {display:none!important}
.daily-payment-card {border:1px solid var(--border);border-radius:12px;padding:14px;margin-bottom:12px;box-sizing:border-box}
.daily-sale-draft.payment-draft {grid-template-columns:minmax(0,1.4fr) repeat(3,minmax(0,1fr)) 32px}
.daily-sale-draft.payment-draft[data-kind="balance"] {grid-template-columns:minmax(0,1.2fr) minmax(0,1.5fr) minmax(0,1fr) 32px}
.daily-sale-draft.payment-draft>button {grid-column:auto;grid-row:auto}
.payment-draft>label {flex:1 1 150px;min-width:0}
.payment-draft input,.payment-draft select {max-width:100%;box-sizing:border-box}
.payment-remaining {flex-basis:100%}
@media(max-width:700px){.daily-sale-draft.payment-draft,.daily-sale-draft.payment-draft[data-kind="balance"]{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.payment-draft .sale-customer-combobox,.payment-draft .payment-remaining{grid-column:1/-1}.payment-draft>label{min-width:0}.payment-draft [data-remove-sale]{justify-self:end}}
/* Searchable member/team fields keep their original select contract. */
.search-select { position:relative; min-width:0; width:100%; }
.search-select .search-select-native { position:absolute; width:1px!important; height:1px!important; min-height:0!important; padding:0!important; opacity:0; pointer-events:none; }
.search-select-input { width:100%; min-width:0; }
.search-select-results { position:absolute; top:100%; left:0; right:0; z-index:30; max-height:240px; overflow:auto; border:1px solid var(--border,#dce4dc); border-radius:12px; background:var(--card,#fff); box-shadow:0 8px 24px #20372a1a; padding:6px; }
.search-select-results[hidden] { display:none; }
.search-select-results button { display:block; width:100%; text-align:left; white-space:normal; border:0; background:transparent; color:inherit; padding:10px; border-radius:8px; }
.search-select-results button:hover,.search-select-results button[aria-selected=true] { background:var(--accent-soft,#e8eee3); }
.honor-featured>.honor-period+.honor-period { margin-top:18px; }
.honor-period-body>[data-award-category]+[data-award-category] { margin-top:24px; }
.honor-history>.honor-month { margin-top:16px; }
