/* ================= 设计令牌 ================= */
:root {
  --p: #1f6feb;
  --p-dark: #1558c8;
  --p-t: #eaf1fe;
  --ok: #12b76a;
  --ok-t: #e7f8f0;
  --wa: #f79009;
  --wa-t: #fef3e2;
  --dg: #f04438;
  --dg-t: #feecea;
  --bg: #f5f7fa;
  --ink: #101828;
  --ink2: #475467;
  --ink3: #667085;
  --ink4: #98a2b3;
  --line: #eaecf0;
  --navy: #0b2c66;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px rgba(16, 24, 40, 0.04);
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--p);
  text-decoration: none;
}
button {
  font-family: inherit;
}
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-thumb {
  background: #d0d5dd;
  border-radius: 4px;
}
::-webkit-scrollbar-track {
  background: transparent;
}

/* ================= 登录页 ================= */
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}
/* hidden 属性会被 display 覆盖，强制生效 */
.login[hidden],
.app[hidden] {
  display: none !important;
}
.login-left {
  background: linear-gradient(150deg, #0b2c66 0%, #1f6feb 100%);
  color: #fff;
  padding: 56px 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.login-left::after {
  content: '';
  position: absolute;
  right: -120px;
  bottom: -160px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}
.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.86);
}
.login-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 18px;
}
.login-hero h1 {
  font-size: 40px;
  line-height: 1.25;
  letter-spacing: -1px;
  margin: 0 0 18px;
}
.login-hero p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  line-height: 1.8;
  max-width: 420px;
  margin: 0;
}
.login-points {
  display: flex;
  gap: 28px;
  position: relative;
  z-index: 2;
}
.login-points .pt {
  border-left: 2px solid rgba(255, 255, 255, 0.28);
  padding-left: 12px;
}
.login-points .pt b {
  display: block;
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}
.login-points .pt span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
}
.login-right {
  display: grid;
  place-items: center;
  padding: 40px;
  background: #fff;
}
.login-card {
  width: 100%;
  max-width: 380px;
}
.login-card h2 {
  font-size: 24px;
  margin: 0 0 6px;
}
.login-card .sub {
  color: var(--ink3);
  font-size: 13px;
  margin-bottom: 30px;
}
.login-tip {
  margin-top: 18px;
  background: #f5f7fa;
  border: 1px dashed #e1e7f0;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 12px;
  color: var(--ink3);
  line-height: 1.7;
}
.login-tip code {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 5px;
  color: var(--ink2);
}
@media (max-width: 980px) {
  .login {
    grid-template-columns: 1fr;
  }
  .login-left {
    display: none;
  }
}

