/* ============================================================
   IPS 设计系统 — 深色专业主题（深灰 + 高对比）
   ------------------------------------------------------------
   设计令牌集中在 :root，调主题只改这里即可。
   员工/管理工具用深色；顾客文档（收据/发票/签名/预约）保持浅色，
   见文件下半部「Document surfaces」。布局/间距/响应式/打印未改动，仅换颜色。
   ============================================================ */

:root {
  /* 蓝色 app 外壳：深蓝渐变底 + 白卡片 + 深蓝文字 */
  --bg: #2563eb;           /* 内容区基准蓝（body 用渐变） */
  --surface: #ffffff;      /* 卡片 纯白 */
  --surface-2: #eef4ff;    /* 次级面板 / 图表底 / 药丸 */
  --surface-3: #dbe7ff;    /* 悬停 / 抬升 */

  /* 侧边栏（深海军蓝品牌区） */
  --sidebar: #0f347f;
  --sidebar-2: #0f347f;
  --sidebar-text: #c5d5f2;
  --sidebar-active: #ffffff;

  /* 边框（清晰蓝灰，让白卡片"跳"出来） */
  --border: #bcd0ee;
  --border-subtle: #d3e1f6;

  /* 文字（深蓝，加强对比，弱化文字也清晰） */
  --text: #0d1730;         /* 主文字 */
  --text-strong: #060c1c;  /* 强调标题 */
  --text-muted: #3c4d68;   /* 次要文字（加深） */
  --text-dim: #556a88;     /* 标签 / 弱化（加深） */

  /* 强调色：活力蓝 */
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --blue: #0ea5e9;         /* 图表营收（青蓝，与主蓝区分） */
  --green: #16a34a;        /* 利润 */
  --green-bright: #16a34a;
  --amber: #d97706;        /* 警告 */
  --red: #dc2626;          /* 亏损 */
  --teal: #0d9488;
  --indigo: #6366f1;

  --radius: 12px;
  --shadow: 0 1px 2px rgba(13, 27, 56, .08), 0 8px 24px rgba(13, 27, 56, .12);
  --sidebar-width: 176px;
  --app-font: Inter, "Segoe UI Variable Text", "Segoe UI Variable", "Segoe UI", "Noto Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif;
}

body {
  background:
    radial-gradient(1000px 560px at 88% -10%, #e3edff 0%, transparent 60%),
    linear-gradient(165deg, #eef4ff 0%, #dce8fb 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--app-font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ============================================================
   App 外壳：左侧边栏导航 + 顶栏 + 内容区
   ============================================================ */

.app-shell {
  min-height: 100vh;
  padding-left: var(--sidebar-width);
}

/* 默认展开侧边栏：直接显示图标 + 名称 */
.app-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  background:
    linear-gradient(150deg, rgba(255,255,255,.24) 0%, rgba(255,255,255,.09) 20%, rgba(255,255,255,0) 48%),
    var(--sidebar);
  color: var(--sidebar-text);
  padding: 16px 12px;
  overflow: hidden;
  white-space: nowrap;
  transition: none;
  z-index: 40;
}

.app-sidebar:hover {
  width: var(--sidebar-width);
  box-shadow: none;
}

/* 展开状态下文字常驻显示 */
.app-brand > span:not(.app-brand-mark),
.app-nav a > span:not(.badge),
.app-sidebar-account span {
  opacity: 1;
  pointer-events: auto;
}

.app-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  font-size: 1.04rem;
  font-weight: 800;
  letter-spacing: 0;
  color: #fff;
  width: auto;
  height: auto;
  padding: 4px 8px 16px;
  text-decoration: none;
  flex: 0 0 auto;
  position: relative;
}

.app-brand .app-brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .16);
  font-size: 1.1rem;
}

.app-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
  flex: 1 1 auto;
  width: 100%;
  margin-top: 0;
}

.app-nav a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: auto;
  height: auto;
  min-height: 40px;
  padding: 9px 10px;
  border-radius: 12px;
  color: var(--sidebar-text);
  font-size: .91rem;
  font-weight: 620;
  text-decoration: none;
  transition: background-color .16s ease, color .16s ease, box-shadow .18s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.app-nav a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 999px;
  background: #93c5fd;
  opacity: 0;
  transform: scaleY(.45);
  transition: opacity .18s ease, transform .18s ease;
}

.app-nav a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255,255,255,.14), rgba(255,255,255,.04));
  opacity: 0;
  transition: opacity .18s ease;
  pointer-events: none;
}

.app-nav a i {
  font-size: 1.18rem;
  width: 24px;
  text-align: center;
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
}

.app-nav a span {
  position: relative;
  z-index: 1;
}

.app-nav a:hover {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  transform: none;
}

.app-nav a.active {
  background: rgba(255, 255, 255, .15);
  color: #fff;
  font-weight: 720;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}

.app-nav a:hover::after,
.app-nav a.active::after {
  opacity: 1;
}

