/* 佳贝艾特后台 · 白色菜单栏皮肤（最左侧深色应用栏已移除），字号/主色沿用 ui-base.css Token */

.kb-app {
  --kb-sider-w: 196px;
}

/* ── 白色菜单栏 ── */
.kb-sider { width: var(--kb-sider-w); }
.kb-sider .app-sider__brand { display: block; padding: 14px 16px 12px; }
.kb-sider .app-sider__title {
  font-size: 12px;
  font-weight: 600;
  color: var(--ui-text-title);
  line-height: 16px;
}
.kb-brand__sub {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  line-height: 16px;
  color: #2fa89b;
  font-weight: 500;
}
.kb-sider .app-sider__nav { padding: 6px 0 16px; }

.kb-sider .nav-item {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 8px 16px;
  border: none;
  background: transparent;
  font-family: var(--ui-font);
  font-size: 12px;
  line-height: 18px;
  color: var(--ui-text-secondary);
  text-align: left;
  cursor: pointer;
  text-decoration: none;
}
.kb-sider .nav-item:hover { color: var(--ui-primary-active); background: #fafafa; }
.kb-sider .nav-item.is-active {
  color: var(--ui-primary-active);
  background: var(--ui-primary-light);
  font-weight: 500;
  box-shadow: inset -3px 0 0 var(--ui-primary-active);
}
.kb-sider .nav-item.is-disabled { color: var(--ui-text-secondary); cursor: default; }
.kb-sider .nav-item.is-disabled:hover { color: var(--ui-text-secondary); background: transparent; }
.kb-sider .nav-item--group { color: var(--ui-text); }
.kb-sider .nav-item--group.is-open,
.kb-sider .nav-item--group.is-parent-active { color: var(--ui-primary-active); }
.kb-sider .nav-item--lv1 { padding-left: 30px; color: var(--ui-text-secondary); }
.kb-sider .nav-item--lv2 { padding-left: 44px; color: var(--ui-text-secondary); }
.kb-sider .nav-item__text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kb-sider .nav-item__caret {
  flex-shrink: 0;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--ui-text-muted);
}
.kb-sider .nav-item--group.is-open .nav-item__caret,
.kb-sider .nav-item--group.is-parent-active .nav-item__caret {
  border-top: none;
  border-bottom: 5px solid var(--ui-primary-active);
}
.kb-sider .nav-group[hidden] { display: none; }

/* ── 顶栏面包屑 ── */
.kb-crumb {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  font-size: 12px;
  color: var(--ui-text-muted);
}
.kb-crumb span { color: var(--ui-text-secondary); }
.kb-crumb span:last-child { color: var(--ui-text-title); font-weight: 500; }
.kb-crumb i { font-style: normal; color: #d0d0d0; }

/* ── 内容区 ── */
.kb-app .page-body { padding: 16px 20px 20px; }
.kb-app .page-header { margin-bottom: 12px; align-items: center; }
.kb-app .page-header__title { font-size: 12px; font-weight: 600; line-height: 22px; margin: 0; }
.kb-app .page-header__desc { margin-top: 4px; }

/* 筛选项与列表同一容器、左右对齐 */
.kb-app .search-panel {
  padding: 20px;
  margin-bottom: 12px;
}
.kb-app .search-panel__form { gap: 12px 16px; }
.kb-app .search-panel__form .form-item__control { color: var(--ui-filter-control-color); }
.kb-app .search-panel__actions {
  grid-column: auto / -1;
  justify-content: flex-end;
  align-self: end;
}
.kb-app .table-panel { padding: 8px 20px 12px; width: 100%; min-width: 0; }

/* 列表：名称 / 生成时间 / 操作，列宽适中不拉空 */
.kb-points-table { width: 100%; min-width: 0; }
.kb-points-table th,
.kb-points-table td { padding: 10px 12px; }
.kb-points-table th:nth-child(1),
.kb-points-table td:nth-child(1) { width: 46%; color: var(--ui-text); }
.kb-points-table th:nth-child(2),
.kb-points-table td:nth-child(2) { width: 34%; }
.kb-points-table th.col-actions,
.kb-points-table td.col-actions { position: static; box-shadow: none; }

/* 分页 */
.kb-points-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 12px 4px 4px;
  font-size: 12px;
  color: var(--ui-text-secondary);
}
.kb-points-footer__total { margin-right: auto; }
.kb-pagesize {
  height: 32px;
  padding: 0 8px;
  border: 1px solid var(--ui-border-input);
  border-radius: 4px;
  background: #fff;
  font-size: 12px;
  color: var(--ui-text-secondary);
}
.kb-jumper { display: inline-flex; align-items: center; gap: 6px; }
.kb-jumper input {
  width: 44px;
  height: 32px;
  text-align: center;
  border: 1px solid var(--ui-border-input);
  border-radius: 4px;
  font-size: 12px;
  color: var(--ui-text);
}
.kb-empty { padding: 48px 0; text-align: center; color: var(--ui-text-muted); }

/* 轻提示 */
.kb-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  z-index: 1200;
  transform: translateX(-50%);
  padding: 8px 16px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.76);
  color: #fff;
  font-size: 12px;
  line-height: 20px;
}
.kb-toast[hidden] { display: none; }