/* ================= 主框架 ================= */
.app {
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 232px;
  background: linear-gradient(180deg, #0b2c66 0%, #123a7a 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 18px 12px 14px;
  z-index: 40;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px 18px;
}
.brand .logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.16);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 15px;
}
.brand .name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}
.brand .name small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.5px;
}
.nav {
  flex: 1;
  overflow-y: auto;
}
.nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
}
.nav-title {
  font-size: 11px;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.42);
  padding: 14px 12px 6px;
}
.nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13.5px;
  margin-bottom: 2px;
  transition: background 0.15s;
}
.nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.nav a.on {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-weight: 600;
}
.nav a .ico {
  width: 18px;
  text-align: center;
  font-size: 13px;
  opacity: 0.9;
}
.nav .count {
  margin-left: auto;
  background: var(--dg);
  color: #fff;
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 9px;
}
.sidebar-foot {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 12px 2px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.42);
  display: flex;
  justify-content: space-between;
}
.main {
  margin-left: 232px;
  min-height: 100vh;
}
.topbar {
  height: 64px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 30;
  gap: 16px;
}
.topbar .titles .t {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}
.topbar .titles .s {
  font-size: 12px;
  color: var(--ink3);
}
.topbar .right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px 5px 5px;
  border-radius: 999px;
  border: 1px solid var(--line);
  cursor: pointer;
  position: relative;
}
.user-chip .avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--p-t);
  color: var(--p);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 600;
}
.user-menu {
  position: absolute;
  right: 0;
  top: 44px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  min-width: 150px;
  padding: 6px;
  display: none;
}
.user-menu.show {
  display: block;
}
.user-menu button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: none;
  padding: 9px 10px;
  border-radius: 7px;
  font-size: 13px;
  color: var(--ink2);
  cursor: pointer;
}
.user-menu button:hover {
  background: #f5f7fa;
}
.page {
  padding: 22px 28px 64px;
  max-width: 1560px;
}
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 16px;
}
.page-head .desc {
  color: var(--ink3);
  font-size: 13px;
  margin-top: 4px;
}
.page-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ================= 卡片 / KPI ================= */
.card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid #eef1f6;
  box-shadow: var(--shadow);
  padding: 20px;
}
.card.p0 {
  padding: 0;
  overflow: hidden;
}
.card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.card-title h3 {
  font-size: 15px;
  margin: 0;
}
.card-title .hint {
  font-size: 12px;
  color: var(--ink3);
}
.grid {
  display: grid;
  gap: 16px;
}
.g4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.g3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.g2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.g21 {
  grid-template-columns: 1.7fr 1fr;
}
@media (max-width: 1280px) {
  .g4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .g4,
  .g3,
  .g2,
  .g21 {
    grid-template-columns: 1fr;
  }
}
.kpi {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid #eef1f6;
  box-shadow: var(--shadow);
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
}
.kpi .k {
  font-size: 12px;
  color: var(--ink3);
  display: flex;
  align-items: center;
  gap: 6px;
}
.kpi .v {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 10px 0 6px;
  font-variant-numeric: tabular-nums;
}
.kpi .v small {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink3);
  margin-left: 4px;
}
.kpi .foot {
  font-size: 12px;
  color: var(--ink3);
  display: flex;
  align-items: center;
  gap: 6px;
}
.kpi .accent {
  position: absolute;
  right: -20px;
  top: -20px;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: var(--p-t);
}
.kpi.blue .v {
  color: var(--p);
}
.kpi.red .v {
  color: #d92d20;
}
.kpi.green .v {
  color: #0e9f6e;
}
.kpi.amber .v {
  color: #b54708;
}
.delta {
  font-size: 12px;
  font-weight: 600;
}
.up {
  color: #0e9f6e;
}
.down {
  color: #d92d20;
}

/* ================= 按钮 ================= */
.btn {
  height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid #d0d5dd;
  background: #fff;
  color: var(--ink2);
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: 0.15s;
  white-space: nowrap;
}
.btn:hover {
  border-color: #b8c2d3;
  background: #fafbfc;
}
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.btn-primary {
  background: var(--p);
  border-color: var(--p);
  color: #fff;
}
.btn-primary:hover {
  background: var(--p-dark);
  border-color: var(--p-dark);
}
.btn-success {
  background: var(--ok);
  border-color: var(--ok);
  color: #fff;
}
.btn-success:hover {
  background: #0e9f6e;
}
.btn-danger {
  background: #fff;
  border-color: #fda29b;
  color: #d92d20;
}
.btn-danger:hover {
  background: var(--dg-t);
}
.btn-ghost {
  border-color: transparent;
  background: transparent;
  color: var(--p);
}
.btn-ghost:hover {
  background: var(--p-t);
}
.btn-sm {
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
  border-radius: 7px;
}
.btn-block {
  width: 100%;
  height: 42px;
}

/* ================= 标签 ================= */
.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.tag-blue {
  background: var(--p-t);
  color: var(--p);
}
.tag-green {
  background: var(--ok-t);
  color: #0e9f6e;
}
.tag-amber {
  background: var(--wa-t);
  color: #b54708;
}
.tag-red {
  background: var(--dg-t);
  color: #d92d20;
}
.tag-gray {
  background: #f2f4f7;
  color: #667085;
}
.tag-purple {
  background: #f4ebff;
  color: #6941c6;
}