.app-nav a.active::before {
  opacity: 1;
  transform: scaleY(1);
}

.app-nav a.active i { color: #bfdbfe; }

.app-sidebar-account {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 7px;
  flex: 0 0 auto;
}

.app-sidebar-user,
.app-sidebar-logout {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: auto;
  height: auto;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 12px;
  color: var(--sidebar-text);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 620;
  position: relative;
}

.app-sidebar-user i,
.app-sidebar-logout i {
  width: 22px;
  text-align: center;
  flex: 0 0 auto;
  font-size: 1.12rem;
}

.app-sidebar-user {
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

.app-sidebar-logout:hover {
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

.app-brand > span:not(.app-brand-mark),
.app-nav a > span:not(.badge),
.app-sidebar-account span {
  position: static;
  transform: none;
  z-index: auto;
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  box-shadow: none;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  white-space: nowrap;
}

.app-brand:hover > span:not(.app-brand-mark),
.app-brand:focus-visible > span:not(.app-brand-mark),
.app-nav a:hover > span:not(.badge),
.app-nav a:focus-visible > span:not(.badge),
.app-sidebar-user:hover span,
.app-sidebar-logout:hover span,
.app-sidebar-logout:focus-visible span {
  opacity: 1;
  transform: none;
}

.app-nav a > span:not(.badge),
.app-nav a i {
  position: relative;
  z-index: 1;
}

.app-nav a .badge {
  position: static;
  margin-left: auto;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  line-height: 1;
  box-shadow: none;
}

.app-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.app-topbar {
  display: none;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, .9);
  border-bottom: 1px solid var(--border);
}

.app-topbar h1 {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--text-strong);
}

.app-topbar .app-topbar-spacer { flex: 1 1 auto; }

.app-topbar .app-user {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .9rem;
  color: var(--text-muted);
}

.app-hamburger {
  display: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 1.2rem;
  cursor: pointer;
}

.app-content {
  flex: 1 1 auto;
  padding: 22px;
}

.app-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(40, 12, 0, .45);
  z-index: 25;
}

@media (max-width: 992px) {
  .app-shell { padding-left: 0; padding-top: 0; }
  /* 手机：汉堡菜单滑出（非悬停），全宽显示文字 */
  .app-sidebar,
  .app-sidebar:hover {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 260px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 18px 14px;
    overflow: hidden;
    transform: translateX(-100%);
    transition: transform .2s ease;
    box-shadow: 0 0 40px rgba(0, 0, 0, .3);
  }
  .app-brand { padding: 6px 10px 18px; }
  .app-brand {
    width: auto;
    height: auto;
    justify-content: flex-start;
    gap: 10px;
  }
  .app-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1 1 auto;
    width: 100%;
    margin-top: 0;
  }
  .app-nav a {
    justify-content: flex-start;
    width: auto;
    height: auto;
    min-height: 0;
    padding: 11px 13px;
    gap: 12px;
  }
  .app-sidebar-account {
    margin-left: 0;
    margin-top: auto;
    padding-top: 12px;
    flex-direction: column;
    align-items: stretch;
  }
  .app-sidebar-user,
  .app-sidebar-logout {
    justify-content: flex-start;
    width: auto;
    height: auto;
    min-height: 0;
    padding: 10px 13px;
    gap: 12px;
  }
  .app-brand > span:not(.app-brand-mark),
  .app-nav a > span:not(.badge),
  .app-sidebar-account span {
    position: static;
    transform: none;
    max-width: none;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
  }
  .app-brand:hover > span:not(.app-brand-mark),
  .app-nav a:hover > span:not(.badge),
  .app-sidebar-user:hover span,
  .app-sidebar-logout:hover span {
    transform: none;
  }
  .app-brand span,
  .app-nav a span,
  .app-nav a .badge,
  .app-sidebar-account span { opacity: 1; }
  body.sidebar-open .app-sidebar { transform: translateX(0); }
  body.sidebar-open .app-backdrop { display: block; }
  .app-topbar {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 20;
  }
  .app-hamburger { display: inline-flex; align-items: center; justify-content: center; }
}

/* 让 Bootstrap 的 muted / 文字色与主题协调 */
.text-muted { color: var(--text-muted) !important; }

.ips-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.ips-card,
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--text);
}

/* ---- 表格：清晰格线 + 表头 + 斑马纹 ---- */
.ips-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.ips-table thead th {
  color: var(--text-muted);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  background: var(--surface-2);
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 0;
}

.ips-table td,
.ips-table th {
  padding: .68rem .8rem;
  vertical-align: middle;
}

.ips-table tbody td {
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text);
}

.ips-table tbody tr:nth-child(even) {
  background: rgba(37, 99, 235, .04);
}

.ips-table tbody tr:hover {
  background: rgba(37, 99, 235, .09);
}

/* Bootstrap .table 也加强格线与表头 */
.table {
  --bs-table-border-color: var(--border-subtle);
}

