/* ============================================
   底部 tab 壳 - 面板切换与底部导航
   ============================================ */

/* tab 面板：默认隐藏，active 显示；高度扣除底部导航 56px */
.tab-panel {
  display: none;
  height: calc(100vh - 56px);
  overflow: auto;
}

.tab-panel.active {
  display: block;
}

/* 文档 tab 内主容器原为 100vh，在面板作用域内改为撑满面板，避免布局变形 */
#tab-docs .container {
  height: 100%;
}

/* 占位面板（财务/项目开发中） */
.tab-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-muted);
  gap: 8px;
}

.tab-placeholder .tab-placeholder-icon {
  font-size: 40px;
}

/* 底部 tab 导航栏 */
.shell-tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  display: flex;
  align-items: stretch;
  background: #fff;
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.06);
  z-index: 900;
}

.shell-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 12px;
  color: var(--text-secondary);
  padding: 4px 0;
}

.shell-tab:hover {
  color: var(--primary-color);
}

.shell-tab.active {
  color: var(--primary-color);
  font-weight: 500;
}

.shell-tab-icon {
  font-size: 20px;
  line-height: 1.2;
}

/* 最右退出按钮 */
.shell-logout {
  flex: 0 0 auto;
  padding: 4px 20px;
  color: var(--danger-color);
  border-left: 1px solid var(--border-color);
}

.shell-logout:hover {
  color: var(--danger-color);
  background: #fff5f5;
}