/* ================= 表格 ================= */
.table-wrap {
  overflow-x: auto;
}
table.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.table th {
  background: #f9fafb;
  color: var(--ink3);
  font-weight: 600;
  font-size: 12px;
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td {
  padding: 13px 14px;
  border-bottom: 1px solid #f2f4f7;
  vertical-align: middle;
  color: var(--ink2);
}
.table tbody tr:hover {
  background: #fafbfd;
}
.table tbody tr:last-child td {
  border-bottom: none;
}
.table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.table .strong {
  color: var(--ink);
  font-weight: 600;
}
.table .actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.table-empty {
  padding: 56px 20px;
  text-align: center;
  color: var(--ink4);
  font-size: 13px;
}
.table-empty .ic {
  font-size: 26px;
  display: block;
  margin-bottom: 8px;
  opacity: 0.5;
}
.sub {
  color: var(--ink3);
  font-size: 12px;
}
.mono {
  font-variant-numeric: tabular-nums;
  font-family: 'SF Mono', 'Cascadia Mono', Consolas, monospace;
  font-size: 12.5px;
}

/* ================= 工具栏 / 分段 ================= */
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.segmented {
  display: inline-flex;
  background: #f2f4f7;
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}
.segmented button {
  border: 0;
  background: transparent;
  padding: 6px 13px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--ink3);
  cursor: pointer;
}
.segmented button.on {
  background: #fff;
  color: var(--p);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
}
.search {
  height: 36px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 13px;
  width: 230px;
  outline: none;
}
.search:focus {
  border-color: var(--p);
  box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.1);
}
.spacer {
  flex: 1;
}

/* ================= 表单 ================= */
.field {
  margin-bottom: 14px;
}
.field label {
  display: block;
  font-size: 12.5px;
  color: var(--ink2);
  margin-bottom: 6px;
  font-weight: 500;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  height: 38px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 13.5px;
  color: var(--ink);
  outline: none;
  background: #fff;
  font-family: inherit;
}
.field textarea {
  height: 92px;
  padding: 10px 12px;
  line-height: 1.6;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--p);
  box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.1);
}
.field .tip {
  font-size: 11.5px;
  color: var(--ink4);
  margin-top: 5px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}
.form-grid .full {
  grid-column: 1 / -1;
}