.table thead th {
  background: var(--surface-2);
  border-bottom: 2px solid var(--border) !important;
  color: var(--text-muted);
  font-weight: 800;
  text-transform: uppercase;
  font-size: .76rem;
  letter-spacing: .03em;
}

.table tbody tr:nth-child(even) > * {
  background: rgba(37, 99, 235, .04);
}

/* 仪表盘内部小盒子的边框加清晰 */
.dashboard-metric,
.dashboard-set-mix a,
.dashboard-coverage-row div,
.dashboard-bar-row div,
.dashboard-location-row div,
.dashboard-visual-bars div {
  border-color: var(--border) !important;
}

.ips-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(900px 520px at 50% -10%, #3b82f6 0%, transparent 60%),
    linear-gradient(160deg, #1e3a8a 0%, #1d4ed8 100%);
}

.ips-login-card {
  width: min(420px, calc(100vw - 32px));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

/* ============================================================
   Document surfaces（顾客文档：收据 / 发票 / 签名 / 预约）
   保持浅色——这些是要打印的单据，深色不合适。
   ============================================================ */

.invoice-sheet {
  background: #ffffff;
  color: #111827;
  max-width: 1120px;
  margin: 0 auto;
}

.terms-box {
  border: 1px solid #d9dee6;
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfe;
  color: #111827;
  font-size: .88rem;
}

.terms-box li + li {
  margin-top: 6px;
}

.signature-image {
  display: block;
  max-width: 360px;
  width: 100%;
  min-height: 96px;
  border: 1px solid #d9dee6;
  border-radius: 8px;
  background: #ffffff;
  object-fit: contain;
}

.signature-empty {
  display: grid;
  place-items: center;
  max-width: 360px;
  width: 100%;
  min-height: 96px;
  border: 1px dashed #9ca3af;
  border-radius: 8px;
  color: #6b7280;
  background: #f9fafb;
}

.signature-page,
.receipt-page {
  background: #eef2f6;
  color: #111827;
}

.signature-wrap,
.receipt-wrap {
  width: min(1120px, calc(100vw - 24px));
  margin: 0 auto;
  padding: 16px 0 28px;
}

.signature-panel {
  background: #ffffff;
  border: 1px solid #d9dee6;
  border-radius: 8px;
  padding: 16px;
  color: #111827;
}

.terms-stack {
  display: grid;
  gap: 12px;
}

.signature-canvas {
  width: 100%;
  height: 260px;
  border: 1px solid #9ca3af;
  border-radius: 8px;
  background: #ffffff;
  touch-action: none;
}

.booking-public-page {
  background: #eef2f6;
  color: #111827;
}

.booking-public-wrap {
  width: min(860px, calc(100vw - 24px));
  margin: 0 auto;
  padding: 18px 0 28px;
}

.booking-public-card {
  background: #ffffff;
  border: 1px solid #d9dee6;
  border-radius: 8px;
  padding: 18px;
  color: #111827;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

.booking-fee-note {
  display: grid;
  gap: 6px;
  border: 1px solid #d9dee6;
  border-radius: 8px;
  background: #fbfcfe;
  padding: 12px;
  font-size: .92rem;
}

.booking-form .form-label {
  font-size: .86rem;
  font-weight: 700;
  color: #374151;
}

.booking-form .form-text {
  min-height: 1.25rem;
}

/* ============================================================
   Dashboard（管理工具 — 深色）
   ============================================================ */

.dashboard-toolbar {
  position: relative;
  z-index: 5;
}

.dashboard-toolbar form,
.dashboard-toolbar .btn-group,
.dashboard-toolbar .btn {
  position: relative;
  z-index: 6;
}

.dashboard-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.dashboard-kpi {
  display: grid;
  gap: 4px;
  min-height: 112px;
  align-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: border-color .15s, transform .15s;
}

.dashboard-kpi:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.dashboard-kpi span,
.dashboard-metric span,
.dashboard-mini-summary span {
  color: var(--text-dim);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.dashboard-kpi b {
  font-size: 1.65rem;
  line-height: 1.1;
  color: var(--text-strong);
}

.dashboard-kpi small {
  color: var(--text-muted);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-panel {
  padding: 14px;
}

.dashboard-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.dashboard-panel-head h5 {
  margin: 0;
  color: var(--text-strong);
}

.dashboard-panel-head a,
.dashboard-panel-head span {
  color: var(--text-muted);
  font-size: .86rem;
  text-decoration: none;
}

.dashboard-panel-head a:hover {
  color: var(--text-strong);
}

.dashboard-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-metric {
  display: grid;
  gap: 3px;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 10px;
}

.dashboard-metric b {
  font-size: 1.25rem;
  line-height: 1.15;
  color: var(--text-strong);
}

.dashboard-mini-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-mini-summary div,
.dashboard-mini-summary a {
  border-top: 1px solid var(--border-subtle);
  padding-top: 10px;
}

.dashboard-mini-link {
  color: inherit;
  text-decoration: none;
}

.dashboard-mini-link:hover {
  color: var(--accent);
}

.dashboard-mini-summary b {
  display: block;
  margin-top: 2px;
  color: var(--text-strong);
}

.dashboard-health-top {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.dashboard-health-score {
  display: grid;
  align-content: center;
  gap: 4px;
  border: 1px solid rgba(34, 197, 94, .28);
  border-radius: 8px;
  background: rgba(34, 197, 94, .12);
  padding: 12px;
}

.dashboard-health-score span,
.dashboard-coverage-row span {
  color: var(--text-muted);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.dashboard-health-score b {
  color: var(--green-bright);
  font-size: 2rem;
  line-height: 1;
}

.dashboard-health-score small {
  color: var(--text-muted);
  font-size: .78rem;
}

.dashboard-health-bars {
  display: grid;
  align-content: center;
  gap: 10px;
}

.dashboard-coverage-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 58px;
  align-items: center;
  gap: 10px;
  font-size: .86rem;
}

.dashboard-coverage-row div {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-3);
}

.dashboard-coverage-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.dashboard-coverage-row i.ok {
  background: var(--green);
}

.dashboard-coverage-row i.warn {
  background: var(--amber);
}

.dashboard-coverage-row i.info {
  background: var(--blue);
}

.dashboard-coverage-row b {
  color: var(--text);
  text-align: right;
}

.dashboard-bars {
  display: grid;
  gap: 9px;
}

.dashboard-bar-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 10px;
  font-size: .86rem;
}

.dashboard-bar-row span {
  color: var(--text-muted);
}

.dashboard-bar-row div {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-3);
}

.dashboard-bar-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.dashboard-bar-row b {
  text-align: right;
  color: var(--text);
}

.dashboard-location-stack {
  display: grid;
  gap: 8px;
}

.dashboard-location-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) 36px 78px;
  align-items: center;
  gap: 10px;
  font-size: .84rem;
}

.dashboard-location-row span {
  color: var(--text-muted);
  font-weight: 700;
}

.dashboard-location-row div {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-3);
}

