/* 目标管理页面样式 */
#page-targets .targets-container {
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Tab导航 */
#page-targets .targets-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #e0e0e0;
  margin-bottom: 24px;
}
#page-targets .targets-tab {
  padding: 12px 24px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 15px;
  color: #666;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}
#page-targets .targets-tab:hover { color: #333; }
#page-targets .targets-tab.active {
  color: var(--primary, #4f6ef7);
  border-bottom-color: var(--primary, #4f6ef7);
  font-weight: 600;
}

/* 页头 */
#page-targets .targets-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
#page-targets .targets-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}
#page-targets .targets-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: auto;
}

/* 月份选择器 */
#page-targets .period-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f5f5f5;
  border-radius: 8px;
  padding: 4px 12px;
}
#page-targets .period-selector button {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 16px;
  padding: 4px 8px;
  border-radius: 4px;
  color: #555;
}
#page-targets .period-selector button:hover { background: #e0e0e0; }
#page-targets .period-label {
  font-size: 14px;
  font-weight: 500;
  min-width: 80px;
  text-align: center;
}

/* 目标表格 */
#page-targets .target-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
#page-targets .target-table th,
#page-targets .target-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
}
#page-targets .target-table th {
  background: #f8f9fa;
  font-weight: 600;
  font-size: 13px;
  color: #555;
}
#page-targets .target-table td input {
  width: 120px;
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}
#page-targets .target-table td input:focus {
  outline: none;
  border-color: var(--primary, #4f6ef7);
  box-shadow: 0 0 0 2px rgba(79,110,247,0.1);
}

/* 公司目标卡片 */
#page-targets .company-target-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
#page-targets .target-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid #eee;
}
#page-targets .target-card h4 {
  margin: 0 0 12px;
  font-size: 14px;
  color: #666;
}
#page-targets .target-card input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
}
#page-targets .target-card input:focus {
  outline: none;
  border-color: var(--primary, #4f6ef7);
  box-shadow: 0 0 0 2px rgba(79,110,247,0.1);
}
#page-targets .target-card .unit {
  font-size: 12px;
  color: #999;
  margin-top: 6px;
}

/* 追踪进度条 */
#page-targets .tracking-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
#page-targets .tracking-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid #eee;
}
#page-targets .tracking-card h4 {
  margin: 0 0 4px;
  font-size: 14px;
  color: #333;
}
#page-targets .tracking-card .tracking-sub {
  font-size: 12px;
  color: #999;
  margin-bottom: 12px;
}
#page-targets .progress-bar {
  height: 8px;
  background: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}
#page-targets .progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s;
}
#page-targets .progress-fill.green { background: #22c55e; }
#page-targets .progress-fill.yellow { background: #f59e0b; }
#page-targets .progress-fill.red { background: #ef4444; }
#page-targets .tracking-stats {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #666;
}
#page-targets .tracking-stats .pct { font-weight: 600; }

/* 按钮样式 */
#page-targets .btn-primary {
  padding: 8px 16px;
  background: var(--primary, #4f6ef7);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
}
#page-targets .btn-primary:hover { opacity: 0.9; }
#page-targets .btn-outline {
  padding: 8px 16px;
  background: #fff;
  color: var(--primary, #4f6ef7);
  border: 1px solid var(--primary, #4f6ef7);
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
}
#page-targets .btn-outline:hover { background: #f0f4ff; }

/* 空状态 */
#page-targets .empty-state {
  text-align: center;
  padding: 40px;
  color: #999;
  font-size: 14px;
}

/* 筛选下拉框 */
#page-targets select {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
  background: #fff;
}