/* ================= 抽屉 / 弹窗 ================= */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 40, 0.4);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.overlay.show {
  opacity: 1;
  pointer-events: auto;
}
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 560px;
  max-width: 96vw;
  background: #fff;
  z-index: 100;
  transform: translateX(100%);
  transition: transform 0.24s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 40px rgba(16, 24, 40, 0.12);
}
.drawer.show {
  transform: translateX(0);
}
.drawer-head {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.drawer-head h3 {
  margin: 0;
  font-size: 16px;
}
.drawer-body {
  padding: 20px 22px;
  overflow-y: auto;
  flex: 1;
}
.drawer-foot {
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.close-x {
  border: 0;
  background: #f2f4f7;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--ink3);
  font-size: 15px;
}
.modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -48%) scale(0.98);
  background: #fff;
  border-radius: 14px;
  z-index: 100;
  width: 480px;
  max-width: 94vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: 0.18s;
  box-shadow: 0 20px 60px rgba(16, 24, 40, 0.2);
}
.modal.show {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
.modal-head {
  padding: 18px 20px 8px;
  font-size: 16px;
  font-weight: 600;
}
.modal-body {
  padding: 8px 20px 18px;
  overflow-y: auto;
  font-size: 13.5px;
  color: var(--ink2);
  line-height: 1.7;
}
.modal-foot {
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* ================= Toast ================= */
.toasts {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.toast {
  background: #101828;
  color: #fff;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 13px;
  box-shadow: var(--shadow);
  animation: toastIn 0.2s ease;
  max-width: 70vw;
}
.toast.ok {
  background: #0e9f6e;
}
.toast.err {
  background: #d92d20;
}
@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

/* ================= 图表 ================= */
.chart {
  width: 100%;
  height: 220px;
}
.chart svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.chart .grid-line {
  stroke: #eef1f6;
  stroke-width: 1;
}
.chart .axis-text {
  fill: #98a2b3;
  font-size: 11px;
}
.chart .line {
  fill: none;
  stroke: #1f6feb;
  stroke-width: 2.5;
  stroke-linejoin: round;
}
.chart .area {
  fill: url(#areaGrad);
}
.chart .dot {
  fill: #fff;
  stroke: #1f6feb;
  stroke-width: 2;
}

/* 横向条形 */
.bars .bar-row {
  display: grid;
  grid-template-columns: 190px 1fr 90px;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #f2f4f7;
  font-size: 13px;
}
.bars .bar-row:last-child {
  border-bottom: none;
}
.bars .track {
  height: 8px;
  background: #f2f4f7;
  border-radius: 4px;
  overflow: hidden;
}
.bars .fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #4f92ff, #1f6feb);
}
.bars .val {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--ink2);
}

/* ================= 其他 ================= */
.empty {
  padding: 56px 20px;
  text-align: center;
  color: var(--ink4);
  font-size: 13px;
}
.empty .circle {
  width: 64px;
  height: 64px;
  border: 2px dashed #d0d5dd;
  border-radius: 50%;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  font-size: 22px;
  color: #b8c2d3;
}
.notice {
  background: var(--wa-t);
  color: #b54708;
  border-radius: 9px;
  padding: 11px 14px;
  font-size: 12.5px;
  line-height: 1.7;
}
.notice.blue {
  background: var(--p-t);
  color: #1a56b8;
}
.notice.green {
  background: var(--ok-t);
  color: #0e7a55;
}
.kv {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 13px;
  border-bottom: 1px dashed #f2f4f7;
}
.kv:last-child {
  border-bottom: none;
}
.kv .k {
  color: var(--ink3);
}
.kv .v {
  color: var(--ink);
  font-weight: 500;
}
.avatar-lg {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--p-t);
  color: var(--p);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}
.vouchers {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.vouchers img {
  width: 132px;
  height: 176px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  cursor: zoom-in;
  background: #f9fafb;
}
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.step {
  display: flex;
  gap: 10px;
  padding: 7px 0;
}
.step .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d0d5dd;
  margin-top: 6px;
  flex-shrink: 0;
}
.step .dot.ok {
  background: var(--ok);
}
.step .dot.bad {
  background: var(--dg);
}
.step .dot.doing {
  background: var(--wa);
  box-shadow: 0 0 0 4px var(--wa-t);
}
.skeleton {
  height: 16px;
  border-radius: 5px;
  background: linear-gradient(90deg, #f2f4f7 25%, #e9edf3 37%, #f2f4f7 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0 50%;
  }
}
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink3);
}
.pager .btns {
  display: flex;
  gap: 8px;
}
.thumb-sm {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--p-t);
  color: var(--p);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}
.flex {
  display: flex;
  align-items: center;
  gap: 10px;
}
.flex-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.text-r {
  text-align: right;
}
.mt8 {
  margin-top: 8px;
}
.mt12 {
  margin-top: 12px;
}
.mt16 {
  margin-top: 16px;
}
.mt20 {
  margin-top: 20px;
}
.mb12 {
  margin-bottom: 12px;
}
.muted {
  color: var(--ink3);
}
.tiny {
  font-size: 12px;
  color: var(--ink3);
}

/* ================= 回款进度 / 勾选 ================= */
.rate {
  height: 6px;
  background: #f2f4f7;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 4px;
}
.rate .fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s;
}
.check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink2);
  cursor: pointer;
  user-select: none;
}
.check input {
  width: 15px;
  height: 15px;
  accent-color: var(--p);
  cursor: pointer;
}
.kpi .v.sm {
  font-size: 20px;
}