.dashboard-location-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
}

.dashboard-location-row b,
.dashboard-location-row small {
  text-align: right;
}

.dashboard-location-row b { color: var(--text); }

.dashboard-location-row small {
  color: var(--text-dim);
}

.dashboard-trend {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(34px, 1fr);
  align-items: end;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.dashboard-trend-day {
  display: grid;
  grid-template-rows: 140px auto auto;
  gap: 5px;
  min-width: 34px;
  text-align: center;
}

.dashboard-trend-day div {
  display: flex;
  align-items: end;
  justify-content: center;
  height: 140px;
  border-radius: 8px;
  background: var(--surface-2);
}

.dashboard-trend-day i {
  display: block;
  width: 16px;
  border-radius: 999px 999px 0 0;
  background: var(--green);
}

.dashboard-trend-day span,
.dashboard-trend-day small {
  color: var(--text-dim);
  font-size: .72rem;
  white-space: nowrap;
}

.dashboard-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 10px;
  color: var(--text-muted);
  font-size: .82rem;
  font-weight: 700;
}

.dashboard-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dashboard-chart-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.dashboard-chart-legend i.revenue {
  background: var(--blue);
}

.dashboard-chart-legend i.profit {
  background: var(--green);
}

.dashboard-monthly-chart {
  display: grid;
  grid-template-columns: repeat(12, minmax(58px, 1fr));
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.dashboard-month {
  display: grid;
  grid-template-rows: 150px auto auto auto;
  gap: 5px;
  min-width: 58px;
  text-align: center;
}

.dashboard-month-bars {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 6px;
  height: 150px;
  border-radius: 8px;
  background: var(--surface-2);
  padding: 10px 8px 0;
}

.dashboard-month-bars i {
  display: block;
  width: 13px;
  border-radius: 999px 999px 0 0;
}

.dashboard-month-bars i.revenue {
  background: var(--blue);
}

.dashboard-month-bars i.profit {
  background: var(--green);
}

.dashboard-month-bars i.loss {
  background: var(--red);
}

.dashboard-month span,
.dashboard-month small,
.dashboard-month em {
  color: var(--text-dim);
  font-size: .72rem;
  font-style: normal;
  white-space: nowrap;
}

.dashboard-month span {
  color: var(--text-muted);
  font-weight: 800;
}

.dashboard-visual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-visual-panel {
  padding: 14px;
}

.dashboard-ring-row {
  display: grid;
  grid-template-columns: 116px 116px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.dashboard-donut {
  width: 112px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, var(--surface) 0 58%, transparent 59%),
    conic-gradient(var(--accent) var(--p), var(--surface-3) 0);
  border: 1px solid var(--border);
}

.dashboard-donut b,
.dashboard-donut span {
  grid-area: 1 / 1;
}

.dashboard-donut b {
  margin-top: -10px;
  font-size: 1.2rem;
  color: var(--text-strong);
}

.dashboard-donut span {
  margin-top: 28px;
  color: var(--text-dim);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.dashboard-visual-summary {
  display: grid;
  gap: 4px;
}

.dashboard-visual-summary span {
  color: var(--text-dim);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.dashboard-visual-summary b {
  font-size: 1.55rem;
  line-height: 1.1;
  color: var(--text-strong);
}

.dashboard-visual-summary small {
  color: var(--text-muted);
}

.dashboard-visual-bars {
  display: grid;
  gap: 8px;
}

.dashboard-visual-bars a {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) 90px 44px;
  align-items: center;
  gap: 10px;
  color: inherit;
  font-size: .84rem;
  text-decoration: none;
}

.dashboard-visual-bars span,
.dashboard-profit-stack span,
.dashboard-set-mix span {
  color: var(--text-muted);
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.dashboard-visual-bars div {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-3);
}

.dashboard-visual-bars i,
.dashboard-profit-stack i,
.dashboard-set-mix i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
}

.dashboard-visual-bars i.blue,
.dashboard-profit-stack i.blue {
  background: var(--blue);
}

.dashboard-visual-bars i.green,
.dashboard-profit-stack i.green {
  background: var(--green);
}

.dashboard-visual-bars b,
.dashboard-visual-bars small {
  text-align: right;
}

.dashboard-visual-bars b { color: var(--text); }

.dashboard-visual-bars small {
  color: var(--text-dim);
}

.dashboard-set-mix {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 8px;
}

.dashboard-set-mix a {
  position: relative;
  min-height: 58px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  color: inherit;
  padding: 9px;
  text-decoration: none;
}

.dashboard-set-mix b {
  display: block;
  margin-top: 2px;
  font-size: 1.15rem;
  color: var(--text-strong);
}

.dashboard-set-mix i {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  border-radius: 0;
  background: var(--indigo);
}

.dashboard-profit-stack {
  display: grid;
  gap: 8px;
}

.dashboard-profit-stack div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 4px 10px;
  align-items: center;
}

