/* ============================================================================
   sidenav.css —— 左侧竖导航（台账 / 看板），两页共用
   参考 WPS 的左侧功能栏：入口在左侧竖排，不挤在标题旁边
   ========================================================================== */

.shell {
  display: flex;
  height: 100dvh;
  background: var(--bg);
}

.sidenav {
  flex: none;
  display: flex;
  flex-direction: column;
  width: 148px;
  padding: 8px 0 12px;
  background: var(--surface);
  border-right: var(--bw-hairline) solid var(--hairline);
}

.sidenav__brand {
  padding: 8px 16px 12px;
  color: var(--faint);
  font-size: var(--fs-d8);
  letter-spacing: var(--ls-caption);
}

.sidenav__list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sidenav__item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  height: 40px;
  padding: 0 16px;
  border-left: 3px solid transparent;
  color: var(--muted);
  font-size: var(--fs-d6);
  text-decoration: none;
}

.sidenav__item:hover {
  background: var(--surface-hover);
  color: var(--ink);
}

/* 当前页：左侧 3px 主色条 + 正文色；这是整个界面唯一的"你在哪"提示 */
.sidenav__item.is-active {
  border-left-color: var(--accent);
  background: var(--surface-hover);
  color: var(--ink);
  font-weight: var(--fw-medium);
}

.sidenav__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.45;
}

.sidenav__item.is-active .sidenav__dot { opacity: 1; background: var(--accent); }

.sidenav__foot {
  margin-top: auto;
  padding: 12px 16px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--faint);
  font-size: var(--fs-d8);
  line-height: 1.5;
}

/* 主区：两页原来的容器在这里变成 flex 子项，宽度自适应、不再撑满视口 */
.shell > .app { flex: 1; min-width: 0; }
.shell > .board-app { flex: 1; min-width: 0; background: var(--bg); }
