/* 管理后台：已打开页面标签栏（置顶粘性，不随滚动） */
.tabs-bar {
  position: fixed;
  top: var(--nav-h);
  left: var(--tabs-left, 0);
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-bottom: 1px solid #e6e8eb;
  padding: 4px 8px;
  height: 36px; /* 与布局变量 --tabs-h 对齐 */
}

/* 轨道容器：承载多个标签，允许横向滚动但不显示滚动条 */
.tabs-bar .tabs-track {
  flex: 1 1 auto;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
}
.tabs-bar .tabs-track::-webkit-scrollbar { width: 0; height: 0; }
.tabs-bar .tabs-track { scrollbar-width: none; -ms-overflow-style: none; }

/* 左右箭头按钮 */
.tabs-bar .tabs-arrow {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  line-height: 26px;
  text-align: center;
  border-radius: 4px;
  background: #f5f7fa;
  color: #606266;
  border: 1px solid #e6e8eb;
  cursor: pointer;
  user-select: none;
}
.tabs-bar .tabs-arrow:disabled { opacity: .4; cursor: not-allowed; }

.tabs-bar .tab-item {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  margin-right: 8px;
  border-radius: 4px;
  background: #f5f7fa;
  color: #303133;
  cursor: pointer;
  border: 1px solid transparent;
}
.tabs-bar .tab-item.active {
  background: #eaf4ff;
  border-color: #2c7be5;
}
.tabs-bar .tab-item .tab-label { font-size: 14px; }
.tabs-bar .tab-item .tab-close {
  font-size: 16px;
  line-height: 1;
  margin-left: 8px;
  color: #909399;
}
.tabs-bar .tab-item .tab-close:hover { color: #606266; }