.dashboard-profit-stack b {
  text-align: right;
  color: var(--text);
}

.dashboard-profit-stack i {
  grid-column: 1 / -1;
  height: 8px;
  background: var(--green);
}

.dashboard-profit-stack i.amber {
  background: var(--amber);
}

.dashboard-profit-stack i.red {
  background: var(--red);
}

/* ============================================================
   Inventory（管理工具 — 深色）
   ============================================================ */

.inventory-health-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.inventory-health-card {
  display: grid;
  gap: 4px;
  min-height: 92px;
  align-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  padding: 12px;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: border-color .15s, transform .15s;
}

.inventory-health-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.inventory-health-card span,
.inventory-ops-panel span {
  color: var(--text-dim);
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.inventory-health-card b {
  font-size: 1.38rem;
  line-height: 1.1;
  color: var(--text-strong);
}

.inventory-health-card small,
.inventory-ops-panel small {
  color: var(--text-muted);
}

.inventory-ops-panel {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 12px;
}

.inventory-ops-panel > div:first-child {
  display: grid;
  gap: 3px;
}

.inventory-ops-panel > div:first-child b {
  font-size: 1.18rem;
  color: var(--text-strong);
}

.inventory-pill-row,
.inventory-mix-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.inventory-pill-row a,
.inventory-mix-row a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: .82rem;
  font-weight: 700;
  padding: 6px 10px;
  text-decoration: none;
  transition: border-color .15s, color .15s;
}

.inventory-pill-row a:hover,
.inventory-mix-row a:hover {
  border-color: var(--accent);
  color: var(--text);
}

.inventory-pill-row a.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.inventory-mix-row a {
  border-radius: 8px;
}

.inventory-mix-row b {
  color: var(--text-strong);
}

/* ============================================================
   Schedule（管理工具 — 深色）
   ============================================================ */

.schedule-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.schedule-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
}

.schedule-stat span {
  color: var(--text-dim);
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.schedule-stat b {
  font-size: 1.35rem;
  color: var(--text-strong);
}

.schedule-day {
  overflow: hidden;
}

.schedule-day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  padding: 14px 16px;
}

.schedule-slots {
  display: grid;
  gap: 0;
}

.schedule-slot {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  border-bottom: 1px solid var(--border-subtle);
}

.schedule-slot:last-child {
  border-bottom: 0;
}

.schedule-slot-title {
  background: var(--surface-2);
  border-right: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: .86rem;
  font-weight: 700;
  padding: 14px;
}

.schedule-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
  padding: 12px;
}

.schedule-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 12px;
}

.schedule-card-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 8px;
  color: var(--text-muted);
  font-size: .9rem;
}

.schedule-card-line i {
  flex: 0 0 auto;
  color: var(--text-dim);
}

.schedule-card-item {
  margin-top: 10px;
  font-weight: 700;
  color: var(--text);
}

.schedule-card-address {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: .88rem;
  line-height: 1.35;
}

/* ============================================================
   Bootstrap 组件微调（亮色橙主题，奶白卡片）
   ============================================================ */

.card {
  background: var(--surface);
  border-color: var(--border);
  border-radius: var(--radius);
}

.table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--text);
  --bs-table-border-color: var(--border-subtle);
}

.form-control,
.form-select {
  background: #ffffff;
  border-color: var(--border);
  color: var(--text);
}

.form-control:focus,
.form-select:focus {
  background: #ffffff;
  border-color: var(--accent);
  color: var(--text);
  box-shadow: 0 0 0 .2rem rgba(194, 65, 12, .22);
}

.form-control::placeholder {
  color: var(--text-dim);
}

.btn-primary {
  --bs-btn-bg: var(--accent);
  --bs-btn-border-color: var(--accent);
  --bs-btn-hover-bg: var(--accent-hover);
  --bs-btn-hover-border-color: var(--accent-hover);
  --bs-btn-color: #fff;
  background-image: linear-gradient(135deg, #3b82f6, #2563eb);
  border: none;
  box-shadow: 0 4px 12px rgba(37, 99, 235, .3);
}

.btn-primary:hover {
  background-image: linear-gradient(135deg, #2f6fe0, #1d4ed8);
}

.btn-outline-secondary,
.btn-outline-dark {
  --bs-btn-color: var(--text);
  --bs-btn-border-color: var(--border);
  --bs-btn-hover-bg: var(--accent);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-border-color: var(--accent);
}

.modal-content {
  background: var(--surface);
  border: 1px solid var(--border);
}

.dropdown-menu {
  --bs-dropdown-bg: var(--surface);
  --bs-dropdown-border-color: var(--border);
  --bs-dropdown-link-color: var(--text);
  --bs-dropdown-link-hover-bg: var(--surface-2);
  --bs-dropdown-link-hover-color: var(--text-strong);
}

/* ============================================================
   动效层：入场 + 悬停微交互 + 数据增长
   ============================================================ */

/* 平滑过渡（始终生效，交互更顺滑） */
.btn,
.app-nav a,
.app-brand,
.ips-card,
.dashboard-kpi,
.inventory-health-card,
.inventory-pill-row a,
.inventory-mix-row a,
.schedule-card,
.dashboard-mini-link,
.dashboard-set-mix a,
.dashboard-visual-bars a,
.form-control,
.form-select {
  transition: transform .18s ease, box-shadow .2s ease,
              background-color .18s ease, border-color .18s ease, color .18s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.ips-card:hover { box-shadow: 0 8px 30px rgba(80, 25, 5, .2); }
.schedule-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.app-sidebar .app-nav a:hover { transform: none; }
.dashboard-mini-link:hover { transform: translateY(-1px); }
.dashboard-set-mix a:hover,
.dashboard-visual-bars a:hover { background: var(--surface-3); }

.ips-table tbody tr,
.table tbody tr { transition: background-color .15s ease; }
.ips-table tbody tr:hover,
.table tbody tr:hover { background: var(--surface-2); }

@media (prefers-reduced-motion: no-preference) {
  @keyframes lf-fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
  @keyframes lf-nav-in  { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
  @keyframes lf-grow-x  { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  @keyframes lf-grow-y  { from { transform: scaleY(0); } to { transform: scaleY(1); } }
  @keyframes lf-pop     { 0% { transform: scale(.94); } 60% { transform: scale(1.02); } 100% { transform: scale(1); } }
  @keyframes lf-pulse   { 0%,100% { opacity: 1; } 50% { opacity: .55; } }

  /* 卡片/面板入场淡入上浮 */
  .ips-card,
  .dashboard-kpi,
  .inventory-health-card,
  .inventory-ops-panel,
  .schedule-stat,
  .schedule-day,
  .dashboard-panel,
  .dashboard-visual-panel {
    animation: lf-fade-up .45s cubic-bezier(.2, .7, .3, 1) both;
  }

  /* KPI / 健康卡 错峰入场 */
  .dashboard-kpis > :nth-child(1), .inventory-health-strip > :nth-child(1) { animation-delay: .03s; }
  .dashboard-kpis > :nth-child(2), .inventory-health-strip > :nth-child(2) { animation-delay: .07s; }
  .dashboard-kpis > :nth-child(3), .inventory-health-strip > :nth-child(3) { animation-delay: .11s; }
  .dashboard-kpis > :nth-child(4), .inventory-health-strip > :nth-child(4) { animation-delay: .15s; }
  .dashboard-kpis > :nth-child(5), .inventory-health-strip > :nth-child(5) { animation-delay: .19s; }

  /* 横向进度条/柱状从左增长 */
  .dashboard-coverage-row i,
  .dashboard-bar-row i,
  .dashboard-location-row i,
  .dashboard-visual-bars i,
  .dashboard-profit-stack i {
    transform-origin: left center;
    animation: lf-grow-x .7s cubic-bezier(.2, .7, .3, 1) both;
    animation-delay: .15s;
  }

  /* 趋势/月度竖柱从底部长出 */
  .dashboard-trend-day i,
  .dashboard-month-bars i {
    transform-origin: bottom center;
    animation: lf-grow-y .65s cubic-bezier(.2, .7, .3, 1) both;
    animation-delay: .2s;
  }

  /* 告警徽章呼吸 */
  .badge.text-bg-warning,
  .badge.text-bg-danger { animation: lf-pulse 2.2s ease-in-out infinite; }

  /* 登录卡入场 */
  .ips-login-card { animation: lf-pop .5s cubic-bezier(.2, .7, .3, 1) both; }
}

/* 按钮/导航点击波纹（由 app.js 注入元素） */
.lf-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .4);
  transform: scale(0);
  animation: lf-ripple-anim .55s ease-out;
  pointer-events: none;
}
@keyframes lf-ripple-anim { to { transform: scale(2.4); opacity: 0; } }

/* ============================================================
   响应式（未改动）
   ============================================================ */

@media (max-width: 900px) {
  .dashboard-kpis,
  .dashboard-grid,
  .dashboard-visual-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .schedule-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .schedule-slot {
    grid-template-columns: 1fr;
  }

  .schedule-slot-title {
    border-right: 0;
    border-bottom: 1px solid var(--border-subtle);
  }
}

@media (max-width: 520px) {
  .dashboard-kpis,
  .dashboard-grid,
  .dashboard-visual-grid,
  .dashboard-split,
  .dashboard-mini-summary,
  .dashboard-health-top,
  .dashboard-ring-row,
  .inventory-ops-panel,
  .schedule-summary,
  .schedule-cards {
    grid-template-columns: 1fr;
  }

  .dashboard-location-row {
    grid-template-columns: 70px minmax(0, 1fr) 32px;
  }

  .dashboard-location-row small {
    display: none;
  }

  .dashboard-visual-bars a {
    grid-template-columns: 72px minmax(0, 1fr) 74px;
  }

  .dashboard-visual-bars small {
    display: none;
  }
}

/* ============================================================
   打印（单据始终白底）
   ============================================================ */

@media print {
  body {
    background: #ffffff;
    color: #111827;
  }

  .no-print,
  .ips-nav,
  .app-sidebar,
  .app-topbar,
  .app-backdrop {
    display: none !important;
  }

  .app-shell { display: block; }

  .app-content,
  main.container-fluid,
  .receipt-wrap {
    width: 100%;
    padding: 0;
    margin: 0;
  }

  .ips-card,
  .invoice-sheet {
    border: 0;
    box-shadow: none;
  }
}

/* ============================================================
   库存页 image1 风格：标签页 / 状态条 / 品牌条 / 工具栏 / 排序表头
   ============================================================ */

/* —— 标签页 —— */
.inv-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  border-bottom: 2px solid var(--border-subtle, #e5e7eb);
  padding-bottom: 6px;
  margin-bottom: 12px;
}
.inv-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 9px 9px 0 0;
  font-weight: 600;
  font-size: .9rem;
  color: #475569;
  text-decoration: none;
  border: 1px solid transparent;
  border-bottom: none;
  position: relative;
  transition: background .15s, color .15s;
}
.inv-tab:hover { background: rgba(37, 99, 235, .07); color: #1d4ed8; }
.inv-tab.active { color: #1d4ed8; background: #fff; border-color: var(--border-subtle, #e5e7eb); }
.inv-tab.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 3px;
  background: #2563eb; border-radius: 3px;
}
.inv-tab.ghost { font-weight: 500; color: #94a3b8; }
.inv-tab .cnt {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 20px; padding: 0 6px;
  font-size: .72rem; font-weight: 700; color: #fff; background: #2563eb;
  border-radius: 999px;
}
.inv-tab.ghost .cnt { background: #cbd5e1; color: #334155; }
.inv-tab .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-blue { background: #2563eb; } .dot-indigo { background: #4f46e5; }
.dot-orange { background: #f59e0b; } .dot-grey { background: #94a3b8; }
.inv-tab-sep { flex: 1 1 auto; }

/* —— 状态筛选条 —— */
.inv-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.inv-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px; border-radius: 11px;
  background: #fff; border: 1px solid var(--border-subtle, #e5e7eb);
  font-size: .86rem; font-weight: 600; color: #475569; text-decoration: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  transition: transform .12s, box-shadow .12s, border-color .12s;
}
.inv-chip:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(15, 23, 42, .08); }
.inv-chip i { font-size: 1rem; opacity: .9; }
.inv-chip b {
  font-size: .74rem; font-weight: 800; color: #fff; background: #64748b;
  border-radius: 999px; min-width: 20px; text-align: center; padding: 1px 6px;
}
.inv-chip.on { color: #fff; }
/* 彩色变体：图标色 + 选中底色 */
.inv-chip.c-rose i { color: #e11d48; } .inv-chip.c-rose.on { background: #e11d48; border-color: #e11d48; }
.inv-chip.c-amber i { color: #d97706; } .inv-chip.c-amber.on { background: #d97706; border-color: #d97706; }
.inv-chip.c-orange i { color: #ea580c; } .inv-chip.c-orange.on { background: #ea580c; border-color: #ea580c; }
.inv-chip.c-sky i { color: #0284c7; } .inv-chip.c-sky.on { background: #0284c7; border-color: #0284c7; }
.inv-chip.c-violet i { color: #7c3aed; } .inv-chip.c-violet.on { background: #7c3aed; border-color: #7c3aed; }
.inv-chip.c-teal i { color: #0d9488; } .inv-chip.c-teal.on { background: #0d9488; border-color: #0d9488; }
.inv-chip.c-red i { color: #dc2626; } .inv-chip.c-red.on { background: #dc2626; border-color: #dc2626; }
.inv-chip.on i { color: #fff; }
.inv-chip.on b { background: rgba(255, 255, 255, .3); color: #fff; }

/* —— 品牌条 —— */
.inv-brands {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 8px 12px; margin-bottom: 12px;
  background: #f8fafc; border: 1px solid var(--border-subtle, #e5e7eb); border-radius: 11px;
}
.inv-brands .lbl { font-size: .82rem; font-weight: 700; color: #64748b; display: inline-flex; gap: 5px; align-items: center; }
.inv-brand {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 999px; font-size: .84rem; font-weight: 600;
  color: #475569; text-decoration: none; background: #fff;
  border: 1px solid var(--border-subtle, #e5e7eb); transition: border-color .12s, background .12s;
}
.inv-brand:hover { border-color: #93c5fd; }
.inv-brand .dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: #94a3b8; }
.inv-brand b { font-weight: 800; color: #1e293b; }
.inv-brand.b-apple .dot { background: #2563eb; }
.inv-brand.b-android .dot { background: #16a34a; }
.inv-brand.b-other .dot { background: #94a3b8; }
.inv-brand.on { background: #1e293b; color: #fff; border-color: #1e293b; }
.inv-brand.on b { color: #fff; }
.inv-brands-note { margin-left: auto; font-size: .76rem; color: #94a3b8; display: inline-flex; gap: 4px; align-items: center; }

/* —— 工具栏 —— */
.inv-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 12px;
}
.inv-tb-search { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.inv-search-box {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 0 12px; height: 38px; min-width: 260px;
  background: #fff; border: 1px solid var(--border-subtle, #e5e7eb); border-radius: 10px;
}
.inv-search-box:focus-within { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.inv-search-box i { color: #94a3b8; }
.inv-search-box input { border: 0; outline: 0; background: transparent; width: 100%; font-size: .9rem; }
.inv-tb-select {
  height: 38px; padding: 0 10px; border-radius: 10px;
  border: 1px solid var(--border-subtle, #e5e7eb); background: #fff; font-size: .88rem; color: #334155;
}
.inv-tb-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.inv-tb-btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 38px; padding: 0 14px; border-radius: 10px;
  font-size: .87rem; font-weight: 600; text-decoration: none; cursor: pointer;
  color: #334155; background: #fff; border: 1px solid var(--border-subtle, #e5e7eb);
  transition: transform .12s, box-shadow .12s, background .12s;
}
.inv-tb-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(15, 23, 42, .08); }
.inv-tb-btn.primary { background: #2563eb; border-color: #2563eb; color: #fff; }
.inv-tb-btn.dark { background: #1e293b; border-color: #1e293b; color: #fff; }
.inv-tb-btn.excel { color: #15803d; border-color: #86efac; }
.inv-tb-count { font-size: .82rem; color: #64748b; margin-left: 4px; }
.inv-tb-count b { color: #1e293b; }

/* —— 排序表头 + 列筛选 —— */
.inv-sort {
  display: inline-flex; align-items: center; gap: 4px;
  color: inherit; text-decoration: none; font-weight: 700; white-space: nowrap;
}
.inv-sort:hover { color: #2563eb; }
.inv-sort.active { color: #2563eb; }
.inv-sort-idle { opacity: .3; font-size: .8em; }
.inv-col-filter {
  display: block; margin-top: 4px; width: 100%; max-width: 150px;
  height: 26px; padding: 0 8px; font-size: .78rem; font-weight: 400;
  border: 1px solid var(--border-subtle, #e5e7eb); border-radius: 7px; background: #fff;
}
.inv-col-filter:focus { outline: 0; border-color: #2563eb; box-shadow: 0 0 0 2px rgba(37, 99, 235, .12); }

@media (max-width: 720px) {
  .inv-toolbar { flex-direction: column; align-items: stretch; }
  .inv-search-box { min-width: 0; flex: 1; }
  .inv-tb-count { width: 100%; }
}
